diff options
author | Steven Rostedt (Google) <[email protected]> | 2023-09-30 09:01:06 -0400 |
---|---|---|
committer | Steven Rostedt (Google) <[email protected]> | 2023-09-30 16:26:04 -0400 |
commit | 2598bd3ca8dcf5bbca1161ee5b271b432398da37 (patch) | |
tree | 28fe2255c4c570f938c573f4b4bda9c210b340a0 /scripts/gdb/linux/symbols.py | |
parent | 2de9ee94054263940122aee8720e902b30c27930 (diff) |
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/[email protected]
Cc: Mark Rutland <[email protected]>
Acked-by: Masami Hiramatsu (Google) <[email protected]>
Fixes: ef36b4f92868 ("eventfs: Remember what dentries were created on dir open")
Signed-off-by: Steven Rostedt (Google) <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/symbols.py')
0 files changed, 0 insertions, 0 deletions