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 0CCC58002A for ; Mon, 23 Nov 2026 08:45:30 +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 6AN8iFIb015580; Mon, 23 Nov 2026 11:44:16 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 6AN8iFIb015580 Authentication-Results: mail.openvz.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=virtuozzo.com header.i=@virtuozzo.com header.b="Xa0Ll7QN" Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 6AN8iEHW015574 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=FAIL) for ; Mon, 23 Nov 2026 11:44:14 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 6AN8iEHW015574 Received: by mail-ed1-f72.google.com with SMTP id 4fb4d7f45d1cf-6babdfe3810so417399a12.2 for ; Mon, 23 Nov 2026 00:44:14 -0800 (PST) X-Forwarded-Encrypted: i=2; AL+hErFP4LaDh28LQFCFeLpuxUQhOMqmyZR0uk0zsaE9RymSlvjHVwjxmXYKTv4ccTlCSBJGhAlBPQ==@openvz.org X-Gm-Message-State: APuU4Z/aYI9JVi4wHaYc1IXvVkZe6e3ZnUKYR8WUPAVO0U1fH6GD6hhp 88yzQYuecLbff6s2op4bryA/8N3WVZId0J862xCkLa77rrpuWOnuSmAJtjDdwWFjN9PIhizpTGX GF+hfEmA7xss2pnTHObYR6ZJuRAingD9KGdq0dpkTrEi1TDE9Px+u3Q== X-Gm-Gg: AZFdTZcfBOn0fxZE8Dg0VTdbxEftOVxzvZN/8VmSMvEKYV02xaiRqcNh0WHeeeCkqdQ NdWtQoC4M/GbxhEZ6f7k9gk6STdKW/IaphJkj/oUtSwtrzJWNjAmMICQ8v8l++dLrCqIRa5YGRy z+P5nVh+YIg/xsNMvNk+fJsn7b+A3dH6h2SZEqf3KeuqAWCGkiTCyiuDC5KfPoywIiD4XWibpft 2rd0VOCBC8NOZmBjfGfowSQq8vkax4lamjQV4QROP/kRQ3dZ7BesWLlogPEDGV0zkpzGwX7rF9y YEZZROSPJpq6X0/TwG/yessbl9ngttYn+9OLH89yihEBcefonUumkU8ADb12W7r6K87HeSPPehf u4GjcPJADuSpGM6taAg== X-Received: by 2002:a05:6402:4447:b0:6ba:6fc6:b27 with SMTP id 4fb4d7f45d1cf-6ba6fc61359mr3459304a12.16.1795423454093; Mon, 23 Nov 2026 00:44:14 -0800 (PST) X-Received: by 2002:a05:6402:4447:b0:6ba:6fc6:b27 with SMTP id 4fb4d7f45d1cf-6ba6fc61359mr3459286a12.16.1795423453608; Mon, 23 Nov 2026 00:44:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1795423453; cv=none; d=google.com; s=arc-20260327; b=HppKesegeN9bbO2n6UwOmKlthV1e152i3vEqbFL7/KpVxGZEHU4LFSQhxioJ6Bzcaa ZoP0e73fZfpjU8azTl5GsMnjteaigoWBIeOB7m9G3Y6B2/jaiHzzQC1GqUl0uyG/cKHi kM4XbdsXtz2NQWi2dcOz7xEgemj/xLlUaWxWfBK++N54uY4vQopTmg7zXWHxQMqkKIWz mSs5MQBDCkZsYM1e+Tqc5X7XOFKhQw0ReQ70HBQz8YTE51RTEd9CEEhRMWqAUb2YzUX0 y+J7RVuSSrD6cJ0aZssVh8Xc8MltJaclUwpAd+dtJKfDhMjwk0ESGE9n5PdWDgbVuFTH E4YA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=message-id:date:references:in-reply-to:cc:to:from:subject :content-transfer-encoding:mime-version:dkim-signature; bh=393kEGZt6LeD5OknOYuDJHRJoT33zqY+ZiFC7IDo/wI=; fh=49sBPncJKw2PQMLjbdSAvijTt8wmuCVyyqb2X28Q+p8=; b=IwvN0gFePhe/Dwv7xGWBzSHQMM2YSfJzqmWXyYt4DKDBXCnDYTsCftwjwkAZL2mMGJ NTQ0MPuGEaTa4jickcjQgOd8JGgIvRgsV+34JtRvXUQJIYvcPeBQL9OOqtj9+qcyZzN8 iXEdmdRmnqGBd77sxU3x4ybyIkhwKS1fRp33QCfGIYeeBDWXDGExRYlRJSWIcg99S8RX mIPBm3iZ9/Aufi0jD3lsxiZq0e/+qqZrhOB4G2OmIxNnBKbuxGSaVjLUW2Q2psytx3is eXMFJ402SGwVZsoayr8q6P5Xc2TxM0Y+HbT8xTxwTn5z62IokIPAgt50sCtwUvuqheZq 0cfg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=relay header.b=Xa0Ll7QN; spf=pass (google.com: domain of khorenko@virtuozzo.com designates 130.117.225.111 as permitted sender) smtp.mailfrom=khorenko@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-6ba371585e0si9009013a12.43.2026.11.23.00.44.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Nov 2026 00:44:13 -0800 (PST) Received-SPF: pass (google.com: domain of khorenko@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=Xa0Ll7QN; spf=pass (google.com: domain of khorenko@virtuozzo.com designates 130.117.225.111 as permitted sender) smtp.mailfrom=khorenko@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=Message-Id:Date:From:Subject:Content-Type: MIME-Version; bh=393kEGZt6LeD5OknOYuDJHRJoT33zqY+ZiFC7IDo/wI=; b=Xa0Ll7QNy1ZU MnMAMCOfKSnnB/wRC2yf9F/Xu0FOlUD8u4nkrqa+uOXHs9xEhajz5E94p7KNrvMAyAdk6pjXX1hlF BXwr/UPRbQ0BneyMmrlVbyYuqtpM7HcfhyUnVsUQVv454c4L9DFYDXMjiYmtcqPgDu8LVxm+j1Poj oobgVxcEtsIyO9xHwXNMdFl1frUWEF/ehbhFNyBo+qhHLG78S+/N9cw/wMdFrdg+NRNaYWeip3lPV 1UVrYQgLT4MZa36T6IOHOjdce50FFVGCaOm2i7smJT+4g7PzOkhjyWH+MhQDU5v5mKJsYSh47Hu99 zjih/G1LhEhj7lm3IChCsg==; Received: from ch-demo-asa.virtuozzo.com ([130.117.225.8] helo=f0.sw.ru) by relay.virtuozzo.com with esmtp (Exim 4.96) (envelope-from ) id 1xVPef-00ClH3-0q; Mon, 23 Nov 2026 09:44:05 +0100 MIME-Version: 1.0 From: Konstantin Khorenko To: Eva Kurchatova In-Reply-To: <20261123002500.1652289-1-eva.kurchatova@virtuozzo.com> References: <20261123002500.1652289-1-eva.kurchatova@virtuozzo.com> Date: Mon, 23 Nov 2026 09:44:12 +0100 Message-Id: <179542345218.373048.999591508027024680.b4-review@b4> X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2484; i=khorenko@virtuozzo.com; h=from:subject:message-id; bh=7pSjad8WA/9+KCpKBqEzhASI3t6xNM4V32bUXXUuSSI=; b=owEBbQKS/ZANAwAKAVGWCkf5YVwqAcsmYgBrA/zcgj3CNTv6pS9HDmVh71YUDvZ2A6kAYrnuR +hobx3s2leJAjMEAAEKAB0WIQRWD23IPcXT0GO9CCxRlgpH+WFcKgUCawP83AAKCRBRlgpH+WFc KhUFD/0Waaa1oBzqS7iGEip1sl4ohOxcmEqUaxFXJnOlCM9Ag7YnHVTWBOmxwgdhZ7WuiS9ajXi Xu2neIOZJ5iFA/aWLQaINFpXVYgwEDP8v4VX9CTMyD9//AJx987O1t/uLm3ZFNkmlmF9qVUaiCO KNn0FHqYXcuss7wjIHZUDHU4vUJymRU15Lg1lFWqiFgvqo/2juNfolSmAvnXBfI0K7rJzK7xT+j tNLjQrQQcpZvHq3/9rvkV63KTwykoUZrD9mrnUsR8DYYny1+YFVdTwAD/lOEt6+CzR+2QYHbxf3 E/uu1cjgw0pBV8gNkgoj2EDRykFuTYA+ddlcugoLcHiSpLGBEgZNNwcQbGPBcId8PIzRtG8GIxF MBHSXmm9JAxEcAIHmE+9MYvDWwi9o5PVP7DuapoI5u3Rn8r0NEDwtiWYn8i0OJx0lrmoLIxxl2y Q2s9IBPxtrame1p5icOvzTNxo4pg26N2w9KhvhyOVCQ0fDasiTylBqDepB3Ch7sLIsOSyn19N7P xXaGxVRY/kKVhB8AXQF8+d1QohAJWGLrSwakiHUj/mlHNPYfI6G6Z8t5+/wry65cGqL7NI3vfk3 VTmCfoNhPkyH+2QI9S98elbdmgnMqADWMTDa3A3RpCamYOs1fh4ibCPEpuCNDwGWfnaA385Lc4h RdBDTUNHy3+aiNQ== X-Developer-Key: i=khorenko@virtuozzo.com; a=openpgp; fpr=560F6DC83DC5D3D063BD082C51960A47F9615C2A X-OZ-Fwd: true Cc: devel@openvz.org Subject: Re: [Devel] [PATCH hci-8.2 0/4] 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 I won't apply this version, please send v2 with the changes below. 1. Add 4e2b3ef19e0e0 ("inet: reject unhashed sockets during established lookups") before 1/4. 2. Add a9782a6f2bbd0 ("tcp: Pass req->rsk_listener to inet_csk_reqsk_queue_drop() in tcp_check_req().") and 62754aad50d0b ("tcp: fix request_sock use-after-free during Fast Open accept()"). 3. Cover letter: patch 4 is not a plain cherry-pick, say that 1/4 is taken from stable, and list the new patches. The four patches themselves match mainline hunk for hunk, and the rebase note of 4/4 is right. On Mon, 23 Nov 2026 02:20:21 +0200, Eva Kurchatova wrote: > 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. Item 1: 1/4 is patch 2/2 of the upstream series "inet: fix lockless ehash walk races", merged together with 4e2b3ef19e0e0 as 7b1fd973214de. That one is not in hci-8.2: the established lookups take the reference and recheck the tuple, but never check that the socket is still hashed. A lookup that loaded the address of a freed socket can return a SYN cookie request that reused the slab object, unhashed and with a NULL rsk_listener, and tcp_v4_rcv() then oopses on the listener. Its changelog has the reproduced crash, it is Cc stable, and it also replaces the __reqsk_free() calls after the refcount store with reqsk_put(). It applies cleanly before 1/4. Item 2: both fix commits that are in this tree, d4f2c86b2b7e and e3d95ad7da4f, and both are request_sock lifetime fixes of the same kind. After a migration tcp_check_req() still passes the new listener, not req->rsk_listener, to inet_csk_reqsk_queue_drop() (tcp_minisocks.c:907), so the new listener's qlen underflows and it stops answering SYNs. > Patches 1, 3 and 4 are plain cherry-picks; patch 2 conflicted only in > context, and patch 4 has a rebase note for __reqsk_free(), which is Item 3: the sentence calls patch 4 a plain cherry-pick and gives it a rebase note at once. 1/4 also carries "[ Upstream commit ]" and Sasha Levin's Signed-off-by from stable 6f4fc93f76cd8, unlike the others. Sashiko's remark on 1/4 needs no change: the timer_setup() reorder is in mainline 5b5d8f351dd96 itself, and it is right, the timer of the clone must be set up before the release store makes it reachable. -- Konstantin Khorenko, Virtuozzo Linux Kernel Team _______________________________________________ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel