panic: vmmaplk: lock not shared Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 115615 66402 0 0 0x4000000 1 syz-executor0 *146172 66402 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(ffff800020b939e0,2b8,ffff800020c94ea8) at _rw_exit_read+0x12b sys/kern/kern_rwlock.c:355 uvm_fault(1f7b786fda578c30,ffff800020b939e0,0,ffffffff8167c690) at uvm_fault+0x23bb uvmfault_unlockall sys/uvm/uvm_fault.c:1388 [inline] uvm_fault(1f7b786fda578c30,ffff800020b939e0,0,ffffffff8167c690) at uvm_fault+0x23bb sys/uvm/uvm_fault.c:1266 pageflttrap() at pageflttrap+0x216 sys/arch/amd64/amd64/trap.c:200 kerntrap(a09ad8f34e5bccce) at kerntrap+0xeb sys/arch/amd64/amd64/trap.c:294 alltraps_kern(6,14,c014575e,0,fffffd80695ef6a0,20000000) at alltraps_kern+0x7b copyin(a725b904c1576f03,0,ffff800020b939e0,20968a48a08,0,360) at copyin+0x4b syscall(133fcad5154f64cb) at syscall+0x5a0 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(133fcad5154f64cb) at syscall+0x5a0 sys/arch/amd64/amd64/trap.c:583 Xsyscall(6,0,ffffffffffffff7c,0,3,207099070d8) at Xsyscall+0x128 end of kernel end trace frame: 0x20968a48a90, 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{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(ffff800020b939e0,2b8,ffff800020c94ea8) at _rw_exit_read+0x12b sys/kern/kern_rwlock.c:355 uvm_fault(1f7b786fda578c30,ffff800020b939e0,0,ffffffff8167c690) at uvm_fault+0x23bb uvmfault_unlockall sys/uvm/uvm_fault.c:1388 [inline] uvm_fault(1f7b786fda578c30,ffff800020b939e0,0,ffffffff8167c690) at uvm_fault+0x23bb sys/uvm/uvm_fault.c:1266 pageflttrap() at pageflttrap+0x216 sys/arch/amd64/amd64/trap.c:200 kerntrap(a09ad8f34e5bccce) at kerntrap+0xeb sys/arch/amd64/amd64/trap.c:294 alltraps_kern(6,14,c014575e,0,fffffd80695ef6a0,20000000) at alltraps_kern+0x7b copyin(a725b904c1576f03,0,ffff800020b939e0,20968a48a08,0,360) at copyin+0x4b syscall(133fcad5154f64cb) at syscall+0x5a0 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(133fcad5154f64cb) at syscall+0x5a0 sys/arch/amd64/amd64/trap.c:583 Xsyscall(6,0,ffffffffffffff7c,0,3,207099070d8) at Xsyscall+0x128 end of kernel end trace frame: 0x20968a48a90, count: -10 ddb{0}> show registers rdi 0xffffffff81202147 db_enter+0x17 rsi 0x130b __ALIGN_SIZE+0x30b rbp 0xffff800020c94d10 rbx 0xffff800020c94db0 rdx 0x130c __ALIGN_SIZE+0x30c rcx 0xffff800000947000 rax 0xffff800000947000 r8 0xffffffff81d8b924 kprintf+0x174 r9 0x1 r10 0xcb8d708711b8156b r11 0x68fb1568b9f74574 r12 0x3000000008 r13 0xffff800020c94d20 r14 0x100 r15 0x1 rip 0xffffffff81202148 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020c94d00 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor0) pid=146172 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020b92270,0xffff800020b93090 process=0xffff800020b94010 user=0xffff800020c90000, 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 66402 60080 64601 0 2 0 syz-executor0 66402 115615 64601 0 7 0x4000000 syz-executor0 *66402 146172 64601 0 7 0x4000000 syz-executor0 66402 16422 64601 0 2 0x4000000 syz-executor0 64601 166940 68513 0 3 0x82 nanosleep syz-executor0 22236 117622 1 0 3 0x100083 ttyin getty 42314 27193 0 0 3 0x14200 bored sosplice 51954 507624 68513 0 2 0x2 syz-executor1 68513 30192 19598 0 3 0x82 thrsleep syz-fuzzer 68513 16134 19598 0 3 0x4000082 thrsleep syz-fuzzer 68513 79346 19598 0 3 0x4000082 thrsleep syz-fuzzer 68513 130645 19598 0 3 0x4000082 thrsleep syz-fuzzer 68513 230237 19598 0 3 0x4000082 kqread syz-fuzzer 68513 366379 19598 0 3 0x4000082 thrsleep syz-fuzzer 68513 321271 19598 0 3 0x4000082 thrsleep syz-fuzzer 68513 182868 19598 0 3 0x4000082 thrsleep syz-fuzzer 68513 57268 19598 0 3 0x4000082 thrsleep syz-fuzzer 68513 153461 19598 0 3 0x4000082 thrsleep syz-fuzzer 19598 291562 46628 0 3 0x10008a pause ksh 46628 282667 34720 0 3 0x92 select sshd 34720 185262 1 0 3 0x80 select sshd 58140 386581 86716 73 3 0x100090 kqread syslogd 86716 229194 1 0 3 0x100082 netio syslogd 83634 18595 1 77 3 0x100090 poll dhclient 27807 491516 1 0 3 0x80 poll dhclient 60285 363481 0 0 3 0x14200 pgzero zerothread 83412 116286 0 0 3 0x14200 aiodoned aiodoned 32257 237765 0 0 3 0x14200 syncer update 55230 508324 0 0 3 0x14200 cleaner cleaner 23818 316601 0 0 3 0x14200 reaper reaper 29142 441635 0 0 3 0x14200 pgdaemon pagedaemon 99526 13047 0 0 3 0x14200 bored crynlk 60613 44727 0 0 3 0x14200 bored crypto 171 477651 0 0 3 0x40014200 acpi0 acpi0 10458 159672 0 0 3 0x40014200 idle1 64522 470473 0 0 3 0x14200 bored softnet 65503 469815 0 0 3 0x14200 bored systqmp 11746 141532 0 0 3 0x14200 bored systq 12387 228891 0 0 3 0x40014200 bored softclock 6610 373424 0 0 3 0x40014200 idle0 1 235141 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 66402 (syz-executor0) thread 0xffff800020b939e0 (146172) exclusive kernel_lock &kernel_lock r = 1 (0xffffffff823166a8) locked @ /syzkaller/managers/multicore/kernel/sys/kern/sched_bsd.c:436 Process 51954 (syz-executor1) thread 0xffff800020b74968 (507624) exclusive rrwlock inode r = 0 (0xfffffd8064e7a4e0) locked @ /syzkaller/managers/multicore/kernel/sys/ufs/ufs/ufs_ihash.c:140 exclusive rrwlock inode r = 0 (0xfffffd8076e69e78) 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 9554 10466K 10475K 78643K 12676 0 0 pcb 23 9K 11K 78643K 4503 0 0 rtable 100 3K 4K 78643K 1210 0 0 ifaddr 63 17K 19K 78643K 658 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 2K 78643K 80 0 0 iov 0 0K 32K 78643K 786 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1205 75K 76K 78643K 6495 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 132 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 0K 0K 78643K 896 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1792 194K 288K 78643K 12592 0 0 file desc 5 13K 25K 78643K 8734 0 0 sigio 1 0K 0K 78643K 155 0 0 proc 42 38K 70K 78643K 1602 0 0 subproc 64 65538K 67586K 78643K 165 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 1239 0 0 in_multi 33 2K 2K 78643K 481 0 0 ether_multi 1 0K 0K 78643K 58 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 132 583K 583K 78643K 132 0 0 exec 0 0K 1K 78643K 707 0 0 pfkey data 0 0K 4K 78643K 6 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 135 23K 43K 78643K 28190 0 0 UVM aobj 130 4K 4K 78643K 140 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 207 0 0 NDP 13 0K 0K 78643K 186 0 0 temp 177 2367K 2447K 78643K 25972 0 0 kqueue 0 0K 0K 78643K 133 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 5 0 1 1 0 1 1 0 8 0 inpcbpl 280 3925 0 3916 1 0 1 1 0 8 0 plimitpl 152 106 0 99 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtentry 112 50 0 10 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 1414 0 1408 1 0 1 1 0 8 0 nd6 48 6 0 2 1 0 1 1 0 8 0 swfcl 56 1 0 0 1 0 1 1 0 8 0 ppxss 1128 107 0 107 44 43 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 229 0 41 12 0 12 12 0 8 0 art_table 32 230 0 41 2 0 2 2 0 8 0 art_node 16 49 0 15 1 0 1 1 0 8 0 sysvmsgpl 40 23 0 13 1 0 1 1 0 8 0 semapl 112 894 0 884 1 0 1 1 0 8 0 shmpl 112 138 0 10 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 18350 0 16778 54 3 51 51 0 8 0 ffsino 272 18350 0 16778 109 4 105 105 0 8 0 nchpl 144 31138 0 29565 60 0 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 96824 0 96823 6 5 1 1 0 8 0 percpumem 16 30 0 0 1 0 1 1 0 8 0 scsiplug 64 34 0 34 20 20 0 1 0 8 0 scxspl 192 85561 0 85561 28 27 1 6 0 8 1 sigapl 432 8905 0 8892 2 0 2 2 0 8 0 futexpl 56 124863 0 124863 5 4 1 1 0 8 1 knotepl 112 2393 0 2366 16 15 1 2 0 8 0 kqueuepl 104 2991 0 2989 1 0 1 1 0 8 0 pipepl 112 5230 0 5211 15 14 1 2 0 8 0 fdescpl 488 8906 0 8892 3 1 2 3 0 8 0 filepl 152 54505 0 54408 52 47 5 7 0 8 1 lockfpl 104 2487 0 2487 45 44 1 1 0 8 1 lockfspl 32 4669 0 4669 46 45 1 1 0 8 1 sessionpl 112 25 0 15 1 0 1 1 0 8 0 pgrppl 48 102 0 92 1 0 1 1 0 8 0 ucredpl 96 16878 0 16871 1 0 1 1 0 8 0 zombiepl 144 8892 0 8892 10 9 1 1 0 8 1 processpl 840 8921 0 8892 4 0 4 4 0 8 0 procpl 600 27151 0 27110 5 1 4 5 0 8 0 srpgc 64 6 0 6 1 1 0 1 0 8 0 sosppl 128 158 0 158 49 49 0 1 0 8 0 sockpl 384 8178 0 8159 39 36 3 4 0 8 1 mcl64k 65536 1860 0 0 194 153 41 65 0 8 1 mcl16k 16384 10 0 0 2 0 2 2 0 8 0 mcl12k 12288 65 0 0 3 1 2 2 0 8 0 mcl9k 9216 41 0 0 3 1 2 2 0 8 1 mcl8k 8192 25 0 0 4 1 3 3 0 8 0 mcl4k 4096 33 0 0 4 1 3 3 0 8 0 mcl2k2 2112 9 0 0 1 0 1 1 0 8 0 mcl2k 2048 185 0 0 13 5 8 13 0 8 0 mtagpl 80 3 0 0 1 0 1 1 0 8 0 mbufpl 256 1917 0 0 42 7 35 36 0 8 0 bufpl 256 18038 0 11069 436 0 436 436 0 8 0 anonpl 16 923266 0 915861 440 393 47 48 0 125 9 amapchunkpl 152 56235 0 56145 276 267 9 97 0 158 4 amappl16 192 52651 0 52242 515 485 30 33 0 8 8 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 11 0 9 3 2 1 1 0 8 0 amappl13 168 2979 0 2976 1 0 1 1 0 8 0 amappl12 160 13 0 13 4 4 0 1 0 8 0 amappl11 152 5930 0 5919 1 0 1 1 0 8 0 amappl10 144 77 0 74 2 1 1 1 0 8 0 amappl9 136 5835 0 5831 1 0 1 1 0 8 0 amappl8 128 270 0 211 2 0 2 2 0 8 0 amappl7 120 2986 0 2980 1 0 1 1 0 8 0 amappl6 112 58 0 48 1 0 1 1 0 8 0 amappl5 104 718 0 707 1 0 1 1 0 8 0 amappl4 96 366 0 338 2 1 1 2 0 8 0 amappl3 88 508 0 502 1 0 1 1 0 8 0 amappl2 80 88301 0 88247 2 0 2 2 0 8 0 amappl1 72 195603 0 195190 24 14 10 19 0 8 0 amappl 72 27520 0 27485 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 139 0 10 3 0 3 3 0 8 0 uaddrrnd 24 8906 0 8892 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 8906 0 8892 1 0 1 1 0 8 0 vmmpekpl 168 71133 0 71109 2 0 2 2 0 8 0 vmmpepl 168 950929 0 949534 405 329 76 76 0 357 8 vmsppl 360 8905 0 8892 2 0 2 2 0 8 0 pdppl 4096 17819 0 17784 6 1 5 6 0 8 0 pvpl 32 2380925 0 2370463 885 762 123 127 0 265 31 pmappl 224 8905 0 8892 1 0 1 1 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 835 0 179 20 0 20 20 0 8 0