[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <166567981605.2135.16734103655927008557.git-patchwork-notify@kernel.org>
Date: Thu, 13 Oct 2022 16:50:16 +0000
From: patchwork-bot+netdevbpf@...nel.org
To: Kuniyuki Iwashima <kuniyu@...zon.com>
Cc: davem@...emloft.net, edumazet@...gle.com, kuba@...nel.org,
pabeni@...hat.com, yoshfuji@...ux-ipv6.org, dsahern@...nel.org,
kuni1840@...il.com, netdev@...r.kernel.org,
syzkaller@...glegroups.com
Subject: Re: [PATCH v1 net] tcp: Clean up kernel listener's reqsk in
inet_twsk_purge()
Hello:
This patch was applied to netdev/net.git (master)
by Jakub Kicinski <kuba@...nel.org>:
On Wed, 12 Oct 2022 07:50:36 -0700 you wrote:
> Eric Dumazet reported a use-after-free related to the per-netns ehash
> series. [0]
>
> When we create a TCP socket from userspace, the socket always holds a
> refcnt of the netns. This guarantees that a reqsk timer is always fired
> before netns dismantle. Each reqsk has a refcnt of its listener, so the
> listener is not freed before the reqsk, and the net is not freed before
> the listener as well.
>
> [...]
Here is the summary with links:
- [v1,net] tcp: Clean up kernel listener's reqsk in inet_twsk_purge()
https://git.kernel.org/netdev/net/c/740ea3c4a0b2
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Powered by blists - more mailing lists