Skip to content

tracing: Add missing LOCKDOWN_TRACEFS checking

Steven Rostedt linux-trace-kernel lkml stable 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2tracefs: Add missing lockdown check to tracefs_create_dir()fs/tracefs/inode.c+3 -00 replies
2/2tracefs/eventfs: Add missing lockdown checksfs/tracefs/event_inode.c+15 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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

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/[email protected]/

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