]> git.baikalelectronics.ru Git - kernel.git/commit
xtensa: fix get_wchan
authorMax Filippov <jcmvbkbc@gmail.com>
Wed, 2 Jan 2019 09:08:32 +0000 (01:08 -0800)
committerMax Filippov <jcmvbkbc@gmail.com>
Thu, 7 Feb 2019 20:34:02 +0000 (12:34 -0800)
commitf1f864a144bc5803fa7a3a7293b3b5c09639bfd5
tree97ff4ed6e1be83b1334ea8624d81306537b7aef7
parent2e92a5fcd45cb5d4b8a7e918e011960376ff928f
xtensa: fix get_wchan

Stack unwinding is implemented incorrectly in xtensa get_wchan: instead
of extracting a0 and a1 registers from the spill location under the
stack pointer it extracts a word pointed to by the stack pointer and
subtracts 4 or 3 from it.

Cc: stable@vger.kernel.org
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
arch/xtensa/kernel/process.c