futex: Take mmap_sem for get_user_pages in fault_in_user_writeable
authorAndi Kleen <andi@firstfloor.org>
Tue, 8 Dec 2009 12:19:42 +0000 (13:19 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 8 Dec 2009 13:59:36 +0000 (14:59 +0100)
commit722d0172377a5697919b9f7e5beb95165b1dec4e
tree4ee18c7233de8e28b1fc87031fa1be7a2d59e5d2
parentf5754bfd107b08edddaf871d676ec6fe0792d07a
futex: Take mmap_sem for get_user_pages in fault_in_user_writeable

get_user_pages() must be called with mmap_sem held.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Cc: stable@kernel.org
Cc: Andrew Morton <akpm@linuxfoundation.org>
Cc: Nick Piggin <npiggin@suse.de>
Cc: Darren Hart <dvhltc@us.ibm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
LKML-Reference: <20091208121942.GA21298@basil.fritz.box>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/futex.c