[Devel] [PATCH hci-8.2 v2 12/15] ms/selftests/bpf: Test bpf_sock_destroy() on TIME_WAIT and listener socks

no-reply at sashiko.virtuozzo.com no-reply at sashiko.virtuozzo.com
Tue Dec 1 18:43:35 MSK 2026


> From: Jiayuan Chen <jiayuan.chen at linux.dev>
> 
> Add two subtests.
> 
> tcp_timewait: the client shuts down first and the server closes after
> it, so the client sock ends up in TIME_WAIT. A tcp iterator then finds
> the timewait sock by the cookie it inherited from the client sock and
> destroys it. Iterate once more to make sure it is gone. Without the
> first fix bpf_sock_destroy() reads past the timewait sock and KASAN
> complains.
> 
> tcp_listen_pending: connect to a listener but never accept, so the child
> sits in the accept queue, then destroy the listener. Without the second
> fix the cond_resched() in inet_csk_listen_stop() trips the might_sleep
> check under rcu_read_lock().
> [ ... ]
> 
> https://virtuozzo.atlassian.net/browse/VSTOR-158161
> Feature: fix ms/net
> 
> Signed-off-by: Eva Kurchatova <eva.kurchatova at virtuozzo.com>

Sashiko has reviewed this patch and found no issues.

Carry the trailer below into the next revision and Sashiko will not review this patch again.

Reviewed-by: Sashiko <no-reply at sashiko.virtuozzo.com>

-- 
Sashiko AI review · https://sashiko.vzint.dev/#/patchset/20261201153749.2872789-1-eva.kurchatova@virtuozzo.com?part=12




More information about the Devel mailing list