Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2445041ybt; Tue, 16 Jun 2020 06:24:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxwAg/+9FSnfhoHIXviuALcEJf2eeeVlao1aJHwNGwfDHy74V64jWg3OvpDMpz2skNPhN82 X-Received: by 2002:a17:906:2e1a:: with SMTP id n26mr2646539eji.425.1592313872296; Tue, 16 Jun 2020 06:24:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592313872; cv=none; d=google.com; s=arc-20160816; b=X4Y/4Pd3xUV+oiZQ6jlNzQpZ5vSkxgtgayJomF4amQ7ah3/b549o/dcDWs1zChLEau JSJlfORQWCMeVk2v0rVzrnzU7jarYN8lFjNGixvkEuy+PpC6AjOQPuAbgxw21ukAYswx BbwrcRY7+0jO7TkOnKwqVko9ceH8Udzj2WBXo5lAMyWZjgsdATZVNpb62iDSLV6I7DTg hiHnAa3+vEcuh7pQt+PM2iUb1Wqb6CtxpBNVuyzvOAjctX8J6C34X2tP6u2xQUT8BZiE OuGCa1VnrjNYp1AVNX9U1puB2c1gDgPCsNvohbeQlCyo2/G03jxLmgqkRTsYKpy4q7VV ciIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=QOrBjLsZOcLkb+bVnZ9gACcB3pi6tQLW9rAEtEDmuaA=; b=OuY0h7TozELX0h9z5eD513r/DCRtK49AvV25pEWddCL+1A1w9Rj1sqv5FoVrzPZPhN aaw+gPjZqPQCWZ/L4YjROiN5eFQ3d3In38AIsdQmxcRm7RnWmqM5onj4w9mUEwjHRK/s xFaZ+3YPQ4EKxX+P6qgLikr+SaH//c3JEVziXbnrRajww88BE4zYc3S5VAnRL2/H+EU1 BqTuV6gMPVDYtJL/mLkoLxPeQfwoQb+UPSwcAvqC8Fur1wsa5dCxvkezTcA0pFxA9nCc Yxho90bYq7sUvGHs8JosfVC7WI7wrUjFvCnAdD1ZEYAtfOEHD45e+2zEvNqLH/8MHO+Q JRbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=M6kPmDoz; 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 dk3si9591448edb.580.2020.06.16.06.24.08; Tue, 16 Jun 2020 06:24:32 -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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=M6kPmDoz; 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 S1727966AbgFPNT1 (ORCPT + 99 others); Tue, 16 Jun 2020 09:19:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51678 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726052AbgFPNT0 (ORCPT ); Tue, 16 Jun 2020 09:19:26 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B9ED2C061573 for ; Tue, 16 Jun 2020 06:19:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=QOrBjLsZOcLkb+bVnZ9gACcB3pi6tQLW9rAEtEDmuaA=; b=M6kPmDoznMBMoy9sJaehnjwn7/ 8k247TpaB/vcK26oIp+04os2EFFKkmHeQHAC0H5WKmruH744IYoJAqTVGJ+9kWK76nqBzxva6nm+M H985uOOFcDHZaS+6VWM+jUa7qrlCu3Akfjxj1/S38FQH3jfcvAT+uramkCt55q2bulbYEhukm+aN/ bXw/hj1QYm2HkdcbVuAsYk193WNLwrnw6SCpfTGyergO7maAL/C1nIS+S199bKx+XrBaZZCc1rrlS U48CJi6LxQkeQ91HMWq/QnoxCrZnC2InKwIfbtWTe2dX4JhEFg38bSE7gwGYoNbmlIrqcAqy+H3Kj 2tIahr6g==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jlBUp-0004JR-Cb; Tue, 16 Jun 2020 13:19:23 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 4AB86301A32; Tue, 16 Jun 2020 15:19:21 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 3315C29C11D62; Tue, 16 Jun 2020 15:19:21 +0200 (CEST) Date: Tue, 16 Jun 2020 15:19:21 +0200 From: Peter Zijlstra To: Marco Elver Cc: kernel test robot , kbuild-all@lists.01.org, Miguel Ojeda , linux-kernel@vger.kernel.org, Thomas Gleixner Subject: Re: [PATCH] compiler_attributes.h: Support no_sanitize_undefined check with GCC 4 Message-ID: <20200616131921.GV2531@hirez.programming.kicks-ass.net> References: <202006160328.6MfJNuqX%lkp@intel.com> <20200615231529.GA119644@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200615231529.GA119644@google.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 16, 2020 at 01:15:29AM +0200, Marco Elver wrote: > 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 > --- > > Doing a 'make W=1' with GCC 4.9 and the provided config fixes the build > robot's report. > > Peter: Feel free to either squash this patch into the one adding > __no_sanitize_undefined or apply on top. Yeah, argh! So I only saw this thread now, even though I'd already pushed out x86/entry to tip last night due to getting: 301805 N + Jun 16 kernel test rob (5.8K) [peterz-queue:x86/entry] BUILD SUCCESS 8e8bb06d199a5aa7a534aa3b3fc0abbbc11ca438 Why that thing is claiming SUCCESS when it introduces a build error I don't know. Anyway, let me go push this thing on top.