x86/entry: Actually disable stack protector
authorKees Cook <keescook@chromium.org>
Fri, 26 Jun 2020 20:34:25 +0000 (13:34 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Sun, 19 Jul 2020 11:07:10 +0000 (13:07 +0200)
commit58ac3154b83938515129c20aa76d456a4c9202a8
treeadac6d3468d6f2c269d2397871a5e36b3eed6d31
parentcadfad870154e14f745ec845708bc17d166065f2
x86/entry: Actually disable stack protector

Some builds of GCC enable stack protector by default. Simply removing
the arguments is not sufficient to disable stack protector, as the stack
protector for those GCC builds must be explicitly disabled. Remove the
argument removals and add -fno-stack-protector. Additionally include
missed x32 argument updates, and adjust whitespace for readability.

Fixes: 20355e5f73a7 ("x86/entry: Exclude low level entry code from sanitizing")
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/202006261333.585319CA6B@keescook
arch/x86/entry/Makefile