Re: [PATCH v3 0/3] Update memdup_user.cocci

From: Julia Lawall
Date: Fri Jul 24 2020 - 16:02:27 EST




On Mon, 20 Jul 2020, Denis Efremov wrote:

> Add GFP_USER to the allocation flags and handle vmemdup_user().
>
> Changes in v2:
> - memdup_user/vmemdup_user matching suppressed
> - PoC for selfcheck virtual rule
> Changes in v3:
> - add missing '-' for patch rule in kmalloc/kzalloc call args
> - selfcheck rule dropped from patchset
>
> Denis Efremov (3):
> coccinelle: api: extend memdup_user transformation with GFP_USER
> coccinelle: api: extend memdup_user rule with vmemdup_user()
> coccinelle: api: filter out memdup_user definitions

All three applied. Thanks.

julia

>
> scripts/coccinelle/api/memdup_user.cocci | 64 ++++++++++++++++++++++--
> 1 file changed, 61 insertions(+), 3 deletions(-)
>
> --
> 2.26.2
>
>