diff options
author | Steven Rostedt (Google) <[email protected]> | 2024-02-01 12:33:46 -0500 |
---|---|---|
committer | Steven Rostedt (Google) <[email protected]> | 2024-03-17 07:58:52 -0400 |
commit | 04204cd9b0b450bfe561a5f8d0fc91288c6427ab (patch) | |
tree | a57457cc74ec5e2fa297bd4d51e1415e62f9b80d /net/lapb/lapb_iface.c | |
parent | 63bd30f249dcf0a7ce16967935cecee8feec24bb (diff) |
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/[email protected]
Cc: Linus Torvalds <[email protected]>
Cc: Al Viro <[email protected]>
Cc: Christian Brauner <[email protected]>
Cc: Masami Hiramatsu <[email protected]>
Cc: Mathieu Desnoyers <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Ajay Kaher <[email protected]>
Reported-by: Al Viro <[email protected]>
Signed-off-by: Steven Rostedt (Google) <[email protected]>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions