Re: [Patch bpf] sock_map: fix a NULL pointer dereference in sock_map_link_update_prog()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello:

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

On Sat, 26 Oct 2024 11:55:22 -0700 you wrote:
> From: Cong Wang <cong.wang@xxxxxxxxxxxxx>
> 
> The following race condition could trigger a NULL pointer dereference:
> 
> sock_map_link_detach():		sock_map_link_update_prog():
>    mutex_lock(&sockmap_mutex);
>    ...
>    sockmap_link->map = NULL;
>    mutex_unlock(&sockmap_mutex);
>    				   mutex_lock(&sockmap_mutex);
> 				   ...
> 				   sock_map_prog_link_lookup(sockmap_link->map);
> 				   mutex_unlock(&sockmap_mutex);
>    <continue>
> 
> [...]

Here is the summary with links:
  - [bpf] sock_map: fix a NULL pointer dereference in sock_map_link_update_prog()
    https://git.kernel.org/bpf/bpf/c/740be3b9a6d7

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






[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux