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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8CCC0C433F5 for ; Wed, 15 Dec 2021 14:43:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243473AbhLOOnp (ORCPT ); Wed, 15 Dec 2021 09:43:45 -0500 Received: from foss.arm.com ([217.140.110.172]:53888 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243531AbhLOOnd (ORCPT ); Wed, 15 Dec 2021 09:43:33 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 2E3D61FB; Wed, 15 Dec 2021 06:43:33 -0800 (PST) Received: from FVFF77S0Q05N (unknown [10.57.67.176]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 648A33F774; Wed, 15 Dec 2021 06:43:28 -0800 (PST) Date: Wed, 15 Dec 2021 14:43:25 +0000 From: Mark Rutland To: Marco Elver Cc: Alexander Potapenko , Alexander Viro , Andrew Morton , Andrey Konovalov , Andy Lutomirski , Ard Biesheuvel , Arnd Bergmann , Borislav Petkov , Christoph Hellwig , Christoph Lameter , David Rientjes , Dmitry Vyukov , Eric Dumazet , Greg Kroah-Hartman , Herbert Xu , Ilya Leoshkevich , Ingo Molnar , Jens Axboe , Joonsoo Kim , Kees Cook , Matthew Wilcox , "Michael S. Tsirkin" , Pekka Enberg , Peter Zijlstra , Petr Mladek , Steven Rostedt , Thomas Gleixner , Vasily Gorbik , Vegard Nossum , Vlastimil Babka , linux-mm@kvack.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 12/43] kcsan: clang: retire CONFIG_KCSAN_KCOV_BROKEN Message-ID: References: <20211214162050.660953-1-glider@google.com> <20211214162050.660953-13-glider@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-arch@vger.kernel.org On Wed, Dec 15, 2021 at 02:39:43PM +0100, Marco Elver wrote: > On Wed, 15 Dec 2021 at 14:33, Mark Rutland wrote: > > > > On Tue, Dec 14, 2021 at 05:20:19PM +0100, Alexander Potapenko wrote: > > > kcov used to be broken prior to Clang 11, but right now that version is > > > already the minimum required to build with KCSAN, that is why we don't > > > need KCSAN_KCOV_BROKEN anymore. > > > > Just to check, how is that requirement enforced? > > HAVE_KCSAN_COMPILER will only be true with Clang 11 or later, due to > no prior compiler having "-tsan-distinguish-volatile=1". I see -- could we add wording to that effect into the commit messge? > > I see the core Makefiles enforce 10.0.1+, but I couldn't spot an explicit > > version dependency in Kconfig.kcsan. > > > > Otherwise, this looks good to me! > > I think 5.17 will be Clang 11 only, so we could actually revert > ea91a1d45d19469001a4955583187b0d75915759: > https://lkml.kernel.org/r/Yao86FeC2ybOobLO@archlinux-ax161 > > I should resend that to be added to the -kbuild tree. FWIW, that also works for me. Thanks, Mark.