diff options
| author | Jeremy Fitzhardinge <[email protected]> | 2006-12-22 09:11:21 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2006-12-22 16:55:51 +0000 |
| commit | 8701ea957dd2a7c309e17c8dcde3a64b92d8aec0 (patch) | |
| tree | 37019047caf24df91f617677f72b378d1e23d82e /fs/jbd/commit.c | |
| parent | [PATCH] memory hotplug: fix compile error for i386 with NUMA config (diff) | |
| download | kernel-8701ea957dd2a7c309e17c8dcde3a64b92d8aec0.tar.gz kernel-8701ea957dd2a7c309e17c8dcde3a64b92d8aec0.zip | |
[PATCH] ptrace: Fix EFL_OFFSET value according to i386 pda changes
The PDA patches introduced a bug in ptrace: it reads eflags from the wrong
place on the target's stack, but writes it back to the correct place. The
result is a corrupted eflags, which is most visible when it turns interrupts
off unexpectedly.
This patch fixes this by making the ptrace code a little less fragile. It
changes [gs]et_stack_long to take a straightforward byte offset into struct
pt_regs, rather than requiring all callers to do a sizeof(struct pt_regs)
offset adjustment. This means that the eflag's offset (EFL_OFFSET) on the
target stack can be simply computed with offsetof().
Signed-off-by: Jeremy Fitzhardinge <[email protected]>
Cc: Frederik Deweerdt <[email protected]>
Cc: Andi Kleen <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'fs/jbd/commit.c')
0 files changed, 0 insertions, 0 deletions
