ARM64: check stack pointer in get_wchan
authorKonstantin Khlebnikov <k.khlebnikov@samsung.com>
Thu, 5 Dec 2013 13:30:10 +0000 (13:30 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Thu, 19 Dec 2013 17:43:09 +0000 (17:43 +0000)
commit408c3658b0d49315974ce8b5aed385c8e1527595
treefea73a527507df8c35ba1a2c0542a61dab4349e9
parent50afc33a90e710c02d9bbf2f3673936365f0e690
ARM64: check stack pointer in get_wchan

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.

Signed-off-by: Konstantin Khlebnikov <k.khlebnikov@samsung.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/process.c