Re: [PATCH] Revert "mm/page_isolation: unset migratetype directly for non Buddy page"

From: Francesco Dolcini
Date: Mon Jan 24 2022 - 03:42:03 EST


On Tue, Jan 18, 2022 at 09:50:42PM +0800, Dong Aisheng wrote:
> On Mon, Jan 17, 2022 at 10:12 PM Chen Wandun <chenwandun@xxxxxxxxxx> wrote:
> >
> > This reverts commit 075782149abff45ee22f27315eced44d02b96779.
> >
> > commit 075782149abf ("mm/page_isolation: unset migratetype directly for
> > non Buddy page") will result memory that should in buddy disappear by
> > mistake. move_freepages_block move 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.
> >
> > Reported-by: "kernelci.org bot" <bot@xxxxxxxxxxxx>
> > Signed-off-by: Chen Wandun <chenwandun@xxxxxxxxxx>
>
> The original patch broke imx6ul evk booting up.
> Tested-by: Dong Aisheng <aisheng.dong@xxxxxxx>

Same issue present on imx7.
Tested-by: Francesco Dolcini <francesco.dolcini@xxxxxxxxxxx>