]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
lockdep: fix mismatched lockdep_depth/curr_chain_hash
authorGregory Haskins <ghaskins@novell.com>
Thu, 11 Oct 2007 20:11:11 +0000 (22:11 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 16 Nov 2007 16:12:42 +0000 (08:12 -0800)
commite354b801daa5649ae32e04b6e83d7f35fbde3490
treed298a5395a85269643c5565f0f2a9f515c2bfbe5
parent4367388f04eea72e78347dc9b299698bf4275f92
lockdep: fix mismatched lockdep_depth/curr_chain_hash

patch 3aa416b07f0adf01c090baab26fb70c35ec17623 in mainline.

 It is possible for the current->curr_chain_key to become inconsistent with the
 current index if the chain fails to validate.  The end result is that future
 lock_acquire() operations may inadvertently fail to find a hit in the cache
 resulting in a new node being added to the graph for every acquire.

Signed-off-by: Gregory Haskins <ghaskins@novell.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Cc: Chuck Ebbert <cebbert@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
kernel/lockdep.c