Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp367646ybh; Sat, 18 Jul 2020 06:33:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyylEpweyFkf4AILprBfgwMX3p6vFEEei8YLa8vlzgx4Pt4J0BVi8zE/isAc+3A2PAxiPdo X-Received: by 2002:a17:906:958f:: with SMTP id r15mr11042058ejx.77.1595079200050; Sat, 18 Jul 2020 06:33:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595079200; cv=none; d=google.com; s=arc-20160816; b=Li89BWUH6LF4oKwpCuwuNHTgF6HRzWHr/pui3ifY597xLW6ZCMCstulUK+V90PhH2V Hh3ZOL+u0afS2hNcgEGiZxiYN2K+ebbjiDUFXK15no8Uch8CwIEENGtZgzrNQ4pJ0bOu 3dihYzxe4/bOw48ILcN663JiVqak1QyvP/wijbtW6YcsJXtieoQ08rPAJ+JEEv1VQXdM ZdxVf92GAfrT2crT/0B2SeTJnx8vNUiZatZvb5TZCoJEHVlfWMXA59PZtkdmnZneMagn mxBE3fQ7iul3XU4A3la/68J5tnlf4gYiaCLUVGPmpGG/7aTAuHJEAj12Bk7wBhGxkBrN RBVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=mBarl2vjffMlCPeq5fskHqCZle3teh0bK1N7QD4xfqM=; b=YIFeOfNAG9C9HCid/mtBDCBQMnOJf9fbMYxznL/KadfjQa4z1XTW96wfeezhCyY8bA wgTM7Ga7cOoyJdrBOPpqbJ1MVGYaU1bFqrNo0xPJmVqAHLIwAtQJ9yQNJtTeY7NO0ETJ TcwAG63cBqu4wNS33MSHLPiwfq6Jp5SilikRvqyrVPrTajPvljgJilR9VwDJ7aw/WOyv ZGWlpUtKMcCu4ZnybGRDRRMeS5oIufBBbbridmATavwGH4zsrwHLQ9IfnN+7WVFlgB6C 9Jw/7ri4tzz+jEV/Nr0qXKSJrYHYNNhyp+QUbNGkKO13fNRdS2OK1RUSjga2Km6sU6Ji Z5DQ== ARC-Authentication-Results: i=1; mx.google.com; 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 j5si7024589ejk.74.2020.07.18.06.32.57; Sat, 18 Jul 2020 06:33:20 -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; 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 S1727032AbgGRNaA (ORCPT + 99 others); Sat, 18 Jul 2020 09:30:00 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:8426 "EHLO mail2-relais-roc.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726569AbgGRNaA (ORCPT ); Sat, 18 Jul 2020 09:30:00 -0400 X-IronPort-AV: E=Sophos;i="5.75,367,1589234400"; d="scan'208";a="460306961" Received: from abo-173-121-68.mrs.modulonet.fr (HELO hadrien) ([85.68.121.173]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Jul 2020 15:29:58 +0200 Date: Sat, 18 Jul 2020 15:29:58 +0200 (CEST) From: Julia Lawall X-X-Sender: jll@hadrien To: Denis Efremov cc: Markus Elfring , Coccinelle , linux-kernel@vger.kernel.org Subject: Re: [v2 1/4] coccinelle: api: extend memdup_user transformation with GFP_USER In-Reply-To: Message-ID: References: <0b9f2c58-e124-22d2-d91d-62a6e831c880@web.de> User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 18 Jul 2020, Denis Efremov wrote: > Hi, > > On 7/18/20 9:45 AM, Julia Lawall wrote: > > 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. > > Thanks, Markus, Julia. I will send v3. Julia, is it ok with you, if I will > drop the last patch with "selfcheck" this time? That would be perfect, thanks. julia