uvm_fault(0xffffffff839859e8, 0xffff80001b552000, 0, 1) -> d kernel: page fault trap, code=0 Stopped at memcpy+0x19: repe movsq (%rsi),%es:(%rdi) TID PID UID PRFLAGS PFLAGS CPU COMMAND *100293 76846 0 0 0x4000000 0 syz-executor memcpy() at memcpy+0x19 readdisklabel(d02,ffffffff8183b490,ffff800001594800,0) at readdisklabel+0x1f6 sys/arch/amd64/amd64/disksubr.c:96 sdgetdisklabel(d01,ffff800000025c00,ffff800001594800,0) at sdgetdisklabel+0x897 sys/scsi/sd.c:1169 sdioctl(d01,20006473,ffff80003c8e5610,1,ffff8000304c0d10) at sdioctl+0x6fb sys/scsi/sd.c:883 VOP_IOCTL(fffffd806bfbc990,20006473,ffff80003c8e5610,1,fffffd8007ffd548,ffff8000304c0d10) at VOP_IOCTL+0xa3 sys/kern/vfs_vops.c:264 vn_ioctl(fffffd806bf498f8,20006473,ffff80003c8e5610,ffff8000304c0d10) at vn_ioctl+0xea sys/kern/vfs_vnops.c:537 sys_ioctl(ffff8000304c0d10,ffff80003c8e57e0,ffff80003c8e5730) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003c8e57e0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c8e57e0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xe578da733b0, count: 6 https://www.openbsd.org/ddb.html describes the minimum info required in bug reports. Insufficient info makes it difficult to find and fix bugs. ddb> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic *cpu0: uvm_fault(0xffffffff839859e8, 0xffff80001b552000, 0, 1) -> d ddb> trace memcpy() at memcpy+0x19 readdisklabel(d02,ffffffff8183b490,ffff800001594800,0) at readdisklabel+0x1f6 sys/arch/amd64/amd64/disksubr.c:96 sdgetdisklabel(d01,ffff800000025c00,ffff800001594800,0) at sdgetdisklabel+0x897 sys/scsi/sd.c:1169 sdioctl(d01,20006473,ffff80003c8e5610,1,ffff8000304c0d10) at sdioctl+0x6fb sys/scsi/sd.c:883 VOP_IOCTL(fffffd806bfbc990,20006473,ffff80003c8e5610,1,fffffd8007ffd548,ffff8000304c0d10) at VOP_IOCTL+0xa3 sys/kern/vfs_vops.c:264 vn_ioctl(fffffd806bf498f8,20006473,ffff80003c8e5610,ffff8000304c0d10) at vn_ioctl+0xea sys/kern/vfs_vnops.c:537 sys_ioctl(ffff8000304c0d10,ffff80003c8e57e0,ffff80003c8e5730) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003c8e57e0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c8e57e0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xe578da733b0, count: -9 ddb> show registers rdi 0xffff80003c8e4fd0 rsi 0xffff80001b552000 rbp 0xffff80003c8e5260 rbx 0xffff80003c8e4fd0 rdx 0x200 rcx 0x40 rax 0xffff8000304c0d10 r8 0x7f7fffffc000 r9 0 r10 0xc9d3efa1cb71dc17 r11 0xffff80003c8e4fd0 r12 0xffff800001594800 r13 0 r14 0 r15 0xfffffd806f7a8a00 rip 0xffffffff82369c89 memcpy+0x19 cs 0x8 rflags 0x10202 __ALIGN_SIZE+0xf202 rsp 0xffff80003c8e4fc8 ss 0x10 memcpy+0x19: repe movsq (%rsi),%es:(%rdi) ddb> show proc PROC (syz-executor) tid=100293 pid=76846 tcnt=3 stat=onproc flags process=0 proc=4000000 runpri=36, usrpri=79, slppri=36, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff8000304c1ca0,0xffff8000304c1780 process=0xffff8000ffffb618 user=0xffff80003c8e0000, vmspace=0xfffffd800d607b98 estcpu=29, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 71130 461380 88936 0 2 0 syz-executor 71130 274298 88936 0 3 0x4000080 fsleep syz-executor 20973 479052 13872 0 2 0 syz-executor 20973 110412 13872 0 3 0x4000080 fsleep syz-executor 66637 395553 805 0 2 0 syz-executor 66637 126823 805 0 3 0x4000080 fsleep syz-executor 66637 170739 805 0 3 0x4000080 fsleep syz-executor 12456 271467 79552 0 2 0 syz-executor 12456 420750 79552 0 3 0x4000080 sbwait syz-executor 39046 237790 75579 0 2 0xc80 syz-executor 39046 313117 75579 0 3 0x4000080 lockf syz-executor 39046 487875 75579 0 3 0x4000080 fsleep syz-executor 39046 522645 75579 0 3 0x4000080 fsleep syz-executor 39046 180147 75579 0 3 0x4000080 nanoslp syz-executor 94987 320011 1 0 3 0x82 nanoslp getty 76846 187007 64275 0 3 0x80 nanoslp syz-executor *76846 100293 64275 0 7 0x4000000 syz-executor 76846 446603 64275 0 3 0x4000080 fsleep syz-executor 32343 430753 0 0 3 0x14280 nfsidl nfsio 47363 164611 0 0 3 0x14280 nfsidl nfsio 53316 367418 0 0 3 0x14280 nfsidl nfsio 11337 270112 0 0 3 0x14280 nfsidl nfsio 24033 489368 0 0 3 0x14280 nfsidl nfsio 44788 110862 0 0 3 0x14280 nfsidl nfsio 41965 188473 0 0 3 0x14280 nfsidl nfsio 5337 513932 0 0 3 0x14280 nfsidl nfsio 58797 19321 0 0 3 0x14280 nfsidl nfsio 58415 451090 0 0 3 0x14280 nfsidl nfsio 93810 522920 0 0 3 0x14280 nfsidl nfsio 23735 399187 0 0 3 0x14280 nfsidl nfsio 89488 269825 0 0 3 0x14280 nfsidl nfsio 27523 449028 0 0 3 0x14280 nfsidl nfsio 64833 407871 0 0 3 0x14280 nfsidl nfsio 46945 348270 0 0 3 0x14280 nfsidl nfsio 92554 328452 0 0 3 0x14280 nfsidl nfsio 10144 337571 0 0 3 0x14280 nfsidl nfsio 66888 507731 0 0 3 0x14280 nfsidl nfsio 6848 351765 0 0 3 0x14280 nfsidl nfsio 88936 313276 10744 0 3 0x82 nanoslp syz-executor 64275 458610 10744 0 3 0x82 nanoslp syz-executor 75579 354312 10744 0 3 0x82 nanoslp syz-executor 80465 167068 10744 0 2 0x10000003 syz-executor 13872 457388 10744 0 3 0x82 nanoslp syz-executor 16000 417513 10744 0 3 0x82 nanoslp syz-executor 79552 269915 10744 0 3 0x82 nanoslp syz-executor 805 359944 10744 0 3 0x82 nanoslp syz-executor 10744 209747 1 0 3 0x82 kqread syz-executor 73303 258254 1 73 3 0x1100090 kqread syslogd 78818 289860 0 0 3 0x14200 bored smr 99508 143649 0 0 2 0x14200 zerothread 76699 368751 0 0 3 0x14200 aiodoned aiodoned 79298 88653 0 0 3 0x14200 syncer update 70657 358740 0 0 3 0x14200 cleaner cleaner 26614 75659 0 0 3 0x14200 reaper reaper 81956 418349 0 0 3 0x14200 pgdaemon pagedaemon 31663 69960 0 0 3 0x14200 bored viomb 50157 39259 0 0 3 0x40014200 acpi0 acpi0 27300 11780 0 0 3 0x14200 bored softnet0 66759 235503 0 0 3 0x14200 bored systqmp 11682 442781 0 0 3 0x14200 bored systq 40512 175493 0 0 3 0x40014200 tmoslp softclock 65623 310940 0 0 3 0x40014200 idle0 1 320365 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11030 12163K 12732K 166960K 12623 0 pcb 21 12K 12K 166960K 57 0 rtable 254 7K 11K 166960K 426 0 pf 31 13K 20K 166960K 77 0 ifaddr 43 7K 8K 166960K 54 0 ifgroup 50 2K 2K 166960K 68 0 sysctl 3 1K 9K 166960K 7 0 counters 33 17K 18K 166960K 43 0 ioctlops 0 0K 4K 166960K 167 0 iov 0 0K 12K 166960K 4 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1355 85K 85K 166960K 1595 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 4 0 VM map 2 1K 1K 166960K 2 0 sem 9 0K 0K 166960K 12 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 17 61K 89K 166960K 309 0 sigio 0 0K 0K 166960K 1 0 proc 19 25K 108K 166960K 541 0 subproc 72 4K 4K 166960K 72 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 36 0 in_multi 99 7K 7K 166960K 110 0 ether_multi 1 0K 0K 166960K 4 0 mrt 0 0K 0K 166960K 13 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 67 307K 307K 166960K 67 0 exec 0 0K 1K 166960K 383 0 fusefs mount 1 32K 32K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 157 92K 176K 166960K 4515 0 UVM aobj 11 4K 4K 166960K 12 0 pinsyscall 21 42K 92K 166960K 1418 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 3 0 NDP 11 0K 2K 166960K 32 0 temp 51 9075K 9140K 166960K 12419 0 kqueue 3 4K 35K 166960K 57 0 SYN cache 2 16K 16K 166960K 2 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle rtpcb 120 50 0 50 1 0 1 1 0 8 1 rtentry 136 120 0 6 4 0 4 4 0 8 0 unpcb 144 99 0 95 1 0 1 1 0 8 0 syncache 336 5 0 5 2 1 1 1 0 8 1 tcpcb 736 99 0 97 4 3 1 4 0 8 0 arp 96 18 0 0 1 0 1 1 0 8 0 ipq 40 1 0 0 1 0 1 1 0 8 0 ipqe 40 2 0 1 1 0 1 1 0 8 0 inpcb 328 218 0 210 5 3 2 4 0 8 1 ip6q 72 1 0 0 1 0 1 1 0 8 0 ip6af 40 1 0 0 1 0 1 1 0 8 0 nd6 112 26 0 1 1 0 1 1 0 8 0 pkpcb 40 2 0 2 1 1 0 1 0 8 0 kcovpl 48 8 0 0 1 0 1 1 0 8 0 ppxss 1072 7 0 7 1 0 1 1 0 8 1 pppxif 1416 3 0 3 2 1 1 1 0 8 1 pfrktable 1344 14 0 14 2 1 1 1 0 8 1 pfanchor 1288 6 0 2 2 1 1 1 0 8 0 pftag 88 2 0 2 2 1 1 1 0 8 1 pfstkey 128 2 0 2 1 1 0 1 0 8 0 pfstate 384 1 0 1 1 1 0 1 0 8 0 pfrule 1360 4 0 4 2 1 1 1 0 8 1 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 500 0 14 31 0 31 31 0 8 0 art_table 40 502 0 14 6 0 6 6 0 8 1 art_node 32 118 0 15 1 0 1 1 0 8 0 sysvmsgpl 40 9 0 5 1 0 1 1 0 8 0 semapl 112 8 0 1 1 0 1 1 0 8 0 shmpl 112 9 0 1 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1877 0 422 92 0 92 92 0 8 0 ffsino 256 1877 0 422 92 0 92 92 0 8 0 nchpl 144 2309 0 613 63 0 63 63 0 8 0 rtmask 32 1 0 1 1 0 1 1 0 8 1 vnodes 216 2132 0 0 119 0 119 119 0 8 0 namei 1024 7218 0 7218 2 1 1 2 0 8 1 pfiaddrpl 120 4 0 4 2 1 1 1 0 8 1 kstatmem 264 33 0 10 2 0 2 2 0 8 0 scsiplug 72 1 0 1 1 1 0 1 0 8 0 scxspl 216 7729 0 7729 9 1 8 8 1 8 8 plimitpl 152 129 0 117 1 0 1 1 0 8 0 sigapl 424 626 0 572 9 1 8 8 0 8 0 knotepl 120 9577 0 9555 11 1 10 10 0 8 8 kqueuepl 184 136 0 134 4 3 1 4 0 8 0 pipepl 304 131 0 104 3 0 3 3 0 8 0 fdescpl 448 593 0 573 5 1 4 5 0 8 0 filepl 120 2696 0 2512 10 3 7 10 0 8 0 lockfpl 104 75 0 71 1 0 1 1 0 8 0 lockfspl 48 33 0 31 1 0 1 1 0 8 0 sessionpl 144 26 0 23 1 0 1 1 0 8 0 pgrppl 48 36 0 25 1 0 1 1 0 8 0 ucredpl 104 243 0 238 1 0 1 1 0 8 0 zombiepl 144 647 0 645 1 0 1 1 0 8 0 processpl 1152 626 0 572 5 0 5 5 0 8 0 procpl 664 936 0 870 7 0 7 7 0 8 0 sockpl 552 379 0 367 5 2 3 5 0 8 1 mcl64k 65536 10 0 10 2 1 1 1 0 8 1 mcl16k 16384 2 0 2 1 0 1 1 0 8 1 mcl12k 12288 1 0 1 1 0 1 1 0 8 1 mcl8k 8192 6 0 6 2 1 1 1 0 8 1 mcl4k 4096 2779 0 2727 16 8 8 15 0 8 0 mcl2k 2048 248 0 242 3 1 2 2 0 8 1 mtagpl 96 7 0 4 1 0 1 1 0 8 0 mbufpl 256 6065 0 5876 14 1 13 14 0 8 0 bufpl 280 2579 0 102 177 0 177 177 0 8 0 anonpl 24 115200 0 111231 44 11 33 33 0 187 8 amapchunkpl 152 14421 0 13886 36 6 30 30 0 158 7 amappl16 200 1786 0 1765 5 3 2 5 0 8 0 amappl15 192 8 0 8 1 1 0 1 0 8 0 amappl14 184 424 0 424 1 0 1 1 0 8 1 amappl13 176 128 0 126 1 0 1 1 0 8 0 amappl12 168 867 0 848 2 0 2 2 0 8 0 amappl11 160 8 0 8 1 1 0 1 0 8 0 amappl10 152 58 0 56 1 0 1 1 0 8 0 amappl9 144 293 0 293 1 1 0 1 0 8 0 amappl8 136 102 0 102 1 0 1 1 0 8 1 amappl7 128 144 0 140 1 0 1 1 0 8 0 amappl6 120 150 0 150 1 0 1 1 0 8 1 amappl5 112 90 0 88 1 0 1 1 0 8 0 amappl4 104 266 0 259 1 0 1 1 0 8 0 amappl3 96 2673 0 2582 4 0 4 4 0 8 0 amappl2 88 522 0 507 2 0 2 2 0 8 0 amappl1 80 10320 0 10163 15 2 13 15 0 8 2 amappl 88 3782 0 3646 5 0 5 5 0 92 1 uvmvnodes 80 105 0 0 3 0 3 3 0 8 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma128 128 254 0 254 1 1 0 1 0 8 0 dma64 64 6 0 6 1 1 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 11 0 1 1 0 1 1 0 8 0 uaddrrnd 24 593 0 573 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 593 0 573 1 0 1 1 0 8 0 vmmpekpl 168 6836 0 6800 2 0 2 2 0 8 0 vmmpepl 168 45995 0 45030 95 13 82 92 0 357 22 vmsppl 368 592 0 573 4 1 3 4 0 8 0 rwobjpl 40 15693 0 15187 12 1 11 12 0 8 0 pdppl 4096 1192 0 1146 98 32 66 78 0 8 20 pvpl 32 284862 0 277224 120 20 100 100 0 265 33 pmappl 216 592 0 573 2 0 2 2 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 378 0 54 10 0 10 10 0 8 0 ddb> machine ddbcpu 0 No such command ddb>