panic: vmmaplk: lock not shared Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 225833 54548 0 0 0 1 syz-executor0 *240185 54548 0 0 0x4000000 0K 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(ffff800020b93080,2f4,ffff800020c86dd8) at _rw_exit_read+0x12b sys/kern/kern_rwlock.c:355 uvm_fault(ef85f8af9482a534,ffff800020b93080,0,ffffffff8187fa60) at uvm_fault+0x23bb uvmfault_unlockall sys/uvm/uvm_fault.c:1388 [inline] uvm_fault(ef85f8af9482a534,ffff800020b93080,0,ffffffff8187fa60) at uvm_fault+0x23bb sys/uvm/uvm_fault.c:1266 pageflttrap() at pageflttrap+0x216 sys/arch/amd64/amd64/trap.c:200 kerntrap(2af3c4a4ed90c407) at kerntrap+0xeb sys/arch/amd64/amd64/trap.c:294 alltraps_kern(6,10,ffff800020b93080,0,1,10) at alltraps_kern+0x7b copyin(cda2e440913a4a43,ffff800020c87290,1,ffff800020c872a8,ffff800020b93080,10c0) at copyin+0x4b sys_pwritev(3ceb8b6211a67c40,0,ffff800020b93080) at sys_pwritev+0x6b sys/kern/vfs_syscalls.c:3152 syscall(38bb31602b909801) at syscall+0x5a0 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(38bb31602b909801) at syscall+0x5a0 sys/arch/amd64/amd64/trap.c:583 Xsyscall(6,0,ffffffffffffffb8,0,4,1a00372f0d8) at Xsyscall+0x128 end of kernel end trace frame: 0x1a2babc52d0, count: 4 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{0}> ddb{0}> set $lines = 0 ddb{0}> show panic vmmaplk: lock not shared ddb{0}> 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(ffff800020b93080,2f4,ffff800020c86dd8) at _rw_exit_read+0x12b sys/kern/kern_rwlock.c:355 uvm_fault(ef85f8af9482a534,ffff800020b93080,0,ffffffff8187fa60) at uvm_fault+0x23bb uvmfault_unlockall sys/uvm/uvm_fault.c:1388 [inline] uvm_fault(ef85f8af9482a534,ffff800020b93080,0,ffffffff8187fa60) at uvm_fault+0x23bb sys/uvm/uvm_fault.c:1266 pageflttrap() at pageflttrap+0x216 sys/arch/amd64/amd64/trap.c:200 kerntrap(2af3c4a4ed90c407) at kerntrap+0xeb sys/arch/amd64/amd64/trap.c:294 alltraps_kern(6,10,ffff800020b93080,0,1,10) at alltraps_kern+0x7b copyin(cda2e440913a4a43,ffff800020c87290,1,ffff800020c872a8,ffff800020b93080,10c0) at copyin+0x4b sys_pwritev(3ceb8b6211a67c40,0,ffff800020b93080) at sys_pwritev+0x6b sys/kern/vfs_syscalls.c:3152 syscall(38bb31602b909801) at syscall+0x5a0 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(38bb31602b909801) at syscall+0x5a0 sys/arch/amd64/amd64/trap.c:583 Xsyscall(6,0,ffffffffffffffb8,0,4,1a00372f0d8) at Xsyscall+0x128 end of kernel end trace frame: 0x1a2babc52d0, count: -11 ddb{0}> show registers rdi 0xffffffff81565417 db_enter+0x17 rsi 0x16ce __ALIGN_SIZE+0x6ce rbp 0xffff800020c86c40 rbx 0xffff800020c86ce0 rdx 0x16cf __ALIGN_SIZE+0x6cf rcx 0xffff800000b46000 rax 0xffff800000b46000 r8 0xffffffff815db184 kprintf+0x174 r9 0x1 r10 0x560889360a554285 r11 0xc314749d90cc98d0 r12 0x3000000008 r13 0xffff800020c86c50 r14 0x100 r15 0x1 rip 0xffffffff81565418 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020c86c30 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor0) pid=240185 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020b93530,0xffff800020b92be0 process=0xffff800020b94d30 user=0xffff800020c82000, vmspace=0xfffffd807f00d438 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 54548 225833 23819 0 7 0 syz-executor0 54548 378043 23819 0 2 0x4000000 syz-executor0 *54548 240185 23819 0 7 0x4000000 syz-executor0 54548 3822 23819 0 2 0x4000000 syz-executor0 45457 238571 1 0 3 0x100083 ttyin getty 66765 340448 0 0 3 0x14200 bored sosplice 62601 176056 29279 0 3 0x2 biowait syz-executor1 23819 280491 29279 0 3 0x82 nanosleep syz-executor0 29279 13527 9091 0 3 0x82 thrsleep syz-fuzzer 29279 454344 9091 0 3 0x4000082 thrsleep syz-fuzzer 29279 348115 9091 0 3 0x4000082 thrsleep syz-fuzzer 29279 25482 9091 0 3 0x4000082 thrsleep syz-fuzzer 29279 409108 9091 0 3 0x4000082 thrsleep syz-fuzzer 29279 442735 9091 0 3 0x4000082 thrsleep syz-fuzzer 29279 399625 9091 0 3 0x4000082 thrsleep syz-fuzzer 29279 417093 9091 0 3 0x4000082 thrsleep syz-fuzzer 29279 88952 9091 0 3 0x4000082 thrsleep syz-fuzzer 29279 420892 9091 0 3 0x4000082 kqread syz-fuzzer 9091 183982 69936 0 3 0x10008a pause ksh 69936 425896 59695 0 3 0x92 select sshd 59695 1514 1 0 3 0x80 select sshd 29480 31971 59007 73 3 0x100090 kqread syslogd 59007 143097 1 0 3 0x100082 netio syslogd 56543 303529 1 77 3 0x100090 poll dhclient 27487 420721 1 0 3 0x80 poll dhclient 18082 173160 0 0 3 0x14200 pgzero zerothread 80681 513483 0 0 3 0x14200 aiodoned aiodoned 87544 174889 0 0 3 0x14200 syncer update 4268 263913 0 0 3 0x14200 cleaner cleaner 51785 104819 0 0 3 0x14200 reaper reaper 95805 395870 0 0 3 0x14200 pgdaemon pagedaemon 46912 439830 0 0 3 0x14200 bored crynlk 26785 38843 0 0 3 0x14200 bored crypto 52720 89138 0 0 3 0x40014200 acpi0 acpi0 64711 10478 0 0 3 0x40014200 idle1 97305 245685 0 0 3 0x14200 bored softnet 22781 248909 0 0 3 0x14200 bored systqmp 64288 380377 0 0 3 0x14200 bored systq 28496 305269 0 0 3 0x40014200 bored softclock 77324 151893 0 0 3 0x40014200 idle0 1 434973 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 54548 (syz-executor0) thread 0xffff800020b93080 (240185) exclusive kernel_lock &kernel_lock r = 1 (0xffffffff823212a0) locked @ /syzkaller/managers/multicore/kernel/sys/kern/sched_bsd.c:436 Process 62601 (syz-executor1) thread 0xffff800020b75070 (176056) exclusive rrwlock inode r = 0 (0xfffffd806df01e70) locked @ /syzkaller/managers/multicore/kernel/sys/ufs/ufs/ufs_ihash.c:140 exclusive rrwlock inode r = 0 (0xfffffd806954c928) locked @ /syzkaller/managers/multicore/kernel/sys/ufs/ufs/ufs_vnops.c:1547 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9525 10457K 10465K 78643K 11303 0 0 pcb 23 9K 11K 78643K 1776 0 0 rtable 100 3K 4K 78643K 432 0 0 ifaddr 55 13K 14K 78643K 206 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 2K 78643K 48 0 0 iov 0 0K 28K 78643K 377 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1196 75K 76K 78643K 3318 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 5K 78643K 68 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 0K 1K 78643K 330 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1792 194K 288K 78643K 12592 0 0 file desc 5 13K 25K 78643K 3301 0 0 sigio 0 0K 0K 78643K 49 0 0 proc 42 38K 70K 78643K 776 0 0 subproc 64 65538K 67586K 78643K 86 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 427 0 0 in_multi 33 2K 2K 78643K 201 0 0 ether_multi 1 0K 0K 78643K 25 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 108 477K 477K 78643K 108 0 0 exec 0 0K 1K 78643K 405 0 0 pfkey data 0 0K 4K 78643K 2 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 99 21K 30K 78643K 11271 0 0 UVM aobj 130 4K 4K 78643K 141 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 0K 78643K 86 0 0 NDP 11 0K 0K 78643K 57 0 0 temp 163 2363K 2442K 78643K 11419 0 0 kqueue 0 0K 0K 78643K 54 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{0}> 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 1397 0 1388 1 0 1 1 0 8 0 plimitpl 152 47 0 40 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 513 0 507 1 0 1 1 0 8 0 nd6 48 4 0 0 1 0 1 1 0 8 0 ppxss 1128 28 0 28 16 15 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 186 0 0 12 0 12 12 0 8 0 art_table 32 187 0 0 2 0 2 2 0 8 0 art_node 16 40 0 6 1 0 1 1 0 8 0 sysvmsgpl 40 32 0 20 1 0 1 1 0 8 0 semapl 112 328 0 318 1 0 1 1 0 8 0 shmpl 112 139 0 11 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 7859 0 6418 47 0 47 47 0 8 0 ffsino 272 7859 0 6418 98 1 97 97 0 8 0 nchpl 144 12803 0 11217 61 2 59 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 39044 0 39043 2 1 1 1 0 8 0 percpumem 16 30 0 0 1 0 1 1 0 8 0 scsiplug 64 6 0 6 6 6 0 1 0 8 0 scxspl 192 35902 0 35901 22 21 1 6 0 8 0 sigapl 432 3473 0 3460 2 0 2 2 0 8 0 futexpl 56 42914 0 42914 1 0 1 1 0 8 1 knotepl 112 1013 0 986 9 8 1 2 0 8 0 kqueuepl 104 1135 0 1133 1 0 1 1 0 8 0 pipepl 112 2192 0 2173 7 6 1 2 0 8 0 fdescpl 488 3474 0 3460 3 1 2 3 0 8 0 filepl 152 21550 0 21452 12 7 5 6 0 8 1 lockfpl 96 1105 0 1105 7 6 1 1 0 8 1 lockfspl 24 1843 0 1843 6 5 1 1 0 8 1 sessionpl 112 22 0 12 1 0 1 1 0 8 0 pgrppl 48 54 0 44 1 0 1 1 0 8 0 ucredpl 96 6713 0 6706 1 0 1 1 0 8 0 zombiepl 144 3460 0 3460 2 1 1 1 0 8 1 processpl 840 3489 0 3460 4 0 4 4 0 8 0 procpl 600 10524 0 10483 4 0 4 4 0 8 0 sosppl 128 62 0 62 18 17 1 1 0 8 1 sockpl 384 3077 0 3058 8 5 3 4 0 8 1 mcl64k 65536 879 0 0 88 24 64 64 0 8 0 mcl16k 16384 7 0 0 1 0 1 1 0 8 0 mcl12k 12288 17 0 0 2 0 2 2 0 8 0 mcl9k 9216 25 0 0 2 0 2 2 0 8 0 mcl8k 8192 9 0 0 2 0 2 2 0 8 0 mcl4k 4096 24 0 0 3 1 2 3 0 8 0 mcl2k2 2112 10 0 0 1 0 1 1 0 8 0 mcl2k 2048 108 0 0 12 0 12 12 0 8 0 mtagpl 80 3 0 0 1 0 1 1 0 8 0 mbufpl 256 953 0 0 35 0 35 35 0 8 0 bufpl 256 10513 0 3544 436 0 436 436 0 8 0 anonpl 16 395244 0 387663 163 117 46 48 0 125 11 amapchunkpl 152 21615 0 21522 66 61 5 9 0 158 0 amappl16 192 20245 0 19852 181 155 26 32 0 8 6 amappl15 184 1627 0 1625 1 0 1 1 0 8 0 amappl14 176 1664 0 1660 2 1 1 1 0 8 0 amappl13 168 24 0 21 1 0 1 1 0 8 0 amappl12 160 17 0 16 1 0 1 1 0 8 0 amappl11 152 183 0 174 1 0 1 1 0 8 0 amappl10 144 65 0 63 2 1 1 1 0 8 0 amappl9 136 340 0 338 1 0 1 1 0 8 0 amappl8 128 189 0 152 2 0 2 2 0 8 0 amappl7 120 36 0 30 1 0 1 1 0 8 0 amappl6 112 49 0 42 1 0 1 1 0 8 0 amappl5 104 163 0 151 1 0 1 1 0 8 0 amappl4 96 329 0 308 2 1 1 2 0 8 0 amappl3 88 274 0 269 1 0 1 1 0 8 0 amappl2 80 35425 0 35373 2 0 2 2 0 8 0 amappl1 72 83388 0 82957 24 14 10 19 0 8 0 amappl 72 10792 0 10756 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 140 0 11 3 0 3 3 0 8 0 uaddrrnd 24 3474 0 3460 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 3474 0 3460 1 0 1 1 0 8 0 vmmpekpl 168 30853 0 30832 2 0 2 2 0 8 0 vmmpepl 168 377996 0 376626 179 106 73 75 0 357 8 vmsppl 360 3473 0 3460 2 0 2 2 0 8 0 pdppl 4096 6955 0 6920 6 1 5 6 0 8 0 pvpl 32 1020047 0 1009444 309 187 122 127 0 265 32 pmappl 224 3473 0 3460 1 0 1 1 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 702 0 30 20 0 20 20 0 8 0