[PATCH 0/5] jump_label: Fix __ro_after_init keys for modules & annotate some keys

Valentin Schneider posted 5 patches 2 years ago
There is a newer version of this series
arch/x86/kernel/cpu/bugs.c     |  2 +-
arch/x86/kernel/kvm.c          |  2 +-
arch/x86/kernel/tsc.c          |  2 +-
include/asm-generic/sections.h |  5 ++++
include/linux/jump_label.h     |  1 +
init/main.c                    |  1 +
kernel/context_tracking.c      |  2 +-
kernel/jump_label.c            | 49 ++++++++++++++++++++++++++++++++++
8 files changed, 60 insertions(+), 4 deletions(-)
[PATCH 0/5] jump_label: Fix __ro_after_init keys for modules & annotate some keys
Posted by Valentin Schneider 2 years ago
Hi folks,

After chatting about deferring IPIs [1] at LPC I had another look at my patches
and realized a handful of them could already be sent as-is.

This series contains the __ro_after_init static_key bits, which fixes
__ro_after_init keys used in modules (courtesy of PeterZ) and flags more keys as
__ro_after_init.

[1]: https://lore.kernel.org/lkml/20230720163056.2564824-1-vschneid@redhat.com/

Cheers,
Valentin

Peter Zijlstra (1):
  jump_label,module: Don't alloc static_key_mod for __ro_after_init keys

Valentin Schneider (4):
  context_tracking: Make context_tracking_key __ro_after_init
  x86/kvm: Make kvm_async_pf_enabled __ro_after_init
  x86/speculation: Make mds_user_clear __ro_after_init
  x86/tsc: Make __use_tsc __ro_after_init

 arch/x86/kernel/cpu/bugs.c     |  2 +-
 arch/x86/kernel/kvm.c          |  2 +-
 arch/x86/kernel/tsc.c          |  2 +-
 include/asm-generic/sections.h |  5 ++++
 include/linux/jump_label.h     |  1 +
 init/main.c                    |  1 +
 kernel/context_tracking.c      |  2 +-
 kernel/jump_label.c            | 49 ++++++++++++++++++++++++++++++++++
 8 files changed, 60 insertions(+), 4 deletions(-)

--
2.41.0
Re: [PATCH 0/5] jump_label: Fix __ro_after_init keys for modules & annotate some keys
Posted by Josh Poimboeuf 2 years ago
On Mon, Nov 20, 2023 at 11:55:23AM +0100, Valentin Schneider wrote:
> Hi folks,
> 
> After chatting about deferring IPIs [1] at LPC I had another look at my patches
> and realized a handful of them could already be sent as-is.
> 
> This series contains the __ro_after_init static_key bits, which fixes
> __ro_after_init keys used in modules (courtesy of PeterZ) and flags more keys as
> __ro_after_init.
> 
> [1]: https://lore.kernel.org/lkml/20230720163056.2564824-1-vschneid@redhat.com/

Acked-by: Josh Poimboeuf <jpoimboe@kernel.org>

-- 
Josh