Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp2212463ybg; Thu, 30 Jul 2020 13:24:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyhI3i1+CaMxauuk5zK6ktGHOK8OdMyZ6oWiBAa1OHozRsdkcnP6s9KW+5tn9h61CQvbvP/ X-Received: by 2002:a50:b8e2:: with SMTP id l89mr784414ede.214.1596140676264; Thu, 30 Jul 2020 13:24:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596140676; cv=none; d=google.com; s=arc-20160816; b=v+rXYygEfOhKf8P5U3TuYaGn6blfOSrBGEQ5ZlCgDoOv/fTsI8dxoiAJ2II0BEgpkO Vpf04f0aSy1BXg0aBbtbUoI74U/mR9JMSiYiZEVyNy1rqAvowrV2puL9Djui5FGUmcN1 MsBdA8yN4f1WNK+JRcLc3NuwQLtpXZQS1iwiTh3zCfs+M0Q6n+KaerzSYAUFAW0a/TPP a73bz2QICU3txf4aWUPw51g++QGGvO3BYypAN2seUcZBoeJG2nbujACrCVkJ7nvRxipH WqNsly8w6BOB/P0rws4v+dhYPVSKZ2TqYY18Dc4NgG4WoeN7iAnp9ggKBOmhPVthU91A 3ofg== 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=udckCUbJaRE9PZhVNJyFXppdaO4ICuI0UrTzEzTQ0F8=; b=m1nYQP4t48sR7uzfWKOIqqcPysY15Qhg5E9+j56M/4Zz/6ewuNCgZqgnc5Gm/jfFur uZzukQXdJ+q+LwrKEftIFr/k74YOM/YahJHTLrzptoX97fivymMnSmzJsNTN7MXP8klE FuonwrT9v3vXJdXZ5l58ptm8sUxfYANsNjuCTpda0EpTkuU2FMnSrIz0zjnM9x4AdrVM /AI7/gan4zkHJqHTSdvQH86bZOQUzbmEtnocBn4f9upbjsxBtOEDmOjN1nCTktKlfZ8T kcE+5R5T4XyDW7KnRWb6xSGOiC2oThtxj7/wXiBJKh3pOqcJ0Mbw9PW1fwU8+aSZBdLB vLCQ== 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 t10si967322edw.502.2020.07.30.13.24.14; Thu, 30 Jul 2020 13:24:36 -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 S1727835AbgG3UPb (ORCPT + 99 others); Thu, 30 Jul 2020 16:15:31 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:56696 "EHLO mail2-relais-roc.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726495AbgG3UPb (ORCPT ); Thu, 30 Jul 2020 16:15:31 -0400 X-IronPort-AV: E=Sophos;i="5.75,415,1589234400"; d="scan'208";a="461955542" 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; 30 Jul 2020 22:15:26 +0200 Date: Thu, 30 Jul 2020 22:15:26 +0200 (CEST) From: Julia Lawall X-X-Sender: jll@hadrien To: Denis Efremov cc: cocci@systeme.lip6.fr, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4] coccinelle: api: add kvfree script In-Reply-To: <20200730140751.8635-1-efremov@linux.com> Message-ID: References: <20200605204237.85055-1-efremov@linux.com> <20200730140751.8635-1-efremov@linux.com> 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 Actually, the message looks fine. Sorry for the noise about that. However there is a problem in the kfree case: > +@kfree depends on !patch@ > +expression E; > +position v != choice.vok; > +position p; > +@@ > + > +* E = \(vmalloc@v\|vzalloc@v\|vmalloc_user@v\|vmalloc_node@v\|vzalloc_node@v\| > + vmalloc_exec@v\|vmalloc_32@v\|vmalloc_32_user@v\|__vmalloc@v\| > + __vmalloc_node_range@v\|__vmalloc_node@v\)(...) > + ... when != !is_vmalloc_addr(E) > + when any > +* \(kfree\|kzfree\|kvfree\)(E) p is not used. The last line should be (E)@p. julia