]> 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)
commitecd9016c01afc7c1ab2cd60f841f0f03aa99c1b0
treebf7547f8e6361941a5838adeba9d80c2e55825f4
parent0dc8a48b868b52c75e064eae5b999b8b385771ab
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: 6c31ed5e22d3 ("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