Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp197860ybk; Tue, 19 May 2020 19:49:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzSvoCv4wdLJCB6xvnsrExgifyAFK9pXjkxB5w6VFJE+UROysmbh61O4LE45s/EocpMC2mk X-Received: by 2002:a17:906:2e46:: with SMTP id r6mr1951575eji.222.1589942974901; Tue, 19 May 2020 19:49:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589942974; cv=none; d=google.com; s=arc-20160816; b=yYZ2u89aPqFHy8mfFu54r2v8XkfgAM2wBDx2Jgm8BWaBGZtvXslRyjT/FY+CR6F8F/ H1G0x6NcOWWfleqbIhAZ/l4TK64YF6J1MdxLP9jkPdZIhy8d1ffFLJkEMFODij1VhYN1 TVVa+oAo47nhuVB7Z7mmDKJ/LMQGe2D80J+hHKhocbpl5W1a9TO9md5fZnSXAh64tRd1 rQvfFMtcmJDZ8SNASKwfeRIXwXm+nb31JYK7FZDONTnBzVC3TKBJpOXrdIkowRaup6Yd GRjLhx7gleZCo4/rRGiGUXU1MC+KItUqGXdmI81wm4GX3vmfEmbZPaiFBXVkKy5vXWza XAzg== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=U3JxxfWABjzw+muWBftLLoPg5L7tniD/yZsXvBpXo+8=; b=L5Qh/k/z2kd8GpaW0jH/bUhoAkold1bHe+QPcVkKtp46tf9HJxLgJPrhIdxba5+WGo CJ085ciVuPsUHB8TKtLzNy7/tUJI6lJ5ylCf4skVEeSPOSey2bwWNpCYF0awz8fjjGjB K/HRtIJK3OvSS1uy4jF3j7bKaeeZWDwBRcjG6iTd4HwIIX5DCVD2QsmNulikOANradmD hKp04VRhmljqf9I1EG+zLgdTxy9/JFZTxIsEeJADC3/BujVWZQfaGy8qFYBRnZp+32UX 8H6tW+Vzr9Q4oslNPhYurmggEMqo364aZjuA9/0PWnGYxWwzFPd1iXj6BNhjoa51pF8q h3fA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=slokoVWJ; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u23si1159801ejr.391.2020.05.19.19.49.12; Tue, 19 May 2020 19:49:34 -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=@gmail.com header.s=20161025 header.b=slokoVWJ; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728315AbgETCrl (ORCPT + 99 others); Tue, 19 May 2020 22:47:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59598 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726318AbgETCrl (ORCPT ); Tue, 19 May 2020 22:47:41 -0400 Received: from mail-pl1-x642.google.com (mail-pl1-x642.google.com [IPv6:2607:f8b0:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51BC6C061A0E for ; Tue, 19 May 2020 19:47:40 -0700 (PDT) Received: by mail-pl1-x642.google.com with SMTP id t16so723857plo.7 for ; Tue, 19 May 2020 19:47:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=U3JxxfWABjzw+muWBftLLoPg5L7tniD/yZsXvBpXo+8=; b=slokoVWJXaRttKsQqFtbb/IhJzyFeFiJdoTKI7HAt/WA2Zf1quWXNXytrZIKPCHZoL KSWsRvONvW4bnjCbl9iNys4AGIFQ/a7AcruxeYAOjQw0G7MJGRaHdSGv2D4EGb3vt/Oy 9COo1VAOs7jaZAy12bFZb+wP/cP0OkpAZYIQN9UMz0qAUtqUMiUuNDNk5LPeTPppqyLT 4fBr1ArE9MYD5bWkEUyPAHeF7PMA1MogRclTBEalp5sca+HFoq85fdl2D7zib9gGC5xy NqIZunM7PuIPI9TaAiRkhSYVZcUgSC2R2l+/3SvTWmD2oTZ90VuEoTXdWB004DgJ1oGW 9Lbw== 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; bh=U3JxxfWABjzw+muWBftLLoPg5L7tniD/yZsXvBpXo+8=; b=fzqos5PPBj4vPnAtuOirBztEVVaeCTzSxBx89eYRVvoLJMLANFIY065COIPBLjf+1D 5gukFTyByH4GjOXENWhCHqibT2B911TrsDixngoQbBdY/EZKB4HdRnlkve545JielqYT 2u0N7CI5YHEoGFS+lDVr0jF5qGXfa3UfkUxSZqnxEerRP2IntQ6WMoaKJw5TqIbi011/ sGa0sNjR12eckAWZKHCO/fxupzFi8gelpsWLDEPojAqHSqpO3KOyxu2WdegG15CdwvFD tU+QV3RB0BRoj6XwqsnnTjbqwHFWOFXpkgB3ZuM/HURXVsFshq695SFoFqP5dSCa0PT8 BhEQ== X-Gm-Message-State: AOAM533aMJjZtMQod0lyM/AjEJLWn0c4zv1fZ1iQ56VzH3rRffMmH7GA fYSDrzWQR+1v3srKEnxPmEBkqv9X X-Received: by 2002:a17:90b:110d:: with SMTP id gi13mr2587365pjb.131.1589942859725; Tue, 19 May 2020 19:47:39 -0700 (PDT) Received: from ubuntu-s3-xlarge-x86 ([2604:1380:4111:8b00::1]) by smtp.gmail.com with ESMTPSA id a2sm670964pfl.28.2020.05.19.19.47.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 May 2020 19:47:39 -0700 (PDT) Date: Tue, 19 May 2020 19:47:36 -0700 From: Nathan Chancellor To: Qian Cai Cc: Thomas Gleixner , Marco Elver , Peter Zijlstra , Linux Kernel Mailing List , kasan-dev , Will Deacon , "Paul E . McKenney" , Ingo Molnar , clang-built-linux@googlegroups.com Subject: Re: [PATCH] READ_ONCE, WRITE_ONCE, kcsan: Perform checks in __*_ONCE variants Message-ID: <20200520024736.GA854786@ubuntu-s3-xlarge-x86> References: <87y2pn60ob.fsf@nanos.tec.linutronix.de> <360AFD09-27EC-4133-A5E3-149B8C0C4232@lca.pw> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <360AFD09-27EC-4133-A5E3-149B8C0C4232@lca.pw> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 19, 2020 at 10:28:41PM -0400, Qian Cai wrote: > > > > On May 19, 2020, at 6:05 PM, Thomas Gleixner wrote: > > > > Yes, it's unfortunate, but we have to stop making major concessions just > > because tools are not up to the task. > > > > We've done that way too much in the past and this particular problem > > clearly demonstrates that there are limits. > > > > Making brand new technology depend on sane tools is not asked too > > much. And yes, it's inconvenient, but all of us have to build tools > > every now and then to get our job done. It's not the end of the world. > > > > Building clang is trivial enough and pointing the make to the right > > compiler is not rocket science either. > > Yes, it all make sense from that angle. On the other hand, I want to be focus on kernel rather than compilers by using a stable and rocket-solid version. Not mentioned the time lost by compiling and properly manage my own toolchain in an automated environment, using such new version of compilers means that I have to inevitably deal with compiler bugs occasionally. Anyway, it is just some other more bugs I have to deal with, and I don’t have a better solution to offer right now. Hi Qian, Shameless plug but I have made a Python script to efficiently configure then build clang specifically for building the kernel (turn off a lot of different things that the kernel does not need). https://github.com/ClangBuiltLinux/tc-build I added an option '--use-good-revision', which uses an older master version (basically somewhere between clang-10 and current master) that has been qualified against the kernel. I currently update it every Linux release but I am probably going to start doing it every month as I have written a pretty decent framework to ensure that nothing is breaking on either the LLVM or kernel side. $ ./build-llvm.py --use-good-revision should be all you need to get off the ground and running if you wanted to give it a shot. The script is completely self contained by default so it won't mess with the rest of your system. Additionally, leaving off '--use-good-revision' will just use the master branch, which can definitely be broken but not as often as you would think (although I totally understand wanting to focus on kernel regressions only). Cheers, Nathan