Re: OOB access on ACPI processor thermal device via sysfs write

From: Zhang Rui
Date: Thu Apr 02 2020 - 06:03:36 EST


On Thu, 2020-04-02 at 11:03 +0200, Takashi Iwai wrote:
> On Thu, 02 Apr 2020 09:47:50 +0200,
> Zhang, Rui wrote:
> >
> > CC Viresh.
> >
> > Yes, I've received it.
> >
> > To me, there is not a hard rule that the cooling device max_state
> > must be static.
> > We should be able to detect the max_state change and reset the
> > stats table when necessary.
> >
> > I just finished a prototype patch to do so, and will paste it
> > later.
>
> Great, that sounds like a feasible option, indeed.
>
>
Please try the patch below and see if the problem goes away or not.