[PATCH RESEND v2 09/51] profiling: report it when /proc/profile can't be created

sashiko-bot at kernel.org sashiko-bot at kernel.org
Thu Nov 5 11:29:04 PST 2026


> create_proc_profile() returns 0 whether proc_create() worked or not, so
> a write to /sys/kernel/profiling that turned profiling on but didn't
> get the file reports success and there is no file to read the profile
> from. Return -ENOMEM like the other failures of that write do.
> 
> Fixes: 22b8ce94708f ("profiling: dynamically enable readprofile at runtime")
> Signed-off-by: Christian Brauner (Amutable) <brauner at kernel.org>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261104-work-procfs-bugfixes-v2-0-021c84d852e0@kernel.org?part=9




More information about the kexec mailing list