* + mmhwpoison-send-sigbus-with-error-virutal-address-fix.patch added to -mm tree
@ 2021-06-04 2:43 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2021-06-04 2:43 UTC (permalink / raw)
To: bp, bp, david, juew, luto, mm-commits, naoya.horiguchi,
osalvador, tony.luck, yaoaili
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@nec.com>
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@hori.linux.bs1.fc.nec.co.jp
Cc: Tony Luck <tony.luck@intel.com>
Cc: Aili Yao <yaoaili@kingsoft.com>
Cc: Oscar Salvador <osalvador@suse.de>
Cc: David Hildenbrand <david@redhat.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Jue Wang <juew@google.com>
Cc: Borislav Petkov <bp@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
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@nec.com 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-06-04 2:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-04 2:43 + mmhwpoison-send-sigbus-with-error-virutal-address-fix.patch added to -mm tree akpm
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.