]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
mm/hugetlb.c: undo change to page mapcount in fault handler
authorHillf Danton <dhillf@gmail.com>
Fri, 20 Jan 2012 22:34:13 +0000 (14:34 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 23 Jan 2012 16:38:48 +0000 (08:38 -0800)
commit409eb8c2611b4310947a150af988111f7f52ab15
treea410c7c9c5a58643da7b4c2abdb7796d1255f048
parent6568d4a9c9ff16d6c4f0b14dfea567806ce579e4
mm/hugetlb.c: undo change to page mapcount in fault handler

Page mapcount should be updated only if we are sure that the page ends
up in the page table otherwise we would leak if we couldn't COW due to
reservations or if idx is out of bounds.

Signed-off-by: Hillf Danton <dhillf@gmail.com>
Reviewed-by: Michal Hocko <mhocko@suse.cz>
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/hugetlb.c