Re: [PATCH] ax25: Fix NULL pointer dereference in ax25_kill_by_device

From: patchwork-bot+netdevbpf
Date: Wed Mar 09 2022 - 07:50:18 EST


Hello:

This patch was applied to netdev/net.git (master)
by David S. Miller <davem@xxxxxxxxxxxxx>:

On Tue, 8 Mar 2022 16:12:23 +0800 you wrote:
> When two ax25 devices attempted to establish connection, the requester use ax25_create(),
> ax25_bind() and ax25_connect() to initiate connection. The receiver use ax25_rcv() to
> accept connection and use ax25_create_cb() in ax25_rcv() to create ax25_cb, but the
> ax25_cb->sk is NULL. When the receiver is detaching, a NULL pointer dereference bug
> caused by sock_hold(sk) in ax25_kill_by_device() will happen. The corresponding
> fail log is shown below:
>
> [...]

Here is the summary with links:
- ax25: Fix NULL pointer dereference in ax25_kill_by_device
https://git.kernel.org/netdev/net/c/71171ac8eb34

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