The patch titled Subject: mm-hwpoison-try-to-recover-from-copy-on-write-faults-v4 has been added to the -mm mm-unstable branch. Its filename is mm-hwpoison-try-to-recover-from-copy-on-write-faults-v4.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/mm-hwpoison-try-to-recover-from-copy-on-write-faults-v4.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: Tony Luck <tony.luck@xxxxxxxxx> Subject: mm-hwpoison-try-to-recover-from-copy-on-write-faults-v4 Date: Mon, 31 Oct 2022 13:10:28 -0700 add call to kmsan_unpoison_memory(), per Miaohe Lin Link: https://lkml.kernel.org/r/20221031201029.102123-2-tony.luck@xxxxxxxxx Reviewed-by: Dan Williams <dan.j.williams@xxxxxxxxx> Reviewed-by: Miaohe Lin <linmiaohe@xxxxxxxxxx> Reviewed-by: Naoya Horiguchi <naoya.horiguchi@xxxxxxx> Tested-by: Shuai Xue <xueshuai@xxxxxxxxxxxxxxxxx> Signed-off-by: Tony Luck <tony.luck@xxxxxxxxx> Message-Id: <20221021200120.175753-2-tony.luck@xxxxxxxxx> Signed-off-by: Tony Luck <tony.luck@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- include/linux/highmem.h | 2 ++ 1 file changed, 2 insertions(+) --- a/include/linux/highmem.h~mm-hwpoison-try-to-recover-from-copy-on-write-faults-v4 +++ a/include/linux/highmem.h @@ -329,6 +329,8 @@ static inline int copy_mc_user_highpage( vfrom = kmap_local_page(from); vto = kmap_local_page(to); ret = copy_mc_to_kernel(vto, vfrom, PAGE_SIZE); + if (!ret) + kmsan_unpoison_memory(page_address(to), PAGE_SIZE); kunmap_local(vto); kunmap_local(vfrom); _ Patches currently in -mm which might be from tony.luck@xxxxxxxxx are mm-hwpoison-try-to-recover-from-copy-on-write-faults.patch mm-hwpoison-try-to-recover-from-copy-on-write-faults-v4.patch mm-hwpoison-when-copy-on-write-hits-poison-take-page-offline.patch