Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp22443ybh; Mon, 20 Jul 2020 09:24:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyAjesOLTbhqJEwgHTTDfi8wi8RxyJJK3jlP+2grR8McF75J4ubPs6t6jzYjjfKEJSyhcfu X-Received: by 2002:a17:906:dbe5:: with SMTP id yd5mr21696132ejb.328.1595262289290; Mon, 20 Jul 2020 09:24:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595262289; cv=none; d=google.com; s=arc-20160816; b=wExFr4uzveUm6Z3kP3xtN4zCIKPDF+dn0ZrYF7tblsKfVN73StqJdQtZa+Q9KBwdzG JXDOR9Dk3lL90kTdUn8qkmRWOk1fuVMeTZUuU9EbubSQ3u93eUy1WryYus4ULXajEhrh T0PCb6eS6DKMRaaQRQOVHWo0yREJz/evKlsj515hIVXp9A4zLDxYx+BE94+sZYSbKJEl oIdMbGfdrJ7BDhOoi/aw/kgBcj7slW/0QlHCTfW5EcCJ7Xu7vq6Q328h6rWf4J33zSUF bv3GifIh9U7mno27U5JN6Vi02GSniKemHbMLNWO2DjsFuiAHpJcIum16XG6VTs/L5FKK 5CrA== 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:mime-version :message-id:date:subject:cc:to:from; bh=s6tdYtNz+qDIDRhGgPrdBToU6tSHk3rys73lASsyyZg=; b=sCVuflfhQ4aCUBTeIacIr45ZmHOmbaqlbtLHsbKbIH65/+dLAt2BxDjhVh4O25idcd XpIqZMV7E/D50VqqeiTxAidItmjK+xlTaiITl5H4VQp/XpqnAP9d3E5yq0IQVicI6UKO Toq6lufNKG47NfDvxFkSDS7N+g43SKxo4QHZsLnHdsjolUs5Y7VtLqe/+4GnAKw/KCi5 VMhehfFnIvlTXshqS8WjNl2M+18wbM34ZadCRbo+vn8b2oO4Q+Tox0+a9HTMJjqHkWg1 gVIF8ZWT6ERH4zzeH/u21KpwBIbCrp1aqntLvUFRGnZ4pqMWuqoAZx0xLhBpLwW1ppcX r45g== 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 gh11si10915418ejb.442.2020.07.20.09.24.26; Mon, 20 Jul 2020 09:24:49 -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 S2387929AbgGTQWv (ORCPT + 99 others); Mon, 20 Jul 2020 12:22:51 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:39040 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388667AbgGTQWs (ORCPT ); Mon, 20 Jul 2020 12:22:48 -0400 Received: by mail-lj1-f196.google.com with SMTP id b25so20882030ljp.6 for ; Mon, 20 Jul 2020 09:22:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=s6tdYtNz+qDIDRhGgPrdBToU6tSHk3rys73lASsyyZg=; b=IiB2wuh+V4SyKF8ondMk0MqfZyY9amFi+k1BeFs+NRZ/LlSk8p0AeN7B33YZP1hj6D woU4YchPvz8vUTN5R8CzPzNm3FU3bDDhfzIH0bOdLXJyIZJszSYOpu8M2jqbwqy2UrqS AU0TAgaV/p5h+8W+WSAJERbWpwOrk7oP5XQUHWMC2WNLvHarVcdNf18ym8k/x9cMev63 K8lRuXkTh9J3+TA4KkckVL2rrgDlRxYUjZToxKqo1VwEueayCaGXQbn1OSkbCIm1j3Eg dM9vIkeveyUtprV/f7fWLnBnGAr0kO0Ey9kd37O0n4ep0tEyf19NnRqr+BhvoaxoIQj3 jkVA== X-Gm-Message-State: AOAM531xZvTOVmgllbpn/JWxUeK3KEErsVwWDchG6nBg0cO5KUkNnxN+ VaFBB3AEui83aKpeCuN66oQ= X-Received: by 2002:a2e:8556:: with SMTP id u22mr11328825ljj.348.1595262166015; Mon, 20 Jul 2020 09:22:46 -0700 (PDT) Received: from localhost.localdomain (broadband-37-110-38-130.ip.moscow.rt.ru. [37.110.38.130]) by smtp.googlemail.com with ESMTPSA id a19sm925855lff.25.2020.07.20.09.22.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Jul 2020 09:22:44 -0700 (PDT) From: Denis Efremov To: Julia Lawall Cc: Denis Efremov , cocci@systeme.lip6.fr, linux-kernel@vger.kernel.org Subject: [PATCH v3 0/3] Update memdup_user.cocci Date: Mon, 20 Jul 2020 19:22:13 +0300 Message-Id: <20200720162216.13248-1-efremov@linux.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 scripts/coccinelle/api/memdup_user.cocci | 64 ++++++++++++++++++++++-- 1 file changed, 61 insertions(+), 3 deletions(-) -- 2.26.2