Re: [RFC v1 0/3] Address potential user-after-free on module unload

From: Sven Van Asbroeck
Date: Thu Feb 14 2019 - 10:23:26 EST


Hi Miguel,

On Wed, Feb 13, 2019 at 8:11 PM Miguel Ojeda
<miguel.ojeda.sandonis@xxxxxxxxx> wrote:
>
> Indeed! Note that I didn't mean to say they are trivial issues or that
> the solution is simply to replace cancel_delayed_work() with the
> _sync() version in all cases -- only that it might be a good idea to
> suggest its existence (instead of only suggesting devm_, because in
> cases like drivers/auxdisplay/ht16k33.c it may be the simplest fix).
>

I will try to get your suggestion in, as I move forward with this
Coccinelle script.

Cheers,
Sven