Re: [PATCH] bpf: Fix mismatched RCU unlock flavour in bpf_out_neigh_v6

From: patchwork-bot+netdevbpf
Date: Fri Nov 08 2024 - 15:50:32 EST


Hello:

This patch was applied to bpf/bpf.git (master)
by Martin KaFai Lau <martin.lau@xxxxxxxxxx>:

On Fri, 8 Nov 2024 08:18:52 +0000 you wrote:
> In the bpf_out_neigh_v6 function, rcu_read_lock() is used to begin an RCU
> read-side critical section. However, when unlocking, one branch
> incorrectly uses a different RCU unlock flavour rcu_read_unlock_bh()
> instead of rcu_read_unlock(). This mismatch in RCU locking flavours can
> lead to unexpected behavior and potential concurrency issues.
>
> This possible bug was identified using a static analysis tool developed
> by myself, specifically designed to detect RCU-related issues.
>
> [...]

Here is the summary with links:
- bpf: Fix mismatched RCU unlock flavour in bpf_out_neigh_v6
https://git.kernel.org/bpf/bpf/c/fb86c42a2a5d

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