Skip to content

objtool: noinstr validation for static branches/calls

Josh Poimboeuf lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 5 repliesIn review
  2. v13 patches 1 replySuperseded

Changes in v2 from the cover letter

- Add some fixes reported by kbuild.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3jump_label: Add annotations for validating noinstr usageinclude/linux/jump_label.h+17 -00 replies
2/3static_call: Add read-only-after-init static callsinclude/linux/static_call.h+16 -00 replies
3/3objtool: Add noinstr validation for static branches/callsinclude/linux/jump_label.h include/linux/objtool.h include/linux/static_call.h +6 more+156 -182 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/3] objtool: noinstr validation for static branches/calls

v2:
- Add some fixes reported by kbuild.

FWIW, this reports the following static keys:

- sched_clock_running
- __sched_clock_stable
- mds_idle_clear
- vmx_l1d_flush_cond
- stack_erasing_bypass

and the following static calls:

- pv_sched_clock
- x86_idle

(not necessarily an exhaustive list, just the ones I've seen)

Josh Poimboeuf (3):
jump_label: Add annotations for validating noinstr usage
static_call: Add read-only-after-init static calls
objtool: Add noinstr validation for static branches/calls

 include/linux/jump_label.h              | 30 ++++++--
 include/linux/objtool.h                 |  7 ++
 include/linux/static_call.h             | 19 +++++
 tools/objtool/Documentation/objtool.txt | 34 +++++++++
 tools/objtool/check.c                   | 92 ++++++++++++++++++++++---
 tools/objtool/include/objtool/check.h   |  1 +
 tools/objtool/include/objtool/elf.h     |  1 +
 tools/objtool/include/objtool/special.h |  1 +
 tools/objtool/special.c                 | 18 ++++-
 9 files changed, 187 insertions(+), 16 deletions(-)
Signature · 1 line
2.47.0