Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1526620ybg; Tue, 2 Jun 2020 12:24:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJypEWjutqXuRM95M2ynS/vdUWTKpDEspRpzL+rkcvzTly3tZENfmSegMN/EKABgLPxQsiQY X-Received: by 2002:a50:fe0d:: with SMTP id f13mr16527743edt.204.1591125867079; Tue, 02 Jun 2020 12:24:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591125867; cv=none; d=google.com; s=arc-20160816; b=xOZ8FZz1ulZHUd2BfNHin90yAnVVuFQGC3q3vm/+J1DTHGGDGDsnfJJIiG1wwsTf21 Bk7xhkVGICOWYR4KLbL5Fz/T2Z38S9us2kJXusgWP4W92BVUo8p2DcI6cDdRETcjiqlr v+T4tWBs43dqWRkmOUKYrCq18xvgdeR1s4jYgMJdfzsoxVvO/CyJuu866qEkYFHeRydl 5r/0u6BJHVWx680Fp+a554eCXAncVrL/mAOAlvWDkpaOlx9NBb7VcQeOqs0pi2cVE9hh B8MNegIZKRAEtaHZ15+vh0WVKbkmMLzcBZFDx8+1ofjuqFE7v3Uwnh8isctHGWxkpp/o GHIQ== 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=mG+CJQG33NKFFc3Wsgq89KyUGRH2llxotrBKMYPSKBw=; b=LvgKaN195WpZ0OvhfCKyM0F74u63s5F5mEcV/rPYd+PrLy6fIm5OWdtNn7W/yqyjcy vVbuVR/n7YQmd6EEvhC6N1OJGa4e322sX9vQxjnBcUw4PLgT25/qJl37wfMwHeI9Qs4r Iyk2WLZu4R6UBDxJZCpWa1DP0/nYta7t7vss0Ii6d7bfuAz9UzDNbQcDH4cUjSHmXkz3 cR9ZxeobK+M7Vcn7CqtM4JAs4EG91yfcbkS3EHC15PYfN/i8V6OI84IH2vEjIcdLFK93 PzHNdSpo/9ErVebDB6vZZaznFk7AEzMP8PHWSgfug26Bq6GeF6Nd/1yyiFIFew/qz+jP JwOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=A7zYw3qK; 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 d22si1957337edv.113.2020.06.02.12.24.03; Tue, 02 Jun 2020 12:24:27 -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=merlin.20170209 header.b=A7zYw3qK; 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 S1726839AbgFBTUF (ORCPT + 99 others); Tue, 2 Jun 2020 15:20:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47862 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726139AbgFBTUF (ORCPT ); Tue, 2 Jun 2020 15:20:05 -0400 Received: from merlin.infradead.org (unknown [IPv6:2001:8b0:10b:1231::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 29397C08C5C0 for ; Tue, 2 Jun 2020 12:20:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.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=mG+CJQG33NKFFc3Wsgq89KyUGRH2llxotrBKMYPSKBw=; b=A7zYw3qKvN+sUEEd1l+RDb7xsL nTFkluOFXaj/tHfRZFlcJGPKmJpZSfR1lk0UUp0UhtY8NQ6x03Mw9E93L2VmIo8drmuLlKP1Dtvmk JpmcVOexlW6P3nfG/ZqQeNQ0vBmszvXCkWHFijfdfirdbauPKM8VkwzNUb9RLGWR0US0MhY3dnzX/ K+imrPtq07+qEiZc7eDjx8GjRSVgi0zME5dC1rj1QqlRi+gULdNkkglEuCxNHeRPaLQUQoP9YF6Jq q5EMTWhQ7DdcWTtAl6vy4HQfOUU4bw2tIKA5uz2CEN3NiCXpuxnKOJEJvcJP8UcW3oHrw/K/GnJPp TXTmjbBQ==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jgCRn-0002rw-If; Tue, 02 Jun 2020 19:19:39 +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 40F5930047A; Tue, 2 Jun 2020 21:19:36 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 323CF202436F2; Tue, 2 Jun 2020 21:19:36 +0200 (CEST) Date: Tue, 2 Jun 2020 21:19:36 +0200 From: Peter Zijlstra To: Nick Desaulniers Cc: Marco Elver , Will Deacon , Borislav Petkov , Thomas Gleixner , Ingo Molnar , clang-built-linux , "Paul E. McKenney" , Dmitry Vyukov , Alexander Potapenko , Andrey Konovalov , kasan-dev , LKML Subject: Re: [PATCH -tip 1/2] Kconfig: Bump required compiler version of KASAN and UBSAN Message-ID: <20200602191936.GE2604@hirez.programming.kicks-ass.net> References: <20200602184409.22142-1-elver@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 02, 2020 at 11:57:15AM -0700, Nick Desaulniers wrote: > On Tue, Jun 2, 2020 at 11:44 AM 'Marco Elver' via Clang Built Linux > wrote: > > > > Adds config variable CC_HAS_WORKING_NOSANITIZE, which will be true if we > > have a compiler that does not fail builds due to no_sanitize 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 functions do not generate instrumentation. On GCC <= 7 this > > fails to build entirely, therefore we make the minimum version GCC 8. > > > > For KCSAN this is a non-functional change, however, we should add it in > > case this variable changes in future. > > > > Link: https://lkml.kernel.org/r/20200602175859.GC2604@hirez.programming.kicks-ass.net > > Suggested-by: Peter Zijlstra > > Signed-off-by: Marco Elver > > Is this a problem only for x86? If so, that's quite a jump in minimal > compiler versions for a feature that I don't think is currently > problematic for other architectures? (Based on > https://lore.kernel.org/lkml/20200529171104.GD706518@hirez.programming.kicks-ass.net/ > ) Currently x86 only, but I know other arch maintainers are planning to have a hard look at their code based on our findings.