On Tue, Dec 21, 2021 at 03:49:08PM +0800, Liu Shixin wrote: > Hulk Robot reported a panic in put_page_testzero() when testing madvise() > with MADV_SOFT_OFFLINE. The BUG() is triggered when retrying get_any_page(). > This is because we keep MF_COUNT_INCREASED flag in second try but the refcnt > is not increased. > [...] > > Fixes: b94e02822deb ("mm,hwpoison: try to narrow window race for free pages") > Reported-by: Hulk Robot <hulkci@xxxxxxxxxx> > Signed-off-by: Liu Shixin <liushixin2@xxxxxxxxxx> Reviewed-by: Oscar Salvador <osalvador@xxxxxxx> -- Oscar Salvador SUSE Labs