diff options
author | Vasily Gorbik <gor@linux.ibm.com> | 2019-11-22 19:37:50 +0300 |
---|---|---|
committer | Vasily Gorbik <gor@linux.ibm.com> | 2019-11-30 12:52:46 +0300 |
commit | f44fa79b104b56d53d33ae43e69bab98b63d4783 (patch) | |
tree | d31c42e17d834b3347e9b87fc9f9b8d50be68880 /arch/s390/lib | |
parent | badbf39790798283f2424828e7b7bec3962f1e02 (diff) | |
download | linux-f44fa79b104b56d53d33ae43e69bab98b63d4783.tar.xz |
s390/test_unwind: require that unwinding ended successfully
Currently unwinder test passes if unwinding results contain unwindme_func2
and unwindme_func1 functions.
Now that unwinder reports success upon reaching task pt_regs, check
that unwinding ended successfully in every test.
Acked-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'arch/s390/lib')
-rw-r--r-- | arch/s390/lib/test_unwind.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/s390/lib/test_unwind.c b/arch/s390/lib/test_unwind.c index 5636da941f1f..2839f8cb691d 100644 --- a/arch/s390/lib/test_unwind.c +++ b/arch/s390/lib/test_unwind.c @@ -71,6 +71,10 @@ static noinline int test_unwind(struct task_struct *task, struct pt_regs *regs, } /* Check the results. */ + if (unwind_error(&state)) { + pr_err("unwind error\n"); + ret = -EINVAL; + } if (!seen_func2_func1) { pr_err("unwindme_func2 and unwindme_func1 not found\n"); ret = -EINVAL; |