Skip to content

Commit 30ca530

Browse files
aeglakpm00
authored andcommitted
mm-hwpoison-try-to-recover-from-copy-on-write-faults-v4
add call to kmsan_unpoison_memory(), per Miaohe Lin Link: https://lkml.kernel.org/r/[email protected] Reviewed-by: Dan Williams <[email protected]> Reviewed-by: Miaohe Lin <[email protected]> Reviewed-by: Naoya Horiguchi <[email protected]> Tested-by: Shuai Xue <[email protected]> Signed-off-by: Tony Luck <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 89ee042 commit 30ca530

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/linux/highmem.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,8 @@ static inline int copy_mc_user_highpage(struct page *to, struct page *from,
329329
vfrom = kmap_local_page(from);
330330
vto = kmap_local_page(to);
331331
ret = copy_mc_to_kernel(vto, vfrom, PAGE_SIZE);
332+
if (!ret)
333+
kmsan_unpoison_memory(page_address(to), PAGE_SIZE);
332334
kunmap_local(vto);
333335
kunmap_local(vfrom);
334336

0 commit comments

Comments
 (0)