OpenCloudOS-Kernel/fs/tracefs
Mathias Krause 2ef3d120d1 eventfs: Use SRCU for freeing eventfs_inodes
commit 8e556432477e97ad6179c61b61a32bf5f1af2355 upstream.

To mirror the SRCU lock held in eventfs_iterate() when iterating over
eventfs inodes, use call_srcu() to free them too.

This was accidentally(?) degraded to RCU in commit 43aa6f97c2d0
("eventfs: Get rid of dentry pointers without refcounts").

Cc: Ajay Kaher <ajay.kaher@broadcom.com>
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/20240723210755.8970-1-minipli@grsecurity.net
Fixes: 43aa6f97c2d0 ("eventfs: Get rid of dentry pointers without refcounts")
Signed-off-by: Mathias Krause <minipli@grsecurity.net>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-08-14 13:58:59 +02:00
..
Makefile eventfs: Implement eventfs dir creation functions 2023-07-30 18:13:33 -04:00
event_inode.c eventfs: Use SRCU for freeing eventfs_inodes 2024-08-14 13:58:59 +02:00
inode.c tracefs: Use generic inode RCU for synchronizing freeing 2024-08-14 13:58:56 +02:00
internal.h tracefs: Use generic inode RCU for synchronizing freeing 2024-08-14 13:58:56 +02:00