summaryrefslogtreecommitdiffstats
path: root/mm/memory_hotplug.c
diff options
context:
space:
mode:
authorMichal Hocko2017-11-16 02:33:30 +0100
committerLinus Torvalds2017-11-16 03:21:02 +0100
commitd7ab3672c3ff7b2a2be3f15fcee77414fd9c4d7a (patch)
tree5cc80867151e0838241c92cc9e3c1446fa6a192c /mm/memory_hotplug.c
parentmm: distinguish CMA and MOVABLE isolation in has_unmovable_pages() (diff)
downloadkernel-qcow2-linux-d7ab3672c3ff7b2a2be3f15fcee77414fd9c4d7a.tar.gz
kernel-qcow2-linux-d7ab3672c3ff7b2a2be3f15fcee77414fd9c4d7a.tar.xz
kernel-qcow2-linux-d7ab3672c3ff7b2a2be3f15fcee77414fd9c4d7a.zip
mm, page_alloc: fail has_unmovable_pages when seeing reserved pages
Reserved pages should be completely ignored by the core mm because they have a special meaning for their owners. has_unmovable_pages doesn't check those so we rely on other tests (reference count, or PageLRU) to fail on such pages. Althought this happens to work it is safer to simply check for those explicitly and do not rely on the owner of the page to abuse those fields for special purposes. Please note that this is more of a further fortification of the code rahter than a fix of an existing issue. Link: http://lkml.kernel.org/r/20171013120756.jeopthigbmm3c7bl@dhcp22.suse.cz Signed-off-by: Michal Hocko <mhocko@suse.com> Acked-by: Vlastimil Babka <vbabka@suse.cz> Cc: Igor Mammedov <imammedo@redhat.com> Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Cc: Michael Ellerman <mpe@ellerman.id.au> Cc: Reza Arbab <arbab@linux.vnet.ibm.com> Cc: Vitaly Kuznetsov <vkuznets@redhat.com> Cc: Xishi Qiu <qiuxishi@huawei.com> Cc: Yasuaki Ishimatsu <yasu.isimatu@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/memory_hotplug.c')
0 files changed, 0 insertions, 0 deletions