Re: [RFC][PATCH] timers: Add del_time_free() to be called before freeing timers
From: Steven Rostedt
Date: Fri Apr 08 2022 - 16:58:36 EST
On Fri, 08 Apr 2022 22:29:58 +0200
Thomas Gleixner <tglx@xxxxxxxxxxxxx> wrote:
> What a shutdown function would prevent here is UAF, but I'm not entirely
> sure whether it will simplify coordinated shutdown and remove the
> requirement of a priv->shutdown flag all over the place. It might make
> some of the driver muck just get stuck in the shutdown, but that's
> definitely an improvement over a potential UAF which happens every blue
> moons.
Note, it is the cause of a large percentage of crash reports reported by
ChromeOS.
And we do not even know if it was this bluetooth issue that caused them.
There's evidence they are mostly caused by the wifi code. I only used the
bluetooth issue because it was the first one we found that looked obviously
wrong.
-- Steve