Skip to content

locking/lockdep: Disable KASAN instrumentation of lockdep.c

Waiman Long lkml 4 versions – Applied

Status from this message: The following commit has been merged into the locking/core branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest4 patches 12 repliesApplied
  2. v33 patches 4 repliesSuperseded
  3. v22 patches 0 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v11 patch3 repliesSuperseded

Changes in v4 from the cover letter

- Update test results in patch 3 after incorporating CONFIG_KASAN_INLINE into the test matrix.
- Add patch 4 to call kasan_check_byte() in lock_acquire.

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/4locking/lock_events: Add locking events for rtmutex slow pathskernel/locking/lock_events_list.h kernel/locking/rtmutex.c+45 -50 replies
2/4locking/lock_events: Add locking events for lockdepkernel/locking/lock_events_list.h kernel/locking/lockdep.c+14 -10 replies
3/4locking/lockdep: Disable KASAN instrumentation of lockdep.ckernel/locking/Makefile+2 -12 replies
4/4locking/lockdep: Add kasan_check_byte() check in lock_acquire()kernel/locking/lock_events_list.h kernel/locking/lockdep.c+15 -07 replies
4/4locking/lockdep: Add kasan_check_byte() check in lock_acquire()kernel/locking/lockdep.c+9 -02 replies

Reviews trailers per patch

3 of 5 patches have a Reviewed-by or Acked-by.

PatchMarco ElverAndrey Konovalov
1/4
2/4
3/4R-b R-b
4/4R-b R-b R-b
4/4R-b R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/4] locking/lockdep: Disable KASAN instrumentation of lockdep.c

v3:
- Add another patch to insert lock events into lockdep.c.
- Rerun all the tests with the simpler defconfig kernel build and do further analysis of the of the performance difference between the the RT and non-RT debug kernels.

v4:
- Update test results in patch 3 after incorporating CONFIG_KASAN_INLINE into the test matrix.
- Add patch 4 to call kasan_check_byte() in lock_acquire.

It is found that disabling KASAN instrumentation when compiling lockdep.c can significantly improve the performance of RT debug kernel while the performance benefit of non-RT debug kernel is relatively modest.

This series also include patches to add locking events to the rtmutex slow paths and the lockdep code for better analysis of the different performance behavior between RT and non-RT debug kernels.

Waiman Long (4):
locking/lock_events: Add locking events for rtmutex slow paths locking/lock_events: Add locking events for lockdep locking/lockdep: Disable KASAN instrumentation of lockdep.c locking/lockdep: Add kasan_check_byte() check in lock_acquire()

 kernel/locking/Makefile           |  3 ++-
 kernel/locking/lock_events_list.h | 29 +++++++++++++++++++++++++++++
 kernel/locking/lockdep.c          | 22 +++++++++++++++++++++-
 kernel/locking/rtmutex.c          | 29 ++++++++++++++++++++++++-----
 4 files changed, 76 insertions(+), 7 deletions(-)
Signature · 1 line
2.48.1