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 AAE9C803BB for ; Mon, 16 Nov 2026 14:43:14 +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 6AGEfwu2026629; Mon, 16 Nov 2026 17:41:59 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 6AGEfwu2026629 Authentication-Results: mail.openvz.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=virtuozzo.com header.i=@virtuozzo.com header.b="rKj8u5Nw" Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 6AGEfrGx026609 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=FAIL) for ; Mon, 16 Nov 2026 17:41:53 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 6AGEfrGx026609 Received: by mail-wr1-f71.google.com with SMTP id ffacd0b85a97d-490a0e72578so2128638f8f.0 for ; Mon, 16 Nov 2026 06:41:53 -0800 (PST) X-Gm-Message-State: APuU4Z8FUN0UBC5z0AE7bm3ywEjtHheYAoBSDs8+yBdGABDJzYUrugIS wRr41bSr/q0ojWjYJWaLd+AIKzr4GQ+ijpPDrSiF1M/Rvi27/mkM8fvGtqQEuvULkPwIIBfq0Yr oLv91RPVI3F3Qwm6WGfwFCxXh2uqY6mBtr12s8uhgSmIsxQ08BM9hTQ== X-Gm-Gg: AYBFou0tdAIzMxgQScSHJjO+EpYtVRTK2MVovITyM+EWl6SahbPTknt4OZPky09ygGJ ri9OxBskR9XqHvDhUdPNScm2c04soTOhSKu35WgxVhAmhWNe/bQN0f58QoPXuwY3na1qMszn8qQ 4icHR/n/2mZeloeKxo8NFb5J+ULW7U6DF1PhAIT8KNWQAe4MzJKPK3JXvP6T3OySMqIxdGSi78d uefBxoC47r4AG2pbGftSxuDJmtETDEXAirnMMUtNmPdjUytQFiAblYC2DUUStMQtaJqSL1trTZ6 LVvblvE5EcHHvasMX4NvYE6N/x8J2G9Xd1EUU/YcdbrS4ZWaSDgsn7QyPCTsk6DHT5IFkedwPZa /qwQm8i8GuIofEGyD2cxumi/z X-Received: by 2002:a05:600c:6383:b0:4bb:6687:5394 with SMTP id 5b1f17b1804b1-4bb66875577mr125610095e9.9.1794840112979; Mon, 16 Nov 2026 06:41:52 -0800 (PST) X-Received: by 2002:a05:600c:6383:b0:4bb:6687:5394 with SMTP id 5b1f17b1804b1-4bb66875577mr125609365e9.9.1794840112407; Mon, 16 Nov 2026 06:41:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1794840112; cv=none; d=google.com; s=arc-20260327; b=a08fRgfAG3vNB/xX0UmJLp5B0OOpOAxQk7gEoz4YbXhRHS9Sk9/qYAZGwttme58Y7d kJkWBXXouqjciPa14z2THWTilyEvSh3ZpUC0giamcsB+0GgXfdB3D/z0Lfl4YULPPWYZ J9kQI0giF5TVM8xwySJTw+1NGro9Sn4S+d1rrf149+2zvb4gUOLUl0fgKxV+2PePtWJ9 8VlP1r9A8YxPpqLfFyLdqC0vDzZJAk90uox1qPy0nimRPpoxXovOrBKk/ldIPAw41S7a Lyjplhewd/PZakLcfb94wVhDBQux3amSe2g1kO8yrUU91a0bbefdx5XzdIhLxpgOIe0G 0/VA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=f2mhwvRM1aFrprLD6RKUltt8C91XBm0fsVAe7v9h0pw=; fh=WpT6aB7RBAGHZeWZzqAr71yzRFbPTYkPWKsRagLn48Q=; b=fOYPp3U5gTmklThDeGBVigXyunX0Hfp/xyXpp8VnjOtPIyQWI3UQW2cOxOjRDxc5k7 NDzzsWJkzMCHEabROpDwcGH88kcdgX5gQrhOUOKf/iyQ0Gdnv09DhWE9b3al7LwzaK0Y SIsfi5nRs/e9gq8sn5JXjqNFdwd+wxTvLbC7bvZ4+jH9TkfZS54rnwrrT1G3HLsqOr/9 eTZuEY6GtQgWODlt/KELyClEffpJeOgjsTO9cWBUDNExCqKlZYkeyl++R/RN9yCW5Nty bl5bIGcKf8ve0ZlO0u9XLNtkkPSX5q2Apgljd/k7JZaFlb6z8xIlsi2zjUibIqeDcDF/ 2KFg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=relay header.b=rKj8u5Nw; 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 ffacd0b85a97d-49c636eddb3si22005622f8f.176.2026.11.16.06.41.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Nov 2026 06:41:52 -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=rKj8u5Nw; 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=f2mhwvRM1aFrprLD6RKUltt8C91XBm0fsVAe7v9h0pw=; b=rKj8u5Nw7aNJ xrzUfTFtrUv8n7ineslGAasytiyMkVn0+xK1ZpN5ey66UxwmtMr+ZYvyZc4bZ80C3Htv4s+13PabW B2Lyqv5pIWwumPuAsY1P7OHJ/WyEdwiUOhF8IGES7vBftyEOpjW2Y1fSsInuPebZ8Z7/zmD//E48M BBi+Pq+8W0hwUYAwAiz31n32x7QvmPzjXVg0tU6JvQ9QJxRJyfuuzNuld0un0bwwMv4jOlV3CjR3z RSQLBx4nIJeUtvPqGh6dLltMVH6RnFEWx72ASqdau/g/0CmriKe7/ZFBprDhLZausGy/BSTKwqLwE Iu5DNP3s4C2cT8SxOmRq5w==; 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 1xSxpo-004m0R-37; Mon, 16 Nov 2026 15:41:43 +0100 From: Eva Kurchatova To: khorenko@virtuozzo.com Date: Mon, 16 Nov 2026 16:40:23 +0200 Message-ID: <20261116144143.624802-2-eva.kurchatova@virtuozzo.com> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20261116144143.624802-1-eva.kurchatova@virtuozzo.com> References: <20261116144143.624802-1-eva.kurchatova@virtuozzo.com> MIME-Version: 1.0 X-OZ-Fwd: true Cc: devel@openvz.org Subject: [Devel] [PATCH hci-8.1 1/2] ms/eventfs: Use list_add_tail_rcu() for SRCU-protected children list 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 From: David Carlier [ Upstream commit f67950b2887fa10df50c4317a1fe98a65bc6875b ] Commit d2603279c7d6 ("eventfs: Use list_del_rcu() for SRCU protected list variable") converted the removal side to pair with the list_for_each_entry_srcu() walker in eventfs_iterate(). The insertion in eventfs_create_dir() was left as a plain list_add_tail(), which on weakly-ordered architectures can expose a new entry to the SRCU reader before its list pointers and fields are observable. Use list_add_tail_rcu() so the publication pairs with the existing list_del_rcu() and list_for_each_entry_srcu(). Fixes: 43aa6f97c2d0 ("eventfs: Get rid of dentry pointers without refcounts") Cc: stable@vger.kernel.org Link: https://patch.msgid.link/20260418152251.199343-1-devnexen@gmail.com Signed-off-by: David Carlier Signed-off-by: Steven Rostedt [ adapted scoped_guard(mutex, &eventfs_mutex) block to explicit mutex_lock()/mutex_unlock() pair ] Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman (cherry picked from commit 1801ce6ce6f9f1df134987e6bc47d28c1ebe9a51) https://virtuozzo.atlassian.net/browse/VSTOR-154848 Feature: fix ms/tracefs Signed-off-by: Eva Kurchatova --- fs/tracefs/event_inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/tracefs/event_inode.c b/fs/tracefs/event_inode.c index ca6e0a653efa..b1ad4f482f34 100644 --- a/fs/tracefs/event_inode.c +++ b/fs/tracefs/event_inode.c @@ -758,7 +758,7 @@ struct eventfs_inode *eventfs_create_dir(const char *name, struct eventfs_inode mutex_lock(&eventfs_mutex); if (!parent->is_freed) - list_add_tail(&ei->list, &parent->children); + list_add_tail_rcu(&ei->list, &parent->children); mutex_unlock(&eventfs_mutex); /* Was the parent freed? */ -- 2.56.0 _______________________________________________ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel