https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81715
--- Comment #16 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Did this change help? Would it be beneficial to backport to 7.x or even 6.x? As is it is certainly too dangerous, but wonder about additionally guarding the 3 hunks either with (flag_sanitize & SANITIZE_ADDRESS) != 0 or even (flag_sanitize & SANITIZE_KERNEL_ADDRESS) != 0, so it would affect only people using -fsanitize={,kernel-}address or even just -fsanitize=kernel-address.