Re: NULL pointer dereference regression when running `chmod -R root:tracing /sys/kernel/debug/tracing`

From: Steven Rostedt
Date: Sun Nov 12 2023 - 07:14:42 EST


On Sun, 12 Nov 2023 11:41:58 +0100
Milian Wolff <milian.wolff@xxxxxxxx> wrote:

> Hey all,
>
> this patch seems to have introduced a kernel bug causing
> a NULL pointer dereference when one runs:
>
> sudo chown -R root:tracing /sys/kernel/debug/tracing/
>
> See the archlinux bug report I created initially for some more information:
> https://bugs.archlinux.org/task/80230
>
> With 6.6.1 and 9aaee3eebc91dd9ccebf6b6bc8a5f59d04ef718b reverted,
> the above `chmod` command works. With a normal 6.6.1 build, or re-applying
> the patch again, the command fails and `dmesg` shows:

Thanks for the report. I'll work on it on my way to Plumbers.

-- Steve