[ 1.4914322] panic: UBSan: Undefined Behavior in /syzkaller/managers/netbsd-kubsan/kernel/sys/dev/raidframe/rf_netbsdkintf.c:521:7, member access within null pointer of type 'struct raid_softc' [ 1.5146795] cpu0: Begin traceback... [ 1.5146795] vpanic() at netbsd:vpanic+0x258 sys/kern/subr_prf.c:336 [ 1.5357634] isAlreadyReported() at netbsd:isAlreadyReported [ 1.5468890] HandleTypeMismatch() at netbsd:HandleTypeMismatch [ 1.5580161] HandleTypeMismatch() at netbsd:HandleTypeMismatch+0x7b sys/../common/lib/libc/misc/ubsan.c:396 [ 1.5691446] rf_buildroothack() at netbsd:rf_buildroothack+0x4c3 sys/dev/raidframe/rf_netbsdkintf.c:526 [ 1.5913983] rf_autoconfig() at netbsd:rf_autoconfig+0x75 rf_autoconfig sys/dev/raidframe/rf_netbsdkintf.c:432 [inline] [ 1.5913983] rf_autoconfig() at netbsd:rf_autoconfig+0x75 sys/dev/raidframe/rf_netbsdkintf.c:400 [ 1.6025258] config_finalize() at netbsd:config_finalize+0x13d sys/kern/subr_autoconf.c:2148 [ 1.6136522] main() at netbsd:main+0x594 sys/kern/init_main.c:647 [ 1.6247808] cpu0: End traceback... [ 1.6247808] fatal breakpoint trap in supervisor mode [ 1.6247808] trap type 1 code 0 rip 0xffffffff8021dddd cs 0x8 rflags 0x282 cr2 0 ilevel 0 rsp 0xffffffff85e1d7d0 [ 1.6405886] curlwp 0xffffffff84bb5ce0 pid 0.1 lowest kstack 0xffffffff85e192c0 Stopped in pid 0.1 (system) at netbsd:breakpoint+0x5: leave db{0}>