Revert "livepatch: Remove reliable stacktrace check in klp_try_switch_task()"
authorMiroslav Benes <mbenes@suse.cz>
Tue, 11 Jun 2019 14:13:19 +0000 (16:13 +0200)
committerPetr Mladek <pmladek@suse.com>
Thu, 20 Jun 2019 14:08:41 +0000 (16:08 +0200)
commit67059d65f7da537c41513fc52e78eff096092b8c
treedfad02a0ea99db7a64df350cf8a1d803fc66a423
parent380178ef7fde58f2040788a1bab972ce4867ac58
Revert "livepatch: Remove reliable stacktrace check in klp_try_switch_task()"

This reverts commit 1d98a69e5cef3aeb68bcefab0e67e342d6bb4dad. Commit
31adf2308f33 ("livepatch: Convert error about unsupported reliable
stacktrace into a warning") weakened the enforcement for architectures
to have reliable stack traces support. The system only warns now about
it.

It only makes sense to reintroduce the compile time checking in
klp_try_switch_task() again and bail out early.

Signed-off-by: Miroslav Benes <mbenes@suse.cz>
Acked-by: Josh Poimboeuf <jpoimboe@redhat.com>
Reviewed-by: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
Signed-off-by: Petr Mladek <pmladek@suse.com>
kernel/livepatch/transition.c