[PATCH] powerpc/ptrace: Remove BUG_ON when full register set not available

2011-03-20 Thread Benjamin Herrenschmidt
From: Mike Wolf In some cases during a threaded core dump not all the threads will have a full register set. This happens when the signal causing the core dump races with a thread exiting. The race happens when the exiting thread has entered the kernel for the last time before the signal arrives

Re: [PATCH] powerpc/ptrace: remove BUG_ON when full register set not available

2011-03-02 Thread Michael Wolf
On Wed, 2011-03-02 at 14:08 +1100, Benjamin Herrenschmidt wrote: > > --- ptracev2.orig/include/linux/regset.h2011-02-20 12:15:57.0 > > -0600 > > +++ ptracev2/include/linux/regset.h 2011-02-28 13:33:36.685302349 -0600 > > @@ -240,6 +240,34 @@ static inline int user_regset_copyout(un > >

Re: [PATCH] powerpc/ptrace: remove BUG_ON when full register set not available

2011-03-01 Thread Benjamin Herrenschmidt
> --- ptracev2.orig/include/linux/regset.h 2011-02-20 12:15:57.0 > -0600 > +++ ptracev2/include/linux/regset.h 2011-02-28 13:33:36.685302349 -0600 > @@ -240,6 +240,34 @@ static inline int user_regset_copyout(un > } > return 0; > } > +/* want the count to be the registe

[PATCH] powerpc/ptrace: remove BUG_ON when full register set not available

2011-03-01 Thread Michael Wolf
In some cases during a threaded core dump not all the threads will have a full register set. This will cause problems when the sigkill is sent to the thread. To solve this problem a poison value (0xdeadbeef) will be placed in the buffer in place of the actual register values. This will affect