]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
Merge branch 'always-allow-sleepable-and-fmod_ret-programs-on-syscalls'
authorAlexei Starovoitov <ast@kernel.org>
Mon, 9 Mar 2026 16:28:43 +0000 (09:28 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 9 Mar 2026 16:28:43 +0000 (09:28 -0700)
commitbd2e02e3c9215305dfa344c050d5822f19929cf7
tree4782826af167dab0c11f8dd9f8ffa600dc5328dc
parent099bded7525d9803f62bc5a1ed60e2c9ec4851e0
parentfcec7c66d68165b69b3cef6af913a435a25e36a1
Merge branch 'always-allow-sleepable-and-fmod_ret-programs-on-syscalls'

Viktor Malik says:

====================
Always allow sleepable and fmod_ret programs on syscalls

Both sleepable and fmod_ret programs are only allowed on selected
functions. For convenience, the error injection list was originally
used.

When error injection is disabled, that list is empty and sleepable
tracing programs, as well as fmod_ret programs, are effectively
unavailable.

This patch series addresses the issue by at least enabling sleepable and
fmod_ret programs on syscalls, if error injection is disabled. More
details on why syscalls are used can be found in [1].

[1] https://lore.kernel.org/bpf/CAADnVQK6qP8izg+k9yV0vdcT-+=axtFQ2fKw7D-2Ei-V6WS5Dw@mail.gmail.com/

Changes in v3:
- Handle LoongArch (Leon)
- Add Kumar's and Leon's acks

Changes in v2:
- Check "sys_" prefix instead of "sys" for powerpc syscalls (AI review)
- Add link to the original discussion (Kumar)
- Add explanation why arch syscall prefixes are hard-coded (Leon)
====================

Link: https://patch.msgid.link/cover.1773055375.git.vmalik@redhat.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>