Re: [PATCH bpf v2 1/2] bpf: Fix exception exit lock checking for subprogs
From: patchwork-bot+netdevbpf
Date: Sat Mar 21 2026 - 16:00:31 EST
Hello:
This series was applied to bpf/bpf.git (master)
by Alexei Starovoitov <ast@xxxxxxxxxx>:
On Thu, 19 Mar 2026 17:08:08 -0700 you wrote:
> process_bpf_exit_full() passes check_lock = !curframe to
> check_resource_leak(), which is false in cases when bpf_throw() is
> called from a static subprog. This makes check_resource_leak() to skip
> validation of active_rcu_locks, active_preempt_locks, and
> active_irq_id on exception exits from subprogs.
>
> At runtime bpf_throw() unwinds the stack via ORC without releasing any
> user-acquired locks, which may cause various issues as the result.
>
> [...]
Here is the summary with links:
- [bpf,v2,1/2] bpf: Fix exception exit lock checking for subprogs
https://git.kernel.org/bpf/bpf/c/6c2128505f61
- [bpf,v2,2/2] selftests/bpf: Add tests for bpf_throw lock leak from subprogs
https://git.kernel.org/bpf/bpf/c/a1e5c46eaed3
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html