Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp541144ybt; Wed, 24 Jun 2020 05:35:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJygjgrGB3GxMXAEVYXyJvKZHUJfs6H2iITcR7jqm3MhWzgEw2TelWomenEA882tUbcQvNLj X-Received: by 2002:a50:a881:: with SMTP id k1mr26106066edc.12.1593002111236; Wed, 24 Jun 2020 05:35:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593002111; cv=none; d=google.com; s=arc-20160816; b=GitU8LsvpikJcMiLbUyyHR5OILlh7aw4seomO7DjGF/tN2JU615TW4oiPOys4PbJZp Ex0bz7B+/gELRq2tvZewKqAT5DWPSf2G5X28G+8fB7hu+HjS+CzmPhYt1IYj8L3wpN01 y+y7thElpzfQbCvYgRuK22ABjICnfdObPl7W0mrsFCaZ8eFn8HRHVLlyDvlw3kk+Oyj3 4BJejv+F+89HAD+k2F8w72tix1KJKaGPIpUAAJ75E8pk5Irmwf/XPkxucs3GNvUOxxCQ /hKc+Cs+3bTeKjByKgBvEiKQKASoROX6CEJtehHz9ukluLv02faq6swkiP3fZMsECe1N woSg== 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=r8hAW61/4BUI+NbyFnYc6YqQQjo8d8HK1rSbMU2IkRk=; b=tKQuguzbMzJdw2aXap5ke5B6LhjX8MwD3jObpoGw3u2u2jH/QqSKWXvCXBCxFPJZ0D 5aeePiQ9jBQkjzGQyl2SOdVDlVilw8PEkvTTgOWYNGAEb6xR1eAuG6z2fq6K+PczRjT7 mBGGXiw3eoh5KQzRkUeLlHFOccLuHJNop3pyDRxYGFCvRyN3IVQtmxsRrrnq0jKWQ9ob /wp9JKrsBz48sDTr5EQTI6YcPGHFOBDMAmvUAnVOOgZ3ySgndLWzIGQvdy2raEOuTv6J kTJkcJs3dNbuP4GgZlPRlrz8OwzNG9mch6ILmrxq1qy6vkhm4khLf3cvgMOa/0LlBbbn BswA== 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 b8si7163264edz.89.2020.06.24.05.34.47; Wed, 24 Jun 2020 05:35:11 -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 S2403819AbgFXMeH (ORCPT + 99 others); Wed, 24 Jun 2020 08:34:07 -0400 Received: from mail-qt1-f196.google.com ([209.85.160.196]:38534 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388761AbgFXMeF (ORCPT ); Wed, 24 Jun 2020 08:34:05 -0400 Received: by mail-qt1-f196.google.com with SMTP id z2so1484338qts.5; Wed, 24 Jun 2020 05:34:05 -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=r8hAW61/4BUI+NbyFnYc6YqQQjo8d8HK1rSbMU2IkRk=; b=DiHfLU1fxBkDc320X8WPOpj7EmmwPUe3YGc4AtX0OQamNzH0GcM46K/GgOMUDGI40v +n/Bzqnl9GIeLlEL2nRP0FcjBR0Fif0m1FFpNcw2z0D0rFChPGGfGMQ46LYSfneGsRAL janHdWU72hVTr5oVG2FMytgKIIw3/+EiwCBjkRmDzxdfGWMbVXbKqLbTmyEPJL8MQAJn AkoSDxxLaOD1216aiODskcCiqRgy0vDSxSwjO5zJjuFSKOEqD7wuEAjsZeAsCJJzS4XP jeOlxiLdHTg2nabm3DH/PLRDqZqU7p0Jx+bU3okMJT3aTrbaM/fz8x1C4ZLBpnPLaMzz +2Cw== X-Gm-Message-State: AOAM530c9J7LJ1p0706DAI/qzVQb6vsTyUNRSbHt8HRe0JgGqdG9UCJN Eu/36Nk6yzp/hfdHNBjnFbc= X-Received: by 2002:aed:25a2:: with SMTP id x31mr24822436qtc.96.1593002044717; Wed, 24 Jun 2020 05:34:04 -0700 (PDT) Received: from localhost.localdomain ([185.248.161.177]) by smtp.gmail.com with ESMTPSA id x26sm3354512qtr.4.2020.06.24.05.33.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jun 2020 05:34:04 -0700 (PDT) From: Alexander Popov To: Kees Cook , Jann Horn , 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 v2 1/5] gcc-plugins/stackleak: Don't instrument itself Date: Wed, 24 Jun 2020 15:33:26 +0300 Message-Id: <20200624123330.83226-2-alex.popov@linux.com> X-Mailer: git-send-email 2.25.4 In-Reply-To: <20200624123330.83226-1-alex.popov@linux.com> References: <20200624123330.83226-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 Acked-by: Kees Cook --- kernel/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/Makefile b/kernel/Makefile index f3218bc5ec69..155b5380500a 100644 --- a/kernel/Makefile +++ b/kernel/Makefile @@ -125,6 +125,7 @@ obj-$(CONFIG_WATCH_QUEUE) += watch_queue.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 KCSAN_SANITIZE_stackleak.o := n -- 2.25.4