]> git.karo-electronics.de Git - karo-tx-linux.git/commit
do_shared_fault(): check that mmap_sem is held
authorAndrew Morton <akpm@linux-foundation.org>
Thu, 22 May 2014 00:43:28 +0000 (10:43 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 22 May 2014 00:43:28 +0000 (10:43 +1000)
commit456407d6fec5f28c1be67fcf803f9cca14b75142
treec5223a977e92733e18259ca66b91722164d1e140
parentf126f6bc6e040e42a341fbb536d611290add18ea
do_shared_fault(): check that mmap_sem is held

mmap_sem() is required to protect the vma, which holds ->vm_file, which
pins fault_page->mapping.

Cc: Andi Kleen <ak@linux.intel.com>
Cc: Bob Liu <lliubbo@gmail.com>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: Matthew Wilcox <matthew.r.wilcox@intel.com>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Cc: Rik van Riel <riel@redhat.com>
Cc: Sasha Levin <sasha.levin@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/memory.c