Re: BUG: bisected: thermald regression (MEMLEAK) in commit c7ff29763989bd09c433f73fae3c1e1c15d9cda4

From: srinivas pandruvada
Date: Wed Oct 26 2022 - 18:48:44 EST


On Wed, 2022-10-26 at 19:52 +0200, Mirsad Goran Todorovac wrote:
> Dear all,
>
> On 24. 10. 2022. 20:56, Mirsad Goran Todorovac wrote:
> > On 24. 10. 2022. 20:39, srinivas pandruvada wrote:
> >
> > > > Thank you for the patch. Unfortunately, when applied to v6.0.3
> > > > it
> > > > didn't
> > > > fix the issue.
> > > Thanks for the test. I copied to acpi and acpica mailing list.
> > > Someone
> > > can tell us what is this call doing wrong here.
>
> I have worse news: after every
>
> # systemctl stop thermald
> # systemctl start thermald
>
> the number of leaks increases by one allocated block (apparently 80
> bytes). The effect appears to be
> cummulative.
>
> Please find the results of the MEMLEAK scan in the attachment.
>
> In theory, motivated adversary could theoretically exhaust  i.e. 8
> GiB
> in a loop of 10 million thermald stops/starts,
Of course it needs to be debugged. To start/stop systemctl service you
need root access. If you have root access, there are other worse things
can be done.

Thanks,
Srinivas

> on my laptop and 2 sec for stop+start, it would be approx. 230 days.
>
> Hope this helps.
>
> Mirsad
>
> --
>
> Mirsad Goran Todorovac
> Sistem inženjer
> Grafički fakultet | Akademija likovnih umjetnosti
> Sveučilište u Zagrebu