From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 614073A59B7 for ; Tue, 12 May 2026 14:02:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778594537; cv=none; b=axT202R8G2LO38vYafuewdPhTtZRAwZKeghx5f/Y8MeDrsENUmKnj8cxfvPN/7Yj/tUW/5RDl8nwcSSuBOEId0xL/pJqWWaMuQQ94l+I1LjwIanuwhgzSO8DEwLe3v1V9lxCRIhQ7egBGx8dSBgLKhqKLYQ8sm6liBdY1Sb0OH8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778594537; c=relaxed/simple; bh=GERgw1o87QQ/R9+M/FdOZywMzDABU7rvXXAxj+D1VyE=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=Dh35JZbxrEGVWyLd+En3+zn0gPYPfPsqIriyQagp97EZ9cDrNwPc+P7gJa0YuNw43u/Bh/TgT9otLA7RNxXU/6/6w50YL6A5sWogq87ZhCnyJfc1VWQanEJGXNvH7cmn614EQRPVHPM+wuLZJ/Fjzv1UbfkVdD50uYxhOTAKT68= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=y1DlufU/; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="y1DlufU/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EC943C2BCB0; Tue, 12 May 2026 14:02:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778594537; bh=GERgw1o87QQ/R9+M/FdOZywMzDABU7rvXXAxj+D1VyE=; h=Subject:To:Cc:From:Date:From; b=y1DlufU/Ejq6Zdmphs273VgIj+mbpSppuuP9D6YrIcnqgvQUag4JCO5+uGkGUH3a6 QpqIFBaYGjeGOwr8mD/2cJRbzrGTxK9aJ5qU+vdCTPJIe+SLacSduLiknrjsY8Po3B kicIAlhUxFXfyY4Sl6/AsDvyNYSEE1HWmPHVQW3c= Subject: FAILED: patch "[PATCH] eventfs: Use list_add_tail_rcu() for SRCU-protected children" failed to apply to 7.0-stable tree To: devnexen@gmail.com,rostedt@goodmis.org Cc: From: Date: Tue, 12 May 2026 15:59:32 +0200 Message-ID: <2026051232-clapped-algebra-8969@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit The patch below does not apply to the 7.0-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-7.0.y git checkout FETCH_HEAD git cherry-pick -x f67950b2887fa10df50c4317a1fe98a65bc6875b # git commit -s git send-email --to '' --in-reply-to '2026051232-clapped-algebra-8969@gregkh' --subject-prefix 'PATCH 7.0.y' HEAD^.. Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From f67950b2887fa10df50c4317a1fe98a65bc6875b Mon Sep 17 00:00:00 2001 From: David Carlier Date: Sat, 18 Apr 2026 16:22:50 +0100 Subject: [PATCH] eventfs: Use list_add_tail_rcu() for SRCU-protected children list 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 diff --git a/fs/tracefs/event_inode.c b/fs/tracefs/event_inode.c index 81df94038f2e..8dd554508828 100644 --- a/fs/tracefs/event_inode.c +++ b/fs/tracefs/event_inode.c @@ -706,7 +706,7 @@ struct eventfs_inode *eventfs_create_dir(const char *name, struct eventfs_inode scoped_guard(mutex, &eventfs_mutex) { if (!parent->is_freed) - list_add_tail(&ei->list, &parent->children); + list_add_tail_rcu(&ei->list, &parent->children); } /* Was the parent freed? */ if (list_empty(&ei->list)) {