]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1b234fbc1c5eda901d822d179684139710728903
treeadac6d3468d6f2c269d2397871a5e36b3eed6d31
parent6f223447d0fb9727925ab6c98503a789bd2fdc2f
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: ab04457f849a ("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