summaryrefslogtreecommitdiffstats
path: root/kernel/futex.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2016-02-29 10:03:58 +0100
committerIngo Molnar <mingo@kernel.org>2016-02-29 10:32:29 +0100
commit9e4e7554e755aaad8df0e26268787438735b4b76 (patch)
treedf7a17c7b998c32e9c5a5dbd99b391aa25e7aa9b /kernel/futex.c
parent5f18ab5c6bdba735b31a1e7c2618f48eae6b1b5c (diff)
downloadlinux-9e4e7554e755aaad8df0e26268787438735b4b76.tar.gz
linux-9e4e7554e755aaad8df0e26268787438735b4b76.tar.bz2
linux-9e4e7554e755aaad8df0e26268787438735b4b76.zip
locking/lockdep: Detect chain_key collisions
Add detection for chain_key collision under CONFIG_DEBUG_LOCKDEP. When a collision is detected the problem is reported and all lock debugging is turned off. Tested using liblockdep and the added tests before and after applying the fix, confirming both that the code added for the detection correctly reports the problem and that the fix actually fixes it. Tested tweaking lockdep to generate false collisions and verified that the problem is reported and that lock debugging is turned off. Also tested with lockdep's test suite after applying the patch: [ 0.000000] Good, all 253 testcases passed! | Signed-off-by: Alfredo Alvarez Fernandez <alfredoalvarezernandez@gmail.com> Cc: Alfredo Alvarez Fernandez <alfredoalvarezfernandez@gmail.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: sasha.levin@oracle.com Link: http://lkml.kernel.org/r/1455864533-7536-4-git-send-email-alfredoalvarezernandez@gmail.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/futex.c')
0 files changed, 0 insertions, 0 deletions