Currently, KASAN uses EXPORT_SYMBOL_GPL to mark the symbols that are only exported to allow building KASAN tests as a module. We can instead create a separate namespace for these symbols and use EXPORT_SYMBOL_NS. This would work as a guard against external code accidentally using KASAN-internal symbols.
Instead of creating a separate namespace, we can reuse EXPORT_SYMBOL_IF_KUNIT.
Hello, Create a patch for this issue: https://lore.kernel.org/all/20241101184011.3369247-2-snovitoll@gmail.com/T/#u Thanks
Resolved by Sabyrzhan in [1]. [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c28432acf61751c2be8b36cb831dd490d2aed465