On Fri, Dec 04, 2026 at 11:47:43PM +0100, Ilya Maximets wrote:
> This doesn't cause any real issues, so may as well go through net-next. > > If we're changing this, we should also probbaly change the other place > in skb_nfct_cached(). It is inside the RCU read section, but it's better > to be consistent. I'd suggest to also add a comment to the nf_ct_timeout > in the structure that this pointer should not be dereferenced.
I will target net-next in v2, use rcu_access_pointer() for the comparison in skb_nfct_cached() as well, and document that the stored timeout pointer is an identity token and must not be dereferenced. pw-bot: cr