Thread (2 messages) 2 messages, 2 authors, 2007-09-25

Re: [PATCH 1/2] powerpc: ptrace CHECK_FULL_REGS

From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Date: 2007-09-25 03:59:25
Also in: lkml

On Mon, 2007-09-24 at 17:59 -0700, Roland McGrath wrote:
quoted
Yup, I think I ditched most of them.. for some reason I decided it
couldn't happen, but maybe I'm wrong ?
Well, it's a BUG_ON.  It's supposed to be for something that "can't happen".
That's why it's a sanity check, not a wild assertion. ;-)

The 2/2 patch is an example of a bug that CHECK_FULL_REGS catches.
In the status quo, using PTRACE_PEEKUSR in a bug case crashes while using
PTRACE_GETREGS in the same place might get bogus data.  (In the actual bug
thus found, the data is not bogus and only the bit that FULL_REGS checks is.)
Fair enough.

Ben.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help