Re: Clang and UBSAN: member access within null pointer of type

2020-05-07 Thread Qian Cai
> On May 7, 2020, at 2:30 PM, Nick Desaulniers wrote: > > On Thu, May 7, 2020 at 6:42 AM Qian Cai wrote: >> >> Running a Clang (9.0.1) build kernel with UBSAN generated a few warnings >> during boot, > > Very cool, these reports are so nice! They hand you everything on a > silver platter.

Re: Clang and UBSAN: member access within null pointer of type

2020-05-07 Thread Nick Desaulniers
On Thu, May 7, 2020 at 6:42 AM Qian Cai wrote: > > Running a Clang (9.0.1) build kernel with UBSAN generated a few warnings > during boot, Very cool, these reports are so nice! They hand you everything on a silver platter. Thanks for testing/sending! Let's take a look. > > [0.00]

Clang and UBSAN: member access within null pointer of type

2020-05-07 Thread Qian Cai
Running a Clang (9.0.1) build kernel with UBSAN generated a few warnings during boot, [0.00] UBSAN: null-ptr-deref in drivers/acpi/acpica/tbfadt.c:459:37 [0.00] member access within null pointer of type 'struct acpi_table_fadt' [0.00] CPU: 0 PID: 0 Comm: swapper Not