s390/test_unwind: add CALL_ON_STACK tests
authorVasily Gorbik <gor@linux.ibm.com>
Fri, 22 Nov 2019 17:22:06 +0000 (18:22 +0100)
committerVasily Gorbik <gor@linux.ibm.com>
Sat, 30 Nov 2019 09:52:47 +0000 (10:52 +0100)
commit7868249fbbc8125b82b83d99d33b23897ae7d9ab
tree1168e658e094e7ee81d017d0a477f38f4f5a72a4
parent4ac24c092b4eef69b2436ee4d478500dc886e8b5
s390/test_unwind: add CALL_ON_STACK tests

Add CALL_ON_STACK helper testing. Tests make sure that we can unwind from
switched stack to original one up to task pt_regs (nodat -> task stack).

UWM_SWITCH_STACK could not be used together with UWM_THREAD because
get_stack_info explicitly restricts unwinding to task stack if
task != current.

Reviewed-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/lib/test_unwind.c