Re: [PATCH 1/2] ARM: check stack pointer in get_wchan

2013-12-05 Thread Russell King - ARM Linux
On Thu, Dec 05, 2013 at 12:34:24PM +0400, Konstantin Khlebnikov wrote: > get_wchan() is lockless. Task may wakeup at any time and change its own stack, > thus each next stack frame may be overwritten and filled with random stuff. > > /proc/$pid/stack interface had been disabled for non-current tas

[PATCH 1/2] ARM: check stack pointer in get_wchan

2013-12-05 Thread Konstantin Khlebnikov
get_wchan() is lockless. Task may wakeup at any time and change its own stack, thus each next stack frame may be overwritten and filled with random stuff. /proc/$pid/stack interface had been disabled for non-current tasks, see [1] But 'wchan' still allows to trigger stack frame unwinding on volati