From: Russell King <rmk+kernel@arm.linux.org.uk>
authorMatt Sealey <matt@genesi-usa.com>
Wed, 18 Aug 2010 19:26:16 +0000 (14:26 -0500)
committerMatt Sealey <matt@genesi-usa.com>
Wed, 18 Aug 2010 19:26:16 +0000 (14:26 -0500)
commitf51e9f550936080739d3c500a850e0745b68311e
tree61212ba2bf0246245b7f4d593920504f9ac9531c
parenta4807bc91c2652d2ed6c5b2afe43ff45da0a0d48
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>
arch/arm/kernel/traps.c