projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03e5f82
)
mm: kmsan: export kmsan_copy_page_meta()
author
Alexander Potapenko
<glider@google.com>
Mon, 24 Oct 2022 21:21:40 +0000
(23:21 +0200)
committer
Andrew Morton
<akpm@linux-foundation.org>
Fri, 28 Oct 2022 20:37:22 +0000
(13:37 -0700)
Certain modules call copy_user_highpage(), which calls
kmsan_copy_page_meta() under KMSAN, so we need to export the latter.
Link:
https://lkml.kernel.org/r/20221024212144.2852069-1-glider@google.com
Link:
https://github.com/google/kmsan/issues/89
Fixes: b073d7f8aee4 ("mm: kmsan: maintain KMSAN metadata for page operations")
Signed-off-by: Alexander Potapenko <glider@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/kmsan/shadow.c
patch
|
blob
|
history
diff --git
a/mm/kmsan/shadow.c
b/mm/kmsan/shadow.c
index 21e3e196ec3cfc47c180412365e0034ac4ded66d..a787c04e9583cfad45814d92d9ea8a644f6b5e25 100644
(file)
--- a/
mm/kmsan/shadow.c
+++ b/
mm/kmsan/shadow.c
@@
-167,6
+167,7
@@
void kmsan_copy_page_meta(struct page *dst, struct page *src)
__memcpy(origin_ptr_for(dst), origin_ptr_for(src), PAGE_SIZE);
kmsan_leave_runtime();
}
+EXPORT_SYMBOL(kmsan_copy_page_meta);
void kmsan_alloc_page(struct page *page, unsigned int order, gfp_t flags)
{