[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <c5491ed1-18b3-4579-818d-6c9765550993@redhat.com>
Date: Fri, 18 Oct 2024 17:12:53 +0200
From: David Hildenbrand <david@...hat.com>
To: Arnd Bergmann <arnd@...nel.org>, Andrew Morton
<akpm@...ux-foundation.org>, Sabyrzhan Tasbolatov <snovitoll@...il.com>,
Andrey Konovalov <andreyknvl@...il.com>
Cc: Arnd Bergmann <arnd@...db.de>, Marco Elver <elver@...gle.com>,
linux-mm@...ck.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] mm: export copy_to_kernel_nofault
On 18.10.24 17:11, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd@...db.de>
>
> This symbol is now used on the kasan test module, so it needs to be
> exported.
>
> ERROR: modpost: "copy_to_kernel_nofault" [mm/kasan/kasan_test.ko] undefined!
>
> Fixes: 44749130ffb4 ("kasan: migrate copy_user_test to kunit")
> Signed-off-by: Arnd Bergmann <arnd@...db.de>
> ---
> mm/maccess.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/mm/maccess.c b/mm/maccess.c
> index 3ca55ec63a6a..8f0906180a94 100644
> --- a/mm/maccess.c
> +++ b/mm/maccess.c
> @@ -82,6 +82,7 @@ long copy_to_kernel_nofault(void *dst, const void *src, size_t size)
> pagefault_enable();
> return -EFAULT;
> }
> +EXPORT_SYMBOL_GPL(copy_to_kernel_nofault);
>
> long strncpy_from_kernel_nofault(char *dst, const void *unsafe_addr, long count)
> {
Acked-by: David Hildenbrand <david@...hat.com>
--
Cheers,
David / dhildenb
Powered by blists - more mailing lists