mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v1 1/1] string: Export strnchrnul()
@ 2026-11-10 16:41 Andy Shevchenko
  2026-11-10 16:49 ` Andy Shevchenko
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ 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] 8+ messages in thread

end of thread, other threads:[~2026-11-10 19:34 UTC | newest]

Thread overview: 8+ 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
2026-11-10 18:01 ` Yury Norov
2026-11-10 18:39   ` Ilpo Järvinen
2026-11-10 18:42     ` Yury Norov
2026-11-10 18:29 ` Ilpo Järvinen
2026-11-10 19:34   ` Andy Shevchenko

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®