diff options
author | Darren Hart | 2009-10-14 19:12:39 +0200 |
---|---|---|
committer | Thomas Gleixner | 2009-10-14 22:00:14 +0200 |
commit | 2bc872036e1c5948b5b02942810bbdd8dbdb9812 (patch) | |
tree | c91cc2791366214c5f924ff5aa77c24a7403fe40 /kernel/rcutree_plugin.h | |
parent | futex: Handle spurious wake up (diff) | |
download | kernel-qcow2-linux-2bc872036e1c5948b5b02942810bbdd8dbdb9812.tar.gz kernel-qcow2-linux-2bc872036e1c5948b5b02942810bbdd8dbdb9812.tar.xz kernel-qcow2-linux-2bc872036e1c5948b5b02942810bbdd8dbdb9812.zip |
futex: Check for NULL keys in match_futex
If userspace tries to perform a requeue_pi on a non-requeue_pi waiter,
it will find the futex_q->requeue_pi_key to be NULL and OOPS.
Check for NULL in match_futex() instead of doing explicit NULL pointer
checks on all call sites. While match_futex(NULL, NULL) returning
false is a little odd, it's still correct as we expect valid key
references.
Signed-off-by: Darren Hart <dvhltc@us.ibm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Ingo Molnar <mingo@elte.hu>
CC: Eric Dumazet <eric.dumazet@gmail.com>
CC: Dinakar Guniguntala <dino@in.ibm.com>
CC: John Stultz <johnstul@us.ibm.com>
Cc: stable@kernel.org
LKML-Reference: <4AD60687.10306@us.ibm.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/rcutree_plugin.h')
0 files changed, 0 insertions, 0 deletions