The patch titled Subject: mmhwpoison-send-sigbus-with-error-virutal-address-fix has been added to the -mm tree. Its filename is mmhwpoison-send-sigbus-with-error-virutal-address-fix.patch This patch should soon appear at https://ozlabs.org/~akpm/mmots/broken-out/mmhwpoison-send-sigbus-with-error-virutal-address-fix.patch and later at https://ozlabs.org/~akpm/mmotm/broken-out/mmhwpoison-send-sigbus-with-error-virutal-address-fix.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Naoya Horiguchi <naoya.horiguchi@xxxxxxx> Subject: mmhwpoison-send-sigbus-with-error-virutal-address-fix walk_page_range() got to return 1 when it found at least error virtual address since v5, so this if-condition should be like this. Link: https://lkml.kernel.org/r/20210603051055.GA244241@xxxxxxxxxxxxxxxxxxxxxxxxxxx Cc: Tony Luck <tony.luck@xxxxxxxxx> Cc: Aili Yao <yaoaili@xxxxxxxxxxxx> Cc: Oscar Salvador <osalvador@xxxxxxx> Cc: David Hildenbrand <david@xxxxxxxxxx> Cc: Borislav Petkov <bp@xxxxxxxxx> Cc: Andy Lutomirski <luto@xxxxxxxxxx> Cc: Jue Wang <juew@xxxxxxxxxx> Cc: Borislav Petkov <bp@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/memory-failure.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/mm/memory-failure.c~mmhwpoison-send-sigbus-with-error-virutal-address-fix +++ a/mm/memory-failure.c @@ -691,7 +691,7 @@ static int kill_accessing_process(struct mmap_read_lock(p->mm); ret = walk_page_range(p->mm, 0, TASK_SIZE, &hwp_walk_ops, (void *)&priv); - if (!ret && priv.tk.addr) + if (ret == 1 && priv.tk.addr) kill_proc(&priv.tk, pfn, flags); mmap_read_unlock(p->mm); return ret ? -EFAULT : -EHWPOISON; _ Patches currently in -mm which might be from naoya.horiguchi@xxxxxxx are hugetlb-pass-head-page-to-remove_hugetlb_page.patch mmhwpoison-fix-race-with-hugetlb-page-allocation.patch mmhwpoison-send-sigbus-with-error-virutal-address.patch mmhwpoison-send-sigbus-with-error-virutal-address-fix.patch mmhwpoison-make-get_hwpoison_page-call-get_any_page.patch