Subject: Re: [PATCH net] tcp: properly terminate timers for kernel sockets

From: Jakub Kicinski <[email-masked]>
Date: Fri, 22 Mar 2024 15:47:04 -0700

On Fri, 22 Mar 2024 13:57:32 +0000 Eric Dumazet wrote:
> +	if (!sk->sk_net_refcnt)
> +		inet_csk_clear_xmit_timers_sync(sk);

The thought that we should clear or poison sk_net at this point
(whether sk->sk_net_refcnt or not) keeps coming back to me.
If we don't guarantee the pointer is valid - to make it easier
for syzbot to catch invalid accesses?