Message ID | 20181217180214.9436-2-ard.biesheuvel@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp2755566ljp; Mon, 17 Dec 2018 10:02:26 -0800 (PST) X-Google-Smtp-Source: AFSGD/V/MHJWjloBWqZbqzpUyznVlmbwykVDTxjaSd6LV+3gIGKfVQhplXy+mkZ9lzLzjmROfedL X-Received: by 2002:a17:902:7896:: with SMTP id q22mr13679528pll.280.1545069746702; Mon, 17 Dec 2018 10:02:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545069746; cv=none; d=google.com; s=arc-20160816; b=g7lj01fhFmk/ANYu+w0Z7dMZVB050oTvqqPH7hOF5eeiqZKJABkgJJBeNNf+JFYh8B 4Z6jnrVdFD7rbxvufOzaa2B5ztlCycKP5TeqtnGwR/uAUhYNoODGXVxQUd9CYe3Dwmy+ no+Pr4RQoz5V6EwZ8xmJeITU0EXpLGQ1p5j/hZ+EzDDwW1KILzD1IFcy/qMK4wzZXqUv Ggvw3uOG1ZLNLTn6zCiP/67GqbrfOGzs7BRtMcvCh0bkfMeZ79fUEvakHq58/za7BVr6 h8fg2AVwfj2KSpkVI+LrUS8pXAXFDdjGj7QK37kiidqKe94In0rnRi1+zmlH/RzXI+IA H9dw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=eB9+JvqWOlyqsBc3VtBL48QhOz1aowu5Yp+uTE3x7CE=; b=x5qUSMtXF/fJDqOQW4ust2yibu3CB0TZ3Lg6/KVBbJOPLyXUvn+7WBA3ts1N935Dvo zi0XxVDLWOBQaZfUuyVCzKPEjcrmf/RhlFYcZUBa8cStIzoLQNWAYCxz5r3/MEl99zVV SiporC7CzmTr8Ec09xVyfGfEwowR1NX1C9KwkryX6Vm6q4FmvgAfAtD2b8hHUzf3mkXr u5Fg13SG1g1ERZUCA9GyISVRzzdJlfwEockcUtrSmGF8wvJAaRmyR3nclSkgk80/jGKV aBbXjHsB/oxFcdfnlUl+mpjcM4mRvxRnM2IuZ9b5+TJRzp8QYaUDvNQAIHGJKM/mvcjF BsLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NG6T0E58; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <linux-kernel-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 91si11391140ply.214.2018.12.17.10.02.25; Mon, 17 Dec 2018 10:02:26 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NG6T0E58; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388561AbeLQSCY (ORCPT <rfc822;igor.opaniuk@linaro.org> + 31 others); Mon, 17 Dec 2018 13:02:24 -0500 Received: from mail-ed1-f67.google.com ([209.85.208.67]:43379 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733270AbeLQSCU (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 17 Dec 2018 13:02:20 -0500 Received: by mail-ed1-f67.google.com with SMTP id f9so11509420eds.10 for <linux-kernel@vger.kernel.org>; Mon, 17 Dec 2018 10:02:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=eB9+JvqWOlyqsBc3VtBL48QhOz1aowu5Yp+uTE3x7CE=; b=NG6T0E58fySSChoONLP2phvoeCK0ucSvd3L9VrE1FP1P2ALQMFEL8dGypTODCswMc+ 8ERliNY52J53TZYQWtAOrJYDKozjZn5/J9bl71UwxIM2OWTFOjaCGxLo6SsJDSe7UU3N 0fucnHt9yUc0+0erox6HrMNxQcTvEnmJBMUdY= 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:in-reply-to :references; bh=eB9+JvqWOlyqsBc3VtBL48QhOz1aowu5Yp+uTE3x7CE=; b=AEgNgzS3zCMWje09etssLHqTeBTJbEnClulapC4QjWTX/y5iItrTSv8sGjHOqlYO2q wHdO6O1tZEEt2HcZwmn1nZX7B5o943eSdOpGOU4OM0fLoRtzR9KkUzn0FWA1WSBYTwJm hFXTwQ6GBQg9KCb9rQFW87D4gqPkWzPjJ7iJ5vPM4hAgR371cm2SITwMawn9KCSEYo3Z 3aP2IqbxN01yWG/zDntyizwXPe+QLbofmIyVo5iToY6el3+AUY+OCi1zszunGGevGrNy ZbCGc6AW+n4ItPhvu+2Ev/4Qgt08znqlTFHsGL9OETrsqhAxS/0Oi4To6RZg1O0/Co/a quxw== X-Gm-Message-State: AA+aEWYakRPMW3bBZQY2h+1phjht6F24Bj1lF+lYAvBvzF9Bdlhz+9IU Vt1KzIGyvmKQphhgw/j7ovGQZg== X-Received: by 2002:a17:906:33d9:: with SMTP id w25-v6mr10862460eja.190.1545069738988; Mon, 17 Dec 2018 10:02:18 -0800 (PST) Received: from mba13.arnhem.chello.nl (dhcp-077-251-017-237.chello.nl. [77.251.17.237]) by smtp.gmail.com with ESMTPSA id j8sm3947678ede.55.2018.12.17.10.02.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 17 Dec 2018 10:02:18 -0800 (PST) From: Ard Biesheuvel <ard.biesheuvel@linaro.org> To: linux-efi@vger.kernel.org, Ingo Molnar <mingo@kernel.org>, Thomas Gleixner <tglx@linutronix.de> Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>, linux-kernel@vger.kernel.org, Heinrich Schuchardt <xypron.glpk@gmx.de>, Qian Cai <cai@gmx.us> Subject: [PATCH 1/2] efi: let kmemleak ignore false positives Date: Mon, 17 Dec 2018 19:02:13 +0100 Message-Id: <20181217180214.9436-2-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181217180214.9436-1-ard.biesheuvel@linaro.org> References: <20181217180214.9436-1-ard.biesheuvel@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org |
Series |
Final EFI fixes for v4.20
|
expand
|
diff --git a/drivers/firmware/efi/efi.c b/drivers/firmware/efi/efi.c index 415849bab233..7fcfe8a7ae98 100644 --- a/drivers/firmware/efi/efi.c +++ b/drivers/firmware/efi/efi.c @@ -31,6 +31,7 @@ #include <linux/acpi.h> #include <linux/ucs2_string.h> #include <linux/memblock.h> +#include <linux/kmemleak.h> #include <asm/early_ioremap.h> @@ -1000,6 +1001,8 @@ int __ref efi_mem_reserve_persistent(phys_addr_t addr, u64 size) if (!rsv) return -ENOMEM; + kmemleak_ignore(rsv); + rsv->base = addr; rsv->size = size;