[Devel] [PATCH hci-8.1] ms/tracefs: fix a leak in eventfs_create_events_dir()

no-reply at sashiko.virtuozzo.com no-reply at sashiko.virtuozzo.com
Tue Nov 17 08:55:05 MSK 2026


Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] Fixes trailer lacks parentheses around the quoted subject
--

commit 19e003c422eeb3e947b70fcf695dd6a60f9073e4
Author: Al Viro <viro at zeniv.linux.org.uk>

ms/tracefs: fix a leak in eventfs_create_events_dir()

This commit moves the tracefs_start_creating() call in eventfs_create_events_dir() to after the security_locked_down(LOCKDOWN_TRACEFS) check. A lockdown bail-out then no longer leaves the parent directory locked.

> ms/tracefs: fix a leak in eventfs_create_events_dir()
>
> [ Upstream commit 798a401660a151633cb171738a72a8f1efb9b0b4 ]
>
> 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"
> Acked-by: Steven Rostedt (Google) <rostedt at goodmis.org>
> Signed-off-by: Al Viro <viro at zeniv.linux.org.uk>
> Signed-off-by: Sasha Levin <sashal at kernel.org>
> (cherry picked from commit 3bcb274a192fc89a003a7808a877faf1f9a81ce3)
>
> https://virtuozzo.atlassian.net/browse/VSTOR-155413
> Feature: fix ms/tracefs
>
> Signed-off-by: Eva Kurchatova <eva.kurchatova at virtuozzo.com>

[Severity: Low]
This isn't a functional problem, but the Fixes: trailer is malformed. The subject is not enclosed in parentheses, so Fixes-parsing tooling may not recognise it. Should it read:

  Fixes: e24709454c45 ("tracefs/eventfs: Add missing lockdown checks")

-- 
Sashiko AI review · https://sashiko.vzint.dev/#/patchset/20261117055049.810192-1-eva.kurchatova@virtuozzo.com?part=1



More information about the Devel mailing list