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

From: Sven Van Asbroeck
Date: Thu Feb 07 2019 - 17:27:40 EST


On Thu, Feb 7, 2019 at 5:21 PM Dmitry Torokhov
<dmitry.torokhov@xxxxxxxxx> wrote:
>
> > ./drivers//input/keyboard/matrix_keypad.c:512:1-18: missing clean-up
> > of INIT_WORK/INIT_DELAYED_WORK initialized here
>
> This is not as simple.
[...]
> So in effect we do not actually leak work
> past driver remove().

That's expected. No Coccinelle script is perfect
(especially not my feeble attempts!)
so there will be false positives.