Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1321578ybg; Thu, 4 Jun 2020 06:55:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxdB1LXbIjMtrjfxfq9ozMJcspJSqStuSm/llPBVNJxOfkwLyBTFQRFGhVUhm2h4JkLZrzy X-Received: by 2002:a17:906:2e50:: with SMTP id r16mr3840643eji.305.1591278942922; Thu, 04 Jun 2020 06:55:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591278942; cv=none; d=google.com; s=arc-20160816; b=TE+WAI5jPLQVxFqgIQ7YWnScRIbtap1GH8TT4TEgqfee09rAZGKzZKeY4dF7H/Fx4V 9hcvtCnO6eHuBeWVi/6nu7yYojeNfyLap4+ZhiNlFtG9QvcVz5zn5raqvRy05dsxl3Dm RWjEzX5g6fUJ8ZQ31UqwPIJcsP3J4gM9JpH57zlefBw4CPR7NXJjYepQZ8kjZcWdER4Y Ua4Ggh12gle+ocSnhLmnpTU1FCcQn/2i0V5I4sgcinkZJRSxB8wsX0MVC89B3IQ+QUV3 tlbUWigns1NCUQPVYJc9EcKTcw521n9Z9KsD3F2ixf/pLi1JAnvXhLBEI2xezdc96K8C ma3Q== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=JQF4gusMMse1t+P2Qqr0GcfguvDdOuRmX3WacGaJBcQ=; b=Pf2nVUIG3iFq0GPGshkm/pqns86O6IJOtpVyFWQNlHbkrgrhzkThGmh7ghKrszG4Sk kzOE+nXRN6NdAVtnj77knZzGugaAAVZ27oc+qZQA06chKCHoMfBooIAk1Iirxfku+1u9 qNAcKwcesRfFe1G7eO7QGVNEwCezP82b8ApKphMJdz0Sr5elA+OL2VGUpTFmU42NpB9O KRDOceK3/8rh/MHCjr71UaTdc1nJBYeUhVoFE2nPi7026ww3KS11rO/1xuJ/OJNCbg/i jPK7rED9abaNAyQ4ObPtXyR3urfMM4dS9voM4SCrnzsLHyQdDugrDSKVKrT3urs5Dpy7 v+0Q== 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 y21si1702899edm.260.2020.06.04.06.55.19; Thu, 04 Jun 2020 06:55:42 -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 S1728839AbgFDNvK (ORCPT + 99 others); Thu, 4 Jun 2020 09:51:10 -0400 Received: from mail-lf1-f67.google.com ([209.85.167.67]:45601 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728337AbgFDNvJ (ORCPT ); Thu, 4 Jun 2020 09:51:09 -0400 Received: by mail-lf1-f67.google.com with SMTP id d7so3632854lfi.12; Thu, 04 Jun 2020 06:51:07 -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:in-reply-to :references:mime-version:content-transfer-encoding; bh=JQF4gusMMse1t+P2Qqr0GcfguvDdOuRmX3WacGaJBcQ=; b=jF6IvBPDfMIYlTCQV/874CGcg+W6j/SRtw8BgSNN1uQQqTIMWsvwPMo30KpjABSsA2 8hEYk9DwoZdit+/S+QM45zZBeO2m2sqwm8AOvJfFZ13RyngfU9IJZrchZXhxtNES2NDm P2JNVPSgvDxgpnPrZ6ALtujS5TC7ytqjTgwnlUpB95NzkMxHojnRHJ+7zxqBJYtUxHBD sd+Q9PX0RN9m9hZFN3OrctTDwH/gk1L+w4Q4j+5w1PI5lN5tDBoCl53uieUeJDCQv+9x 9l6lN+tH1LYJgo9yUR4J6q9t/M6eqvynqT6/EfOOCPJ3k8yqbHypwOQg5pdEQfcvwqXa +Whg== X-Gm-Message-State: AOAM533rHTzkcbSv6nzmJ5qEQrbDmke6aUZBsIShTcniVv4e2aFYZB49 RWQr2myVyTqGM+DNiX2KFE4= X-Received: by 2002:a05:6512:3214:: with SMTP id d20mr2637853lfe.203.1591278666991; Thu, 04 Jun 2020 06:51:06 -0700 (PDT) Received: from localhost.localdomain ([185.248.161.177]) by smtp.gmail.com with ESMTPSA id u16sm1202140lji.58.2020.06.04.06.51.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jun 2020 06:51:06 -0700 (PDT) From: Alexander Popov To: Kees Cook , Emese Revfy , Miguel Ojeda , Masahiro Yamada , Michal Marek , Andrew Morton , Masahiro Yamada , Thiago Jung Bauermann , Luis Chamberlain , Jessica Yu , Sven Schnelle , Iurii Zaikin , Catalin Marinas , Will Deacon , Vincenzo Frascino , Thomas Gleixner , Peter Collingbourne , Naohiro Aota , Alexander Monakov , Mathias Krause , PaX Team , Brad Spengler , Laura Abbott , Florian Weimer , Alexander Popov , kernel-hardening@lists.openwall.com, linux-kbuild@vger.kernel.org, x86@kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, gcc@gcc.gnu.org Cc: notify@kernel.org Subject: [PATCH 4/5] gcc-plugins/stackleak: Don't instrument itself Date: Thu, 4 Jun 2020 16:49:56 +0300 Message-Id: <20200604134957.505389-5-alex.popov@linux.com> X-Mailer: git-send-email 2.25.2 In-Reply-To: <20200604134957.505389-1-alex.popov@linux.com> References: <20200604134957.505389-1-alex.popov@linux.com> 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 There is no need to try instrumenting functions in kernel/stackleak.c. Otherwise that can cause issues if the cleanup pass of stackleak gcc plugin is disabled. Signed-off-by: Alexander Popov --- kernel/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/Makefile b/kernel/Makefile index 4cb4130ced32..d372134ac9ec 100644 --- a/kernel/Makefile +++ b/kernel/Makefile @@ -118,6 +118,7 @@ obj-$(CONFIG_RSEQ) += rseq.o obj-$(CONFIG_SYSCTL_KUNIT_TEST) += sysctl-test.o +CFLAGS_stackleak.o += $(DISABLE_STACKLEAK_PLUGIN) obj-$(CONFIG_GCC_PLUGIN_STACKLEAK) += stackleak.o KASAN_SANITIZE_stackleak.o := n KCOV_INSTRUMENT_stackleak.o := n -- 2.25.2