[ 1.3637499] panic: UBSan: Undefined Behavior in /syzkaller/managers/netbsd-kubsan/kernel/sys/kern/subr_disk_mbr.c:574:9, member access within misaligned address 0xffff94be54e8c03c for type 'const struct disklabel' which requires 8 byte alignment [ 1.3807321] cpu0: Begin traceback... [ 1.3833455] vpanic() at netbsd:vpanic+0x2aa sys/kern/subr_prf.c:336 [ 1.4013671] isAlreadyReported() at netbsd:isAlreadyReported [ 1.4213878] HandleTypeMismatch.part.1() at netbsd:HandleTypeMismatch.part.1+0xcc [ 1.4313990] HandleTypeMismatch() at netbsd:HandleTypeMismatch+0x7b sys/../common/lib/libc/misc/ubsan.c:408 [ 1.4514208] check_label_magic() at netbsd:check_label_magic+0x9f sys/kern/subr_disk_mbr.c:574 [ 1.4714414] validate_label() at netbsd:validate_label+0x1b4 sys/kern/subr_disk_mbr.c:626 [ 1.4814527] look_netbsd_part() at netbsd:look_netbsd_part+0x3ce sys/kern/subr_disk_mbr.c:526 [ 1.5014734] scan_mbr() at netbsd:scan_mbr+0x24a sys/kern/subr_disk_mbr.c:234 [ 1.5115628] readdisklabel() at netbsd:readdisklabel+0x412 sys/kern/subr_disk_mbr.c:448 [ 1.5315175] dk_getdisklabel() at netbsd:dk_getdisklabel+0x192 sys/dev/dksubr.c:931 [ 1.5515274] dk_open() at netbsd:dk_open+0x456 sys/dev/dksubr.c:177 [ 1.5615377] sdopen() at netbsd:sdopen+0x114 sys/dev/scsipi/sd.c:543 [ 1.5815581] cdev_open() at netbsd:cdev_open+0xfb sys/kern/subr_devsw.c:871 [ 1.5915690] spec_open() at netbsd:spec_open+0x3ad sys/miscfs/specfs/spec_vnops.c:562 [ 1.6115897] VOP_OPEN() at netbsd:VOP_OPEN+0x113 sys/kern/vnode_if.c:298 [ 1.6216006] dkwedge_discover() at netbsd:dkwedge_discover+0xcf sys/dev/dkwedge/dk.c:931 [ 1.6416221] sdattach() at netbsd:sdattach+0x53f sys/dev/scsipi/sd.c:362 [ 1.6616425] config_attach_loc() at netbsd:config_attach_loc+0x432 sys/kern/subr_autoconf.c:1604 [ 1.6716541] scsi_probe_bus() at netbsd:scsi_probe_bus+0xc76 scsi_probe_device sys/dev/scsipi/scsiconf.c:1043 [inline] [ 1.6716541] scsi_probe_bus() at netbsd:scsi_probe_bus+0xc76 sys/dev/scsipi/scsiconf.c:413 [ 1.6916758] scsibus_discover_thread() at netbsd:scsibus_discover_thread+0x100 scsibus_config sys/dev/scsipi/scsiconf.c:320 [inline] [ 1.6916758] scsibus_discover_thread() at netbsd:scsibus_discover_thread+0x100 sys/dev/scsipi/scsiconf.c:285 [ 1.6916758] cpu0: End traceback... [ 1.7034812] fatal breakpoint trap in supervisor mode [ 1.7034812] trap type 1 code 0 rip 0xffffffff8021dddd cs 0x8 rflags 0x282 cr2 0 ilevel 0 rsp 0xffffc700a5c10260 [ 1.7139986] curlwp 0xffff94bd42cdc9c0 pid 0.28 lowest kstack 0xffffc700a5c0d2c0 Stopped in pid 0.28 (system) at netbsd:breakpoint+0x5: leave db{0}>