Skip to content

KCSAN commits for v5.7

Paul E. McKenney lkml 1 version In review

Get series with b4
b4 am 20200309190359.GA5822@paulmck-ThinkPad-P72

Versions newest first

  1. v1 Latest32 patches 17 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/32kcsan: Prefer __always_inline for fast-pathkernel/kcsan/atomic.h kernel/kcsan/core.c kernel/kcsan/encoding.h+17 -170 replies
2/32kcsan: Show full access type in reportkernel/kcsan/core.c kernel/kcsan/kcsan.h kernel/kcsan/report.c+37 -230 replies
3/32kcsan: Rate-limit reporting per data raceskernel/kcsan/report.c lib/Kconfig.kcsan+110 -100 replies
4/32kcsan: Make KCSAN compatible with lockdepkernel/kcsan/core.c kernel/kcsan/report.c kernel/locking/Makefile+18 -20 replies
5/32kcsan: Address missing case with KCSAN_REPORT_VALUE_CHANGE_ONLYkernel/kcsan/report.c+20 -70 replies
6/32include/linux: Add instrumented.h infrastructureinclude/linux/instrumented.h+109 -00 replies
7/32asm-generic, atomic-instrumented: Use generic instrumented.hinclude/asm-generic/atomic-instrumented.h scripts/atomic/gen-atomic-instrumented.sh+194 -2200 replies
8/32asm-generic, kcsan: Add KCSAN instrumentation for bitopsinclude/asm-generic/bitops/instrumented-atomic.h include/asm-generic/bitops/instrumented-lock.h include/asm-generic/bitops/instrumented-non-atomic.h+20 -200 replies
9/32iov_iter: Use generic instrumented.hlib/iov_iter.c+4 -30 replies
10/32copy_to_user, copy_from_user: Use generic instrumented.hinclude/linux/uaccess.h lib/usercopy.c+11 -100 replies
11/32kcsan: Add docbook header for data_race()include/linux/compiler.h+8 -60 replies
12/32kcsan: Add option to assume plain aligned writes up to word size are atomickernel/kcsan/core.c lib/Kconfig.kcsan+37 -120 replies
13/32kcsan: Clarify Kconfig option KCSAN_IGNORE_ATOMICSlib/Kconfig.kcsan+13 -30 replies
14/32kcsan: Cleanup of main KCSAN Kconfig optionlib/Kconfig.kcsan+8 -50 replies
15/32kcsan: Fix 0-sized checkskernel/kcsan/core.c kernel/kcsan/test.c+17 -00 replies
16/32kcsan: Introduce KCSAN_ACCESS_ASSERT access typeinclude/linux/kcsan-checks.h kernel/kcsan/core.c kernel/kcsan/debugfs.c +3 more+103 -340 replies
17/32kcsan: Introduce ASSERT_EXCLUSIVE_* macrosinclude/linux/kcsan-checks.h+40 -06 replies
18/32kcsan: Add test to generate conflicts via debugfskernel/kcsan/debugfs.c+46 -50 replies
19/32kcsan: Expose core configuration parameters as module paramskernel/kcsan/core.c+19 -50 replies
20/32kcsan: Fix misreporting if concurrent races on same addresskernel/kcsan/report.c+38 -00 replies
21/32kcsan: Move interfaces that affects checks to kcsan-checks.hinclude/linux/kcsan-checks.h include/linux/kcsan.h+46 -430 replies
22/32compiler.h, seqlock.h: Remove unnecessary kcsan.h includesinclude/linux/compiler.h include/linux/seqlock.h+1 -30 replies
23/32kcsan: Introduce kcsan_value_change typekernel/kcsan/core.c kernel/kcsan/kcsan.h kernel/kcsan/report.c+54 -290 replies
24/32kcsan: Add kcsan_set_access_mask() supportinclude/linux/kcsan-checks.h include/linux/kcsan.h init/init_task.c +3 more+73 -50 replies
25/32kcsan: Introduce ASSERT_EXCLUSIVE_BITS(var, mask)include/linux/kcsan-checks.h kernel/kcsan/debugfs.c+77 -70 replies
26/32kcsan, trace: Make KCSAN compatible with tracingarch/x86/lib/Makefile kernel/kcsan/Makefile kernel/trace/Makefile+10 -02 replies
27/32kcsan: Add option to allow watcher interruptionskernel/kcsan/core.c lib/Kconfig.kcsan+21 -249 replies
28/32kcsan: Add option for verbose reportingkernel/kcsan/core.c kernel/kcsan/kcsan.h kernel/kcsan/report.c +1 more+120 -30 replies
29/32kcsan: Add current->state to implicitly atomic accesseskernel/kcsan/atomic.h kernel/kcsan/core.c kernel/kcsan/debugfs.c+40 -300 replies
30/32kcsan: Fix a typo in a commentkernel/kcsan/core.c+1 -10 replies
31/32kcsan: Update Documentation/dev-tools/kcsan.rstDocumentation/dev-tools/kcsan.rst+144 -830 replies
32/32kcsan: Update API documentation in kcsan-checks.hinclude/linux/kcsan-checks.h+61 -370 replies

Reviews trailers per patch

12 of 32 patches have a Reviewed-by or Acked-by.

PatchAlexander PotapenkoDmitry VyukovQian CaiJohn HubbardNick DesaulniersArnd BergmannRandy DunlapSteven Rostedt (VMware)
1/32A-b
2/32
3/32
4/32A-b T-b
5/32
6/32A-b R-b
7/32A-b
8/32A-b
9/32
10/32
11/32
12/32
13/32
14/32
15/32
16/32
17/32
18/32
19/32
20/32
21/32A-b
22/32A-b
23/32A-b
24/32A-b
25/32A-b
26/32T-b A-b
27/32
28/32
29/32
30/32R-b
31/32
32/32

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 8 reviewers.

Read the v1 thread

Cover letter [PATCH kcsan 0/32] KCSAN commits for v5.7

Hello!

The patches in this series have already been posted, so this posting is just to give a heads up as to which of them are likely to be part of next week's KCSAN pull request. Unless otherwise noted, these are courtesy of Marco Elver.

1. kcsan: Prefer __always_inline for fast-path.
2. kcsan: Show full access type in report.
3. kcsan: Rate-limit reporting per data races.
4. kcsan: Make KCSAN compatible with lockdep.
5. kcsan: Address missing case with KCSAN_REPORT_VALUE_CHANGE_ONLY.
6. include/linux: Add instrumented.h infrastructure.
7. asm-generic, atomic-instrumented: Use generic instrumented.h.
8. asm-generic, kcsan: Add KCSAN instrumentation for bitops.
9. iov_iter: Use generic instrumented.h.
10. copy_to_user, copy_from_user: Use generic instrumented.h.
11. kcsan: Add docbook header for data_race(), courtesy of yours truly.
12. kcsan: Add option to assume plain aligned writes up to word size
are atomic.
13. kcsan: Clarify Kconfig option.
14. kcsan: Cleanup of main KCSAN Kconfig option.
15. kcsan: Fix 0-sized checks.
16. kcsan: Introduce KCSAN_ACCESS_ASSERT access type.
17. kcsan: Introduce ASSERT_EXCLUSIVE_* macros.
18. kcsan: Add test to generate conflicts via debugfs.
19. kcsan: Expose core configuration parameters as module params.
20. kcsan: Fix misreporting if concurrent races on same address.
21. kcsan: Move interfaces that affects checks to kcsan-checks.h.
22. compiler.h, seqlock.h: Remove unnecessary kcsan.h includes.
23. kcsan: Introduce kcsan_value_change type.
24. kcsan: Add kcsan_set_access_mask() support.
25. kcsan: Introduce ASSERT_EXCLUSIVE_BITS(var, mask).
26. kcsan, trace: Make KCSAN compatible with tracing.
27. kcsan: Add option to allow watcher interruptions.
28. kcsan: Add option for verbose reporting.
29. kcsan: Add current->state to implicitly atomic.
30. kcsan: Fix a typo in a comment, courtesy of Qiujun Huang.
31. kcsan: Update Documentation/dev-tools/kcsan.rst.
32. kcsan: Update API documentation in kcsan-checks.h.

Thanx, Paul

------------------------------------------------------------------------

 Documentation/dev-tools/kcsan.rst                    |  227 ++++++----
 arch/x86/lib/Makefile                                |    5 
 include/asm-generic/atomic-instrumented.h            |  395 ++++++++----------
 include/asm-generic/bitops/instrumented-atomic.h     |   14 
 include/asm-generic/bitops/instrumented-lock.h       |   10 
 include/asm-generic/bitops/instrumented-non-atomic.h |   16 
 include/linux/compiler.h                             |   16 
 include/linux/instrumented.h                         |  109 +++++
 include/linux/kcsan-checks.h                         |  284 ++++++++++---
 include/linux/kcsan.h                                |   46 --
 include/linux/seqlock.h                              |    2 
 include/linux/uaccess.h                              |   14 
 init/init_task.c                                     |    1 
 kernel/kcsan/Makefile                                |    2 
 kernel/kcsan/atomic.h                                |   23 -
 kernel/kcsan/core.c                                  |  279 ++++++++----
 kernel/kcsan/debugfs.c                               |   94 +++-
 kernel/kcsan/encoding.h                              |   14 
 kernel/kcsan/kcsan.h                                 |   36 +
 kernel/kcsan/report.c                                |  414 ++++++++++++++++---
 kernel/kcsan/test.c                                  |   10 
 kernel/locking/Makefile                              |    3 
 kernel/trace/Makefile                                |    3 
 lib/Kconfig.kcsan                                    |  114 ++++-
 lib/iov_iter.c                                       |    7 
 lib/usercopy.c                                       |    7 
 scripts/atomic/gen-atomic-instrumented.sh            |   19 
 27 files changed, 1517 insertions(+), 647 deletions(-)