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 1F9718002A for ; Wed, 25 Nov 2026 06:22:53 +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 6AP6Lcgu016483; Wed, 25 Nov 2026 09:21:39 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 6AP6Lcgu016483 Authentication-Results: mail.openvz.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=virtuozzo.com header.i=@virtuozzo.com header.b="ya0ZLn0u" Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 6AP6Lb7f016467 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=FAIL) for ; Wed, 25 Nov 2026 09:21:37 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 6AP6Lb7f016467 Received: by mail-ed1-f70.google.com with SMTP id 4fb4d7f45d1cf-6b42827bb4bso4271173a12.1 for ; Tue, 24 Nov 2026 22:21:37 -0800 (PST) X-Gm-Message-State: APuU4Z/L+u8iNSCmWWqXAU0e1f3LztagTETsukbxnPtKW+/RiKD3Iv8S Q6cY6z3fTcidGJFG2LwIx14a5Zk7JwWCc4yYJnZ1Fjaq56QYw1XiYgT1PbGNYFc1Zxkad34hkwm E565wxU1Dq1AbEnexwitajVwU6yFdUnRAoLklVt1WKUqvVrV2Wl6eow== X-Gm-Gg: AZFdTZdVRK5NxKff2KLLaR8JQVNSHqPJg4jQaLKjL5+lKmmV4ZIxZ4OWpMwEsBfhi94 ag1+xae//sQRKM/7vk8Y6UFs2IffkIvpvPrDC7K+lxbK5KKc53DezYUqZgfDyvrxsFYgTdxG2EH JeSS9ZFJYhk+1oXg87ugHXFO2P9WNg/nJCE30izkR3CxezFsHb5TVdiJ/N/3EUD0CxNj48zPJtx CgXbYUnKg0FfUbRg7q0vFolvF6Yugf0tf8rYiFURnUO0/Hf8PQmmZDbAv+RwuuFBh7Tj8ov9LZt M+tGzgOJX1hb4jLrZKTsnuYbrLbdVeaXTIbpJd4l8kIVM/CLJIgnAWkeXW2SR1sUarDXCkX37m9 t4RGgLvPWwy/Yi2mqanLHml5Yww== X-Received: by 2002:a05:6402:1d4b:b0:6b5:646b:2c39 with SMTP id 4fb4d7f45d1cf-6ba37e8e238mr11386892a12.30.1795587696761; Tue, 24 Nov 2026 22:21:36 -0800 (PST) X-Received: by 2002:a05:6402:1d4b:b0:6b5:646b:2c39 with SMTP id 4fb4d7f45d1cf-6ba37e8e238mr11386883a12.30.1795587696346; Tue, 24 Nov 2026 22:21:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1795587696; cv=none; d=google.com; s=arc-20260327; b=mGUifI8Qy0kjQX272ZET4SVaDiH6N3gDNNgG+foREAykdu0uA8+Q67KQyGlgChlXo8 PqsEYvB1Q+72PqFKE2YcRs5JPXYvBFom/2RXcYS/HdSyGNLN2kT8d8EezSM7EXOq4BN8 UR/RFivYYUuzJM99GgWvYThexZlUVR5om9eHE/8xL4Ol6Itb9UJlRUKSnys3WoqTwEec LDD8DhijTqmX8owx4wCde/CySru3fDRj1RM8xpzfCvfk6gtp0i02ElaIX2JIfHYdfGFF nKCPkhg67C3gcwhhrhmFBaBe8I5RkVhzTMVuwU7J0OjHiHmIT017fnvK+/3ebV6+CNoj 2KVA== 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=5g4GcCIfCcjj8gSJWj5hkTZSzez6WCQpTWjjTgu8e48=; fh=/QSWnKFFIPNLStgUoDwCQRaXnWcMIG7fyKJgHY+VEpU=; b=KMehCVP2QZWX74M4KJnafsVKnnES9c6s9umLpdm69kKQkIwCaJZEvgl1YkcsT88xnC EC4yuSHvtiVjEmUtCtmrkYU2KkcyrZbW2LyuaUc7y3LwpHiheNa3sgNXrP+QWqsgwSXm SElFSA/0dNMrhMzwr5QVWi1gAmVZCvPk8UCAvT9NVLrs/zU75DXIw667Y48jL0VZbDXp Nk50ojVgWZGe+AMCdprpdua1CcEPQp9evOI/1/Dw3I6WWKAK7fXNjo/ZkAqn3XArBgoA /rU5HD81PkipEPMzioLoJAk7fzIVGmqj/cvxcrVehzRVWYoRA1JkyfXb2kfiHbw1BGsX Kw4w==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=relay header.b=ya0ZLn0u; 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-6ba373ec656si16143846a12.246.2026.11.24.22.21.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Nov 2026 22:21:36 -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=ya0ZLn0u; 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=5g4GcCIfCcjj8gSJWj5hkTZSzez6WCQpTWjjTgu8e48=; b=ya0ZLn0uVoUN 7MSadQSd2qL6uZaFKtg3+PrfZfNpDi3rMpoIWsMGOQJ3ZnyHlgc9wkqy0x6qfCE/YCgXfu0KjTxfA RiqCsvv8iEqw3HZI6cBi/Evswrcahnhv136m1oMCVg6Z7/kp35SR16QnKFN3o80aWevUE8EgYOJ0r P55ogwXyXDyxrDGcy1IWbKLn2x0FaQXpiqpDohAoF1xytNzvsyiLnvqEuo4zSrdXxTIwUszG2/vZ6 +Wt7Sju+SAO8azYXwOFholsLZEMkm7ijW4Ohdqt3CDWqnx9ajmjzGz0ObQa+5OyjU0oFF52P5p44w yxjglO2W1+/gKmxS1GIEeA==; 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 1xW6Ng-006mb7-2v; Wed, 25 Nov 2026 07:21:35 +0100 From: Eva Kurchatova To: khorenko@virtuozzo.com, vladimir.riabchun@virtuozzo.com Date: Wed, 25 Nov 2026 08:14:10 +0200 Message-ID: <20261125062128.1996509-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 0/8] 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 Patchset for task https://virtuozzo.atlassian.net/browse/VSTOR-156045 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 and 2 are the 6.12.y backports, d69100340b4c and 6f4fc93f76cd, of the mainline series merged as 7b1fd973214d; they are plain cherry-picks. Patches 4 and 6-8 are plain cherry-picks of mainline, patch 3 conflicted only in context, and patch 5 has a rebase note for __reqsk_free(), which is still inline here. Patch 7 is a mainline prerequisite of 8. Patch 2 uses the refcount acquire helpers that came with "ms/refcount: provide ops for cases when object's memory can be reused". The IPv4 part of patch 4, e3f33b0a1d89 ("ipv4: free inet_opt and ireq_opt after an RCU grace period"), is already in this tree. 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. Tested in QEMU on rh10-6.12.0-211.75.1.26.4.vz10 with lockdep and PROVE_RCU. 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 (1): 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 | 22 +++++++++++++--------- 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, 51 insertions(+), 32 deletions(-) -- 2.56.1 _______________________________________________ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel