Re: [PATCH kcsan 0/10] KCSAN updates for v5.9

From: Paul E. McKenney
Date: Wed Jun 24 2020 - 16:08:12 EST


On Wed, Jun 24, 2020 at 12:02:36PM -0700, Paul E. McKenney wrote:
> On Mon, Jun 22, 2020 at 05:43:10PM -0700, Paul E. McKenney wrote:
> > Hello!
> >
> > This series provides KCSAN updates:
>
> And three more, so that GCC can join Clang in the KCSAN fun.
>
> > 1. Annotate a data race in vm_area_dup(), courtesy of Qian Cai.
> >
> > 2. x86/mm/pat: Mark an intentional data race, courtesy of Qian Cai.
> >
> > 3. Add ASSERT_EXCLUSIVE_ACCESS() to __list_splice_init_rcu().
> >
> > 4. Add test suite, courtesy of Marco Elver.
> >
> > 5. locking/osq_lock: Annotate a data race in osq_lock.
> >
> > 6. Prefer '__no_kcsan inline' in test, courtesy of Marco Elver.
> >
> > 7. Silence -Wmissing-prototypes warning with W=1, courtesy of Qian Cai.
> >
> > 8. Rename test.c to selftest.c, courtesy of Marco Elver.
> >
> > 9. Remove existing special atomic rules, courtesy of Marco Elver.
> >
> > 10. Add jiffies test to test suite, courtesy of Marco Elver.
>
> 11. Re-add GCC as a supported compiler.
>
> 12. Simplify compiler flags.
>
> 13. Disable branch tracing in core runtime.

All three of which, I should hasten to add, are courtesy of Marco Elver.

> Please note that using GCC for KCSAN requires building your own compiler
> from recent mainline.

Thanx, Paul

> ------------------------------------------------------------------------
> The added three (#11-#13) only:
> ------------------------------------------------------------------------
>
> Documentation/dev-tools/kcsan.rst | 3 ++-
> kernel/kcsan/Makefile | 6 +++---
> lib/Kconfig.kcsan | 3 ++-
> scripts/Makefile.kcsan | 2 +-
> 4 files changed, 8 insertions(+), 6 deletions(-)