Re: [PATCH] kfence: Allow selecting static keys mode at boot
From: Chris Down
Date: Sat Nov 28 2026 - 13:22:55 EST
Hi Marco,
Marco Elver writes:
>While eventual deletion would be my preference, what you say here
>doesn't make sense. "One kernel across the fleet" does not necessitate
>deleting this Kconfig option from the upstream kernel. You control
>your .config, and the Kconfig option is default-off nor is anyone
>forced to enable it.
Sorry, I think I wasn't clear, I wasn't suggesting that we delete it
upstream :-) My point was that we want one kernel across the fleet, and
turning the option off in our own config gets us there.
>An intermediate step would be to e.g. not make
>CONFIG_KFENCE_STATIC_KEYS selectable on certain architectures where we
>are sure it causes more problems (global IPIs on systems with 100s of
>CPUs) than performance improvements. We could do that for x86, and I'd
>Ack that right away.
Sounds good to me. I'll send a v2 which does that for x86 and leaves the
other architectures alone.
Thanks!
Chris