summaryrefslogtreecommitdiffstats
path: root/mm/memory-failure.c
diff options
context:
space:
mode:
authorSasha Levin2012-05-30 00:06:15 +0200
committerLinus Torvalds2012-05-30 01:22:18 +0200
commit08fa29d916c6e271ad13978cd993e7238c68db97 (patch)
treea7f7aa9a3a468cba985e5a26551b504f48e2922e /mm/memory-failure.c
parentcris: select GENERIC_ATOMIC64 (diff)
downloadkernel-qcow2-linux-08fa29d916c6e271ad13978cd993e7238c68db97.tar.gz
kernel-qcow2-linux-08fa29d916c6e271ad13978cd993e7238c68db97.tar.xz
kernel-qcow2-linux-08fa29d916c6e271ad13978cd993e7238c68db97.zip
mm: fix NULL ptr deref when walking hugepages
A missing validation of the value returned by find_vma() could cause a NULL ptr dereference when walking the pagetable. This is triggerable from usermode by a simple user by trying to read a page info out of /proc/pid/pagemap which doesn't exist. Introduced by commit 025c5b2451e4 ("thp: optimize away unnecessary page table locking"). Signed-off-by: Sasha Levin <levinsasha928@gmail.com> Reviewed-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com> Cc: David Rientjes <rientjes@google.com> Cc: Andi Kleen <andi@firstfloor.org> Cc: Andrea Arcangeli <aarcange@redhat.com> Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Cc: <stable@vger.kernel.org> [3.4.x] Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/memory-failure.c')
0 files changed, 0 insertions, 0 deletions