https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78513
--- Comment #6 from Dmitry Vyukov <dvyukov at google dot com> --- > Then GCC 7 won't build any kernel with KASAN until those kernel patches go in? Yes. Kernel passes -fsanitize=kernel-address, some behavior tuning can be done based on that flag. Please notify kasan-...@googlegroups.com of such changes ahead of time. I discovered the breakage only because my 6.something started producing broken kernel, so I updated gcc to head and hit these build failures. There was another, more subtle one. Description of globals was extended with a new field. Globals are passed in an array, as the result kernel iterated over the array with a wrong step which corrupted memory. There is a pending kernel patch for this as well: https://groups.google.com/d/msg/kasan-dev/-KfrM62xGfM/XoQIjyjMAgAJ