entry: Fix boot for !CONFIG_GENERIC_ENTRY
authorGabriel Krisman Bertazi <krisman@collabora.com>
Mon, 23 Nov 2020 15:54:58 +0000 (10:54 -0500)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 25 Nov 2020 01:20:09 +0000 (02:20 +0100)
commit5903f61e035320104394f721f74cd22171636f63
treef493b930c13d4f9be1720f8cc0348680f4a03b5a
parentd1f250e2205eca9f1264f8e2d3a41fcf38f92d91
entry: Fix boot for !CONFIG_GENERIC_ENTRY

A copy-pasta mistake tries to set SYSCALL_WORK flags instead of TIF
flags for !CONFIG_GENERIC_ENTRY.  Also, add safeguards to catch this at
compilation time.

Fixes: 3136b93c3fb2 ("entry: Expose helpers to migrate TIF to SYSCALL_WORK flags")
Reported-by: Naresh Kamboju <naresh.kamboju@linaro.org>
Suggested-by: Jann Horn <jannh@google.com>
Signed-off-by: Gabriel Krisman Bertazi <krisman@collabora.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/87a6v8qd9p.fsf_-_@collabora.com
include/linux/thread_info.h