Re: [PATCH net] sctp: set sk_state back to CLOSED if autobind fails in sctp_listen_start

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

 



Hello:

This patch was applied to netdev/net.git (main)
by Paolo Abeni <pabeni@xxxxxxxxxx>:

On Mon, 30 Sep 2024 16:49:51 -0400 you wrote:
> In sctp_listen_start() invoked by sctp_inet_listen(), it should set the
> sk_state back to CLOSED if sctp_autobind() fails due to whatever reason.
> 
> Otherwise, next time when calling sctp_inet_listen(), if sctp_sk(sk)->reuse
> is already set via setsockopt(SCTP_REUSE_PORT), sctp_sk(sk)->bind_hash will
> be dereferenced as sk_state is LISTENING, which causes a crash as bind_hash
> is NULL.
> 
> [...]

Here is the summary with links:
  - [net] sctp: set sk_state back to CLOSED if autobind fails in sctp_listen_start
    https://git.kernel.org/netdev/net/c/8beee4d8dee7

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






[Index of Archives]     [Linux Networking Development]     [Linux OMAP]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     SCTP

  Powered by Linux