mm/hwpoison-inject: support injecting hwpoison to free page
authorMiaohe Lin <linmiaohe@huawei.com>
Mon, 28 Feb 2022 23:01:11 +0000 (10:01 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 28 Feb 2022 23:01:11 +0000 (10:01 +1100)
commit0e261937a9a51083262ed20f8fe7985c6a955e70
treee5572f61f760c8078daf4ae4a1c28a50811cdfe7
parentd24df01ec99d71e827085735f34edc15c5b9d8ed
mm/hwpoison-inject: support injecting hwpoison to free page

memory_failure() can handle free buddy page.  Support injecting hwpoison
to free page by adding is_free_buddy_page check when hwpoison filter is
disabled.

Link: https://lkml.kernel.org/r/20220218092052.3853-1-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Cc: Naoya Horiguchi <naoya.horiguchi@nec.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
mm/hwpoison-inject.c