KCSAN commits for v5.7
Get series with b4
b4 am 20200309190359.GA5822@paulmck-ThinkPad-P72Versions newest first
- v1 Latest32 patches 17 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/32 | kcsan: Prefer __always_inline for fast-pathkernel/ kernel/ kernel/ | +17 | 0 replies | |
| 2/32 | kcsan: Show full access type in reportkernel/ kernel/ kernel/ | +37 | 0 replies | |
| 3/32 | kcsan: Rate-limit reporting per data raceskernel/ lib/ | +110 | 0 replies | |
| 4/32 | kcsan: Make KCSAN compatible with lockdepkernel/ kernel/ kernel/ | +18 | 0 replies | |
| 5/32 | kcsan: Address missing case with KCSAN_REPORT_VALUE_CHANGE_ONLYkernel/ | +20 | 0 replies | |
| 6/32 | include/linux: Add instrumented.h infrastructureinclude/ | +109 | 0 replies | |
| 7/32 | asm-generic, atomic-instrumented: Use generic instrumented.hinclude/ scripts/ | +194 | 0 replies | |
| 8/32 | asm-generic, kcsan: Add KCSAN instrumentation for bitopsinclude/ include/ include/ | +20 | 0 replies | |
| 9/32 | iov_iter: Use generic instrumented.hlib/ | +4 | 0 replies | |
| 10/32 | copy_to_user, copy_from_user: Use generic instrumented.hinclude/ lib/ | +11 | 0 replies | |
| 11/32 | kcsan: Add docbook header for data_race()include/ | +8 | 0 replies | |
| 12/32 | kcsan: Add option to assume plain aligned writes up to word size are atomickernel/ lib/ | +37 | 0 replies | |
| 13/32 | kcsan: Clarify Kconfig option KCSAN_IGNORE_ATOMICSlib/ | +13 | 0 replies | |
| 14/32 | kcsan: Cleanup of main KCSAN Kconfig optionlib/ | +8 | 0 replies | |
| 15/32 | kcsan: Fix 0-sized checkskernel/ kernel/ | +17 | 0 replies | |
| 16/32 | kcsan: Introduce KCSAN_ACCESS_ASSERT access typeinclude/ kernel/ kernel/ +3 more | +103 | 0 replies | |
| 17/32 | kcsan: Introduce ASSERT_EXCLUSIVE_* macrosinclude/ | +40 | 6 replies | |
| 18/32 | kcsan: Add test to generate conflicts via debugfskernel/ | +46 | 0 replies | |
| 19/32 | kcsan: Expose core configuration parameters as module paramskernel/ | +19 | 0 replies | |
| 20/32 | kcsan: Fix misreporting if concurrent races on same addresskernel/ | +38 | 0 replies | |
| 21/32 | kcsan: Move interfaces that affects checks to kcsan-checks.hinclude/ include/ | +46 | 0 replies | |
| 22/32 | compiler.h, seqlock.h: Remove unnecessary kcsan.h includesinclude/ include/ | +1 | 0 replies | |
| 23/32 | kcsan: Introduce kcsan_value_change typekernel/ kernel/ kernel/ | +54 | 0 replies | |
| 24/32 | kcsan: Add kcsan_set_access_mask() supportinclude/ include/ init/ +3 more | +73 | 0 replies | |
| 25/32 | kcsan: Introduce ASSERT_EXCLUSIVE_BITS(var, mask)include/ kernel/ | +77 | 0 replies | |
| 26/32 | kcsan, trace: Make KCSAN compatible with tracingarch/ kernel/ kernel/ | +10 | 2 replies | |
| 27/32 | kcsan: Add option to allow watcher interruptionskernel/ lib/ | +21 | 9 replies | |
| 28/32 | kcsan: Add option for verbose reportingkernel/ kernel/ kernel/ +1 more | +120 | 0 replies | |
| 29/32 | kcsan: Add current->state to implicitly atomic accesseskernel/ kernel/ kernel/ | +40 | 0 replies | |
| 30/32 | kcsan: Fix a typo in a commentkernel/ | +1 | 0 replies | |
| 31/32 | kcsan: Update Documentation/dev-tools/kcsan.rstDocumentation/ | +144 | 0 replies | |
| 32/32 | kcsan: Update API documentation in kcsan-checks.hinclude/ | +61 | 0 replies |
Reviews trailers per patch
12 of 32 patches have a Reviewed-by or Acked-by.
| Patch | Alexander Potapenko | Dmitry Vyukov | Qian Cai | John Hubbard | Nick Desaulniers | Arnd Bergmann | Randy Dunlap | Steven Rostedt (VMware) |
|---|---|---|---|---|---|---|---|---|
| 1/32 | A-b | |||||||
| 2/32 | ||||||||
| 3/32 | ||||||||
| 4/32 | A-b | T-b | ||||||
| 5/32 | ||||||||
| 6/32 | A-b | R-b | ||||||
| 7/32 | A-b | |||||||
| 8/32 | A-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/32 | A-b | |||||||
| 22/32 | A-b | |||||||
| 23/32 | A-b | |||||||
| 24/32 | A-b | |||||||
| 25/32 | A-b | |||||||
| 26/32 | T-b | A-b | ||||||
| 27/32 | ||||||||
| 28/32 | ||||||||
| 29/32 | ||||||||
| 30/32 | R-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.
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(-)