diff options
author | Steven Rostedt (Google) <[email protected]> | 2023-09-05 14:26:08 -0400 |
---|---|---|
committer | Steven Rostedt (Google) <[email protected]> | 2023-09-05 21:13:48 -0400 |
commit | 51aab5ffceb43e05119eb059048fd75765d2bc21 (patch) | |
tree | 82b7a89476ff3c782d3b73ad37084249cb65742b /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | cbb557ba92f08b945e2cb20b7ab37ef49ab53cdd (diff) |
tracefs: Add missing lockdown check to tracefs_create_dir()
The function tracefs_create_dir() was missing a lockdown check and was
called by the RV code. This gave an inconsistent behavior of this function
returning success while other tracefs functions failed. This caused the
inode being freed by the wrong kmem_cache.
Link: https://lkml.kernel.org/r/[email protected]
Link: https://lore.kernel.org/all/[email protected]/
Cc: [email protected]
Cc: Masami Hiramatsu <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Ajay Kaher <[email protected]>
Cc: Ching-lin Yu <[email protected]>
Fixes: bf8e602186ec4 ("tracing: Do not create tracefs files if tracefs lockdown is in effect")
Reported-by: kernel test robot <[email protected]>
Signed-off-by: Steven Rostedt (Google) <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions