[PATCH 0/2] tracing: Add missing LOCKDOWN_TRACEFS checking

From: Steven Rostedt
Date: Tue Sep 05 2023 - 16:08:42 EST



When LOCKDOWN_TRACEFS is activated, some of the tracefs functions can
still return success leaving tracefs in an undefined state.

I broke this up into two patches. One that fixes just tracefs that
existed before this merge window and needs to be backported to stable.
The other fixes changes added to this merge window.

This should fix the issue reported by kernel test robot:

https://lore.kernel.org/all/202309050916.58201dc6-oliver.sang@xxxxxxxxx/

Steven Rostedt (Google) (2):
tracefs: Add missing lockdown check to tracefs_create_dir()
tracefs/eventfs: Add missing lockdown checks

----
fs/tracefs/event_inode.c | 15 +++++++++++++++
fs/tracefs/inode.c | 3 +++
2 files changed, 18 insertions(+)