Peter Zijlstra 7fb4a2cea6 locking/lockdep: Add nest_lock integrity test
Boqun reported that hlock->references can overflow. Add a debug test
for that to generate a clear error when this happens.

Without this, lockdep is likely to report a mysterious failure on
unlock.

Reported-by: Boqun Feng <boqun.feng@gmail.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Nicolai Hähnle <Nicolai.Haehnle@amd.com>
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
2017-03-02 09:00:38 +01:00
..
2017-01-12 07:01:56 -07:00
2017-02-27 18:43:48 -08:00
2017-02-27 18:43:48 -08:00
2017-02-27 18:43:48 -08:00
2017-02-22 10:30:38 -08:00
2017-02-10 11:15:08 +01:00
2017-02-22 17:08:33 -08:00
2017-01-14 11:37:18 +01:00
2017-02-27 18:43:47 -08:00
2016-12-22 22:58:37 -05:00
2016-09-22 20:00:36 -05:00
2017-02-10 11:15:08 +01:00