From: Thomas Gleixner Date: Mon, 10 Jul 2006 11:44:30 +0000 (-0700) Subject: [PATCH] pi-futex: Validate futex type instead of oopsing X-Git-Tag: v2.6.18-rc2~206 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=06a9ec291b3aec9c7e36af0a10ad2b556bd7e84f;p=pandora-kernel.git [PATCH] pi-futex: Validate futex type instead of oopsing Calling futex_lock_pi is called with a reference to a non PI futex and waiters exist already, lookup_pi_state() oopses due to pi_state == NULL. Check this condition and return -EINVAL to userspace. Signed-off-by: Thomas Gleixner Cc: Ingo Molnar Cc: Jakub Jelinek Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed