Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2004693ybt; Mon, 15 Jun 2020 15:34:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwuT/wJuE0weTb8DqZ64TMfLX0aTEMV3acXRnjw/g4GyO3iMgTdkWZh7ZBrMqe+/zAqnjGm X-Received: by 2002:a17:906:1d41:: with SMTP id o1mr9122486ejh.477.1592260455166; Mon, 15 Jun 2020 15:34:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592260455; cv=none; d=google.com; s=arc-20160816; b=w9PNCIej2tYRsw4EtjUvN77o0jPPvPo/K55yJGgdEaUqht1mS94TWZqKa5edHdmO7M vy3hOLRWQAPKnDjquivLe9486MSvVRfBCF8ph2uiT9rBjWVcG5hXfTZAFhV00yBrCxSa mWkSHnudNHgmFZuT7dRsMY+2UFFTqea16uX8JCdhFW+RmKfAaz8s9pSK89utZBxig5kP hODB1jn+iQDyxY4oCaewR+9KyPDo9dcinD1tYEOSsvaJV8psaf+tuxTSjugF2HQXTBQM B0zbBO2VurriGER5ZfVO/e7EqrIiBHjNPOYpv2j9Q9v+3IPF3FjtcU4eEq9wVHOAdTdl 6wRQ== 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 :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:date; bh=FuM90EMJgjCmVW85o/oCqLZWGOo/jgzC3Qd/Us8u5Dg=; b=DbhnnBRoTjjxpttEc5KWH3ZmBrXumn2Pxt7YqEqHC3SVJ/Yp1ZYDU+yhYUZU+Kh5tR k27LqDsWJ00zkVSsN/R8g6UZvVJvyYqj6qYUgC4IEyAUpfjVkPEnJ9dR2B1sCa1K7jXr AGOrXEGqqxzGc+k+5i4IUDpEVJbBY71F1qlJ/GTlL5ZQLtQUVTZHgHw8ByOekOOj57n9 Y0hfRYCT0aWKo9nC9CzlMxqBoBEpT5afTqkzKdBR99w4kwXH1qaAleiZIfpfqyYc53iq nnZdfr3IaISRVXi76ZPlgizOyW7QngilBMOkqcZKKBzaDyNz5lxKoYYNa4TaE3wF9VlV ANlg== 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 i3si7074428eja.734.2020.06.15.15.33.53; Mon, 15 Jun 2020 15:34:15 -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 S1726651AbgFOWcD (ORCPT + 99 others); Mon, 15 Jun 2020 18:32:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56258 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726640AbgFOWcB (ORCPT ); Mon, 15 Jun 2020 18:32:01 -0400 Received: from Galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A6DA5C061A0E; Mon, 15 Jun 2020 15:32:00 -0700 (PDT) Received: from [5.158.153.53] (helo=tip-bot2.lab.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1jkxdq-0006xl-EZ; Tue, 16 Jun 2020 00:31:48 +0200 Received: from [127.0.1.1] (localhost [IPv6:::1]) by tip-bot2.lab.linutronix.de (Postfix) with ESMTP id DE4561C06DA; Tue, 16 Jun 2020 00:31:44 +0200 (CEST) Date: Mon, 15 Jun 2020 22:31:44 -0000 From: "tip-bot2 for Marco Elver" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/entry] kasan: Bump required compiler version Cc: Peter Zijlstra , Marco Elver , Nick Desaulniers , Andrey Konovalov , x86 , LKML In-Reply-To: <20200602175859.GC2604@hirez.programming.kicks-ass.net> References: <20200602175859.GC2604@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Message-ID: <159226030455.16989.7282639700613712324.tip-bot2@tip-bot2> X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the x86/entry branch of tip: Commit-ID: 7b861a53e46b6b42ab8560b105af308cb72d7285 Gitweb: https://git.kernel.org/tip/7b861a53e46b6b42ab8560b105af308cb72d7285 Author: Marco Elver AuthorDate: Thu, 04 Jun 2020 07:58:10 +02:00 Committer: Peter Zijlstra CommitterDate: Mon, 15 Jun 2020 14:10:09 +02:00 kasan: Bump required compiler version Adds config variable CC_HAS_WORKING_NOSANITIZE_ADDRESS, which will be true if we have a compiler that does not fail builds due to no_sanitize_address functions. This does not yet mean they work as intended, but for automated build-tests, this is the minimum requirement. For example, we require that __always_inline functions used from no_sanitize_address functions do not generate instrumentation. On GCC <= 7 this fails to build entirely, therefore we make the minimum version GCC 8. Suggested-by: Peter Zijlstra Signed-off-by: Marco Elver Signed-off-by: Peter Zijlstra (Intel) Reviewed-by: Nick Desaulniers Acked-by: Andrey Konovalov Link: https://lkml.kernel.org/r/20200602175859.GC2604@hirez.programming.kicks-ass.net --- lib/Kconfig.kasan | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/Kconfig.kasan b/lib/Kconfig.kasan index 81f5464..af0dd09 100644 --- a/lib/Kconfig.kasan +++ b/lib/Kconfig.kasan @@ -15,11 +15,15 @@ config CC_HAS_KASAN_GENERIC config CC_HAS_KASAN_SW_TAGS def_bool $(cc-option, -fsanitize=kernel-hwaddress) +config CC_HAS_WORKING_NOSANITIZE_ADDRESS + def_bool !CC_IS_GCC || GCC_VERSION >= 80000 + config KASAN bool "KASAN: runtime memory debugger" depends on (HAVE_ARCH_KASAN && CC_HAS_KASAN_GENERIC) || \ (HAVE_ARCH_KASAN_SW_TAGS && CC_HAS_KASAN_SW_TAGS) depends on (SLUB && SYSFS) || (SLAB && !DEBUG_SLAB) + depends on CC_HAS_WORKING_NOSANITIZE_ADDRESS help Enables KASAN (KernelAddressSANitizer) - runtime memory debugger, designed to find out-of-bounds accesses and use-after-free bugs.