public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] objtool: noinstr validation for static branches/calls
@ 2024-11-27  4:47 Josh Poimboeuf
  2024-11-27  4:47 ` [PATCH v2 1/3] jump_label: Add annotations for validating noinstr usage Josh Poimboeuf
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Josh Poimboeuf @ 2024-11-27  4:47 UTC (permalink / raw)
  To: Valentin Schneider; +Cc: linux-kernel, Peter Zijlstra

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(-)

-- 
2.47.0


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2024-12-13  6:21 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-27  4:47 [PATCH v2 0/3] objtool: noinstr validation for static branches/calls Josh Poimboeuf
2024-11-27  4:47 ` [PATCH v2 1/3] jump_label: Add annotations for validating noinstr usage Josh Poimboeuf
2024-11-27  4:47 ` [PATCH v2 2/3] static_call: Add read-only-after-init static calls Josh Poimboeuf
2024-11-27  4:47 ` [PATCH v2 3/3] objtool: Add noinstr validation for static branches/calls Josh Poimboeuf
2024-12-03 12:02   ` Valentin Schneider
2024-12-13  6:21     ` Josh Poimboeuf
2024-11-27  9:38 ` [PATCH v2 0/3] objtool: " Valentin Schneider
2024-11-28  1:35 ` Josh Poimboeuf
2024-12-03 12:00   ` Valentin Schneider

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox