]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "mm/page_isolation: unset migratetype directly for non Buddy page"
authorChen Wandun <chenwandun@huawei.com>
Fri, 4 Feb 2022 04:49:06 +0000 (20:49 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 4 Feb 2022 17:25:04 +0000 (09:25 -0800)
commit95c216cdb9cb7561e3850b1f56ef319edde4e046
tree8aa2ba797cb19c0e17b0cf2716157af0baa9d195
parentfed373e5ab652ba9c29c5fb2180c674044961821
Revert "mm/page_isolation: unset migratetype directly for non Buddy page"

This reverts commit 3e7fadd3af141f82c3af0b2f4bf6facd5162f19e.

Commit 3e7fadd3af14 ("mm/page_isolation: unset migratetype directly for
non Buddy page") will result memory that should in buddy disappear by
mistake.  move_freepages_block moves all pages in pageblock instead of
pages indicated by input parameter, so if input pages is not in buddy
but other pages in pageblock is in buddy, it will result in page out of
control.

Link: https://lkml.kernel.org/r/20220126024436.13921-1-chenwandun@huawei.com
Fixes: 3e7fadd3af14 ("mm/page_isolation: unset migratetype directly for non Buddy page")
Signed-off-by: Chen Wandun <chenwandun@huawei.com>
Reported-by: "kernelci.org bot" <bot@kernelci.org>
Acked-by: David Hildenbrand <david@redhat.com>
Tested-by: Dong Aisheng <aisheng.dong@nxp.com>
Tested-by: Francesco Dolcini <francesco.dolcini@toradex.com>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Tested-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/page_isolation.c