mbox series

[0/2] tracing: Add missing LOCKDOWN_TRACEFS checking

Message ID 20230905182607.505212458@goodmis.org (mailing list archive)
Headers show
Series tracing: Add missing LOCKDOWN_TRACEFS checking | expand

Message

Steven Rostedt Sept. 5, 2023, 6:26 p.m. UTC
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@intel.com/

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(+)