From: Nathan Chancellor <natechancellor@gmail.com>
To: Qian Cai <cai@lca.pw>
Cc: Thomas Gleixner <tglx@linutronix.de>,
Marco Elver <elver@google.com>,
Peter Zijlstra <peterz@infradead.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
kasan-dev <kasan-dev@googlegroups.com>,
Will Deacon <will@kernel.org>,
"Paul E . McKenney" <paulmck@kernel.org>,
Ingo Molnar <mingo@kernel.org>,
clang-built-linux@googlegroups.com
Subject: Re: [PATCH] READ_ONCE, WRITE_ONCE, kcsan: Perform checks in __*_ONCE variants
Date: Tue, 19 May 2020 19:47:36 -0700 [thread overview]
Message-ID: <20200520024736.GA854786@ubuntu-s3-xlarge-x86> (raw)
In-Reply-To: <360AFD09-27EC-4133-A5E3-149B8C0C4232@lca.pw>
On Tue, May 19, 2020 at 10:28:41PM -0400, Qian Cai wrote:
>
>
> > On May 19, 2020, at 6:05 PM, Thomas Gleixner <tglx@linutronix.de> 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
next prev parent reply other threads:[~2020-05-20 2:47 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-12 18:38 Marco Elver
2020-05-12 19:09 ` Peter Zijlstra
2020-05-19 21:10 ` Qian Cai
2020-05-19 21:25 ` Marco Elver
2020-05-19 21:45 ` Qian Cai
2020-05-19 22:05 ` Thomas Gleixner
2020-05-20 2:28 ` Qian Cai
2020-05-20 2:47 ` Nathan Chancellor [this message]
2020-05-20 3:16 ` Qian Cai
2020-05-20 3:44 ` Nathan Chancellor
2020-05-20 7:28 ` Marco Elver
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200520024736.GA854786@ubuntu-s3-xlarge-x86 \
--to=natechancellor@gmail.com \
--cc=cai@lca.pw \
--cc=clang-built-linux@googlegroups.com \
--cc=elver@google.com \
--cc=kasan-dev@googlegroups.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=paulmck@kernel.org \
--cc=peterz@infradead.org \
--cc=tglx@linutronix.de \
--cc=will@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®