diff options
author | 2023-09-30 09:01:06 -0400 | |
---|---|---|
committer | 2023-09-30 16:26:04 -0400 | |
commit | 2598bd3ca8dcf5bbca1161ee5b271b432398da37 (patch) | |
tree | 28fe2255c4c570f938c573f4b4bda9c210b340a0 /scripts/generate_rust_analyzer.py | |
parent | tracing/user_events: Align set_bit() address for all archs (diff) | |
download | linux-rng-2598bd3ca8dcf5bbca1161ee5b271b432398da37.tar.xz linux-rng-2598bd3ca8dcf5bbca1161ee5b271b432398da37.zip |
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: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Fixes: ef36b4f92868 ("eventfs: Remember what dentries were created on dir open")
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions