linux/fs/tracefs
Hao Ge d4e9a96873 eventfs: Fix a possible null pointer dereference in eventfs_find_events()
In function eventfs_find_events,there is a potential null pointer
that may be caused by calling update_events_attr which will perform
some operations on the members of the ei struct when ei is NULL.

Hence,When ei->is_freed is set,return NULL directly.

Link: https://lore.kernel.org/linux-trace-kernel/20240513053338.63017-1-hao.ge@linux.dev

Cc: stable@vger.kernel.org
Fixes: 8186fff7ab ("tracefs/eventfs: Use root and instance inodes as default ownership")
Signed-off-by: Hao Ge <gehao@kylinos.cn>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
2024-05-14 11:13:45 -04:00
..
event_inode.c eventfs: Fix a possible null pointer dereference in eventfs_find_events() 2024-05-14 11:13:45 -04:00
inode.c tracefs: Still use mount point as default permissions for instances 2024-05-04 04:25:37 -04:00
internal.h eventfs: Do not differentiate the toplevel events directory 2024-05-04 04:25:37 -04:00
Makefile eventfs: Implement eventfs dir creation functions 2023-07-30 18:13:33 -04:00