Re: [PATCH net v2] rds: tcp: unregister sysctl before tearing down listen socket

From: patchwork-bot+netdevbpf

Date: Thu Jul 23 2026 - 12:27:25 EST


Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:

On Sun, 19 Jul 2026 17:03:57 -0400 you wrote:
> rds_tcp_exit_net() frees the per-netns RDS TCP listen socket via
> rds_tcp_kill_sock() before unregistering the per-netns sysctl table. Since
> rds_tcp_skbuf_handler() derives the netns from
> rtn->rds_tcp_listen_sock->sk, a concurrent sysctl write can race with
> netns teardown and dereference the freed socket/sk.
>
> KASAN reports the race as:
>
> [...]

Here is the summary with links:
- [net,v2] rds: tcp: unregister sysctl before tearing down listen socket
https://git.kernel.org/netdev/net/c/167e54c703cc

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