Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp557304ybg; Tue, 9 Jun 2020 07:19:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwQEwYMOzdgCLqUh0odVYSMPbScc0R2xNLLNeqizBw91H5E23pfvE+qB+fbnqPBC2eWHisK X-Received: by 2002:a05:6402:1714:: with SMTP id y20mr27309188edu.81.1591712344835; Tue, 09 Jun 2020 07:19:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591712344; cv=none; d=google.com; s=arc-20160816; b=OMG+RQs+1NrXHAdWEYrruWH6HsLZBzKA8yqt3xzCYcKAKOCdz0Dh9L348TXRIuoV6j scPxehSd6q5Lh+ijHnSy9wTaPCyj/20euRfu8lvWXF6GshercaGno4C6haPkqVXSN/F9 yjWiz22njZfkiLYxkRATuHDeVw5K8q64EN0JqUtlCchDLliPNxsetcywkdkgSeqJpW8e IK1KlXwPtH6NcJeLmUfShjj+Oj0jIWTdZiTd6gvYR1nlfq6tfcb3GOhPGoyhCSnOp943 LNBZvA0t1TgysW8bJ2gXtxnaHs5X+9golH4bPHcMTum4QP/CLuZ+tkC9kzkZmqYxJ92V FEBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:mime-version:user-agent:date:message-id:autocrypt :to:from:subject:cc:dkim-signature; bh=7QnDnWCzazgsrwrVbLJUiHk16CqkUBtQR7FCg91QdUI=; b=TvT5g44a1RoUL7eAgBSEw+YcAOKA/n/rcy/4ihUjvpRSkDVB1YgFcyJUQ82oZOHdAH jZBcSufwlv/mihEb+UD5RIR0OUbRm30RZVIzclQY9JAaF/ASSAmdhcQbCTgUuycdw1tb 8UNL7aS4sRvv8kLOICGY5joEmBo1ZWdsOQNgQAf+7qKQRN1P4SpeRntVEjbZgp5Zu/l2 aCTJDGbyruP68RbhwLAI2H7fTGp0bXm1S1u3rjwlArrzmix+g0pnKpc4vXfsnisxPZTE P9puVRFg30sdOoEQo0IZ1FZhJhi43U8EPqvFJG/WSUlYrxWJq8t/NZqPasGYmzPuLx4e afrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@web.de header.s=dbaedf251592 header.b=bpj8+NOO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ov27si1339276ejb.379.2020.06.09.07.18.40; Tue, 09 Jun 2020 07:19:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@web.de header.s=dbaedf251592 header.b=bpj8+NOO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730119AbgFIOQY (ORCPT + 99 others); Tue, 9 Jun 2020 10:16:24 -0400 Received: from mout.web.de ([212.227.17.12]:58859 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726967AbgFIOQX (ORCPT ); Tue, 9 Jun 2020 10:16:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1591712171; bh=4e28CHChxT7wxLcfH98/m8r7z/2Hp4xhy6bqpTw5+6E=; h=X-UI-Sender-Class:Cc:Subject:From:To:Date; b=bpj8+NOODMCoywXkYrrRJkM769aY0w1Og6daKIEZHUZ4mxDdIBE8fFME7CBDWphOz 4iG41FyqTkYkuHQMHm79PtOsaYgLOVz0Q9EpRQdJpC1wGoRvwiy1yLkPA8+int+1A5 HjjnHnw+WBoPBlJ8IwRLtwtxrvqUm3p5QW7S1GyA= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Received: from [192.168.1.2] ([77.6.55.3]) by smtp.web.de (mrweb103 [213.165.67.124]) with ESMTPSA (Nemesis) id 0M1GAG-1ipaS32O64-00tFO3; Tue, 09 Jun 2020 16:16:11 +0200 Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/4] coccinelle: api: extend memdup_user transformation with GFP_USER From: Markus Elfring To: Denis Efremov , Coccinelle , Gilles Muller , Julia Lawall , Masahiro Yamada , Michal Marek , Nicolas Palix Autocrypt: addr=Markus.Elfring@web.de; prefer-encrypt=mutual; keydata= mQINBFg2+xABEADBJW2hoUoFXVFWTeKbqqif8VjszdMkriilx90WB5c0ddWQX14h6w5bT/A8 +v43YoGpDNyhgA0w9CEhuwfZrE91GocMtjLO67TAc2i2nxMc/FJRDI0OemO4VJ9RwID6ltwt mpVJgXGKkNJ1ey+QOXouzlErVvE2fRh+KXXN1Q7fSmTJlAW9XJYHS3BDHb0uRpymRSX3O+E2 lA87C7R8qAigPDZi6Z7UmwIA83ZMKXQ5stA0lhPyYgQcM7fh7V4ZYhnR0I5/qkUoxKpqaYLp YHBczVP+Zx/zHOM0KQphOMbU7X3c1pmMruoe6ti9uZzqZSLsF+NKXFEPBS665tQr66HJvZvY GMDlntZFAZ6xQvCC1r3MGoxEC1tuEa24vPCC9RZ9wk2sY5Csbva0WwYv3WKRZZBv8eIhGMxs rcpeGShRFyZ/0BYO53wZAPV1pEhGLLxd8eLN/nEWjJE0ejakPC1H/mt5F+yQBJAzz9JzbToU 5jKLu0SugNI18MspJut8AiA1M44CIWrNHXvWsQ+nnBKHDHHYZu7MoXlOmB32ndsfPthR3GSv jN7YD4Ad724H8fhRijmC1+RpuSce7w2JLj5cYj4MlccmNb8YUxsE8brY2WkXQYS8Ivse39MX BE66MQN0r5DQ6oqgoJ4gHIVBUv/ZwgcmUNS5gQkNCFA0dWXznQARAQABtCZNYXJrdXMgRWxm cmluZyA8TWFya3Vz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IBDfUqSANC8cWzHpWaHmSuU3JSAMB/N+yQjIad2ztTckZY pwT6oxng29LzZspTYUEzMz3wK2jQHw+U66qBFk8whA7B2uAU1QdGyPgahLYSOa4XAEGb6wbI FEE= Message-ID: <5c0dae88-e172-3ba6-f86c-d1a6238bb4c4@web.de> Date: Tue, 9 Jun 2020 16:16:10 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:5qOHi/QGPt6HDDy++mQcTjcvl6ZVbhg+a6OWbIowPMUPExg1FLM ytrFenQx99weYIyI3UcwQjBApTIflOTTc9lCa77JbbOQgvgC3lnvbzcrudAkWkmJTuxtYbX FSgvPIjMRqkTCKs+KqOUSAbnp4lREfw2QXeqHqS+9tYCNUPdjqb2TsFVg52WWlTUiX/vwuX P/Mr0zvv58D1tJf9uSROA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:mpYUnu5JEC0=:JaviUAuDGsXJK5Nwln/HGc ChxKS+GRPJrh3j0aI5i4AMTKuzEBxHauWmKvaWA6nCKJdPmvAyNy1DYmL1HUAo7FBK2YvMaYh eX/iFRAqHV39Tg8W++EMUAKweE+x3tsbm2h4/Z8fRmxKbxZv+HKAz1phIgOBUWTZSz4Tq2kD5 BYkSv0wdaSoxrDfuJ4LeH270+PKuU0cHfo7vxSBxy8p28wqxenp9ytL4bCVp1El6OcJ0KwKkQ BiTTO+ZGN3nEDCYCWlf+bKzPJ2Qfci9zz3xTwUP9t6yE3TN2D8pQ78DJNVKp2+c6FEzuxfmFc FBE8jFmRY+4WulWaH33YZMlw02G/h1gCYmMVXW2atuy0vZR5UzilYvSEFKgYaZm/DqdnkLvvn U8qR97oORrlpzbo4cpw9ijIYaGqafn//qL8FeGAv9ssN9Dj1z4qT1YlWdRNIYtpLJkvuszWXD JrMuQKofELqBIov3vl6Erzj/S/OJxewuTn6rwweHdmJpoPX1U/i3qj4sYSr4GALiquLsOw61k EeJOHLkOwqCi55t3Fq4JLS2KGmTVSmqt4s6YbQ2FPjOjGB6Zx2w33kDSsPvwwCx1KRVU3DNtE OCXGQcnJyevO3X7kDMpUnjogFizmalpGWQ2L0VsOmAdh8VEKMQJa1gMwDUl9699z6iFJb73r1 rXF8Eh12k59viryAQhIxPYCjZSBxmNFBY0ZGognW2nXvzh8TdmuGlMGCwL2WaHcq2bFtWTsnv cyiuNzBQQUxRq6LpS37xlQvWcMH7eptOThG+jnB1GU5eeozVHUshVWSCGA2h+Hpd19vu1ITjt BgMIv5RMPg8bH+xJZx39yZ0LxqJoGomcBjsbgCjkUfezHSD2tYXNr5MHHsU8FKi5ykQ/1yhhK CoFay7d/4/AdDyNA+DPSe2rPkxSed3kG2etq6IDcYkFSuzOXdUAtXula/fy+0xVeI3zSLcvIq K96ISQALVXUebWLzsFekPTrevE7urHjk/Wf4oAKLkFjDkmq0alESrrF0x+2yyFY4tHVGA7lng HRrUL+QfD1ZiQpodCONSVLwyH2upzjOvweHxUB2lk5vKcUgV2tJpscY+tveXVnnzbM2vxG/gS q/yBNLM3k6me25XLsZSb7gexYeZwsxzqo+2h1Fu/rcHd19g0lkPFB1geUl2NcNgUlOsA39j6o KO5TqxRRKRbhridmpvUhvWDk7SovV/ubbrhIoc0OGiNO4JbJ5kC5V7OwmoXFSSPDUU85nQtXe Mym/Ya5QwHw78I125 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org =E2=80=A6 > +++ b/scripts/coccinelle/api/memdup_user.cocci > @@ -20,7 +20,9 @@ expression from,to,size; =E2=80=A6 > +- to =3D \(kmalloc\|kzalloc\) > + (size,\(GFP_KERNEL\|GFP_USER\| > + \(GFP_KERNEL\|GFP_USER\)|__GFP_NOWARN\)); I got the impression that this SmPL code needs another correction also according to the proposed SmPL disjunction. +-to =3D \( kmalloc \| kzalloc \) (size, \( GFP_KERNEL \| GFP_USER \) \( |= __GFP_NOWARN \| \) ); Would you like to express by any other approach that a specific flag is an optional source code transformation parameter? Regards, Markus