Steven Rostedt (Google) 340f0c7067 eventfs: Update all the eventfs_inodes from the events descriptor
The change to update the permissions of the eventfs_inode had the
misconception that using the tracefs_inode would find all the
eventfs_inodes that have been updated and reset them on remount.
The problem with this approach is that the eventfs_inodes are freed when
they are no longer used (basically the reason the eventfs system exists).
When they are freed, the updated eventfs_inodes are not reset on a remount
because their tracefs_inodes have been freed.

Instead, since the events directory eventfs_inode always has a
tracefs_inode pointing to it (it is not freed when finished), and the
events directory has a link to all its children, have the
eventfs_remount() function only operate on the events eventfs_inode and
have it descend into its children updating their uid and gids.

Link: https://lore.kernel.org/all/CAK7LNARXgaWw3kH9JgrnH4vK6fr8LDkNKf3wq8NhMWJrVwJyVQ@mail.gmail.com/
Link: https://lore.kernel.org/linux-trace-kernel/20240523051539.754424703@goodmis.org

Cc: stable@vger.kernel.org
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Fixes: baa23a8d4360d ("tracefs: Reset permissions on remount if permissions are options")
Reported-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
2024-05-23 09:26:23 -04:00
..
2024-05-01 18:07:38 +01:00
2024-05-13 12:14:03 -07:00
2024-01-11 20:11:35 -08:00
2024-05-13 11:40:06 -07:00
2024-05-14 19:42:24 -07:00
2024-03-27 13:17:15 +01:00
2024-05-13 14:14:05 -07:00
\n
2024-03-13 14:30:58 -07:00
2024-05-13 11:40:06 -07:00
2024-05-13 11:40:06 -07:00
2024-05-14 17:35:22 -07:00
2023-12-29 11:58:34 -08:00
2024-04-09 10:53:44 +02:00
2024-03-27 13:17:15 +01:00
2024-03-12 14:27:37 -07:00
2024-05-13 12:14:03 -07:00
2024-04-29 14:22:24 -07:00
2024-05-13 11:40:06 -07:00
2024-05-15 08:43:02 -07:00
2024-05-17 17:31:24 -07:00
2024-05-13 14:14:05 -07:00
2024-03-27 13:17:15 +01:00
2024-05-13 11:40:06 -07:00
2024-05-13 11:40:06 -07:00
2024-03-12 20:03:34 -07:00
2024-03-11 10:07:03 -07:00
2024-05-10 08:26:31 +02:00
2024-03-12 20:03:34 -07:00
2023-12-12 14:24:14 +01:00
2024-03-15 09:00:09 -07:00
2024-03-13 12:53:53 -07:00
2024-04-17 13:49:44 +02:00
2024-03-11 10:21:06 -07:00
2024-05-13 11:40:06 -07:00
2024-03-13 12:53:53 -07:00
2024-03-12 20:03:34 -07:00
2024-03-13 12:53:53 -07:00
2024-02-02 13:11:49 +01:00
2024-03-12 20:03:34 -07:00
2024-04-07 13:49:02 +02:00
2024-05-02 16:28:20 +02:00
2024-04-10 16:23:04 -06:00
2024-03-26 09:01:18 +01:00
2024-03-27 13:17:15 +01:00
2024-04-10 16:23:02 -06:00
2024-05-13 12:23:17 -07:00
2024-02-15 23:43:47 -05:00