]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: vmscan: do not use page_count without a page pin
authorAndrea Arcangeli <aarcange@redhat.com>
Tue, 19 Jul 2011 09:15:50 +0000 (10:15 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 3 Aug 2011 19:42:43 +0000 (12:42 -0700)
commitacd640b8cf7e3a9e554a0ceadb2f73516c09256f
tree41b6808101e5ed9823828821f21022a37445f66c
parent16d266cc0c634cd38d47eb7acc06bedfce83a9f2
mm: vmscan: do not use page_count without a page pin

commit: d179e84ba5da1d0024087d1759a2938817a00f3f upstream

It is unsafe to run page_count during the physical pfn scan because
compound_head could trip on a dangling pointer when reading
page->first_page if the compound page is being freed by another CPU.

[mgorman@suse.de: split out patch]
Signed-off-by: Andrea Arcangeli <aarcange@redhat.com>
Signed-off-by: Mel Gorman <mgorman@suse.de>
Reviewed-by: Michal Hocko <mhocko@suse.cz>
Reviewed-by: Minchan Kim <minchan.kim@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
mm/vmscan.c