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)
commit2bb8945bcc1a768f2bc402a16c9610bba8d5187d
treebf7547f8e6361941a5838adeba9d80c2e55825f4
parent583090b1b8232e6eae243a9009699666153a13a9
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: 23870f122768 ("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