No subject
Wed Jan 21 23:45:03 AEDT 2026
to add_random_kstack_offset() a bit later in a few cases; after the
entry logic has run, and after instrumentation_begin() (if the arch code
uses that), such that it doesn't matter if this gets instrumented.
Considering the callers of add_random_kstack_offset(), if we did that:
* arm64 is fine as-is.
* loongarch is fine as-is.
* powerpc's system_call_exception() would need this moved after the
user_exit_irqoff(). Given that function is notrace rather than
noinstr, it looks like there are bigger extant issues here.
* riscv is fine as-is.
* s390's __do_syscall() would need this moved after
enter_from_user_mode().
* On x86:
- do_int80_emulation() is fine as-is.
- int80_emulation() is fine as-is.
- do_int80_syscall_32() would need this moved after
instrumentation_begin().
- __do_fast_syscall_32() would need this moved after
instrumentation_begin().
- do_syscall_64() would need this moved after instrumentation_begin().
Mark.
More information about the Linuxppc-dev
mailing list