From 7d49dfd4a3d6e211cfe40bd68e026fefce73cf5e Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Mon, 19 Feb 2024 19:09:04 +0100 Subject: [PATCH] fix up some headers on tracefs patches --- ...s-avoid-using-the-ei-dentry-pointer-unnecessarily.patch | 7 +++---- queue-6.7/tracefs-dentry-lookup-crapectomy.patch | 7 +++---- ...efs-zero-out-the-tracefs_inode-when-allocating-it.patch | 7 +++---- 3 files changed, 9 insertions(+), 12 deletions(-) diff --git a/queue-6.7/tracefs-avoid-using-the-ei-dentry-pointer-unnecessarily.patch b/queue-6.7/tracefs-avoid-using-the-ei-dentry-pointer-unnecessarily.patch index cfbdc453ac8..7ffcab3d122 100644 --- a/queue-6.7/tracefs-avoid-using-the-ei-dentry-pointer-unnecessarily.patch +++ b/queue-6.7/tracefs-avoid-using-the-ei-dentry-pointer-unnecessarily.patch @@ -1,15 +1,15 @@ From SRS0=eEWY=JP=rostedt.homelinux.com=rostedt@kernel.org Tue Feb 6 12:35:32 2024 From: Steven Rostedt Date: Tue, 06 Feb 2024 06:32:13 -0500 -Subject:[PATCH v2 15/23] tracefs: Avoid using the ei->dentry pointer unnecessarily +Subject: tracefs: Avoid using the ei->dentry pointer unnecessarily To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Linus Torvalds , Greg Kroah-Hartman , Sasha Levin , Masami Hiramatsu , Mark Rutland , Mathieu Desnoyers , Christian Brauner , Al Viro , Ajay Kaher Message-ID: <20240206113400.525587454@rostedt.homelinux.com> -From: Steven Rostedt - From: Linus Torvalds +commit 99c001cb617df409dac275a059d6c3f187a2da7a upstream. + The eventfs_find_events() code tries to walk up the tree to find the event directory that a dentry belongs to, in order to then find the eventfs inode that is associated with that event directory. @@ -44,7 +44,6 @@ Cc: Greg Kroah-Hartman Fixes: c1504e510238 ("eventfs: Implement eventfs dir creation functions") Signed-off-by: Linus Torvalds Signed-off-by: Steven Rostedt (Google) -(cherry picked from commit 99c001cb617df409dac275a059d6c3f187a2da7a) Signed-off-by: Greg Kroah-Hartman --- fs/tracefs/event_inode.c | 26 ++++++++++++-------------- diff --git a/queue-6.7/tracefs-dentry-lookup-crapectomy.patch b/queue-6.7/tracefs-dentry-lookup-crapectomy.patch index 389c85fc4aa..d01f4498c9d 100644 --- a/queue-6.7/tracefs-dentry-lookup-crapectomy.patch +++ b/queue-6.7/tracefs-dentry-lookup-crapectomy.patch @@ -1,15 +1,15 @@ From SRS0=eEWY=JP=rostedt.homelinux.com=rostedt@kernel.org Tue Feb 6 12:34:57 2024 From: Steven Rostedt Date: Tue, 06 Feb 2024 06:32:14 -0500 -Subject:[PATCH v2 16/23] tracefs: dentry lookup crapectomy +Subject: tracefs: dentry lookup crapectomy To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Linus Torvalds , Greg Kroah-Hartman , Sasha Levin , Masami Hiramatsu , Mark Rutland , Mathieu Desnoyers , Al Viro , Christian Brauner , Ajay Kaher Message-ID: <20240206113400.685349714@rostedt.homelinux.com> -From: Steven Rostedt - From: Linus Torvalds +commit 49304c2b93e4f7468b51ef717cbe637981397115 upstream. + The dentry lookup for eventfs files was very broken, and had lots of signs of the old situation where the filesystem names were all created statically in the dentry tree, rather than being looked up dynamically @@ -41,7 +41,6 @@ Cc: Mark Rutland Fixes: c1504e510238 ("eventfs: Implement eventfs dir creation functions") Signed-off-by: Linus Torvalds Signed-off-by: Steven Rostedt (Google) -(cherry picked from commit 49304c2b93e4f7468b51ef717cbe637981397115) Signed-off-by: Greg Kroah-Hartman --- fs/tracefs/event_inode.c | 275 ++++++++--------------------------------------- diff --git a/queue-6.7/tracefs-zero-out-the-tracefs_inode-when-allocating-it.patch b/queue-6.7/tracefs-zero-out-the-tracefs_inode-when-allocating-it.patch index 8f66d536a96..7d2857dd396 100644 --- a/queue-6.7/tracefs-zero-out-the-tracefs_inode-when-allocating-it.patch +++ b/queue-6.7/tracefs-zero-out-the-tracefs_inode-when-allocating-it.patch @@ -1,15 +1,15 @@ From SRS0=eEWY=JP=rostedt.homelinux.com=rostedt@kernel.org Tue Feb 6 12:35:17 2024 From: Steven Rostedt Date: Tue, 06 Feb 2024 06:32:11 -0500 -Subject:[PATCH v2 13/23] tracefs: Zero out the tracefs_inode when allocating it +Subject: tracefs: Zero out the tracefs_inode when allocating it To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Linus Torvalds , Greg Kroah-Hartman , Sasha Levin , Masami Hiramatsu , Mark Rutland , Mathieu Desnoyers , Christian Brauner , Al Viro , Ajay Kaher , kernel test robot Message-ID: <20240206113400.202745776@rostedt.homelinux.com> -From: Steven Rostedt - From: "Steven Rostedt (Google)" +commit d81786f53aec14fd4d56263145a0635afbc64617 upstream. + eventfs uses the tracefs_inode and assumes that it's already initialized to zero. That is, it doesn't set fields to zero (like ti->private) after getting its tracefs_inode. This causes bugs due to stale values. @@ -35,7 +35,6 @@ Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-lkp/202401291043.e62e89dc-oliver.sang@intel.com Suggested-by: Linus Torvalds Signed-off-by: Steven Rostedt (Google) -(cherry picked from commit d81786f53aec14fd4d56263145a0635afbc64617) Signed-off-by: Greg Kroah-Hartman --- fs/tracefs/inode.c | 6 ++++-- -- 2.47.3