From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.1 required=3.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1,USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D4495C433DF for ; Tue, 23 Jun 2020 11:25:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id AD03220771 for ; Tue, 23 Jun 2020 11:25:01 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="OYr9flTk" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732361AbgFWLZA (ORCPT ); Tue, 23 Jun 2020 07:25:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732189AbgFWLY6 (ORCPT ); Tue, 23 Jun 2020 07:24:58 -0400 Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A99CDC061795 for ; Tue, 23 Jun 2020 04:24:56 -0700 (PDT) Received: by mail-wr1-x441.google.com with SMTP id a6so18155619wrm.4 for ; Tue, 23 Jun 2020 04:24:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=LISOo0uegZi3am5M7TOWf7OzM2rHxLFNz15tOWhpgHY=; b=OYr9flTkc67fJMXrndR42JOdtI/v8Gh6pi/3xD5WK4OjwlkH2dyWXZKS2UHVvxdPDg JotNaQttXi2ukOKmAWJlT8e4pRgnQhbjJvJmklJTAQuhS5QuT9f8pUug3+WKjXges8Ab gHQQQOMJxaFVRFQ3bs8NUd+gl4TxHdglSpzvmKs6BoPaOKAi+9AlmnQCx3P9f2qEA+g6 VardcbztghtjzkqwQjJZ71VOGA+aIkfvPWnCyiey7hPNBW6sc/qyWTDL7o4/XMLO6tHI WrGJ78xYaksF2YPzb/IHalGIOKQG/vN0Z82hf9wmv3XvLJNetKqSAvYI2Z7GA/9ehSUf Va6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=LISOo0uegZi3am5M7TOWf7OzM2rHxLFNz15tOWhpgHY=; b=lw4BOdR2e2KE9dmHrc+8hIOyzAw7y3t0gym+zUmM9uwpZEdu5/WMkp7WmpPRbYmZ+2 QNvCgLjCVeKDFjT9eJH98CqkxfpYyjC1vba4EX96L2+DhUCs9BfclvngAPHAoH3AhmET RJ574QCgHSEjYaF4SvQ9tN18QauEB8fNoR4ZSDpWfHtyTQLHJ4cUbrGYtPEkKrRoUluP YkMErr8S+qObOPyatWS7YwpeoQBbA8Dty/u12y2h8l04oRH4IHFSXYllHOETy1iYCfHr +T2jXVzj13vtmkHY0Qwr6Qa3yx5Nqa4Mg2X3FiV9bOuuhOqhHRxSrgvoFe5JC2nQYLaK nA7w== X-Gm-Message-State: AOAM530SHj47qy7uQmTHczctpEx5vAXe2aEo+d3koiwuKbwVytLbbpzp mOLaz5WpYntqdDIiNv4hFZpQ1Q== X-Google-Smtp-Source: ABdhPJytDIeaxmPu6ekWJ4tCMSlDCsjdYYX0RSg8oGW12mCaAKj/1NHCrq4BCADMHZL/uI1G/DCbDw== X-Received: by 2002:a5d:40cb:: with SMTP id b11mr12984601wrq.263.1592911495061; Tue, 23 Jun 2020 04:24:55 -0700 (PDT) Received: from elver.google.com ([100.105.32.75]) by smtp.gmail.com with ESMTPSA id v20sm22540379wrb.51.2020.06.23.04.24.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jun 2020 04:24:54 -0700 (PDT) Date: Tue, 23 Jun 2020 13:24:48 +0200 From: Marco Elver To: Stephen Rothwell , Peter Zijlstra Cc: syzbot , bp@alien8.de, hpa@zytor.com, jmattson@google.com, joro@8bytes.org, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-next@vger.kernel.org, mingo@redhat.com, pbonzini@redhat.com, sean.j.christopherson@intel.com, syzkaller-bugs@googlegroups.com, tglx@linutronix.de, vkuznets@redhat.com, wanpengli@tencent.com, x86@kernel.org Subject: Re: linux-next build error (9) Message-ID: <20200623112448.GA208112@elver.google.com> References: <000000000000c25ce105a8a8fcd9@google.com> <20200622094923.GP576888@hirez.programming.kicks-ass.net> <20200623124413.08b2bd65@canb.auug.org.au> <20200623093230.GD4781@hirez.programming.kicks-ass.net> <20200623201730.6c085687@canb.auug.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <20200623201730.6c085687@canb.auug.org.au> User-Agent: Mutt/1.13.2 (2019-12-18) Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org On Tue, Jun 23, 2020 at 08:17PM +1000, Stephen Rothwell wrote: > Hi Peter, >=20 > On Tue, 23 Jun 2020 11:32:30 +0200 Peter Zijlstra = wrote: > > > > I suppose the next quest is finding a s390 compiler version that works > > and then bumping the version test in the aforementioned commit. >=20 > Not a lot of help, but my Debian cross compiler seems to work: >=20 > $ s390x-linux-gnu-gcc --version > s390x-linux-gnu-gcc (Debian 9.3.0-13) 9.3.0 Rummaging through changelogs led me to 8.3.0 as the first good GCC. Also confirmed by building that version and compiling a file that breaks with older versions. It seems the first major version to fix it was 9, but backported to 8.3. This is for all architectures. Suggested patch below. Thanks, -- Marco ------ >8 ------ =46rom: Marco Elver Date: Tue, 23 Jun 2020 12:57:42 +0200 Subject: [PATCH] kasan: Fix required compiler version The first working GCC version to satisfy CC_HAS_WORKING_NOSANITIZE_ADDRESS is GCC 8.3.0. Link: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D89124 Reported-by: Stephen Rothwell Signed-off-by: Marco Elver --- lib/Kconfig.kasan | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Kconfig.kasan b/lib/Kconfig.kasan index 7a496b885f46..19fba15e99c6 100644 --- a/lib/Kconfig.kasan +++ b/lib/Kconfig.kasan @@ -16,7 +16,7 @@ config CC_HAS_KASAN_SW_TAGS def_bool $(cc-option, -fsanitize=3Dkernel-hwaddress) =20 config CC_HAS_WORKING_NOSANITIZE_ADDRESS - def_bool !CC_IS_GCC || GCC_VERSION >=3D 80000 + def_bool !CC_IS_GCC || GCC_VERSION >=3D 80300 =20 config KASAN bool "KASAN: runtime memory debugger" --=20 2.27.0.111.gc72c7da667-goog