diff options
author | Peter Zijlstra <peterz@infradead.org> | 2025-02-07 13:15:38 +0100 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2025-02-14 10:32:07 +0100 |
commit | 306859de59e59f88662b6b56ff2ce3bbb1e375bb (patch) | |
tree | 1e6ea5ab1fb74662acaf0655a44f7b45b7174c35 /tools/perf/scripts/python/task-analyzer.py | |
parent | c4239a72a29d58a4377c2db8583c24f9e2b79d01 (diff) |
x86/early_printk: Harden early_serial
Scott found that mem32_serial_in() is an ideal speculation gadget, an
indirectly callable function that takes an adddress and offset and
immediately does a load.
Use static_call() to take away the need for indirect calls and
explicitly seal the functions to ensure they're not callable on IBT
enabled parts.
Reported-by: Scott Constable <scott.d.constable@intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Sami Tolvanen <samitolvanen@google.com>
Link: https://lore.kernel.org/r/20250207122546.919773202@infradead.org
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions