https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84732
--- Comment #9 from Arnd Bergmann <arnd at linaro dot org> --- One more instance got added to the kernel today: In file included from /git/arm-soc/include/trace/perf.h:90, from /git/arm-soc/include/trace/define_trace.h:97, from /git/arm-soc/include/trace/events/fscache.h:537, from /git/arm-soc/fs/fscache/internal.h:32, from /git/arm-soc/fs/fscache/main.c:20: /git/arm-soc/include/trace/events/fscache.h: In function 'perf_trace_fscache_netfs': /git/arm-soc/include/trace/events/fscache.h:200:1261: warning: 'strncpy' specified bound 8 equals destination size [-Wstringop-truncation] TRACE_EVENT(fscache_netfs, Same as the one from comment #5, this one happen for -fsanitize=kernel-address and is based on simple code that we don't warn for without sanitizer: strncpy(__entry->name, netfs->name, 8); __entry->name[7] = 0; I can probably work around that by turning off -Wstringop-truncation whenever sanitizers enabled in the kernel configuration (we already do that for -Wmaybe-uninitialized), if this one is unlikely to get fixed before the gcc-8 release.