Type mismatch spots found by undefined behavior sanitizer
type mismatch src/lib/asan.c:90:9
ubsan: unrecoverable error¶
The snippet code is in func static __always_inline bool memory_is_poisoned_16():
Even if you change the code to something like "return *shadow_addr ? 1 : 0;", ubsan will produce the same error. Is this a bug in coreboot or a bug in ubsan? The similar code won't have any problem tested by GCC-7.3/8.3/9.3. So the current implementation of ubsan may have some differences between coreboot and other userspace apps built by GCC.
type mismatch src/cpu/x86/lapic/lapic_cpu_init.c:51:13
ubsan: unrecoverable error.¶
No data to display