panic: kmmaplk: lock not shared Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *482400 20167 0 0 0x4000000 0 syz-executor.2 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,ffff800000e05000,ffff80002e808ec8) at uvm_map_fill_vmmap+0xf6 vm_map_upgrade_ln sys/uvm/uvm_map.c:5540 [inline] uvm_map_fill_vmmap(ffffffff82a80470,ffff800000e05000,ffff80002e808ec8) at uvm_map_fill_vmmap+0xf6 sys/uvm/uvm_map.c:5593 sysctl_proc_vmmap(ffff80002e8092a8,1,200006c0,ffff80002e8092d8,ffff800026528010) at sysctl_proc_vmmap+0x229 sys/kern/kern_sysctl.c:2111 kern_sysctl(ffff80002e8092a4,2,200006c0,ffff80002e8092d8,0,fffffffffffffe97,edc1b8651edc18c2) at kern_sysctl+0xfd sys/kern/kern_sysctl.c:449 sys_sysctl(ffff800026528010,ffff80002e809348,ffff80002e8093a0) at sys_sysctl+0x209 sys/kern/kern_sysctl.c:249 syscall(ffff80002e809410) at syscall+0x44e sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa81ce694100, 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,ffff800000e05000,ffff80002e808ec8) at uvm_map_fill_vmmap+0xf6 vm_map_upgrade_ln sys/uvm/uvm_map.c:5540 [inline] uvm_map_fill_vmmap(ffffffff82a80470,ffff800000e05000,ffff80002e808ec8) at uvm_map_fill_vmmap+0xf6 sys/uvm/uvm_map.c:5593 sysctl_proc_vmmap(ffff80002e8092a8,1,200006c0,ffff80002e8092d8,ffff800026528010) at sysctl_proc_vmmap+0x229 sys/kern/kern_sysctl.c:2111 kern_sysctl(ffff80002e8092a4,2,200006c0,ffff80002e8092d8,0,fffffffffffffe97,edc1b8651edc18c2) at kern_sysctl+0xfd sys/kern/kern_sysctl.c:449 sys_sysctl(ffff800026528010,ffff80002e809348,ffff80002e8093a0) at sys_sysctl+0x209 sys/kern/kern_sysctl.c:249 syscall(ffff80002e809410) at syscall+0x44e sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa81ce694100, count: -9 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80002e808d40 rbx 0xffffffff82a80478 kernel_map_store+0x8 rdx 0xffff800000c50c40 rcx 0 rax 0xffff800026528010 r8 0x101010101010101 r9 0x8080808080808080 r10 0xdc291bf8d5be466 r11 0x6329243417098a19 r12 0 r13 0xffffffff82a80470 kernel_map_store r14 0 r15 0x1 rip 0xffffffff8120dfc8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80002e808d30 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.2) pid=482400 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=82, nice=20 forw=0xffffffffffffffff, list=0xffff800026529510,0xffff800026528aa0 process=0xffff800029956410 user=0xffff80002e804000, vmspace=0xfffffd8060e44338 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 76215 199601 81973 0 2 0 syz-executor.3 2399 57142 5782 0 2 0 syz-executor.7 1036 359276 9157 0 2 0 syz-executor.1 36401 382910 64535 0 2 0 syz-executor.6 94777 253158 78012 0 2 0 syz-executor.0 94777 503486 78012 0 3 0x4000080 fsleep syz-executor.0 20167 101510 63899 0 2 0 syz-executor.2 *20167 482400 63899 0 7 0x4000000 syz-executor.2 64535 239506 28326 0 3 0x82 nanoslp syz-executor.6 81755 121419 28326 0 2 0x2 syz-executor.5 63899 219539 28326 0 3 0x82 nanoslp syz-executor.2 5782 131155 28326 0 2 0x2 syz-executor.7 78012 24710 28326 0 3 0x82 nanoslp syz-executor.0 9157 53884 28326 0 3 0x82 nanoslp syz-executor.1 36201 494286 28326 0 2 0x2 syz-executor.4 81973 68614 28326 0 3 0x82 nanoslp syz-executor.3 39583 310260 0 0 3 0x14200 acct acct 56842 225968 0 0 3 0x14280 nfsidl nfsio 89876 205525 0 0 3 0x14280 nfsidl nfsio 88766 263023 0 0 3 0x14280 nfsidl nfsio 41831 275176 0 0 3 0x14280 nfsidl nfsio 23712 510867 0 0 3 0x14280 nfsidl nfsio 43115 2589 0 0 3 0x14280 nfsidl nfsio 55239 344750 0 0 3 0x14280 nfsidl nfsio 97061 364193 0 0 3 0x14280 nfsidl nfsio 68994 99808 0 0 3 0x14280 nfsidl nfsio 65624 380606 0 0 3 0x14280 nfsidl nfsio 95935 376030 0 0 3 0x14280 nfsidl nfsio 83356 226582 0 0 3 0x14280 nfsidl nfsio 77366 123003 0 0 3 0x14280 nfsidl nfsio 52955 17665 0 0 3 0x14280 nfsidl nfsio 5512 139499 0 0 3 0x14280 nfsidl nfsio 91650 356172 0 0 3 0x14280 nfsidl nfsio 78255 207921 0 0 3 0x14280 nfsidl nfsio 4030 229672 0 0 3 0x14280 nfsidl nfsio 19517 285315 0 0 3 0x14280 nfsidl nfsio 87446 173564 0 0 3 0x14280 nfsidl nfsio 89083 4189 0 0 3 0x14200 bored sosplice 28326 166815 32194 0 3 0x82 thrsleep syz-fuzzer 28326 438057 32194 0 3 0x4000082 nanoslp syz-fuzzer 28326 205426 32194 0 3 0x4000082 kqread syz-fuzzer 28326 175234 32194 0 3 0x4000082 thrsleep syz-fuzzer 28326 428846 32194 0 3 0x4000082 thrsleep syz-fuzzer 28326 171995 32194 0 3 0x4000082 thrsleep syz-fuzzer 28326 298351 32194 0 3 0x4000082 thrsleep syz-fuzzer 28326 234425 32194 0 3 0x4000082 thrsleep syz-fuzzer 28326 281432 32194 0 3 0x4000082 thrsleep syz-fuzzer 32194 199580 31274 0 3 0x10008a sigsusp ksh 31274 271524 1128 0 3 0x9a kqread sshd 43358 333624 1 0 3 0x100083 ttyin getty 1128 167299 1 0 3 0x88 kqread sshd 40958 34804 31636 73 3 0x1100090 kqread syslogd 31636 138165 1 0 3 0x100082 netio syslogd 89881 272699 1 0 3 0x100080 kqread resolvd 32502 317220 63758 77 3 0x100092 kqread dhcpleased 86578 362919 63758 77 3 0x100092 kqread dhcpleased 63758 377372 1 0 3 0x80 kqread dhcpleased 70677 62627 0 0 3 0x14200 bored smr 57709 59684 0 0 2 0x14200 zerothread 87148 473197 0 0 3 0x14200 aiodoned aiodoned 33057 133804 0 0 3 0x14200 syncer update 17104 88215 0 0 3 0x14200 cleaner cleaner 20612 215974 0 0 3 0x14200 reaper reaper 22241 228141 0 0 3 0x14200 pgdaemon pagedaemon 554 492726 0 0 3 0x14200 bored viomb 30215 442206 0 0 3 0x40014200 acpi0 acpi0 25080 228000 0 0 3 0x14200 bored softnet 32565 267410 0 0 3 0x14200 bored systqmp 99515 422664 0 0 3 0x14200 bored systq 2072 258971 0 0 3 0x40014200 bored softclock 57330 423677 0 0 3 0x40014200 idle0 1 383565 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 10206 6445K 7263K 78643K 49203 0 pcb 13 24K 27K 78643K 2947 0 rtable 201 7K 10K 78643K 7118 0 ifaddr 88 25K 28K 78643K 2485 0 sysctl 3 1K 1K 78643K 5 0 counters 26 17K 17K 78643K 355 0 ioctlops 0 0K 4K 78643K 7159 0 iov 0 0K 32K 78643K 3923 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1376 86K 86K 78643K 14658 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 183 0 VM map 2 0K 0K 78643K 2 0 sem 12 0K 1K 78643K 4659 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 16 57K 74K 78643K 24037 0 sigio 0 0K 0K 78643K 264 0 proc 65 55K 71K 78643K 4597 0 subproc 104 6K 7K 78643K 1612 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 1391 0 in_multi 90 5K 7K 78643K 3118 0 ether_multi 1 0K 0K 78643K 289 0 mrt 1 0K 0K 78643K 98 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 241 1076K 1076K 78643K 241 0 exec 0 0K 2K 78643K 6413 0 pfkey data 0 0K 0K 78643K 10 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 568 1330K 1348K 78643K 289710 0 UVM aobj 131 8K 8K 78643K 136 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 1399 0 NDP 12 0K 1K 78643K 818 0 temp 135 4717K 4965K 78643K 229995 0 kqueue 12 18K 28K 78643K 1463 0 SYN cache 2 16K 16K 78643K 2 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle rtpcb 120 2088 0 2085 25 24 1 5 0 8 0 rtentry 112 2084 0 1998 4 1 3 4 0 8 0 unpcb 136 52713 0 52698 296 293 3 10 0 8 2 syncache 296 38 0 38 13 13 0 1 0 8 0 sackhl 24 2 0 2 2 2 0 1 0 8 0 tcpqe 32 190 0 190 5 5 0 1 0 8 0 tcpcb 736 9574 0 9564 366 364 2 23 0 8 1 arp 88 285 0 268 1 0 1 1 0 8 0 ipq 40 114 0 113 12 11 1 1 0 8 0 ipqe 40 274 0 273 12 11 1 1 0 8 0 inpcb 304 23620 0 23607 362 357 5 16 0 8 4 rttmr 72 29 0 29 9 9 0 1 0 8 0 ip6q 72 50 0 49 6 5 1 1 0 8 0 ip6af 40 105 0 104 6 5 1 1 0 8 0 nd6 48 606 0 585 1 0 1 1 0 8 0 pkpcb 40 57 0 57 13 13 0 1 0 8 0 kcovpl 48 124 0 116 1 0 1 1 0 8 0 ppxss 1152 95 0 95 24 24 0 1 0 8 0 pfrktable 1344 161 0 160 1 0 1 1 0 8 0 pftag 88 8 0 0 1 0 1 1 0 8 0 pfqueue 264 4 0 4 1 1 0 1 0 8 0 pfrule 1360 199 0 185 3 1 2 2 0 8 0 art_heap8 4096 3 0 2 3 2 1 2 0 8 0 art_heap4 256 9486 0 9081 85 57 28 30 0 8 2 art_table 32 9489 0 9083 6 2 4 4 0 8 0 art_node 16 2080 0 2002 1 0 1 1 0 8 0 sysvmsgpl 40 16 0 8 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 4653 0 4643 1 0 1 1 0 8 0 shmpl 112 133 0 5 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 33637 0 32088 98 0 98 98 0 8 0 ffsino 240 33637 0 32088 92 0 92 92 0 8 0 nchpl 144 67806 0 66186 62 0 62 62 0 8 0 uvmvnodes 80 6809 0 0 139 0 139 139 0 8 0 vnodes 224 6809 0 0 401 0 401 401 0 8 0 namei 1024 245281 0 245281 22 21 1 2 0 8 1 vcpupl 1984 195 0 1 25 0 25 25 0 8 0 vmpool 528 459 0 265 17 4 13 14 0 8 0 pfiaddrpl 120 12 0 12 2 2 0 1 0 8 0 scsiplug 72 5 0 5 3 3 0 1 0 8 0 scxspl 216 212717 0 212717 48 46 2 8 0 8 2 plimitpl 152 3977 0 3963 1 0 1 1 0 8 0 sigapl 424 24115 0 24053 11 3 8 8 0 8 0 futexpl 64 248118 0 248117 17 16 1 1 0 8 0 knotepl 120 229562 0 229482 61 57 4 9 0 8 0 kqueuepl 184 5305 0 5297 66 64 2 4 0 8 1 pipepl 304 4673 0 4645 99 96 3 10 0 8 0 fdescpl 432 24059 0 24032 4 0 4 4 0 8 0 filepl 120 209031 0 208795 298 288 10 17 0 8 2 lockfpl 104 8436 0 8434 24 23 1 2 0 8 0 lockfspl 48 2140 0 2138 1 0 1 1 0 8 0 sessionpl 144 139 0 123 1 0 1 1 0 8 0 pgrppl 48 253 0 237 1 0 1 1 0 8 0 ucredpl 96 24543 0 24529 1 0 1 1 0 8 0 zombiepl 144 24053 0 24053 6 5 1 1 0 8 1 processpl 1000 24115 0 24053 12 3 9 9 0 8 0 procpl 672 60522 0 60450 36 28 8 9 0 8 0 sosppl 168 158 0 158 34 34 0 1 0 8 0 sockpl 448 78563 0 78538 1647 1637 10 33 0 8 7 mcl64k 65536 1102 0 1102 52 52 0 1 0 8 0 mcl16k 16384 274 0 274 66 66 0 1 0 8 0 mcl12k 12288 873 0 873 63 63 0 1 0 8 0 mcl9k 9216 443 0 443 60 59 1 1 0 8 1 mcl8k 8192 2015 0 2015 48 47 1 1 0 8 1 mcl4k 4096 2761 0 2761 37 36 1 1 0 8 1 mcl2k2 2112 201 0 201 58 58 0 1 0 8 0 mcl2k 2048 129793 0 129742 55 47 8 16 0 8 0 mtagpl 96 5245 0 5016 47 40 7 17 0 8 0 mbufpl 256 450511 0 450018 2252 2217 35 567 0 8 0 bufpl 288 48468 0 42129 487 3 484 487 0 8 0 anonpl 24 6706913 0 6681033 563 372 191 217 0 188 12 amapchunkpl 152 733281 0 732195 290 232 58 74 0 158 10 amappl16 200 67403 0 66513 297 237 60 70 0 8 8 amappl15 192 4598 0 4591 1 0 1 1 0 8 0 amappl14 184 4206 0 4199 1 0 1 1 0 8 0 amappl13 176 3523 0 3518 1 0 1 1 0 8 0 amappl12 168 3802 0 3796 1 0 1 1 0 8 0 amappl11 160 1764 0 1753 1 0 1 1 0 8 0 amappl10 152 2148 0 2146 5 4 1 1 0 8 0 amappl9 144 3497 0 3493 1 0 1 1 0 8 0 amappl8 136 5899 0 5766 6 1 5 5 0 8 0 amappl7 128 3400 0 3387 1 0 1 1 0 8 0 amappl6 120 3583 0 3556 2 1 1 2 0 8 0 amappl5 112 20374 0 20362 1 0 1 1 0 8 0 amappl4 104 8598 0 8564 2 0 2 2 0 8 0 amappl3 96 7398 0 7379 1 0 1 1 0 8 0 amappl2 88 6483 0 6427 3 1 2 3 0 8 0 amappl1 80 425367 0 424875 20 7 13 18 0 8 0 amappl 88 286779 0 286481 10 1 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 135 0 5 3 0 3 3 0 8 0 uaddrrnd 24 24518 0 24297 2 0 2 2 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 24518 0 24297 2 0 2 2 0 8 0 vmmpekpl 168 160763 0 160682 6 2 4 4 0 8 0 vmmpepl 168 2223881 0 2220838 638 475 163 185 0 357 0 vmsppl 272 24517 0 24297 18 3 15 15 0 8 0 rwobjpl 24 515862 0 506980 65 9 56 57 0 8 0 pdppl 4096 49042 0 48788 1702 1446 256 260 0 8 2 pvpl 32 11259759 0 11236756 902 658 244 333 0 265 29 pmappl 216 24517 0 24297 15 2 13 13 0 8 0 extentpl 40 58 0 38 1 0 1 1 0 8 0 phpool 112 7039 0 6001 81 49 32 41 0 8 1 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,ffff800000e05000,ffff80002e808ec8) at uvm_map_fill_vmmap+0xf6 vm_map_upgrade_ln sys/uvm/uvm_map.c:5540 [inline] uvm_map_fill_vmmap(ffffffff82a80470,ffff800000e05000,ffff80002e808ec8) at uvm_map_fill_vmmap+0xf6 sys/uvm/uvm_map.c:5593 sysctl_proc_vmmap(ffff80002e8092a8,1,200006c0,ffff80002e8092d8,ffff800026528010) at sysctl_proc_vmmap+0x229 sys/kern/kern_sysctl.c:2111 kern_sysctl(ffff80002e8092a4,2,200006c0,ffff80002e8092d8,0,fffffffffffffe97,edc1b8651edc18c2) at kern_sysctl+0xfd sys/kern/kern_sysctl.c:449 sys_sysctl(ffff800026528010,ffff80002e809348,ffff80002e8093a0) at sys_sysctl+0x209 sys/kern/kern_sysctl.c:249 syscall(ffff80002e809410) at syscall+0x44e sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa81ce694100, 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,ffff800000e05000,ffff80002e808ec8) at uvm_map_fill_vmmap+0xf6 vm_map_upgrade_ln sys/uvm/uvm_map.c:5540 [inline] uvm_map_fill_vmmap(ffffffff82a80470,ffff800000e05000,ffff80002e808ec8) at uvm_map_fill_vmmap+0xf6 sys/uvm/uvm_map.c:5593 sysctl_proc_vmmap(ffff80002e8092a8,1,200006c0,ffff80002e8092d8,ffff800026528010) at sysctl_proc_vmmap+0x229 sys/kern/kern_sysctl.c:2111 kern_sysctl(ffff80002e8092a4,2,200006c0,ffff80002e8092d8,0,fffffffffffffe97,edc1b8651edc18c2) at kern_sysctl+0xfd sys/kern/kern_sysctl.c:449 sys_sysctl(ffff800026528010,ffff80002e809348,ffff80002e8093a0) at sys_sysctl+0x209 sys/kern/kern_sysctl.c:249 syscall(ffff80002e809410) at syscall+0x44e sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa81ce694100, count: -9