Skip to content

kcsan: Cleanups and fix reporting for scoped accesses

Marco Elver lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8kcsan: test: Defer kcsan_test_init() after kunit initializationkernel/kcsan/kcsan_test.c+1 -10 replies
2/8kcsan: test: Use kunit_skip() to skip testskernel/kcsan/kcsan_test.c+7 -40 replies
3/8kcsan: test: Fix flaky test casekernel/kcsan/kcsan_test.c+18 -40 replies
4/8kcsan: Add ability to pass instruction pointer of access to reportingkernel/kcsan/core.c kernel/kcsan/kcsan.h kernel/kcsan/report.c+45 -380 replies
5/8kcsan: Save instruction pointer for scoped accessesinclude/linux/kcsan-checks.h kernel/kcsan/core.c+12 -30 replies
6/8kcsan: Start stack trace with explicit location if providedkernel/kcsan/kcsan_test.c kernel/kcsan/report.c+61 -130 replies
7/8kcsan: Support reporting scoped read-write access typekernel/kcsan/kcsan_test.c kernel/kcsan/report.c+9 -30 replies
8/8kcsan: Move ctx to start of argument listkernel/kcsan/core.c+4 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/8] kcsan: Cleanups and fix reporting for scoped accesses

This series contains several test fixes and cleanups, as well as fixing reporting for scoped accesses.

Thus far, scoped accesses' stack traces could point anywhere in the scope, and can be quite confusing when searching for the relevant access scope several stack frames down. This is fixed by using the original instruction pointer of the location where the scoped access was set up.

There are more changes coming that depend on the fixed reporting, but it made more sense to detach the changes in this series as they are useful on their own and only touch core KCSAN code.

Marco Elver (8):
kcsan: test: Defer kcsan_test_init() after kunit initialization
kcsan: test: Use kunit_skip() to skip tests
kcsan: test: Fix flaky test case
kcsan: Add ability to pass instruction pointer of access to reporting
kcsan: Save instruction pointer for scoped accesses
kcsan: Start stack trace with explicit location if provided
kcsan: Support reporting scoped read-write access type
kcsan: Move ctx to start of argument list

 include/linux/kcsan-checks.h |  3 ++
 kernel/kcsan/core.c          | 75 ++++++++++++++++++++---------------
 kernel/kcsan/kcsan.h         |  8 ++--
 kernel/kcsan/kcsan_test.c    | 62 +++++++++++++++++++----------
 kernel/kcsan/report.c        | 77 ++++++++++++++++++++++++++++++------
 5 files changed, 156 insertions(+), 69 deletions(-)
Signature · 1 line
2.32.0.605.g8dce9f2422-goog