RE: [char-misc] mei: trace: treat reg parameter as string

From: Usyskin, Alexander

Date: Tue Jan 06 2026 - 05:59:35 EST


> Subject: Re: [char-misc] mei: trace: treat reg parameter as string
>
> On Sun, Jan 04, 2026 at 10:20:44AM +0200, Alexander Usyskin wrote:
> > Process the reg string parameter in secure way.
> >
>
> I'm sorry, but I don't understand this changelog text. What exactly is
> this doing? Why is a string "better" than a char *?
>
> thanks,
>
> greg k-h

Sorry, I'm bad in changelogs, trying to improve...

The string wrapper checks sanity of parameters and prevents internal kernel data leaks.
Newer kernels refuse to emit event with plain char*, without the wrapper.
See https://elixir.bootlin.com/linux/v6.19-rc3/source/kernel/trace/trace.c#L3785

- -
Thanks,
Sasha