Re: CONFIG_KASAN triggers ASAN bug in GCC 13.3.0 and 14.1.0

From: Matt Fleming
Date: Mon Dec 16 2024 - 11:21:52 EST


On Sat, Dec 14, 2024 at 1:17 AM Uros Bizjak <ubizjak@xxxxxxxxx> wrote:
>
> Does your config include CONFIG_UBSAN_BOOL=y ?

Yes, it does!

> There is a rare interaction between CONFIG_KASAN and CONFIG_UBSAN_BOOL
> (aka -fsanitize=bool), reported in [1] and fixed for gcc-14.2 in [2].
>
> [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111736#c42
>
> [2] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115172
>
> Otherwise, please attach your .config, and I'll look into this issue.

Thanks. Disabling CONFIG_UBSAN_BOOL does indeed make the kernels boot again.

Should CONFIG_UBSAN_BOOL have a dependency on GCC 14.4+ ?