Re: [PATCH 6.12.y v2] tcp: clear sock_ops cb flags before force-closing a child socket

From: Sasha Levin

Date: Tue Sep 08 2026 - 18:40:51 EST


> A child socket inherits the listener's bpf_sock_ops_cb_flags via
> sk_clone_lock(). If its setup fails in tcp_v4_syn_recv_sock() /
> tcp_v6_syn_recv_sock(), the child is freed through put_and_exit, where
> inet_csk_prepare_forced_close() drops the socket lock and tcp_done() runs
> without it.

Queued for 6.12, thanks.

--
Thanks,
Sasha