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 35DAD80031 for ; Thu, 26 Nov 2026 06:28: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 6AQ6QuqS007735; Thu, 26 Nov 2026 09:26:57 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 6AQ6QuqS007735 Authentication-Results: mail.openvz.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=virtuozzo.com header.i=@virtuozzo.com header.b="x6i9rR/+" 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 6AQ6QtMI007707 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=FAIL) for ; Thu, 26 Nov 2026 09:26:55 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 6AQ6QtMI007707 Received: by mail-ej1-f70.google.com with SMTP id a640c23a62f3a-c49df8fe86eso512006866b.2 for ; Wed, 25 Nov 2026 22:26:55 -0800 (PST) X-Gm-Message-State: APuU4Z8k4xTd8KwTXaLUDOdaUgWuk4xNKx71OODLS6Hw79RqFBMjhLYf 9cDKvAQWA8wwZk6wmELLTEW5sN+zQuL/vlW/STMeJ68uJA/uq0URn6rPsgh1P6kysFeNZ0Ex5f5 zhyFWjXVP8eYLfrBDr+suxU7PGl10uwhJ8FQcLMqkl5xg+KgAORGtKg== X-Gm-Gg: AZFdTZc3IDM2Akh75OJxHvESMtDyWYgblT6h0b215ay3171NVEX0zp8wnV8A64IvLhN sW8e8CBlo3EY9mWZUFJWoBH0Iaz+I0MdhxVsaGyt4h3sKBy9AgXEHXv80Jdii7X9LtOoqbf22p/ UBoIkqxa8WPFjzaqLNLgZBimkajgtj91FuD3pnxKwaqyUCnN0sicoQ8BI5skTtYqqUXrTHr1Yod Db4wvJdQenVtDQzEUG5St4mfK5dEjuHTKHtitHkLhIF+tEbhq6sgwH2tLSo1NIw4kkPd6VWXZX1 HUkFzsE1SDJRfZQQIjqKOcKm4Ay6txesBS2csndLPbMkozOZjOt188qqLm2nDo4o0wHBhVTMpjE +bSA8W25D0lpQCB042p8Km/rI X-Received: by 2002:a05:6402:4416:b0:6ba:a7af:b80d with SMTP id 4fb4d7f45d1cf-6baa7afb918mr9271626a12.25.1795674414912; Wed, 25 Nov 2026 22:26:54 -0800 (PST) X-Received: by 2002:a05:6402:4416:b0:6ba:a7af:b80d with SMTP id 4fb4d7f45d1cf-6baa7afb918mr9271621a12.25.1795674414499; Wed, 25 Nov 2026 22:26:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1795674414; cv=none; d=google.com; s=arc-20260327; b=dLBRJvqhEjPFXvQAoccvEPv0EgKveYY8+phAGXnzYwEYKnF49t0HeCxqF75/HXlMHc HgfqgJfKePGy5FNHLennIqfOqLgT0K65SmU+rjEYnDSzmUimJp554tVpsMf+msT4ysHe wPxWtGeHJw/l98swpPI73DuwKGn94p6wLExjvz8+cWAkur5XODxu7NRnSSKxdjzBh2NA 4h64w9XaPUwOLBhVfaEyUj3DqS7Fp7/yMwITuTY6N1A6m8GvUyJM5woqYwoSYS8c125E MPKIQ6w/Vpl+Cjmx1uE2BmPjUM4CVmMFsi5n+TfNP2ii8rxH2Yu15WZFjss1QdnGlq4o Adog== 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=S0i9NYBeG4tf3oXvWT9Qy7Bbnc0bCQaaEACGvk0a9Eo=; fh=/QSWnKFFIPNLStgUoDwCQRaXnWcMIG7fyKJgHY+VEpU=; b=U1Op/PmlGN1cDcfe/kV0y86qQvF9+jw+em9FWDs0DU/JFuysKDqxxY0Tx2/RsZ7QBj vcOGAoMV54gGNs0KiNLU/GqpAj3Efwq/SDmc46DduCp99Wg7Jcs81JjRehJ3K8lD9qZj PJ1yw3AfhCv0yYG1QY1fZ+ldueQdtpuSJiXHEPKdnVNNE6/Ue1iKEkAx54fR75wXecMK e2BHjErdhL+hoINp6Jl85Kt/99YhsrXnJqUJCN6TmHBNy0GUCzZ3J91akX3XApFTEmJD czXByfmeZKFZ4LMd7XFoqFnpfzDMpia+qtZknd6r0xC9K+bR4okOVYMFstMqM4JqBq8L /EdA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=relay header.b="x6i9rR/+"; 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 4fb4d7f45d1cf-6ba6f8fc7bbsi12966935a12.209.2026.11.25.22.26.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Nov 2026 22:26:54 -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="x6i9rR/+"; 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=S0i9NYBeG4tf3oXvWT9Qy7Bbnc0bCQaaEACGvk0a9Eo=; b=x6i9rR/+KuYN vBsGVgF4M4f3l/IcipdnHA2p2cuq1sNw6Q/9pbsJSGsMSRYU3hGmQaklUjdRoEokbpHlOh3HwxJxO FtlsxETr3eZu0B5ZVm/EPyohhjGU4VsSeU0xsDlO4FWW2qwTmH1C4v6n/QwXDyz3pmP1SOFIzilYf NFNC1nTm5bTAlGxqBSe1jaIt01hHJvMj0+Kz/ZVZt/TbU6OT8TmxSpDOX8ptuuOJRDFz4YBzgJozy 1iigyNZdcUXaot8XBZv+7ePryhLuMSdQ2yBreo5cek0ODialI3dNlymnU3i3/mN3ClTKvMcTzw8LA zCPNzxQ2C57Txo5+6uragQ==; 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 1xWSwL-00EFGZ-1b; Thu, 26 Nov 2026 07:26:52 +0100 From: Eva Kurchatova To: khorenko@virtuozzo.com, vladimir.riabchun@virtuozzo.com Date: Thu, 26 Nov 2026 08:11:00 +0200 Message-ID: <20261126062617.2133758-2-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 v3 00/10] ms/net: backport request migration RCU fixes and lockless refcount ordering 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 Mainline fixes for sockets whose data another CPU can still read after an ownership transfer, mostly with request migration, or after the TCP handshake completes on another CPU. Patches 1-4 are plain cherry-picks from 6.12.y. Patches 5-10 are picks from mainline, where patch 5 needed altered context, patch 7 is rebased, and patch 9 is a prerequisite of 10. Patch 4 uses the refcount helpers: "ms/refcount: provide ops for cases when object's memory can be reused". The IPv4 part of patch 6, e3f33b0a1d89, is already in this tree. Tested in QEMU with lockdep and PROVE_RCU, with and without the series: request migration with net.ipv4.tcp_migrate_req=1 over IPv4 with IP options and IPv6 with a TCP_SAVE_SYN client, an RST to a migrated request, IPv6 flowlabel reflection with migration, SYN cookies and Fast Open, and the TIME_WAIT purge of a deleted netns. CALIPSO was not tested. Only the RST test differs: without the series the listener stops answering SYNs. No kernel warnings. Changes in v3: - New patches 1 and 2, from the same upstream series. - Patch 9: Mention it is a prerequisite of 10. - Cover letter: Fix a typo, list the tests. Link to v2: http://lore.virtuozzo.com/kernel/179560292536.21986.9036901252604111346.b4-review@b4/T/#t Changes in v2: - Added patch 1, which is the first of the upstream series. - Added patches 6, 7, 8. Patchess 6 and 8 are fixes for commits d4f2c86b2b7e and e3d95ad7da4f, patch 7 is the prerequisite to 8. - Rebased on rh10-6.12.0-211.75.1.26.4.vz10. - Updated cover letter to reflect this. - Reviewed-by: Sashiko on patches 2-5. Link to v1: http://lore.virtuozzo.com/kernel/179542345218.373048.999591508027024680.b4-review@b4/T/#t Eric Dumazet (2): ms/tcp: ipv6: do not read ireq->pktopts from tcp_v6_send_synack() ms/tcp: ipv6: free ireq->ipv6_opt after an RCU grace period Hyunwoo Kim (3): ms/inet: reject unhashed sockets during established lookups ms/net: restore refcount ordering for lockless socket access ms/tcp: fix request_sock use-after-free during Fast Open accept() Jeremy Harris (1): ms/tcp: fastopen: note that a child socket was created Kuniyuki Iwashima (3): ms/tcp: Fix potential UAF in reqsk_timer_handler(). ms/tcp: Fix imbalanced icsk_accept_queue count. ms/tcp: Pass req->rsk_listener to inet_csk_reqsk_queue_drop() in tcp_check_req(). Yingjie Wang (1): ms/tcp: free saved_syn after an RCU grace period include/linux/tcp.h | 12 ++++++++---- include/net/request_sock.h | 5 +++-- net/core/filter.c | 4 ++-- net/ipv4/inet_connection_sock.c | 26 +++++++++++++++----------- net/ipv4/inet_hashtables.c | 7 ++++--- net/ipv4/inet_timewait_sock.c | 4 ++-- net/ipv4/syncookies.c | 4 +++- net/ipv4/tcp.c | 1 + net/ipv4/tcp_fastopen.c | 3 ++- net/ipv4/tcp_input.c | 6 ++++-- net/ipv4/tcp_minisocks.c | 2 +- net/ipv6/inet6_hashtables.c | 6 ++++-- net/ipv6/tcp_ipv6.c | 7 ++++--- 13 files changed, 53 insertions(+), 34 deletions(-) -- 2.56.1 _______________________________________________ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel