Skip to content
Commit 2598bd3c authored by Steven Rostedt (Google)'s avatar Steven Rostedt (Google)
Browse files

eventfs: Test for dentries array allocated in eventfs_release()

The dcache_dir_open_wrapper() could be called when a dynamic event is
being deleted leaving a dentry with no children. In this case the
dlist->dentries array will never be allocated. This needs to be checked
for in eventfs_release(), otherwise it will trigger a NULL pointer
dereference.

Link: https://lore.kernel.org/linux-trace-kernel/20230930090106.1c3164e9@rorschach.local.home



Cc: Mark Rutland <mark.rutland@arm.com>
Acked-by: default avatarMasami Hiramatsu (Google) <mhiramat@kernel.org>
Fixes: ef36b4f9

 ("eventfs: Remember what dentries were created on dir open")
Signed-off-by: default avatarSteven Rostedt (Google) <rostedt@goodmis.org>
parent 2de9ee94
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment