All Virtuozzo development lists (kernel + QEMU)
 help / color / mirror / Atom feed
From: no-reply@sashiko.virtuozzo.com
To: Eva Kurchatova <eva.kurchatova@virtuozzo.com>,
	khorenko@virtuozzo.com, vladimir.riabchun@virtuozzo.com
Cc: devel@openvz.org
Subject: Re: [Devel] [PATCH hci-8.2 1/8] ms/tcp: clear sock_ops cb flags before force-closing a child socket
Date: Tue, 1 Dec 2026 01:17:46 +0000	[thread overview]
Message-ID: <010701a22f2de51c-66d12d63-c96b-4c90-9c27-748fc0a1101d-000000@eu-central-1.amazonses.com> (raw)
In-Reply-To: <20261130184822.2743885-2-eva.kurchatova@virtuozzo.com>

> From: Sechang Lim <rhkrqnwk98@gmail.com>
> 
> [ Upstream commit 990348e5bb457697c2f1f7f7b65154a3334d9d2b ]
> 
> 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.
> 
> If BPF_SOCK_OPS_STATE_CB_FLAG was inherited, tcp_done() -> tcp_set_state()
> calls tcp_call_bpf(), which expects the lock and trips sock_owned_by_me():
> 
>   WARNING: include/net/sock.h:1799 at tcp_set_state+0x433/0x550
>   RIP: 0010:tcp_set_state+0x433/0x550 include/net/sock.h:1799
> [ ... ]
> 
> https://virtuozzo.atlassian.net/browse/VSTOR-157577
> Feature: fix ms/net
> 
> Signed-off-by: Eva Kurchatova <eva.kurchatova@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@sashiko.virtuozzo.com>

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


_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel

  reply	other threads:[~2026-12-01  1:19 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-30 18:45 [Devel] [PATCH hci-8.2 0/8] ms: backport additional TFO and CALIPSO fixes Eva Kurchatova
2026-11-30 18:45 ` [Devel] [PATCH hci-8.2 1/8] ms/tcp: clear sock_ops cb flags before force-closing a child socket Eva Kurchatova
2026-12-01  1:17   ` no-reply [this message]
2026-11-30 18:45 ` [Devel] [PATCH hci-8.2 2/8] ms/tcp: Skip cond_resched() in inet_csk_listen_stop() under BPF context Eva Kurchatova
2026-12-01  1:18   ` no-reply
2026-11-30 18:45 ` [Devel] [PATCH hci-8.2 3/8] ms/net/ipv6: Introduce payload_len helpers Eva Kurchatova
2026-12-01  1:21   ` no-reply
2026-11-30 18:45 ` [Devel] [PATCH hci-8.2 4/8] ms/calipso: keep BIG TCP payload_len in calipso_skbuff_setattr() Eva Kurchatova
2026-12-01  1:22   ` no-reply
2026-11-30 18:45 ` [Devel] [PATCH hci-8.2 5/8] ms/calipso: hash the cache key, not the option start, in calipso_cache_add() Eva Kurchatova
2026-12-01  1:23   ` no-reply
2026-11-30 18:45 ` [Devel] [PATCH hci-8.2 6/8] ms/calipso: update payload_len when removing the CALIPSO option Eva Kurchatova
2026-12-01  1:25   ` no-reply
2026-11-30 18:45 ` [Devel] [PATCH hci-8.2 7/8] ms/tcp: fix NULL pointer dereference when restarting a Fast Open listener Eva Kurchatova
2026-12-01  1:25   ` no-reply
2026-11-30 18:45 ` [Devel] [PATCH hci-8.2 8/8] ms/tcp: purge Fast Open RST queue when listen() fails Eva Kurchatova
2026-12-01  1:28   ` no-reply
2026-12-01 11:37 ` [Devel] [PATCH hci-8.2 0/8] ms: backport additional TFO and CALIPSO fixes Eva Kurchatova (Virtuozzo)
2026-12-01 15:42 ` Eva Kurchatova (Virtuozzo)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=010701a22f2de51c-66d12d63-c96b-4c90-9c27-748fc0a1101d-000000@eu-central-1.amazonses.com \
    --to=no-reply@sashiko.virtuozzo.com \
    --cc=devel@openvz.org \
    --cc=eva.kurchatova@virtuozzo.com \
    --cc=khorenko@virtuozzo.com \
    --cc=vladimir.riabchun@virtuozzo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.