]> git.baikalelectronics.ru Git - kernel.git/commit
x86/build: Disable CET instrumentation in the kernel for 32-bit too
authorBorislav Petkov <bp@suse.de>
Mon, 8 Feb 2021 15:43:30 +0000 (16:43 +0100)
committerBorislav Petkov <bp@suse.de>
Tue, 9 Feb 2021 10:23:47 +0000 (11:23 +0100)
commit11e0b780bb6764361064e12b7203ab8946754647
tree16799aeb136741b9a47c2565d0f058954618cbb7
parent4520c459b7414c7fdfb02a4f60e598f15bcd317e
x86/build: Disable CET instrumentation in the kernel for 32-bit too

Commit

  001459ef05ec ("x86/build: Disable CET instrumentation in the kernel")

disabled CET instrumentation which gets added by default by the Ubuntu
gcc9 and 10 by default, but did that only for 64-bit builds. It would
still fail when building a 32-bit target. So disable CET for all x86
builds.

Fixes: 001459ef05ec ("x86/build: Disable CET instrumentation in the kernel")
Reported-by: AC <achirvasub@gmail.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Acked-by: Josh Poimboeuf <jpoimboe@redhat.com>
Tested-by: AC <achirvasub@gmail.com>
Link: https://lkml.kernel.org/r/YCCIgMHkzh/xT4ex@arch-chirva.localdomain
arch/x86/Makefile