[PATCH v2 02/50] tracefs: fix a leak in eventfs_create_events_dir()

Steven Rostedt rostedt at goodmis.org
Tue Oct 28 12:15:01 AEDT 2025


On Tue, 28 Oct 2025 00:45:21 +0000
Al Viro <viro at zeniv.linux.org.uk> wrote:

> If we have LOCKDOWN_TRACEFS, the function bails out - *after*
> having locked the parent directory and without bothering to
> undo that.  Just check it before tracefs_start_creating()...
> 
> Fixes: e24709454c45 "tracefs/eventfs: Add missing lockdown checks"
> Signed-off-by: Al Viro <viro at zeniv.linux.org.uk>
> ---
>  fs/tracefs/event_inode.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)

Acked-by: Steven Rostedt (Google) <rostedt at goodmis.org>

-- Steve


More information about the Linuxppc-dev mailing list