From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.openvz.org (mail.openvz.org [69.168.225.77]) by lore.virtuozzo.com (Postfix) with ESMTPS id 1FFCA80033 for ; Tue, 1 Dec 2026 15:39:12 +0000 (UTC) Received: from mail.openvz.org (localhost [127.0.0.1]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 6B1Fbt6n019990; Tue, 1 Dec 2026 18:37:55 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 6B1Fbt6n019990 Authentication-Results: mail.openvz.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=virtuozzo.com header.i=@virtuozzo.com header.b="LBYOAG6S" Received: from mail-ej1-f70.google.com (mail-ej1-f70.google.com [209.85.218.70]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 6B1FbqM6019948 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=FAIL) for ; Tue, 1 Dec 2026 18:37:52 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 6B1FbqM6019948 Received: by mail-ej1-f70.google.com with SMTP id a640c23a62f3a-c4d288b67ccso200145466b.0 for ; Tue, 01 Dec 2026 07:37:52 -0800 (PST) X-Gm-Message-State: APuU4Z//WV4ZhQQS67GUAp/ICD6E67JEiQ+s/K2stY/85thbPiM1jGL0 kSWv3wUBzIctf9iysq5MgMlr+gUyL53k49b/HUruLTFC/Ng07/IB5agx26gzjX6uafY0c9po7IY WxjGZEtpdIMl1WCx+dpHSz7y+PNkQxCNLE9DvqZzJYycimabxlKvQKw== X-Gm-Gg: AZFdTZdjPMhqCoUqhB1mxgm0cFUY31/Qpsc/BvFDhg1bvNIHhUf+HSWx7f6vjKAtCDP SabKtB72Y9P7KnyepY+9BBi3ujYsI5MCfff8UR4kgEAnm9CJcxeGHYKfepO1Ge19+LlF4Ql0c55 febFp2oUpkkw6/2vqNKQg5outNuqaRM+u9oFU/Yh4drtYf+O1Tn9y3PMNpacYCyfz+S7e0onQQi sd0Ay+4JhPHgkjsW2DDJw7fJQ/G3PqGbX///dC5WSvAE9gV+cj66MgdjjX3Wp8bfaKwRmoVjvmh 7qr9TZqUxU4nJJXGcFVwKs/SXslRC2/QhpHkO7Xq5hFaQ4MFIVu/GPEWiFwV3i+ZQr/LmqB7p/s vjwn+5YbVdp2sE73IsW2Ucer//A== X-Received: by 2002:a17:906:ad8d:b0:c50:5e10:71aa with SMTP id a640c23a62f3a-c513a5e212fmr2633694366b.14.1796139472415; Tue, 01 Dec 2026 07:37:52 -0800 (PST) X-Received: by 2002:a17:906:ad8d:b0:c50:5e10:71aa with SMTP id a640c23a62f3a-c513a5e212fmr2633691566b.14.1796139471865; Tue, 01 Dec 2026 07:37:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1796139471; cv=none; d=google.com; s=arc-20260327; b=o4kvYI0mTlMVzV/mao77glhV4FGEsK5EnFFgyRsMzjqZp+rqhvK/nBVMw9+tBIO4Ns T01GaChHcrlpUZ7kpMblAUoMLCStjzDwd19/90KO0JnL1JcVp15kEqhiu6pR1KPuv1bZ OADcXj7YIVMvn0quSH8c0xkz7fEVwHguo/x6bxnQB+Vum4bMbTU37O5/7SLdASDvayvB ij/lIiOLK490lQL9c8sm1VoCpZGzsPOGoL8LpLtQD2fyfzx5+OGi7llAZo9mgSnXuBR1 dhHQcbi4EpAwmfPa/WuAE7gefBjft2+4IpRtfa8WvobnTejO/udT7pj9KCATzEn/M259 zGJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=zPUVT6r7Y1hoCwVDCT3IcmsdreJiXyx9E9TIRLFd2H8=; fh=/QSWnKFFIPNLStgUoDwCQRaXnWcMIG7fyKJgHY+VEpU=; b=T074nRAAdj6RRUOD5PRkwv7gdO1AuYZqm4EuaCwLEjgYT1rxeSsV7kCf1UDnMCJKzu +WraTrjL8ALa7EvEEhnGmpRoUdGSeeh97fs2xYEEpe3kcrNQh/eunoOPxr0x6dh5s0ye UlOdkyg8IbggCxhG45SJjvwArkQ3v01yXaiSdlRzA+k/fXzeUTEc3Wc0qEMIxE8fpqNh ozuWzNaLa0sYbCvCH42g6fYQg/UDxOCHXDxl4NgJVhv8RNaSPijPgGdRtP0AXnHwUeRd Jz9WL0Iri6nU21MD94CRClgNx0Ar1IQZU7e85CjeVvsqWvvjwob7kciZBgKiIFLRTbSh 7yPg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=relay header.b=LBYOAG6S; spf=pass (google.com: domain of eva.kurchatova@virtuozzo.com designates 130.117.225.111 as permitted sender) smtp.mailfrom=eva.kurchatova@virtuozzo.com; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=virtuozzo.com Received: from relay.virtuozzo.com (relay.virtuozzo.com. [130.117.225.111]) by mx.google.com with ESMTPS id a640c23a62f3a-c513b06ac73si2292170166b.203.2026.12.01.07.37.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Dec 2026 07:37:51 -0800 (PST) Received-SPF: pass (google.com: domain of eva.kurchatova@virtuozzo.com designates 130.117.225.111 as permitted sender) client-ip=130.117.225.111; Authentication-Results: mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=relay header.b=LBYOAG6S; spf=pass (google.com: domain of eva.kurchatova@virtuozzo.com designates 130.117.225.111 as permitted sender) smtp.mailfrom=eva.kurchatova@virtuozzo.com; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=virtuozzo.com DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=virtuozzo.com; s=relay; h=MIME-Version:Message-ID:Date:Subject:From: Content-Type; bh=zPUVT6r7Y1hoCwVDCT3IcmsdreJiXyx9E9TIRLFd2H8=; b=LBYOAG6Si9Mm 0mGvz4osJZxH0ZKRqxDlWUbtJgYNfuV61woXz1b58H+iJbfWUYPh8sB5FfooK/ieR4NW0VxZ9lCox zQNFPKlBlRgbQYaIHaHhNWV8Y1PESvFlwU2iRW0HYJJGvsTxMuslGG6BcI/bJk7ysaemsDwkPzfHP 36jytr3zxCP4rDPQBs+5Hm9EV1prW/q5uEy180Xb+2fq8QJkKKLsrTCgj4zt8f3hJ/qxPtE/+5tYk v1iODlT7K4lG61QX1CzaaLvTNy8ar0UmwsSaZvOTTUhGFCsRejiYAs7NldPyXVtgAs+n+HwpKoJZE LzmaXspK5U748mDIupuGdA==; Received: from ch-vpn.virtuozzo.com ([130.117.225.6] helo=LekKit-T14) by relay.virtuozzo.com with esmtp (Exim 4.96) (envelope-from ) id 1xYPv8-0081OE-2s; Tue, 01 Dec 2026 16:37:41 +0100 From: Eva Kurchatova To: khorenko@virtuozzo.com, vladimir.riabchun@virtuozzo.com Date: Tue, 1 Dec 2026 14:10:15 +0200 Message-ID: <20261201153749.2872789-1-eva.kurchatova@virtuozzo.com> X-Mailer: git-send-email 2.56.1 MIME-Version: 1.0 X-OZ-Fwd: true Cc: devel@openvz.org Subject: [Devel] [PATCH hci-8.2 v2 00/15] ms: backport additional TFO and CALIPSO fixes X-BeenThere: devel@openvz.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: OpenVZ development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: devel-bounces@openvz.org Errors-To: devel-bounces@openvz.org Patchset for tasks: https://virtuozzo.atlassian.net/browse/VSTOR-157577 https://virtuozzo.atlassian.net/browse/VSTOR-158161 https://virtuozzo.atlassian.net/browse/VSTOR-158162 https://virtuozzo.atlassian.net/browse/VSTOR-158163 https://virtuozzo.atlassian.net/browse/VSTOR-158164 All patches are cherry-picks of 6.12.y, except 7, 8 and 12, which are mainline only. Patch 3 is the 6.12.y prerequisite of 4, patch 14 is a prerequisite to 15, and patch 8 has a rebase note for context conflict. Patch 12 is the selftest to 11, and requires patch 2. This fixes: - BPF sock_ops callbacks on a child socket being force-closed (1). - Sleeping under RCU when bpf_sock_destroy() closes a listener (2). - bpf_sock_destroy() reading past TIME_WAIT and request sockets (Patch 11, selftest added in 12). - CALIPSO: broken BIG TCP packets when a router labels them (3, 4), label cache never hit (5), packets dropped once the label is removed (6). - Fast Open listener: NULL dereference on restart (7), request leak when listen() fails (8). - Deferred Fast Open connect reporting sequence as send queue (13). - CIPSO: options corrupted when the label is removed (14), options changed in place under lockless readers (15). - NetLabel: IPv6 add errors ignored (9), short masks accepted (10). Tested in QEMU with KASAN and DEBUG_ATOMIC_SLEEP, with and without the patches: the bugs fixed by 2, 4-6, 9-11, 13 and 14 reproduce without them and are gone when applied, labelling with Smack for CIPSO and with an MLS policy in permissive mode for CALIPSO. Request migration, Fast Open, SYN cookies and the TIME_WAIT purge pass with lockdep and PROVE_RCU. The races fixed by 7, 8 and 15 no longer reproduce, and patch 1 has no test of its own. Changes in v2: - Patches 9-15 are new (VSTOR-158161 to VSTOR-158164). - Rebased on rh10-6.12.0-211.75.1.26.6.vz10, patches 1-8 unchanged. - Reviewed-by: Sashiko on patches 1-8. Link to v1: http://lore.virtuozzo.com/kernel/20261130184822.2743885-1-eva.kurchatova@virtuozzo.com/T/#t Alice Mikityanska (1): ms/net/ipv6: Introduce payload_len helpers Chenguang Zhao (2): ms/netlabel: fix IPv6 unlabeled address add error handling ms/netlabel: validate unlabeled address and mask attribute lengths Eric Dumazet (1): ms/tcp: purge Fast Open RST queue when listen() fails Hyunwoo Kim (1): ms/tcp: fix NULL pointer dereference when restarting a Fast Open listener Jann Horn (1): ms/cipso: stop modifying live ip_options_rcu Jiayuan Chen (3): ms/tcp: Skip cond_resched() in inet_csk_listen_stop() under BPF context ms/bpf: Fix out-of-bounds read of sk_protocol in bpf_sock_destroy() ms/selftests/bpf: Test bpf_sock_destroy() on TIME_WAIT and listener socks Joas Antonio dos Santos (3): ms/calipso: keep BIG TCP payload_len in calipso_skbuff_setattr() ms/calipso: hash the cache key, not the option start, in calipso_cache_add() ms/calipso: update payload_len when removing the CALIPSO option Qihang (1): ms/cipso: fix optlen corruption in cipso_v4_delopt() Qingfang Deng (1): ms/tcp: initialize send sequence numbers before deferring TFO Sechang Lim (1): ms/tcp: clear sock_ops cb flags before force-closing a child socket include/linux/ipv6.h | 22 ++++ include/net/cipso_ipv4.h | 11 +- include/net/inet_connection_sock.h | 8 +- include/net/ipv6.h | 2 - include/net/netfilter/nf_tables_ipv6.h | 4 +- include/net/netlabel.h | 11 +- include/net/tcp.h | 9 ++ net/bridge/br_netfilter_ipv6.c | 2 +- net/bridge/netfilter/nf_conntrack_bridge.c | 4 +- net/core/filter.c | 13 +- net/ipv4/cipso_ipv4.c | 25 +++- net/ipv4/inet_connection_sock.c | 49 +++++-- net/ipv4/tcp_fastopen.c | 2 + net/ipv6/calipso.c | 12 +- net/ipv6/ip6_input.c | 2 +- net/ipv6/ip6_offload.c | 7 +- net/ipv6/output_core.c | 7 +- net/netfilter/ipvs/ip_vs_xmit.c | 2 +- net/netfilter/nf_conntrack_ovs.c | 2 +- net/netfilter/nf_log_syslog.c | 2 +- net/netlabel/netlabel_kapi.c | 24 ++-- net/netlabel/netlabel_unlabeled.c | 32 ++--- net/sched/sch_cake.c | 2 +- security/selinux/netlabel.c | 5 +- security/smack/smack_lsm.c | 14 +- .../selftests/bpf/prog_tests/sock_destroy.c | 121 ++++++++++++++++++ .../selftests/bpf/progs/sock_destroy_prog.c | 30 +++++ 27 files changed, 316 insertions(+), 108 deletions(-) -- 2.56.1 _______________________________________________ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel