[ 1.4316867] panic: UBSan: Undefined Behavior in /syzkaller/managers/netbsd-kubsan/kernel/sys/kern/subr_disk_mbr.c:574:9, member access within misaligned address 0xfffffc28d628c03c for type 'const struct disklabel' which requires 8 byte alignment [ 1.4517069] cpu1: Begin traceback... [ 1.4617217] vpanic() at netbsd:vpanic+0x2aa sys/kern/subr_prf.c:336 [ 1.4817495] isAlreadyReported() at netbsd:isAlreadyReported [ 1.5017744] HandleTypeMismatch.part.1() at netbsd:HandleTypeMismatch.part.1+0xcc [ 1.5217973] HandleTypeMismatch() at netbsd:HandleTypeMismatch+0x7b sys/../common/lib/libc/misc/ubsan.c:408 [ 1.5418247] check_label_magic() at netbsd:check_label_magic+0x9f sys/kern/subr_disk_mbr.c:574 [ 1.5618476] validate_label() at netbsd:validate_label+0x1b4 sys/kern/subr_disk_mbr.c:626 [ 1.5818730] look_netbsd_part() at netbsd:look_netbsd_part+0x3ce sys/kern/subr_disk_mbr.c:526 [ 1.6019033] scan_mbr() at netbsd:scan_mbr+0x24a sys/kern/subr_disk_mbr.c:234 [ 1.6219239] readdisklabel() at netbsd:readdisklabel+0x412 sys/kern/subr_disk_mbr.c:448 [ 1.6419485] dk_getdisklabel() at netbsd:dk_getdisklabel+0x192 sys/dev/dksubr.c:931 [ 1.6619752] dk_open() at netbsd:dk_open+0x456 sys/dev/dksubr.c:177 [ 1.6820001] sdopen() at netbsd:sdopen+0x114 sys/dev/scsipi/sd.c:543 [ 1.7020255] cdev_open() at netbsd:cdev_open+0xe5 sys/kern/subr_devsw.c:871 [ 1.7220521] spec_open() at netbsd:spec_open+0x3ad sys/miscfs/specfs/spec_vnops.c:562 [ 1.7420744] VOP_OPEN() at netbsd:VOP_OPEN+0x113 sys/kern/vnode_if.c:298 [ 1.7621002] dkwedge_discover() at netbsd:dkwedge_discover+0xcf sys/dev/dkwedge/dk.c:931 [ 1.7821308] sdattach() at netbsd:sdattach+0x53f sys/dev/scsipi/sd.c:362 [ 1.8021518] config_attach_loc() at netbsd:config_attach_loc+0x432 sys/kern/subr_autoconf.c:1604 [ 1.8221781] scsi_probe_bus() at netbsd:scsi_probe_bus+0xad8 scsi_probe_device sys/dev/scsipi/scsiconf.c:1035 [inline] [ 1.8221781] scsi_probe_bus() at netbsd:scsi_probe_bus+0xad8 sys/dev/scsipi/scsiconf.c:413 [ 1.8422082] scsibus_discover_thread() at netbsd:scsibus_discover_thread+0xdd scsibus_config sys/dev/scsipi/scsiconf.c:320 [inline] [ 1.8422082] scsibus_discover_thread() at netbsd:scsibus_discover_thread+0xdd sys/dev/scsipi/scsiconf.c:285 [ 1.8522144] cpu1: End traceback... [ 1.8522144] fatal breakpoint trap in supervisor mode [ 1.8622266] trap type 1 code 0 rip 0xffffffff8021dddd cs 0x8 rflags 0x282 cr2 0 ilevel 0 rsp 0xffff8880a5c02280 [ 1.8622266] curlwp 0xfffffc27c40ce9c0 pid 0.28 lowest kstack 0xffff8880a5bff2c0 Stopped in pid 0.28 (system) at netbsd:breakpoint+0x5: leave db{1}>