* + mm-support-poison-recovery-from-do_cow_fault-fix.patch added to mm-unstable branch
@ 2024-09-10 19:04 Andrew Morton
0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2024-09-10 19:04 UTC (permalink / raw)
To: mm-commits, tony.luck, nao.horiguchi, linmiaohe, jiaqiyan,
jane.chu, david, wangkefeng.wang, akpm
The patch titled
Subject: mm: support poison recovery from do_cow_fault() fix
has been added to the -mm mm-unstable branch. Its filename is
mm-support-poison-recovery-from-do_cow_fault-fix.patch
This patch will shortly appear at
https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/mm-support-poison-recovery-from-do_cow_fault-fix.patch
This patch will later appear in the mm-unstable branch at
git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
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 via the mm-everything
branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
and is updated there every 2-3 working days
------------------------------------------------------
From: Kefeng Wang <wangkefeng.wang@huawei.com>
Subject: mm: support poison recovery from do_cow_fault() fix
Date: Tue, 10 Sep 2024 10:15:41 +0800
unlock/put vmf->page, per Miaohe
Link: https://lkml.kernel.org/r/20240910021541.234300-1-wangkefeng.wang@huawei.com
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: Jane Chu <jane.chu@oracle.com>
Cc: Jiaqi Yan <jiaqiyan@google.com>
Cc: Miaohe Lin <linmiaohe@huawei.com>
Cc: Naoya Horiguchi <nao.horiguchi@gmail.com>
Cc: Tony Luck <tony.luck@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
mm/memory.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
--- a/mm/memory.c~mm-support-poison-recovery-from-do_cow_fault-fix
+++ a/mm/memory.c
@@ -5091,11 +5091,12 @@ static vm_fault_t do_cow_fault(struct vm
if (copy_mc_user_highpage(vmf->cow_page, vmf->page, vmf->address, vma)) {
ret = VM_FAULT_HWPOISON;
- goto uncharge_out;
+ goto unlock;
}
__folio_mark_uptodate(folio);
ret |= finish_fault(vmf);
+unlock:
unlock_page(vmf->page);
put_page(vmf->page);
if (unlikely(ret & (VM_FAULT_ERROR | VM_FAULT_NOPAGE | VM_FAULT_RETRY)))
_
Patches currently in -mm which might be from wangkefeng.wang@huawei.com are
mm-support-poison-recovery-from-do_cow_fault.patch
mm-support-poison-recovery-from-do_cow_fault-fix.patch
mm-support-poison-recovery-from-copy_present_page.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-09-10 19:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-10 19:04 + mm-support-poison-recovery-from-do_cow_fault-fix.patch added to mm-unstable branch Andrew Morton
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.