On Thu, 18 Jun 2026 16:29:43 +0200, Arnd Bergmann wrote:
> Both kmsan and fortify-source replace the memset function. When both
> are enabled at the same time, the kmsan version gets used, which triggers
> a warning about fortify-source being nonfunctional:
> 
> warning: unsafe memset() usage lacked '__write_overflow' symbol in 
> /home/arnd/arm-soc/lib/test_fortify/write_overflow-memset.c
> warning: unsafe memset() usage lacked '__write_overflow_field' symbol in 
> /home/arnd/arm-soc/lib/test_fortify/write_overflow_field-memset.c
> 
> [...]

Applied to for-next/hardening, thanks!

[1/1] KMSAN: fix memset() when using fortify-source, again
      https://git.kernel.org/kees/c/ff936b726c98

Take care,

-- 
Kees Cook


Reply via email to