Re: [v2 1/4] coccinelle: api: extend memdup_user transformation with GFP_USER

From: Julia Lawall
Date: Sat Jul 18 2020 - 02:45:57 EST




On Sat, 18 Jul 2020, Markus Elfring wrote:

> > Applied.
>
> Do you care for patch review concerns according to this SmPL script adjustment?
>
> * https://lore.kernel.org/cocci/5c0dae88-e172-3ba6-f86c-d1a6238bb4c4@xxxxxx/
> https://lkml.org/lkml/2020/6/9/568

This one it complete nonsense.

>
> * https://lore.kernel.org/cocci/c3464cad-e567-9ef5-b4e3-a01e3b11120b@xxxxxx/
> https://lkml.org/lkml/2020/6/8/637

This on is indeed a problem. I think it was not detected in testing,
because in the current kernel the rule never applies. But Denis, in

- to = \(kmalloc\|kzalloc\)
(size,\(GFP_KERNEL\|GFP_USER\|
\(GFP_KERNEL\|GFP_USER\)|__GFP_NOWARN\));

you do indeed need to put - in front of the second and third lines as
well.

Markus, if you would limit your comments to suggesting SmPL code that is
actually correct, ie that you have tested, and 2) stop suggesting stupid
things over and over like that putting all of the virtual declarations on
the same line would save space (it does, but who cares), then I would take
your suggestions more seriously.

julia

> Regards,
> Markus
>