panic: vmmaplk: lock not shared Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *364773 44897 0 0 0x4000000 1K syz-executor1 485634 13375 0 0 0 0 syz-executor0 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:399 panic() at panic+0x16c sys/kern/subr_prf.c:208 _rw_exit_read(ffff800020b93530,30c,ffff800020cc8f78) at _rw_exit_read+0x12b sys/kern/kern_rwlock.c:355 uvm_fault(a5ff9a4b8bc565a9,ffff800020b93530,0,ffffffff81156c90) at uvm_fault+0x23bb uvmfault_unlockall sys/uvm/uvm_fault.c:1388 [inline] uvm_fault(a5ff9a4b8bc565a9,ffff800020b93530,0,ffffffff81156c90) at uvm_fault+0x23bb sys/uvm/uvm_fault.c:1266 pageflttrap() at pageflttrap+0x216 sys/arch/amd64/amd64/trap.c:200 kerntrap(42871b6ecba3ddc6) at kerntrap+0xeb sys/arch/amd64/amd64/trap.c:294 alltraps_kern(6,4,2,0,fffffd806768aad0,ffff800020b93530) at alltraps_kern+0x7b copyin(2067de70ff58326b,0,ffff800020b93530,4f7a2a99118,0,760) at copyin+0x56 syscall(aadab7a326e03d6f) at syscall+0x5a0 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(aadab7a326e03d6f) at syscall+0x5a0 sys/arch/amd64/amd64/trap.c:583 Xsyscall(6,0,ffffffffffffff43,0,5,4f55e6fd0d8) at Xsyscall+0x128 end of kernel end trace frame: 0x4f7a2a991a0, count: 5 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{1}> ddb{1}> set $lines = 0 ddb{1}> show panic vmmaplk: lock not shared ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:399 panic() at panic+0x16c sys/kern/subr_prf.c:208 _rw_exit_read(ffff800020b93530,30c,ffff800020cc8f78) at _rw_exit_read+0x12b sys/kern/kern_rwlock.c:355 uvm_fault(a5ff9a4b8bc565a9,ffff800020b93530,0,ffffffff81156c90) at uvm_fault+0x23bb uvmfault_unlockall sys/uvm/uvm_fault.c:1388 [inline] uvm_fault(a5ff9a4b8bc565a9,ffff800020b93530,0,ffffffff81156c90) at uvm_fault+0x23bb sys/uvm/uvm_fault.c:1266 pageflttrap() at pageflttrap+0x216 sys/arch/amd64/amd64/trap.c:200 kerntrap(42871b6ecba3ddc6) at kerntrap+0xeb sys/arch/amd64/amd64/trap.c:294 alltraps_kern(6,4,2,0,fffffd806768aad0,ffff800020b93530) at alltraps_kern+0x7b copyin(2067de70ff58326b,0,ffff800020b93530,4f7a2a99118,0,760) at copyin+0x56 syscall(aadab7a326e03d6f) at syscall+0x5a0 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(aadab7a326e03d6f) at syscall+0x5a0 sys/arch/amd64/amd64/trap.c:583 Xsyscall(6,0,ffffffffffffff43,0,5,4f55e6fd0d8) at Xsyscall+0x128 end of kernel end trace frame: 0x4f7a2a991a0, count: -10 ddb{1}> show registers rdi 0xffffffff81724177 db_enter+0x17 rsi 0x141b __ALIGN_SIZE+0x41b rbp 0xffff800020cc8de0 rbx 0xffff800020cc8e80 rdx 0x141c __ALIGN_SIZE+0x41c rcx 0xffff800002d49000 rax 0xffff800002d49000 r8 0xffffffff81d43064 kprintf+0x174 r9 0x1 r10 0x762bcb41dd7ac5df r11 0x14429afac89e0c89 r12 0x3000000008 r13 0xffff800020cc8df0 r14 0x100 r15 0x1 rip 0xffffffff81724178 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020cc8dd0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor1) pid=364773 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020b92720,0xffff800020b93090 process=0xffff800020b949e8 user=0xffff800020cc4000, vmspace=0xfffffd807f00c708 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 44897 217974 33632 0 2 0 syz-executor1 44897 41588 33632 0 2 0x4000000 syz-executor1 *44897 364773 33632 0 7 0x4000000 syz-executor1 44897 397917 33632 0 2 0x4000000 syz-executor1 13375 485634 75208 0 7 0 syz-executor0 13375 444735 75208 0 3 0x4000080 switchread syz-executor0 13375 281221 75208 0 3 0x4000080 fsleep syz-executor0 78459 265243 1 0 3 0x100083 ttyin getty 63846 84030 0 0 3 0x14200 bored sosplice 33632 76298 96117 0 3 0x82 nanosleep syz-executor1 75208 383550 96117 0 3 0x82 nanosleep syz-executor0 96117 169753 77743 0 3 0x82 thrsleep syz-fuzzer 96117 207354 77743 0 3 0x4000082 thrsleep syz-fuzzer 96117 180916 77743 0 3 0x4000082 thrsleep syz-fuzzer 96117 132194 77743 0 3 0x4000082 thrsleep syz-fuzzer 96117 332467 77743 0 3 0x4000082 thrsleep syz-fuzzer 96117 317396 77743 0 3 0x4000082 kqread syz-fuzzer 96117 394966 77743 0 3 0x4000082 thrsleep syz-fuzzer 96117 367360 77743 0 3 0x4000082 thrsleep syz-fuzzer 96117 461878 77743 0 3 0x4000082 thrsleep syz-fuzzer 96117 322288 77743 0 3 0x4000082 thrsleep syz-fuzzer 96117 74329 77743 0 3 0x4000082 thrsleep syz-fuzzer 77743 125855 50479 0 3 0x10008a pause ksh 50479 470097 41473 0 3 0x92 select sshd 41473 468183 1 0 3 0x80 select sshd 83343 196966 32186 73 3 0x100010 biowait syslogd 32186 180870 1 0 3 0x100082 netio syslogd 56981 462072 1 77 3 0x100090 poll dhclient 61558 255485 1 0 3 0x80 poll dhclient 92229 40308 0 0 2 0x14200 zerothread 27406 324943 0 0 3 0x14200 aiodoned aiodoned 26530 497492 0 0 3 0x14200 syncer update 81890 497028 0 0 3 0x14200 cleaner cleaner 35179 326641 0 0 3 0x14200 reaper reaper 79069 506837 0 0 3 0x14200 pgdaemon pagedaemon 92973 393044 0 0 3 0x14200 bored crynlk 56425 461379 0 0 3 0x14200 bored crypto 77680 67337 0 0 3 0x40014200 acpi0 acpi0 8462 60302 0 0 3 0x40014200 idle1 42249 238922 0 0 3 0x14200 bored softnet 6633 137580 0 0 3 0x14200 bored systqmp 94130 87400 0 0 3 0x14200 bored systq 35240 238194 0 0 3 0x40014200 bored softclock 95 47475 0 0 3 0x40014200 idle0 1 156382 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 44897 (syz-executor1) thread 0xffff800020b93530 (364773) exclusive kernel_lock &kernel_lock r = 1 (0xffffffff822d2378) locked @ /syzkaller/managers/multicore/kernel/sys/kern/sched_bsd.c:429 Process 83343 (syslogd) thread 0xffff800020be5780 (196966) exclusive rrwlock inode r = 0 (0xfffffd806eb974d8) locked @ /syzkaller/managers/multicore/kernel/sys/ufs/ufs/ufs_vnops.c:1547 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9599 10481K 10490K 78643K 16419 0 0 pcb 23 9K 11K 78643K 13345 0 0 rtable 100 3K 4K 78643K 2684 0 0 ifaddr 77 22K 26K 78643K 1535 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 2K 78643K 200 0 0 iov 0 0K 32K 78643K 2511 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1201 75K 77K 78643K 17374 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 9K 78643K 488 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 0K 0K 78643K 2742 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1792 194K 288K 78643K 12592 0 0 file desc 6 17K 25K 78643K 27625 0 0 sigio 0 0K 0K 78643K 457 0 0 proc 42 38K 70K 78643K 4305 0 0 subproc 64 65538K 67586K 78643K 284 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 ip_moptions 0 0K 0K 78643K 5192 0 0 in_multi 33 2K 2K 78643K 1138 0 0 ether_multi 1 0K 0K 78643K 142 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 156 689K 689K 78643K 156 0 0 exec 0 0K 1K 78643K 1884 0 0 pfkey data 0 0K 4K 78643K 16 0 0 pagedep 1 8K 8K 78643K 1 0 0 inodedep 1 32K 32K 78643K 1 0 0 newblk 1 0K 0K 78643K 1 0 0 VM swap 7 26K 26K 78643K 7 0 0 UVM amap 167 24K 63K 78643K 88043 0 0 UVM aobj 130 5K 5K 78643K 147 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 1K 78643K 806 0 0 NDP 18 0K 0K 78643K 437 0 0 temp 212 2364K 2444K 78643K 74501 0 0 kqueue 0 0K 0K 78643K 283 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 4 0 0 1 0 1 1 0 8 0 inpcbpl 280 13208 0 13199 1 0 1 1 0 8 0 plimitpl 152 303 0 296 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtentry 112 41 0 1 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 5866 0 5860 1 0 1 1 0 8 0 nd6 48 4 0 0 1 0 1 1 0 8 0 ppxss 1128 241 0 241 100 100 0 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 184 0 0 12 0 12 12 0 8 0 art_table 32 185 0 0 2 0 2 2 0 8 0 art_node 16 40 0 6 1 0 1 1 0 8 0 sysvmsgpl 40 20 0 8 1 0 1 1 0 8 0 semapl 112 2740 0 2730 1 0 1 1 0 8 0 shmpl 112 145 0 17 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 53751 0 51733 67 1 66 66 0 8 0 ffsino 272 53751 0 51733 141 6 135 135 0 8 0 nchpl 144 93661 0 92072 63 3 60 60 0 8 0 uvmvnodes 72 5926 0 0 108 0 108 108 0 8 0 vnodes 200 5926 0 0 312 0 312 312 0 8 0 namei 1024 298353 0 298353 9 8 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 scsiplug 64 90 0 90 57 57 0 1 0 8 0 scxspl 192 275546 0 275545 76 75 1 6 0 8 0 sigapl 432 27805 0 27791 2 0 2 2 0 8 0 futexpl 56 355743 0 355742 4 3 1 1 0 8 0 knotepl 112 7005 0 6978 53 52 1 2 0 8 0 kqueuepl 104 9027 0 9025 1 0 1 1 0 8 0 pipepl 112 18280 0 18261 58 56 2 2 0 8 1 fdescpl 488 27806 0 27791 3 1 2 3 0 8 0 filepl 152 175522 0 175422 75 69 6 7 0 8 2 lockfpl 96 8365 0 8364 20 19 1 1 0 8 0 lockfspl 24 14797 0 14796 19 18 1 1 0 8 0 sessionpl 112 30 0 20 1 0 1 1 0 8 0 pgrppl 48 316 0 306 1 0 1 1 0 8 0 ucredpl 96 59828 0 59821 1 0 1 1 0 8 0 zombiepl 144 27791 0 27791 13 12 1 1 0 8 1 processpl 840 27821 0 27791 4 0 4 4 0 8 0 procpl 600 86245 0 86200 6 2 4 5 0 8 0 sosppl 128 533 0 533 123 122 1 1 0 8 1 sockpl 384 25893 0 25874 63 59 4 4 0 8 2 mcl64k 65536 3174 0 0 181 126 55 66 0 8 0 mcl16k 16384 37 0 0 5 3 2 3 0 8 0 mcl12k 12288 84 0 0 2 0 2 2 0 8 0 mcl9k 9216 107 0 0 4 3 1 2 0 8 0 mcl8k 8192 67 0 0 8 6 2 3 0 8 0 mcl4k 4096 51 0 0 6 4 2 3 0 8 0 mcl2k2 2112 17 0 0 2 0 2 2 0 8 0 mcl2k 2048 209 0 0 12 4 8 12 0 8 0 mtagpl 80 5 0 0 1 0 1 1 0 8 0 mbufpl 256 3275 0 0 43 7 36 36 0 8 0 bufpl 256 49084 0 42115 436 0 436 436 0 8 0 anonpl 16 2821095 0 2813330 715 667 48 64 0 125 3 amapchunkpl 152 179735 0 179618 843 837 6 190 0 158 0 amappl16 192 180158 0 179780 1264 1233 31 43 0 8 12 amappl15 184 7 0 4 1 0 1 1 0 8 0 amappl14 176 7 0 5 2 1 1 1 0 8 0 amappl13 168 29 0 26 1 0 1 1 0 8 0 amappl12 160 13933 0 13931 1 0 1 1 0 8 0 amappl11 152 187 0 178 1 0 1 1 0 8 0 amappl10 144 75 0 73 2 1 1 1 0 8 0 amappl9 136 347 0 345 1 0 1 1 0 8 0 amappl8 128 14404 0 14308 5 1 4 4 0 8 0 amappl7 120 33 0 27 1 0 1 1 0 8 0 amappl6 112 53 0 47 1 0 1 1 0 8 0 amappl5 104 341 0 330 1 0 1 1 0 8 0 amappl4 96 506 0 481 2 1 1 2 0 8 0 amappl3 88 14909 0 14901 1 0 1 1 0 8 0 amappl2 80 280346 0 280282 2 0 2 2 0 8 0 amappl1 72 597571 0 597126 24 14 10 19 0 8 0 amappl 72 86798 0 86755 1 0 1 1 0 75 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma64 64 259 0 259 1 1 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 17 0 17 1 1 0 1 0 8 0 aobjpl 64 146 0 17 3 0 3 3 0 8 0 uaddrrnd 24 27806 0 27791 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 27806 0 27791 1 0 1 1 0 8 0 vmmpekpl 168 238719 0 238698 2 0 2 2 0 8 0 vmmpepl 168 2975981 0 2974455 662 585 77 86 0 357 5 vmsppl 360 27805 0 27791 2 0 2 2 0 8 0 pdppl 4096 55619 0 55582 6 1 5 6 0 8 0 pvpl 32 7434637 0 7423637 1646 1521 125 170 0 265 24 pmappl 224 27805 0 27791 1 0 1 1 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 866 0 167 21 0 21 21 0 8 0