* [PATCH v1 1/1] string: Export strnchrnul()
@ 2026-11-10 16:41 Andy Shevchenko
2026-11-10 16:49 ` Andy Shevchenko
2026-11-10 16:55 ` Armin Wolf
0 siblings, 2 replies; 3+ messages in thread
From: Andy Shevchenko @ 2026-11-10 16:41 UTC (permalink / raw)
To: linux-hardening, linux-kernel
Cc: Kees Cook, Andy Shevchenko, Andrew Morton, Yury Norov,
Ilpo Järvinen, jorge.lopez2, hansg, Muhammad Bilal,
platform-driver-x86, Andy Shevchenko, Armin Wolf
Export strnchrnul() for users that may be compiled as modules.
Reported-by: Armin Wolf <W_Armin@gmx.de>
Closes: https://lore.kernel.org/r/1969fb5a-38ef-4b4b-9d2f-cb9a4348b968@gmx.de
Fixes: 0bee0cece2a6 ("lib/string: add strnchrnul()")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
Assumed to go via PDx86 where the first (wow!) module user wants to use it.
lib/string.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/string.c b/lib/string.c
index a3778d5aab4a..cc8982a93afc 100644
--- a/lib/string.c
+++ b/lib/string.c
@@ -352,6 +352,7 @@ char *strnchrnul(const char *s, size_t count, int c)
s++;
return (char *)s;
}
+EXPORT_SYMBOL(strnchrnul);
#ifndef __HAVE_ARCH_STRRCHR
/**
--
2.50.1
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH v1 1/1] string: Export strnchrnul()
2026-11-10 16:41 [PATCH v1 1/1] string: Export strnchrnul() Andy Shevchenko
@ 2026-11-10 16:49 ` Andy Shevchenko
2026-11-10 16:55 ` Armin Wolf
1 sibling, 0 replies; 3+ messages in thread
From: Andy Shevchenko @ 2026-11-10 16:49 UTC (permalink / raw)
To: linux-hardening, linux-kernel
Cc: Kees Cook, Andy Shevchenko, Andrew Morton, Yury Norov,
Ilpo Järvinen, jorge.lopez2, hansg, Muhammad Bilal,
platform-driver-x86, Armin Wolf
On Tue, Nov 10, 2026 at 05:41:50PM +0100, Andy Shevchenko wrote:
> Export strnchrnul() for users that may be compiled as modules.
>
> Reported-by: Armin Wolf <W_Armin@gmx.de>
> Closes: https://lore.kernel.org/r/1969fb5a-38ef-4b4b-9d2f-cb9a4348b968@gmx.de
> Fixes: 0bee0cece2a6 ("lib/string: add strnchrnul()")
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> ---
>
> Assumed to go via PDx86 where the first (wow!) module user wants to use it.
Actually with the given Fixes tag it may go usual way to next -rcX.
So, whatever appropriate the respective maintainers think...
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH v1 1/1] string: Export strnchrnul()
2026-11-10 16:41 [PATCH v1 1/1] string: Export strnchrnul() Andy Shevchenko
2026-11-10 16:49 ` Andy Shevchenko
@ 2026-11-10 16:55 ` Armin Wolf
1 sibling, 0 replies; 3+ messages in thread
From: Armin Wolf @ 2026-11-10 16:55 UTC (permalink / raw)
To: Andy Shevchenko, linux-hardening, linux-kernel
Cc: Kees Cook, Andy Shevchenko, Andrew Morton, Yury Norov,
Ilpo Järvinen, jorge.lopez2, hansg, Muhammad Bilal,
platform-driver-x86
Am 10.11.26 um 17:41 schrieb Andy Shevchenko:
> Export strnchrnul() for users that may be compiled as modules.
Reviewed-by: Armin Wolf <W_Armin@gmx.de>
> Reported-by: Armin Wolf <W_Armin@gmx.de>
> Closes: https://lore.kernel.org/r/1969fb5a-38ef-4b4b-9d2f-cb9a4348b968@gmx.de
> Fixes: 0bee0cece2a6 ("lib/string: add strnchrnul()")
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> ---
>
> Assumed to go via PDx86 where the first (wow!) module user wants to use it.
>
> lib/string.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/lib/string.c b/lib/string.c
> index a3778d5aab4a..cc8982a93afc 100644
> --- a/lib/string.c
> +++ b/lib/string.c
> @@ -352,6 +352,7 @@ char *strnchrnul(const char *s, size_t count, int c)
> s++;
> return (char *)s;
> }
> +EXPORT_SYMBOL(strnchrnul);
>
> #ifndef __HAVE_ARCH_STRRCHR
> /**
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-11-10 16:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-10 16:41 [PATCH v1 1/1] string: Export strnchrnul() Andy Shevchenko
2026-11-10 16:49 ` Andy Shevchenko
2026-11-10 16:55 ` Armin Wolf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®