]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
lockdep: suggest the fix for "lockdep bfs error:-1" on print_bfs_bug
authorLuis Claudio R. Goncalves <lgoncalv@redhat.com>
Tue, 30 Jul 2024 17:45:47 +0000 (14:45 -0300)
committerPeter Zijlstra <peterz@infradead.org>
Mon, 5 Aug 2024 14:54:41 +0000 (16:54 +0200)
commit7886a61ebc1f3998df5950299cbe17272bf32c59
tree519c896924ea3f6d1f90e326c057f1e1fdf65ec3
parentdce2a224763ce968445e14c43b49321936309c75
lockdep: suggest the fix for "lockdep bfs error:-1" on print_bfs_bug

When lockdep fails while performing the Breadth-first-search operation
due to lack of memory, hint that increasing the value of the config
switch LOCKDEP_CIRCULAR_QUEUE_BITS should fix the warning.

Preface the scary backtrace with the suggestion:

    [  163.849242] Increase LOCKDEP_CIRCULAR_QUEUE_BITS to avoid this warning:
    [  163.849248] ------------[ cut here ]------------
    [  163.849250] lockdep bfs error:-1
    [  163.849263] WARNING: CPU: 24 PID: 2454 at kernel/locking/lockdep.c:2091 print_bfs_bug+0x27/0x40
    ...

Signed-off-by: Luis Claudio R. Goncalves <lgoncalv@redhat.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Boqun Feng <boqun.feng@gmail.com>
Reviewed-by: Waiman Long <longman@redhat.com>
Link: https://lkml.kernel.org/r/Zqkmy0lS-9Sw0M9j@uudg.org
kernel/locking/lockdep.c