Steven Rostedt (Google) 04204cd9b0 eventfs: Add WARN_ON_ONCE() to checks in eventfs_root_lookup()
There's a couple of if statements in eventfs_root_lookup() that should
never be true. Instead of removing them, add WARN_ON_ONCE() around them.

  One is a tracefs_inode not being for eventfs.

  The other is a child being freed but still on the parent's children
  list. When a child is freed, it is removed from the list under the
  same mutex that is held during the iteration.

Link: https://lore.kernel.org/linux-trace-kernel/20240201002719.GS2087318@ZenIV/
Link: https://lore.kernel.org/linux-trace-kernel/20240201123346.724afa46@gandalf.local.home

Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Al Viro <viro@ZenIV.linux.org.uk>
Cc: Christian Brauner <brauner@kernel.org>
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Ajay Kaher <ajay.kaher@broadcom.com>
Reported-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
2024-03-17 07:58:52 -04:00
..
2024-03-11 10:37:45 -07:00
2024-01-11 20:11:35 -08:00
2024-03-11 10:52:34 -07:00
2024-03-12 12:28:34 -07:00
2024-02-25 12:05:21 +01:00
2024-03-12 13:17:36 -07:00
\n
2024-03-13 14:30:58 -07:00
\n
2024-03-13 14:30:58 -07:00
\n
2024-03-13 14:30:58 -07:00
2024-03-11 10:37:45 -07:00
2023-12-29 11:58:34 -08:00
2024-03-11 09:38:17 -07:00
2024-03-11 09:38:17 -07:00
2024-03-04 18:35:21 +01:00
\n
2024-03-13 14:30:58 -07:00
2024-02-08 21:19:59 +01:00
2024-03-12 14:27:37 -07:00
2024-03-12 20:03:34 -07:00
\n
2024-03-13 14:30:58 -07:00
2024-03-11 09:38:17 -07:00
\n
2024-03-13 14:30:58 -07:00
2024-03-11 10:52:34 -07:00
2024-03-13 13:15:24 -07:00
2024-03-12 17:44:08 -07:00
2024-03-13 13:52:24 -07:00
2024-03-12 20:03:34 -07:00
2024-03-11 10:07:03 -07:00
2024-03-06 10:52:12 +01:00
2024-03-11 09:38:17 -07:00
2024-03-12 17:44:08 -07:00
2024-03-12 14:45:12 -07:00
2024-03-11 10:07:03 -07:00
2024-03-12 20:03:34 -07:00
2023-12-12 14:24:14 +01:00
2024-03-11 10:07:03 -07:00
2024-03-13 12:53:53 -07:00
2024-02-12 13:13:59 +01:00
2024-03-13 12:53:53 -07:00
2024-03-13 12:53:53 -07:00
2024-03-11 10:21:06 -07:00
2024-03-12 20:03:34 -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-01-08 10:57:34 -08:00
2024-03-11 10:52:34 -07:00
2024-01-17 13:03:37 -08:00
2024-02-15 23:43:47 -05:00