Skip to content

jump_label: Robustify jump label patching

Josh Poimboeuf lkml 4 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest3 patches 0 repliesNew
  2. v33 patches 1 replySuperseded
  3. v22 patches 6 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v13 patches13 repliesApplied

Changes in v4 from the cover letter

- Fix CONFIG_MODULES=n build by moving jump_label_invalidate_init() outside of the CONFIG_MODULES ifdef guard (reported by 0-day bot)

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3jump_label: Explicitly disable jump labels in __init codeinclude/linux/jump_label.h init/main.c kernel/jump_label.c+21 -00 replies
2/3jump_label: Warn on failed jump_label patchkernel/jump_label.c+8 -50 replies
3/3extable: Make init_kernel_text() globalarch/x86/kernel/unwind_orc.c include/linux/kernel.h kernel/extable.c +1 more+4 -60 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchSteven Rostedt (VMware)
1/3
2/3
3/3A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/3] jump_label: Robustify jump label patching

v4:
- Fix CONFIG_MODULES=n build by moving jump_label_invalidate_init() outside of the CONFIG_MODULES ifdef guard (reported by 0-day bot)

v3:
- Make init_kernel_text() global
- Use braces in multi-line 'for' statements

v2:
- Refine the warning so that it doesn't warn about __init entries
- (Do so by explicitly disabling __init entries)
- Drop v1 patches which removed __init tracepoints

Josh Poimboeuf (3):
jump_label: Explicitly disable jump labels in __init code
jump_label: Warn on failed jump_label patch
extable: Make init_kernel_text() global

 arch/x86/kernel/unwind_orc.c |  3 +--
 include/linux/jump_label.h   |  3 +++
 include/linux/kernel.h       |  1 +
 init/main.c                  |  2 ++
 kernel/extable.c             |  2 +-
 kernel/jump_label.c          | 27 ++++++++++++++++++++++-----
 6 files changed, 30 insertions(+), 8 deletions(-)
Signature · 1 line
2.14.3