Red Hat Bugzilla – Bug 635853
ptrace: the tracee can get the extra trap after PTRACE_DETACH
Last modified: 2015-02-08 16:36:13 EST
Created attachment 448556 [details] the tracee gets the extra trap after PTRACE_DETACH Description of problem: TIF_SINGLESTEP is not cleared after PTRACE_DETACH and the tracee gets another trap after resume. How reproducible: always Steps to Reproduce: run the attached test-case Actual results: the tracee gets the trap after detach Expected results: the tracee should exit normaly Additional info: the patch exists, under discussion
This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux maintenance release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Update release for currently deployed products. This request is not yet committed for inclusion in an Update release.
[RHEL6.1 PATCH] bz635853: utrace: move user_disable_single_step() logic from utrace_control() to utrace_reset() http://post-office.corp.redhat.com/archives/rhkernel-list/2010-November/msg01359.html
Patch(es) available on kernel-2.6.32-91.el6
Having run attachment,reproduced on kernel-2.6.32-85.el6: # ./a.out ERR!! exit status: 0085 verified on kernel-2.6.32-122.el6: # ./a.out # echo $? 0 (exit normally)
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHSA-2011-0542.html