Re: [PATCH bpf v3 1/2] bpf: Reject sleepable kprobe_multi programs at attach time

patchwork-bot+netdevbpf
2026-04-02T16:50:25Z

Hello:

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

On Thu, 2 Apr 2026 00:41:25 +0530 you wrote:
> kprobe.multi programs run in atomic/RCU context and cannot sleep.
> However, bpf_kprobe_multi_link_attach() did not validate whether the
> program being attached had the sleepable flag set, allowing sleepable
> helpers such as bpf_copy_from_user() to be invoked from a non-sleepable
> context.
>
> This causes a "sleeping function called from invalid context" splat:
>
> [...]

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

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.