Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1514511ybg; Tue, 2 Jun 2020 12:04:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxlyxUGSQ5cemJGZ6l0H6dq5XKic2HE+jr2jLRBZkdeANyUrpjrZlhQ+7YDug1Hy5KChMEN X-Received: by 2002:aa7:c254:: with SMTP id y20mr12958459edo.363.1591124662279; Tue, 02 Jun 2020 12:04:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591124662; cv=none; d=google.com; s=arc-20160816; b=MSyNfkFebQzy2dl63OKukZ8MvpzNoHv9ZopDLyfsV/yWi7Q0huofWbKL9N6qW9WEdn r6TSL7EgNLsHTSw6fQcvZaTsksCtWNyE8m1wN/AzpiUWlqp8sBljoY7eKdkcQfcEJyGZ R7tvrzkiM3gGOuQWClgtHOKLwKQI8cE62mNlmP2jPpoX1IELTiRnAzMSRoxUgPRjjVeY bG0kyzxJ0ZZzSAz7uT6w0Fc1RFjawfEaSPh48vWx4sM1sZ5V27Qua4yF2crW06yrgE9I Jtq2IYD5OSE6TNocPWtFPdlCeIhcsz77E3+0moczXbV0oJkVL9m2/s1YlsKqmOCprm8r PJcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=fQp0wr55zKHTmcfSyP/aceC1T2FCV6dcgdAfq1cn0oY=; b=Rmbg9LT7X2nyUqEEKd2m+1q+xwyeduZvqV6po8UeoPsgcAJ+XiYjGBAXggAAeQW0uA Vxl8oLLL+4bNkQbTspni5eMtnYH0HvzPOb/dmo6Hcjq3tpInsGkVwP/IH2MeimFguSFJ EHw3hXF8m7aISYGjyqE5xekS1dJ33j6xM8eA6nRJJhJ3hU3Dw/aWlKxvJKfYUNmDO242 SrvZTdDF2yzfR62JhTJKlqLX55HxG/rhzAFZmjz1j9iPp2cMm3d8TBDqwnesq3F5LA8s Qpg999L3f8Ot0X10b48WJsCnGBivb5Y5SCQ2YlhAQO5nluKuG1eDQ3c9iC9RsTlIKl0I khoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=vrumBDaB; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id pw8si2021683ejb.83.2020.06.02.12.03.58; Tue, 02 Jun 2020 12:04:22 -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=pass header.i=@google.com header.s=20161025 header.b=vrumBDaB; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727813AbgFBTCE (ORCPT + 99 others); Tue, 2 Jun 2020 15:02:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726267AbgFBTCE (ORCPT ); Tue, 2 Jun 2020 15:02:04 -0400 Received: from mail-oi1-x242.google.com (mail-oi1-x242.google.com [IPv6:2607:f8b0:4864:20::242]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A93EC08C5C0 for ; Tue, 2 Jun 2020 12:02:04 -0700 (PDT) Received: by mail-oi1-x242.google.com with SMTP id d67so7978409oig.6 for ; Tue, 02 Jun 2020 12:02:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=fQp0wr55zKHTmcfSyP/aceC1T2FCV6dcgdAfq1cn0oY=; b=vrumBDaBdLtHuUdeqmBPBgdG37JoG5BinLfxYXZYPf128ntHICjAWuUP7iTiOGIWVd GcIbcddc42DLROf6kwk/K1q3nEmaspF2gqpezTcwJOUG7Bb7audPHhgV1f/x82ZrUcCW pIUASWlOZvBOQnFwb5u/u6Exwq+l/jtgXYxMQvTeHHLvRilWF0fO54H6wgVvx03DhHPP XfM/xVUB9UuQw4rlfl9u8bV+9Zt+HLpuxmQS4BBQRFFFBEqT3JMIGftqG4KMPDK8nJMk eqcQj0oT9KONh9qGv0w5cTvXYOHx1pUDxbwLFw+y1IbF03xcqxzjRsbqNFqp3N7Lz5kr GJaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=fQp0wr55zKHTmcfSyP/aceC1T2FCV6dcgdAfq1cn0oY=; b=MyukOO5EjU6OpeW29vlAEcBV8OM588DiQI9afsOXZcDutJMWp3kZ/2cVcFQ6IjhX9E yGZfWCtpnqVRxwD6tZrofmg3dOSS6KpNtHw2x+ajGkynZ3tvB8DDPFRQqD0XjA0N/o3i Bs08L5gpQbMcGZVLD0d6gH768flF5Fv9FkH0dZ1Qnjk4NMpvUGGim+xU62hm1i3KEJtQ yrCKzoWBkxIG7JbbYJS856VJOmxFD4YPPh8OtnPzBGmmTPKeLjn8uSFdgaNLVZBYCyAf w+WpghK2t3V7p3kT5apvNVXpDtFK6qKDbqSMKUl5vvm/pjs00Ht+UskffABSwpK+buyT 4ejQ== X-Gm-Message-State: AOAM530nf8STd7rNCzfMXAUiVFZr5cut8kxTGGad6Ahv39/yEIezKXMb zVR4u/M+GNwWNAql/ga2HjD5/eyjvT4WQVWamIOBmQ== X-Received: by 2002:aca:ebc5:: with SMTP id j188mr4030323oih.70.1591124523224; Tue, 02 Jun 2020 12:02:03 -0700 (PDT) MIME-Version: 1.0 References: <20200602184409.22142-1-elver@google.com> In-Reply-To: From: Marco Elver Date: Tue, 2 Jun 2020 21:01:51 +0200 Message-ID: Subject: Re: [PATCH -tip 1/2] Kconfig: Bump required compiler version of KASAN and UBSAN To: Nick Desaulniers Cc: Will Deacon , Peter Zijlstra , Borislav Petkov , Thomas Gleixner , Ingo Molnar , clang-built-linux , "Paul E. McKenney" , Dmitry Vyukov , Alexander Potapenko , Andrey Konovalov , kasan-dev , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2 Jun 2020 at 20:57, 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/ > ) __always_inline void foo(void) {} __no_sanitize_address void bar(void) { foo(); } where __no_sanitize_address is implied by 'noinstr' now, and 'noinstr' is no longer just x86. Therefore, it's broken on *all* architectures. The compiler will just break the build with an error. I don't think we can fix that. Thanks, -- Marco