KCSAN updates for v5.10
Get series with b4
b4 am 20200831181715.GA1530@paulmck-ThinkPad-P72Versions newest first
- v1 Latest19 patches 3 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/19 | kcsan: Add support for atomic builtinskernel/ | +110 | 0 replies | |
| 2/19 | objtool: Add atomic builtin TSAN instrumentation to uaccess whitelisttools/ | +50 | 0 replies | |
| 3/19 | kcsan: Add atomic builtin test casekernel/ | +63 | 0 replies | |
| 4/19 | kcsan: Support compounded read-write instrumentationinclude/ kernel/ kernel/ +1 more | +53 | 0 replies | |
| 5/19 | objtool, kcsan: Add __tsan_read_write to uaccess whitelisttools/ | +5 | 0 replies | |
| 6/19 | kcsan: Skew delay to be longer for certain access typeskernel/ | +7 | 0 replies | |
| 7/19 | kcsan: Add missing CONFIG_KCSAN_IGNORE_ATOMICS checkskernel/ | +22 | 0 replies | |
| 8/19 | kcsan: Test support for compound instrumentationkernel/ lib/ | +56 | 0 replies | |
| 9/19 | instrumented.h: Introduce read-write instrumentation hooksinclude/ | +30 | 0 replies | |
| 10/19 | asm-generic/bitops: Use instrument_read_write() where appropriateinclude/ include/ include/ | +7 | 0 replies | |
| 11/19 | locking/atomics: Use read-write instrumentation for atomic RMWsinclude/ scripts/ | +180 | 0 replies | |
| 12/19 | kcsan: Simplify debugfs counter to name mappingkernel/ | +13 | 0 replies | |
| 13/19 | kcsan: Simplify constant string handlingkernel/ kernel/ | +6 | 0 replies | |
| 14/19 | kcsan: Remove debugfs test commandkernel/ | +0 | 0 replies | |
| 15/19 | kcsan: Show message if enabled earlykernel/ | +6 | 0 replies | |
| 16/19 | kcsan: Use pr_fmt for consistencykernel/ kernel/ | +10 | 0 replies | |
| 17/19 | kcsan: Optimize debugfs stats counterskernel/ kernel/ kernel/ +1 more | +23 | 0 replies | |
| 18/19 | bitops, kcsan: Partially revert instrumentation for non-atomic bitopsinclude/ | +27 | 3 replies | |
| 19/19 | kcsan: Use tracing-safe version of prandomkernel/ | +29 | 0 replies |
Reviews trailers per patch
9 of 19 patches have a Reviewed-by or Acked-by.
| Patch | Peter Zijlstra (Intel) | Boqun Feng |
|---|---|---|
| 1/19 | ||
| 2/19 | ||
| 3/19 | ||
| 4/19 | A-b | |
| 5/19 | A-b | |
| 6/19 | A-b | |
| 7/19 | A-b | |
| 8/19 | A-b | |
| 9/19 | A-b | |
| 10/19 | A-b | |
| 11/19 | A-b | |
| 12/19 | ||
| 13/19 | ||
| 14/19 | ||
| 15/19 | ||
| 16/19 | ||
| 17/19 | ||
| 18/19 | R-b | |
| 19/19 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH kcsan 0/19] KCSAN updates for v5.10
Hello!
This series provides KCSAN updates:
1. Add support for atomic builtins.
2. Add atomic builtin TSAN instrumentation to uaccess whitelist.
3. Add atomic builtin test case.
4. Support compounded read-write instrumentation.
5. objtool, kcsan: Add __tsan_read_write to uaccess whitelist.
6. Skew delay to be longer for certain access types.
7. Add missing CONFIG_KCSAN_IGNORE_ATOMICS checks.
8. Test support for compound instrumentation.
9. instrumented.h: Introduce read-write instrumentation hooks.
10. asm-generic/bitops: Use instrument_read_write() where appropriate.
11. locking/atomics: Use read-write instrumentation for atomic RMWs.
12. Simplify debugfs counter to name mapping.
13. Simplify constant string handling.
14. Remove debugfs test command.
15. Show message if enabled early.
16. Use pr_fmt for consistency.
17. Optimize debugfs stats counters.
18. bitops, kcsan: Partially revert instrumentation for non-atomic bitops.
19. Use tracing-safe version of prandom.
Thanx, Paul
------------------------------------------------------------------------
include/asm-generic/atomic-instrumented.h | 330 +++++++++---------- include/asm-generic/bitops/instrumented-atomic.h | 6 include/asm-generic/bitops/instrumented-lock.h | 2 include/asm-generic/bitops/instrumented-non-atomic.h | 36 +- include/linux/instrumented.h | 30 + include/linux/kcsan-checks.h | 45 +- kernel/kcsan/core.c | 238 +++++++++++-- kernel/kcsan/debugfs.c | 136 +------ kernel/kcsan/kcsan-test.c | 128 ++++++- kernel/kcsan/kcsan.h | 12 kernel/kcsan/report.c | 10 kernel/kcsan/selftest.c | 8 lib/Kconfig.kcsan | 5 scripts/Makefile.kcsan | 2 scripts/atomic/gen-atomic-instrumented.sh | 21 - tools/objtool/check.c | 55 +++ 16 files changed, 697 insertions(+), 367 deletions(-)