]> git.baikalelectronics.ru Git - kernel.git/commit
lockdep: Fix usage_traceoverflow
authorPeter Zijlstra <peterz@infradead.org>
Wed, 30 Sep 2020 09:49:37 +0000 (11:49 +0200)
committerIngo Molnar <mingo@kernel.org>
Fri, 9 Oct 2020 06:53:08 +0000 (08:53 +0200)
commit3494cd8fc23560641fa19aaad74ef8fd8c42ebb3
treebf7547f8e6361941a5838adeba9d80c2e55825f4
parent628a4c2a462c2862d6d0f36abb1a7ca67ebf2389
lockdep: Fix usage_traceoverflow

Basically print_lock_class_header()'s for loop is out of sync with the
the size of of ->usage_traces[].

Also clean things up a bit while at it, to avoid such mishaps in the future.

Fixes: d91d33f1402c ("locking/lockdep: Fix "USED" <- "IN-NMI" inversions")
Reported-by: Qian Cai <cai@redhat.com>
Debugged-by: Boqun Feng <boqun.feng@gmail.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Tested-by: Qian Cai <cai@redhat.com>
Link: https://lkml.kernel.org/r/20200930094937.GE2651@hirez.programming.kicks-ass.net
include/linux/lockdep_types.h
kernel/locking/lockdep.c
kernel/locking/lockdep_internals.h