Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp318111ybt; Wed, 17 Jun 2020 01:33:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy3dWU8HNI4i34tqu6XlUUQw4Dn4CJqi2/fDigkP5RAdcYNtFSDdwo4E2fkxTqbah9wihm9 X-Received: by 2002:a17:906:2e81:: with SMTP id o1mr6164495eji.362.1592382781575; Wed, 17 Jun 2020 01:33:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592382781; cv=none; d=google.com; s=arc-20160816; b=viMeZsr1Rjo4JyEEzLFhokcC+ihuZXsluVRlRBwFyDWg3bfkfybBgxG8QAZ9vySszz P2epKBZmEMaRcE6D2IOkeKyuaIUuxomzWtgDnSgjGCOlFvV5OvTDQWf93CSZ4JIC/+JV ZpkU3FsOEdL9voOSA2H06dI5HKWUrHQ2s8oCopRdPkM4g+R5zR3DG+fQih/++Fe7oFqn 9S7D0thopG3kC+ZzhrfupfHMknG7Mlkb/R2zWFuPAsBShCgD9aAkBPW1oA4doBvTQ6T1 oCKpOY/NPYLWUjrbOLl1JKGm1bAOYz88o6jXKK903VF4c/8TcdE555nia3dNenGqeCiF Vy5g== 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=J3wZzFER6xeFh5hLb+ABRtDs+6s5CaFq9G6n9spr/Ys=; b=vSWBEL8KS+S9pnbHZ+hBciX0FITxTTg2KBCZjuEvrThOXCLCN6YmvVuhWetKlApLbA 476+/PYh32B0n/Nu6Sy9FN1kO4UFXMwA4eBdhnFa+nByD7GFTLivtEVxIbzcUS1wL0m8 q+kLPzXgdA5VVXTjsTvr5l4CRw0LSb8luO5gXidfarfAW8VOlnue/7FSmPQXsTr+LiSY GkSvSzk+LNTuzEZMuLnP7EdMbL/0EQ6/JCAXjpLbHTMZhlCgvnYkyQDznKHMrIcB6Sqj mcY3RD5uIOC/6yf+RMNHEqTx55hP+HksQ1QWoH9+eUWKFmeLNoATyo5YKdbxBs3bwp2x +t6w== 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 k26si12730607ejv.109.2020.06.17.01.32.38; Wed, 17 Jun 2020 01:33:01 -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 S1726308AbgFQIax (ORCPT + 99 others); Wed, 17 Jun 2020 04:30:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725846AbgFQIaw (ORCPT ); Wed, 17 Jun 2020 04:30:52 -0400 Received: from Galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 53801C061573; Wed, 17 Jun 2020 01:30:52 -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 1jlTSy-0004br-Jm; Wed, 17 Jun 2020 10:30:40 +0200 Received: from [127.0.1.1] (localhost [IPv6:::1]) by tip-bot2.lab.linutronix.de (Postfix) with ESMTP id 1C1971C0089; Wed, 17 Jun 2020 10:30:40 +0200 (CEST) Date: Wed, 17 Jun 2020 08:30:39 -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] compiler_attributes.h: Support no_sanitize_undefined check with GCC 4 Cc: kernel test robot , Marco Elver , "Peter Zijlstra (Intel)" , Miguel Ojeda , x86 , LKML In-Reply-To: <20200615231529.GA119644@google.com> References: <20200615231529.GA119644@google.com> MIME-Version: 1.0 Message-ID: <159238263982.16989.12249907300190284430.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: 33aea07f30c261eff7ba229f19fd1b161e0fb851 Gitweb: https://git.kernel.org/tip/33aea07f30c261eff7ba229f19fd1b161e0fb851 Author: Marco Elver AuthorDate: Tue, 16 Jun 2020 01:15:29 +02:00 Committer: Peter Zijlstra CommitterDate: Tue, 16 Jun 2020 15:35:02 +02:00 compiler_attributes.h: Support no_sanitize_undefined check with GCC 4 UBSAN is supported since GCC 4.9, which unfortunately did not yet have __has_attribute(). To work around, the __GCC4_has_attribute workaround requires defining which compiler version supports the given attribute. In the case of no_sanitize_undefined, it is the first version that supports UBSAN, which is GCC 4.9. Reported-by: kernel test robot Signed-off-by: Marco Elver Signed-off-by: Peter Zijlstra (Intel) Reviewed-by: Miguel Ojeda Link: https://lkml.kernel.org/r/20200615231529.GA119644@google.com --- include/linux/compiler_attributes.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/compiler_attributes.h b/include/linux/compiler_attributes.h index cdf0165..c8f03d2 100644 --- a/include/linux/compiler_attributes.h +++ b/include/linux/compiler_attributes.h @@ -40,6 +40,7 @@ # define __GCC4_has_attribute___noclone__ 1 # define __GCC4_has_attribute___nonstring__ 0 # define __GCC4_has_attribute___no_sanitize_address__ (__GNUC_MINOR__ >= 8) +# define __GCC4_has_attribute___no_sanitize_undefined__ (__GNUC_MINOR__ >= 9) # define __GCC4_has_attribute___fallthrough__ 0 #endif