Bug 157424 - U1 kernel 2.6.9-6.37.EL ptrace panics
U1 kernel 2.6.9-6.37.EL ptrace panics
Status: CLOSED CURRENTRELEASE
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: kernel (Show other bugs)
4.0
powerpc Linux
medium Severity medium
: ---
: ---
Assigned To: David Woodhouse
Brian Brock
:
: 157433 157831 (view as bug list)
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2005-05-11 11:23 EDT by Andrew Haley
Modified: 2007-11-30 17:07 EST (History)
3 users (show)

See Also:
Fixed In Version: RHEL 4 U2
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2006-08-21 11:06:51 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
kernel dump (33.62 KB, text/plain)
2005-05-11 11:25 EDT, Andrew Haley
no flags Details
Proposed fix. (1.83 KB, patch)
2005-05-11 11:44 EDT, David Woodhouse
no flags Details | Diff
Upstream fix. (1.16 KB, patch)
2005-05-12 09:24 EDT, David Woodhouse
no flags Details | Diff

  None (edit)
Description Andrew Haley 2005-05-11 11:23:30 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0

Description of problem:
kernel panic in ptrace


Version-Release number of selected component (if applicable):


How reproducible:
Couldn't Reproduce

Steps to Reproduce:
1. run gdb
2.
3.
  

Actual Results:  kernel panic

Additional info:

This happens a few times per week under heavy debug load.
Comment 1 Andrew Haley 2005-05-11 11:25:49 EDT
Created attachment 114247 [details]
kernel dump
Comment 2 David Woodhouse 2005-05-11 11:44:05 EDT
Created attachment 114248 [details]
Proposed fix.

Yeah, looks obvious. We don't do the lazy fpu saving on SMP machines, and we
object violently to being asked to save the FPU for a non-current task.
Comment 3 David Woodhouse 2005-05-11 11:49:19 EDT
Hm. Actually I'm unconvinced the above is anything more than a workaround. The
BUG() will only trigger if MSR_FP is enabled for the child, and that really
shouldn't be happening. 
Comment 4 Suzanne Hillman 2005-05-11 16:50:36 EDT
*** Bug 157433 has been marked as a duplicate of this bug. ***
Comment 5 Ernie Petrides 2005-05-11 17:58:05 EDT
*** Bug 157433 has been marked as a duplicate of this bug. ***
Comment 6 Ernie Petrides 2005-05-11 18:00:00 EDT
Fixing kernel version and assigning.
Comment 7 David Woodhouse 2005-05-12 09:24:21 EDT
Created attachment 114293 [details]
Upstream fix.

This is the real fix. The problem we weren't correctly waiting for the inferior
to be taken off its CPU. Its register set really was in some other CPU, not in
the place we were looking for it, and that's why the FPU was still marked as
enabled.
Comment 11 Dave Jones 2005-05-17 02:29:24 EDT
*** Bug 157831 has been marked as a duplicate of this bug. ***

Note You need to log in before you can comment on or make changes to this bug.