futex: catch certain assymetric (get|put)_futex_key calls
authorDarren Hart <dvhltc@us.ibm.com>
Tue, 30 Dec 2008 03:43:21 +0000 (19:43 -0800)
committerIngo Molnar <mingo@elte.hu>
Fri, 2 Jan 2009 22:10:44 +0000 (23:10 +0100)
commit90621c40cc4ab7b0a414311ce37e7cc7173403b6
tree3f5797462898f3f85bad1a31df04e671df8aadd3
parent42d35d48ce7cefb9429880af19d1c329d1554e7a
futex: catch certain assymetric (get|put)_futex_key calls

Impact: add debug check

Following up on my previous key reference accounting patches, this patch
will catch puts on keys that haven't been "got".  This won't catch nested
get/put mismatches though.

Build and boot tested, with minimal desktop activity and a run of the
open_posix_testsuite in LTP for testing.  No warnings logged.

Signed-off-by: Darren Hart <dvhltc@us.ibm.com>
Cc: <stable@kernel.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/futex.c