Re: [PATCH bpf-next v5 0/2] Reject sleepable kprobe_multi programs at attach time

From: patchwork-bot+netdevbpf

Date: Wed Apr 08 2026 - 21:20:46 EST


Hello:

This series was applied to bpf/bpf-next.git (master)
by Alexei Starovoitov <ast@xxxxxxxxxx>:

On Thu, 9 Apr 2026 00:31:35 +0530 you wrote:
> These patches fix an issue where sleepable kprobe_multi programs
> were allowed to attach, leading to "sleeping function called from invalid
> context" splats.
>
> Because kprobe.multi programs run in atomic/RCU context, they cannot
> sleep. However, `bpf_kprobe_multi_link_attach()` previously lacked
> validation for the `prog->sleepable` flag. This allowed sleepable
> helpers, such as `bpf_copy_from_user()`, to be invoked from an invalid
> non-sleepable context.
>
> [...]

Here is the summary with links:
- [bpf-next,v5,1/2] bpf: Reject sleepable kprobe_multi programs at attach time
(no matching commit)
- [bpf-next,v5,2/2] selftests/bpf: Add test to ensure kprobe_multi is not sleepable
https://git.kernel.org/bpf/bpf-next/c/c7cab53f9d52

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html