Files
linux-legacy/arch/arm/kernel/traps.c
Matt Sealey f51e9f5509 From: Russell King <rmk+kernel@arm.linux.org.uk>
Date: Mon, 28 Sep 2009 10:41:51 +0000 (+0100)
Subject: ARM: Ensure do_cache_op takes mmap_sem
X-Git-Tag: v2.6.32-rc3~11^2~11
X-Git-Url: http://android.git.geo.kernel.org/?p=kernel%2Fcommon.git;a=commitdiff_plain;h=aa45ee8fc0ee87c1711b5fe8eb3556d06530c39e

ARM: Ensure do_cache_op takes mmap_sem

do_cache_op() uses find_vma() to validate its arguments without holding
any locking.  This means that the VMA could vanish beneath us.  Fix
this by taking a read lock on mmap_sem.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2010-08-18 14:26:16 -05:00

18 KiB