Re: [PATCH] x86/bugs: Qualify RETBLEED_INTEL_MSG
From: Pawan Gupta
Date: Thu Oct 09 2025 - 02:04:49 EST
On Wed, Oct 08, 2025 at 12:21:36PM +0200, Borislav Petkov wrote:
> On Tue, Oct 07, 2025 at 05:14:29PM -0700, Josh Poimboeuf wrote:
> > Isn't that what CONFIG_CPU_MITIGATIONS=n already does today?
>
> I'd like =n to mean, code is not compiled in.
>
> We do have some savings:
>
> text data bss dec hex filename
> 136442490 9737118 36764336 182943944 ae780c8 vmlinux # CONFIG_CPU_MITIGATIONS is not set
> 138493310 10692818 37741668 186927796 b244ab4 vmlinux # CONFIG_CPU_MITIGATIONS=y
I guess bulk of these savings are comming from CALL_THUNKS that force 16
byte function alignment.
> but look at bugs.o:
>
> # CONFIG_CPU_MITIGATIONS is not set 599K arch/x86/kernel/cpu/bugs.o
> # CONFIG_CPU_MITIGATIONS=y 625K arch/x86/kernel/cpu/bugs.o
>
> and those unused 600K still go into vmlinux:
Thats a lot. OTOH, most of the bugs.c is __init code, do you think it is
still problematic?