Thread (2 messages) 2 messages, 2 authors, 2011-02-24

Re: powerpc/ptrace: Fix bug in signal handling

From: Michael Neuling <hidden>
Date: 2011-02-24 00:02:11

Mike,
Subject: powerpc/ptrace: Fix bug in signal handling
Maybe something more descriptive here like:
  powerpc/ptrace: remove BUG_ON when full register set not available
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
Please add a description for how you are solving this.  Something like
"Solve this by putting poison values in the registers".  Similar inline
comments would be good too.

Also, I'm not convinced this is the right solution... not that I have a
have a better one to suggest :-)

<snip>
+static inline int user_regset_copyout_poison(unsigned int *pos,
+					   unsigned int *count,
+					   void **kbuf, void __user **ubuf,
+					   const int start_pos,
+					   const int end_pos)
+{
+	long poison_data[17] = { [0 ... 16] = 0xdeadbeefdeadbeefUL };
Why only poison 17 registers?

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