Re: [PATCH bpf v4] bpf: Fix theoretical prog_array UAF in __uprobe_perf_func()
From: patchwork-bot+netdevbpf
Date: Tue Dec 10 2024 - 16:30:22 EST
Hello:
This patch was applied to bpf/bpf.git (master)
by Andrii Nakryiko <andrii@xxxxxxxxxx>:
On Tue, 10 Dec 2024 20:08:14 +0100 you wrote:
> Currently, the pointer stored in call->prog_array is loaded in
> __uprobe_perf_func(), with no RCU annotation and no immediately visible
> RCU protection, so it looks as if the loaded pointer can immediately be
> dangling.
> Later, bpf_prog_run_array_uprobe() starts a RCU-trace read-side critical
> section, but this is too late. It then uses rcu_dereference_check(), but
> this use of rcu_dereference_check() does not actually dereference anything.
>
> [...]
Here is the summary with links:
- [bpf,v4] bpf: Fix theoretical prog_array UAF in __uprobe_perf_func()
https://git.kernel.org/bpf/bpf/c/7d0d673627e2
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html