summaryrefslogtreecommitdiff
path: root/mm/kmsan
diff options
context:
space:
mode:
authorAlexander Potapenko <glider@google.com>2022-10-24 23:21:40 +0200
committerAndrew Morton <akpm@linux-foundation.org>2022-10-28 13:37:22 -0700
commitf59a3ee6912997fc56ecee78613fef53aae668d9 (patch)
tree27b52ab52e8d283338963a83c298afdc5449e90f /mm/kmsan
parent03e5f82ea632af329e32ec03d952b2d99497eeaa (diff)
downloadlwn-f59a3ee6912997fc56ecee78613fef53aae668d9.tar.gz
lwn-f59a3ee6912997fc56ecee78613fef53aae668d9.zip
mm: kmsan: export kmsan_copy_page_meta()
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>
Diffstat (limited to 'mm/kmsan')
-rw-r--r--mm/kmsan/shadow.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mm/kmsan/shadow.c b/mm/kmsan/shadow.c
index 21e3e196ec3c..a787c04e9583 100644
--- 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)
{