aboutsummaryrefslogtreecommitdiff
path: root/arch/riscv/Kconfig
diff options
context:
space:
mode:
authorGravatar Borislav Petkov (AMD) <bp@alien8.de> 2024-04-15 18:15:43 +0200
committerGravatar Borislav Petkov (AMD) <bp@alien8.de> 2024-04-17 18:02:05 +0200
commit6376306adde5b252ee7c73572e35d13fb13f6f18 (patch)
treecf8dce67fa3fec89d162638ae8cb8ad379eea0f9 /arch/riscv/Kconfig
parentx86/bugs: Fix BHI retpoline check (diff)
downloadlinux-6376306adde5b252ee7c73572e35d13fb13f6f18.tar.gz
linux-6376306adde5b252ee7c73572e35d13fb13f6f18.tar.bz2
linux-6376306adde5b252ee7c73572e35d13fb13f6f18.zip
x86/retpolines: Enable the default thunk warning only on relevant configs
The using-default-thunk warning check makes sense only with configurations which actually enable the special return thunks. Otherwise, it fires on unrelated 32-bit configs on which the special return thunks won't even work (they're 64-bit only) and, what is more, those configs even go off into the weeds when booting in the alternatives patching code, leading to a dead machine. Fixes: 4461438a8405 ("x86/retpoline: Ensure default return thunk isn't used at runtime") Reported-by: Klara Modin <klarasmodin@gmail.com> Reported-by: Erhard Furtner <erhard_f@mailbox.org> Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Tested-by: Klara Modin <klarasmodin@gmail.com> Link: https://lore.kernel.org/r/78e0d19c-b77a-4169-a80f-2eef91f4a1d6@gmail.com Link: https://lore.kernel.org/r/20240413024956.488d474e@yea
Diffstat (limited to 'arch/riscv/Kconfig')
0 files changed, 0 insertions, 0 deletions