1 Commits
Author SHA1 Message Date
Jan Polensky 71247e71a4 rust: helpers: Add memchr wrapper for string operations
Add a dedicated string helper file with a memchr wrapper that uses the
kernel's instrumented memchr() function to ensure KASAN and FORTIFY_SOURCE
protections are preserved for Rust code.

Reported-by: Miguel Ojeda <[email protected]>
Link: https://lore.kernel.org/rust-for-linux/CANiq72mXAZc0sNM7ShX8VDVs_7zJddawP-e=wt+ERr1YUCcWUw@mail.gmail.com/
Signed-off-by: Jan Polensky <[email protected]>
Acked-by: Heiko Carstens <[email protected]>
Acked-by: Gary Guo <[email protected]>
Signed-off-by: Alexander Gordeev <[email protected]>
2026-06-10 16:25:13 +02:00