panic: kmmaplk: lock not shared Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND * 33965 72635 0 0 0x4000000 0 syz-executor.0 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440 panic(ffffffff825b9701) at panic+0x161 sys/kern/subr_prf.c:202 rw_exit_read(ffffffff82a80478) at rw_exit_read+0x154 sys/kern/kern_rwlock.c:398 uvm_map_fill_vmmap(ffffffff82a80470,ffff800000d31000,ffff800024afaed8) at uvm_map_fill_vmmap+0xf6 vm_map_upgrade_ln sys/uvm/uvm_map.c:5540 [inline] uvm_map_fill_vmmap(ffffffff82a80470,ffff800000d31000,ffff800024afaed8) at uvm_map_fill_vmmap+0xf6 sys/uvm/uvm_map.c:5593 sysctl_proc_vmmap(ffff800024afb2b8,1,200006c0,ffff800024afb2e8,ffff8000216a27e8) at sysctl_proc_vmmap+0x229 sys/kern/kern_sysctl.c:2111 kern_sysctl(ffff800024afb2b4,2,200006c0,ffff800024afb2e8,0,fffffffffffffe97,19628429ed4ac9f0) at kern_sysctl+0xfd sys/kern/kern_sysctl.c:449 sys_sysctl(ffff8000216a27e8,ffff800024afb358,ffff800024afb3b0) at sys_sysctl+0x209 sys/kern/kern_sysctl.c:249 syscall(ffff800024afb420) at syscall+0x44e sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x18ce7b8f8d0, 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: kmmaplk: lock not shared ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440 panic(ffffffff825b9701) at panic+0x161 sys/kern/subr_prf.c:202 rw_exit_read(ffffffff82a80478) at rw_exit_read+0x154 sys/kern/kern_rwlock.c:398 uvm_map_fill_vmmap(ffffffff82a80470,ffff800000d31000,ffff800024afaed8) at uvm_map_fill_vmmap+0xf6 vm_map_upgrade_ln sys/uvm/uvm_map.c:5540 [inline] uvm_map_fill_vmmap(ffffffff82a80470,ffff800000d31000,ffff800024afaed8) at uvm_map_fill_vmmap+0xf6 sys/uvm/uvm_map.c:5593 sysctl_proc_vmmap(ffff800024afb2b8,1,200006c0,ffff800024afb2e8,ffff8000216a27e8) at sysctl_proc_vmmap+0x229 sys/kern/kern_sysctl.c:2111 kern_sysctl(ffff800024afb2b4,2,200006c0,ffff800024afb2e8,0,fffffffffffffe97,19628429ed4ac9f0) at kern_sysctl+0xfd sys/kern/kern_sysctl.c:449 sys_sysctl(ffff8000216a27e8,ffff800024afb358,ffff800024afb3b0) at sys_sysctl+0x209 sys/kern/kern_sysctl.c:249 syscall(ffff800024afb420) at syscall+0x44e sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x18ce7b8f8d0, count: -9 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff800024afad50 rbx 0xffffffff82a80478 kernel_map_store+0x8 rdx 0xffff800000bd74c0 rcx 0 rax 0xffff8000216a27e8 r8 0 r9 0x8080808080808080 r10 0x9a7121d268812651 r11 0x6997ccc20992a47d r12 0 r13 0xffffffff82a80470 kernel_map_store r14 0 r15 0x1 rip 0xffffffff8120dfc8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800024afad40 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=33965 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=84, nice=20 forw=0xffffffffffffffff, list=0xffff8000216a2548,0xffff8000216a3518 process=0xffff8000216a4bd8 user=0xffff800024af6000, vmspace=0xfffffd805e9a2000 estcpu=36, cpticks=2, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 61764 128863 9861 0 2 0 syz-executor.6 59862 294670 22583 0 2 0 syz-executor.3 86180 455493 65765 0 2 0 syz-executor.4 8094 477851 29230 0 2 0 syz-executor.7 72635 331735 16558 0 2 0 syz-executor.0 *72635 33965 16558 0 7 0x4000000 syz-executor.0 72635 132385 16558 0 3 0x4000080 fsleep syz-executor.0 29978 255764 75448 0 2 0 syz-executor.5 29978 53186 75448 0 2 0x4000000 syz-executor.5 29230 218535 89822 0 3 0x82 nanoslp syz-executor.7 65765 183388 89822 0 2 0x482 syz-executor.4 75448 102538 89822 0 3 0x82 nanoslp syz-executor.5 68153 431720 89822 0 2 0x2 syz-executor.2 22583 187837 89822 0 3 0x82 nanoslp syz-executor.3 9861 473714 89822 0 3 0x82 nanoslp syz-executor.6 16558 487519 89822 0 3 0x82 nanoslp syz-executor.0 79163 2146 89822 0 2 0x2 syz-executor.1 3047 54148 1 0 3 0x100083 ttyin getty 63201 149129 0 0 3 0x14280 nfsidl nfsio 61572 499551 0 0 3 0x14280 nfsidl nfsio 81323 459189 0 0 3 0x14280 nfsidl nfsio 48528 278541 0 0 3 0x14280 nfsidl nfsio 32417 28533 0 0 3 0x14280 nfsidl nfsio 60283 81780 0 0 3 0x14280 nfsidl nfsio 93891 2467 0 0 3 0x14280 nfsidl nfsio 98057 168145 0 0 3 0x14280 nfsidl nfsio 183 69058 0 0 3 0x14280 nfsidl nfsio 44712 305898 0 0 3 0x14280 nfsidl nfsio 95662 2445 0 0 3 0x14280 nfsidl nfsio 17598 493555 0 0 3 0x14280 nfsidl nfsio 66046 424599 0 0 3 0x14280 nfsidl nfsio 46142 174497 0 0 3 0x14280 nfsidl nfsio 65721 155918 0 0 3 0x14280 nfsidl nfsio 92403 42092 0 0 3 0x14280 nfsidl nfsio 69065 234346 0 0 3 0x14280 nfsidl nfsio 3427 278590 0 0 3 0x14280 nfsidl nfsio 89344 312882 0 0 3 0x14280 nfsidl nfsio 1608 24340 0 0 3 0x14280 nfsidl nfsio 28627 207718 0 0 3 0x14200 bored sosplice 89822 205347 58628 0 3 0x82 thrsleep syz-fuzzer 89822 512505 58628 0 3 0x4000082 nanoslp syz-fuzzer 89822 84501 58628 0 3 0x4000082 thrsleep syz-fuzzer 89822 135194 58628 0 3 0x4000082 thrsleep syz-fuzzer 89822 287694 58628 0 3 0x4000082 thrsleep syz-fuzzer 89822 70606 58628 0 3 0x4000082 kqread syz-fuzzer 89822 16761 58628 0 3 0x4000082 thrsleep syz-fuzzer 89822 181196 58628 0 3 0x4000082 thrsleep syz-fuzzer 58628 158972 77745 0 3 0x10008a sigsusp ksh 77745 247409 45111 0 3 0x9a kqread sshd 45111 197701 1 0 3 0x88 kqread sshd 81340 67197 62097 73 3 0x1100090 kqread syslogd 62097 485677 1 0 3 0x100082 netio syslogd 87912 55884 1 0 3 0x100080 kqread resolvd 16057 186129 13758 77 3 0x100092 kqread dhcpleased 58379 268618 13758 77 3 0x100092 kqread dhcpleased 13758 267840 1 0 3 0x80 kqread dhcpleased 71601 466734 0 0 3 0x14200 bored smr 47602 281171 0 0 2 0x14200 zerothread 89301 74930 0 0 3 0x14200 aiodoned aiodoned 66752 27972 0 0 3 0x14200 syncer update 44258 279145 0 0 3 0x14200 cleaner cleaner 92102 458039 0 0 3 0x14200 reaper reaper 61664 498068 0 0 3 0x14200 pgdaemon pagedaemon 7620 124045 0 0 3 0x14200 bored viomb 70570 201840 0 0 3 0x40014200 acpi0 acpi0 96408 32578 0 0 3 0x14200 bored softnet 43654 70964 0 0 3 0x14200 bored systqmp 35177 320692 0 0 3 0x14200 bored systq 12075 81591 0 0 2 0x40014200 softclock 82479 427409 0 0 3 0x40014200 idle0 1 192302 0 0 3 0x80082 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 10209 6444K 8080K 78643K 113374 0 pcb 13 18K 20K 78643K 2436 0 rtable 266 26K 27K 78643K 6483 0 ifaddr 108 25K 27K 78643K 1853 0 sysctl 3 1K 1K 78643K 5 0 counters 28 17K 17K 78643K 206 0 ioctlops 0 0K 4K 78643K 11614 0 iov 0 0K 32K 78643K 2280 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1496 93K 94K 78643K 26445 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 209 0 VM map 2 0K 0K 78643K 2 0 sem 17 10K 20K 78643K 1278 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 16 57K 77K 78643K 19289 0 sigio 0 0K 0K 78643K 322 0 proc 70 55K 72K 78643K 3190 0 subproc 104 6K 6K 78643K 949 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 979 0 in_multi 86 5K 7K 78643K 1758 0 ether_multi 1 0K 0K 78643K 289 0 mrt 1 0K 0K 78643K 57 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 253 1129K 1129K 78643K 253 0 exec 0 0K 2K 78643K 4837 0 pfkey data 0 0K 1K 78643K 6 0 tdb 3 0K 0K 78643K 3 0 pagedep 1 8K 8K 78643K 1 0 inodedep 1 32K 32K 78643K 1 0 newblk 1 0K 0K 78643K 1 0 VM swap 7 26K 26K 78643K 7 0 UVM amap 642 1539K 1945K 78643K 235065 0 UVM aobj 130 7K 8K 78643K 131 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 1104 0 NDP 14 0K 2K 78643K 426 0 temp 157 4745K 4817K 78643K 191012 0 kqueue 12 18K 28K 78643K 1151 0 SYN cache 2 8K 16K 78643K 3 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle rtpcb 120 1821 0 1818 29 28 1 5 0 8 0 rtentry 112 1106 0 1011 4 1 3 4 0 8 0 unpcb 136 15318 0 15303 143 142 1 8 0 8 0 syncache 296 51 0 51 14 14 0 1 0 8 0 tcpqe 32 63 0 63 5 5 0 1 0 8 0 tcpcb 736 7020 0 7015 252 249 3 19 0 8 2 arp 88 179 0 160 1 0 1 1 0 8 0 ipq 40 14 0 13 7 6 1 1 0 8 0 ipqe 40 69 0 68 7 6 1 1 0 8 0 inpcb 304 17517 0 17506 269 267 2 16 0 8 0 rttmr 72 15 0 15 3 3 0 1 0 8 0 ip6q 72 12 0 12 5 5 0 1 0 8 0 ip6af 40 21 0 21 5 5 0 1 0 8 0 nd6 48 336 0 312 1 0 1 1 0 8 0 pkpcb 40 29 0 29 8 8 0 1 0 8 0 kcovpl 48 73 0 65 1 0 1 1 0 8 0 ppxss 1152 65 0 65 14 14 0 1 0 8 0 pfosfp 40 4 0 3 2 1 1 1 0 8 0 pfosfpen 112 4 0 3 2 1 1 1 0 8 0 pfrktable 1344 1303 0 1281 10 8 2 3 0 8 0 pftag 88 17 0 3 1 0 1 1 0 8 0 pfqueue 264 1 0 1 1 1 0 1 0 8 0 pfrule 1360 1598 0 1520 18 11 7 10 0 8 0 art_heap8 4096 4 0 3 3 2 1 2 0 8 0 art_heap4 256 4374 0 3963 57 31 26 32 0 8 0 art_table 32 4378 0 3966 6 2 4 5 0 8 0 art_node 16 1096 0 1012 1 0 1 1 0 8 0 sysvmsgpl 40 16 0 11 1 0 1 1 0 8 0 semupl 112 4 0 4 1 1 0 1 0 8 0 semapl 112 1267 0 1252 1 0 1 1 0 8 0 shmpl 112 128 0 1 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 26922 0 25379 97 0 97 97 0 8 0 ffsino 240 26922 0 25379 92 0 92 92 0 8 0 nchpl 144 52366 0 50751 62 0 62 62 0 8 0 uvmvnodes 80 6593 0 0 135 0 135 135 0 8 0 vnodes 224 6593 0 0 388 0 388 388 0 8 0 namei 1024 210785 0 210784 15 14 1 2 0 8 0 vcpupl 1984 216 0 0 27 0 27 27 0 8 0 vmpool 528 460 0 244 17 2 15 15 0 8 0 pfiaddrpl 120 383 0 348 4 2 2 2 0 8 0 scsiplug 72 16 0 16 8 8 0 1 0 8 0 scxspl 216 154055 0 154055 39 37 2 8 0 8 2 plimitpl 152 2469 0 2455 1 0 1 1 0 8 0 sigapl 424 19484 0 19423 11 3 8 8 0 8 0 futexpl 64 202459 0 202458 10 9 1 1 0 8 0 knotepl 120 178860 0 178780 53 50 3 7 0 8 0 kqueuepl 184 4774 0 4766 75 74 1 4 0 8 0 pipepl 304 4066 0 4038 97 94 3 12 0 8 0 fdescpl 432 19433 0 19406 4 0 4 4 0 8 0 filepl 120 154084 0 153849 214 205 9 18 0 8 1 lockfpl 104 4121 0 4097 12 11 1 3 0 8 0 lockfspl 48 1374 0 1353 2 1 1 2 0 8 0 sessionpl 144 96 0 80 1 0 1 1 0 8 0 pgrppl 48 203 0 187 1 0 1 1 0 8 0 ucredpl 96 18553 0 18540 1 0 1 1 0 8 0 zombiepl 144 19423 0 19423 7 6 1 1 0 8 1 processpl 1000 19484 0 19423 10 1 9 9 0 8 0 procpl 672 49192 0 49121 33 25 8 9 0 8 1 sosppl 168 109 0 109 20 20 0 1 0 8 0 sockpl 448 34698 0 34673 710 704 6 33 0 8 2 mcl64k 65536 944 0 944 43 43 0 1 0 8 0 mcl16k 16384 133 0 133 40 40 0 1 0 8 0 mcl12k 12288 600 0 600 49 49 0 1 0 8 0 mcl9k 9216 298 0 298 47 46 1 1 0 8 1 mcl8k 8192 1236 0 1236 47 46 1 1 0 8 1 mcl4k 4096 2322 0 2322 25 24 1 1 0 8 1 mcl2k2 2112 216 0 216 48 47 1 1 0 8 1 mcl2k 2048 116188 0 116141 31 23 8 11 0 8 1 mtagpl 96 3574 0 3423 32 26 6 12 0 8 0 mbufpl 256 316400 0 316047 564 534 30 362 0 8 0 bufpl 288 35685 0 29091 472 0 472 472 0 8 0 anonpl 24 5458556 0 5433572 459 277 182 185 0 188 15 amapchunkpl 152 594885 0 593852 524 452 72 356 0 158 27 amappl16 200 57277 0 56384 310 255 55 61 0 8 5 amappl15 192 5120 0 5113 1 0 1 1 0 8 0 amappl14 184 2083 0 2079 1 0 1 1 0 8 0 amappl13 176 1398 0 1397 1 0 1 1 0 8 0 amappl12 168 4049 0 4046 2 1 1 1 0 8 0 amappl11 160 2552 0 2536 1 0 1 1 0 8 0 amappl10 152 3063 0 3057 1 0 1 1 0 8 0 amappl9 144 1040 0 1037 1 0 1 1 0 8 0 amappl8 136 4185 0 4044 5 0 5 5 0 8 0 amappl7 128 2307 0 2296 1 0 1 1 0 8 0 amappl6 120 1062 0 1035 2 1 1 2 0 8 0 amappl5 112 15742 0 15727 1 0 1 1 0 8 0 amappl4 104 7870 0 7827 7 5 2 2 0 8 0 amappl3 96 5602 0 5570 1 0 1 1 0 8 0 amappl2 88 6456 0 6390 3 1 2 3 0 8 0 amappl1 80 341219 0 340694 18 5 13 18 0 8 0 amappl 88 232961 0 232637 11 2 9 9 0 92 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 253 0 253 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 130 0 1 3 0 3 3 0 8 0 uaddrrnd 24 19893 0 19650 2 0 2 2 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 19893 0 19650 2 0 2 2 0 8 0 vmmpekpl 168 128976 0 128901 4 0 4 4 0 8 0 vmmpepl 168 1764793 0 1761574 519 357 162 187 0 357 2 vmsppl 272 19892 0 19650 19 2 17 17 0 8 0 rwobjpl 24 416601 0 407883 57 3 54 54 0 8 0 pdppl 4096 39792 0 39516 1277 999 278 280 0 8 2 pvpl 32 9310768 0 9287363 690 450 240 272 0 265 29 pmappl 216 19892 0 19650 14 0 14 14 0 8 0 extentpl 40 58 0 38 1 0 1 1 0 8 0 phpool 112 3768 0 2724 41 10 31 39 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440 panic(ffffffff825b9701) at panic+0x161 sys/kern/subr_prf.c:202 rw_exit_read(ffffffff82a80478) at rw_exit_read+0x154 sys/kern/kern_rwlock.c:398 uvm_map_fill_vmmap(ffffffff82a80470,ffff800000d31000,ffff800024afaed8) at uvm_map_fill_vmmap+0xf6 vm_map_upgrade_ln sys/uvm/uvm_map.c:5540 [inline] uvm_map_fill_vmmap(ffffffff82a80470,ffff800000d31000,ffff800024afaed8) at uvm_map_fill_vmmap+0xf6 sys/uvm/uvm_map.c:5593 sysctl_proc_vmmap(ffff800024afb2b8,1,200006c0,ffff800024afb2e8,ffff8000216a27e8) at sysctl_proc_vmmap+0x229 sys/kern/kern_sysctl.c:2111 kern_sysctl(ffff800024afb2b4,2,200006c0,ffff800024afb2e8,0,fffffffffffffe97,19628429ed4ac9f0) at kern_sysctl+0xfd sys/kern/kern_sysctl.c:449 sys_sysctl(ffff8000216a27e8,ffff800024afb358,ffff800024afb3b0) at sys_sysctl+0x209 sys/kern/kern_sysctl.c:249 syscall(ffff800024afb420) at syscall+0x44e sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x18ce7b8f8d0, count: -9 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440 panic(ffffffff825b9701) at panic+0x161 sys/kern/subr_prf.c:202 rw_exit_read(ffffffff82a80478) at rw_exit_read+0x154 sys/kern/kern_rwlock.c:398 uvm_map_fill_vmmap(ffffffff82a80470,ffff800000d31000,ffff800024afaed8) at uvm_map_fill_vmmap+0xf6 vm_map_upgrade_ln sys/uvm/uvm_map.c:5540 [inline] uvm_map_fill_vmmap(ffffffff82a80470,ffff800000d31000,ffff800024afaed8) at uvm_map_fill_vmmap+0xf6 sys/uvm/uvm_map.c:5593 sysctl_proc_vmmap(ffff800024afb2b8,1,200006c0,ffff800024afb2e8,ffff8000216a27e8) at sysctl_proc_vmmap+0x229 sys/kern/kern_sysctl.c:2111 kern_sysctl(ffff800024afb2b4,2,200006c0,ffff800024afb2e8,0,fffffffffffffe97,19628429ed4ac9f0) at kern_sysctl+0xfd sys/kern/kern_sysctl.c:449 sys_sysctl(ffff8000216a27e8,ffff800024afb358,ffff800024afb3b0) at sys_sysctl+0x209 sys/kern/kern_sysctl.c:249 syscall(ffff800024afb420) at syscall+0x44e sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x18ce7b8f8d0, count: -9