Re: [RFC PATCH 20/56] x86/bugs: Move bugs.c logic out of .init section

Brendan Jackman
2025-10-16T12:31:40Z

On Mon Oct 13, 2025 at 2:34 PM UTC, David Kaplan wrote:
> If dynamic mitigations are supported, all the mitigation selection
> functions and mitigation choices may change at runtime. Therefore, none of
> the functions may exist in .init and the data must not be read-only.

I suppose we should have something akin to
__meminit/__init_or_module/__net_init here (like __init, but conditional
on Kconfig), so that users with CONFIG_DYNAMIC_MITIGATIONS=n can still
get the RAM back?