]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1e6c79bf18a6d494fa5c92a3756bd2ec00a9a3e1
treef493b930c13d4f9be1720f8cc0348680f4a03b5a
parentd5a1d7181d42304a9dcced1c85a1877e18cf61f9
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: 450b3bf58e44 ("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