panic: kmmaplk: lock not shared Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND * 88346 26147 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,ffff800000da9000,ffff80002e7df0c8) at uvm_map_fill_vmmap+0xf6 vm_map_upgrade_ln sys/uvm/uvm_map.c:5540 [inline] uvm_map_fill_vmmap(ffffffff82a80470,ffff800000da9000,ffff80002e7df0c8) at uvm_map_fill_vmmap+0xf6 sys/uvm/uvm_map.c:5593 sysctl_proc_vmmap(ffff80002e7df4a8,1,200006c0,ffff80002e7df4d8,ffff80002160ea80) at sysctl_proc_vmmap+0x229 sys/kern/kern_sysctl.c:2111 kern_sysctl(ffff80002e7df4a4,2,200006c0,ffff80002e7df4d8,0,fffffffffffffe97,3472d0325ccc9339) at kern_sysctl+0xfd sys/kern/kern_sysctl.c:449 sys_sysctl(ffff80002160ea80,ffff80002e7df548,ffff80002e7df5a0) at sys_sysctl+0x209 sys/kern/kern_sysctl.c:249 syscall(ffff80002e7df610) at syscall+0x44e sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7105630f3e0, 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,ffff800000da9000,ffff80002e7df0c8) at uvm_map_fill_vmmap+0xf6 vm_map_upgrade_ln sys/uvm/uvm_map.c:5540 [inline] uvm_map_fill_vmmap(ffffffff82a80470,ffff800000da9000,ffff80002e7df0c8) at uvm_map_fill_vmmap+0xf6 sys/uvm/uvm_map.c:5593 sysctl_proc_vmmap(ffff80002e7df4a8,1,200006c0,ffff80002e7df4d8,ffff80002160ea80) at sysctl_proc_vmmap+0x229 sys/kern/kern_sysctl.c:2111 kern_sysctl(ffff80002e7df4a4,2,200006c0,ffff80002e7df4d8,0,fffffffffffffe97,3472d0325ccc9339) at kern_sysctl+0xfd sys/kern/kern_sysctl.c:449 sys_sysctl(ffff80002160ea80,ffff80002e7df548,ffff80002e7df5a0) at sys_sysctl+0x209 sys/kern/kern_sysctl.c:249 syscall(ffff80002e7df610) at syscall+0x44e sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7105630f3e0, count: -9 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80002e7def40 rbx 0xffffffff82a80478 kernel_map_store+0x8 rdx 0xffff800000badec0 rcx 0 rax 0xffff80002160ea80 r8 0 r9 0x8080808080808080 r10 0xc6bc77bc3750e5a5 r11 0xec0c682759ce150f r12 0 r13 0xffffffff82a80470 kernel_map_store r14 0 r15 0x1 rip 0xffffffff8120dfc8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80002e7def30 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=88346 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=83, nice=20 forw=0xffffffffffffffff, list=0xffff80002160f7a0,0xffff8000230c57b8 process=0xffff800021610400 user=0xffff80002e7da000, vmspace=0xfffffd80782d0dd8 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 25161 87574 54872 0 3 0x80 nanoslp syz-executor.4 25161 245962 54872 0 3 0x4000080 fsleep syz-executor.4 26147 45273 16637 0 2 0 syz-executor.0 *26147 88346 16637 0 7 0x4000000 syz-executor.0 53531 522970 94666 0 2 0 syz-executor.5 53531 190342 94666 0 3 0x4000080 fsleep syz-executor.5 82241 286843 74154 0 2 0x2 syz-executor.1 13743 164083 74154 0 2 0x2 syz-executor.3 54872 452988 74154 0 2 0x482 syz-executor.4 12425 483924 74154 0 3 0x82 nanoslp syz-executor.6 94666 255962 74154 0 3 0x82 nanoslp syz-executor.5 71709 198472 74154 0 2 0x482 syz-executor.7 16637 157742 74154 0 3 0x82 nanoslp syz-executor.0 33285 481679 1 0 3 0x100083 ttyin getty 5293 452717 74154 0 3 0x82 nanoslp syz-executor.2 57539 345196 0 0 3 0x14200 acct acct 9618 281780 0 0 3 0x14280 nfsidl nfsio 75674 276817 0 0 3 0x14280 nfsidl nfsio 533 90236 0 0 3 0x14280 nfsidl nfsio 53001 40869 0 0 3 0x14280 nfsidl nfsio 99293 29891 0 0 3 0x14280 nfsidl nfsio 47311 387385 0 0 3 0x14280 nfsidl nfsio 85329 65420 0 0 3 0x14200 bored sosplice 74154 359296 55874 0 3 0x82 thrsleep syz-fuzzer 74154 294391 55874 0 3 0x4000082 nanoslp syz-fuzzer 74154 60873 55874 0 3 0x4000082 thrsleep syz-fuzzer 74154 215409 55874 0 3 0x4000082 thrsleep syz-fuzzer 74154 193762 55874 0 3 0x4000082 thrsleep syz-fuzzer 74154 61758 55874 0 3 0x4000082 kqread syz-fuzzer 74154 149012 55874 0 3 0x4000082 thrsleep syz-fuzzer 74154 457564 55874 0 3 0x4000082 thrsleep syz-fuzzer 55874 212961 4830 0 3 0x10008a sigsusp ksh 4830 170839 79747 0 3 0x9a kqread sshd 79747 43570 1 0 3 0x88 kqread sshd 14990 139104 59668 73 3 0x1100090 kqread syslogd 59668 297505 1 0 3 0x100082 netio syslogd 11309 401838 1 0 3 0x100080 kqread resolvd 56287 106019 45312 77 3 0x100092 kqread dhcpleased 6231 90737 45312 77 3 0x100092 kqread dhcpleased 45312 347248 1 0 3 0x80 kqread dhcpleased 83444 215606 0 0 3 0x14200 bored smr 29355 474360 0 0 2 0x14200 zerothread 95111 49658 0 0 3 0x14200 aiodoned aiodoned 36845 459567 0 0 3 0x14200 syncer update 36983 174992 0 0 3 0x14200 cleaner cleaner 8637 331240 0 0 3 0x14200 reaper reaper 86631 53385 0 0 3 0x14200 pgdaemon pagedaemon 17578 243489 0 0 3 0x14200 bored viomb 54492 134021 0 0 3 0x40014200 acpi0 acpi0 4268 224831 0 0 3 0x14200 bored softnet 68548 36544 0 0 3 0x14200 bored systqmp 42070 459772 0 0 3 0x14200 bored systq 30136 410904 0 0 3 0x40014200 bored softclock 59249 336370 0 0 3 0x40014200 idle0 1 3648 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 10241 6711K 7859K 78643K 89245 0 pcb 13 20K 25K 78643K 2606 0 rtable 183 15K 17K 78643K 4496 0 ifaddr 88 25K 29K 78643K 1553 0 sysctl 2 0K 0K 78643K 2 0 counters 27 17K 17K 78643K 290 0 ioctlops 0 0K 4K 78643K 4533 0 iov 0 0K 28K 78643K 2487 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1522 95K 95K 78643K 23555 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 173 0 VM map 2 0K 0K 78643K 2 0 sem 12 0K 0K 78643K 2983 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 13 45K 93K 78643K 19449 0 sigio 0 0K 0K 78643K 101 0 proc 61 55K 79K 78643K 3427 0 subproc 104 6K 6K 78643K 1105 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 1046 0 in_multi 76 5K 6K 78643K 1876 0 ether_multi 1 0K 0K 78643K 239 0 mrt 2 0K 0K 78643K 48 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 5552 0 pfkey data 0 0K 1K 78643K 42 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 488 858K 1002K 78643K 235788 0 UVM aobj 131 8K 8K 78643K 133 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 954 0 NDP 14 0K 1K 78643K 540 0 temp 142 4721K 4970K 78643K 155186 0 kqueue 12 18K 28K 78643K 1482 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 1914 0 1911 30 29 1 3 0 8 0 rtentry 112 1268 0 1193 4 1 3 4 0 8 0 unpcb 136 11207 0 11190 109 108 1 9 0 8 0 syncache 296 41 0 41 10 10 0 1 0 8 0 tcpqe 32 12 0 12 3 3 0 1 0 8 0 tcpcb 736 8337 0 8325 314 307 7 26 0 8 5 arp 88 197 0 183 1 0 1 1 0 8 0 ipq 40 19 0 19 6 6 0 1 0 8 0 ipqe 40 123 0 123 6 6 0 1 0 8 0 inpcb 304 19980 0 19972 357 348 9 17 0 8 8 rttmr 72 12 0 12 4 4 0 1 0 8 0 ip6q 72 107 0 107 6 6 0 1 0 8 0 ip6af 40 227 0 227 6 6 0 1 0 8 0 nd6 48 368 0 351 1 0 1 1 0 8 0 pkpcb 40 66 0 66 9 9 0 1 0 8 0 kcovpl 48 85 0 77 1 0 1 1 0 8 0 ppxss 1152 94 0 94 22 22 0 1 0 8 0 pfstscr 40 5 0 5 1 1 0 1 0 8 0 pfrktable 1344 2 0 0 1 0 1 1 0 8 0 pftag 88 1 0 0 1 0 1 1 0 8 0 pfstkey 112 10 0 10 1 1 0 1 0 8 0 pfstate 320 5 0 5 1 1 0 1 0 8 0 pfrule 1360 27 0 19 1 0 1 1 0 8 0 art_heap8 4096 2 0 1 2 1 1 2 0 8 0 art_heap4 256 5515 0 5171 78 56 22 29 0 8 0 art_table 32 5517 0 5172 5 1 4 4 0 8 0 art_node 16 1262 0 1196 1 0 1 1 0 8 0 sysvmsgpl 40 3 0 0 1 0 1 1 0 8 0 semupl 112 4 0 4 1 1 0 1 0 8 0 semapl 112 2981 0 2971 1 0 1 1 0 8 0 shmpl 112 130 0 2 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 27525 0 25980 97 0 97 97 0 8 0 ffsino 240 27525 0 25980 92 0 92 92 0 8 0 nchpl 144 55675 0 54055 62 0 62 62 0 8 0 uvmvnodes 80 6183 0 0 127 0 127 127 0 8 0 vnodes 224 6183 0 0 364 0 364 364 0 8 0 namei 1024 222494 0 222493 12 11 1 2 0 8 0 vcpupl 1984 93 0 0 12 0 12 12 0 8 0 vmpool 528 219 0 126 11 4 7 7 0 8 0 scsiplug 72 12 0 12 4 4 0 1 0 8 0 scxspl 216 160625 0 160625 36 35 1 8 0 8 1 plimitpl 152 2638 0 2624 1 0 1 1 0 8 0 sigapl 424 19595 0 19547 9 1 8 8 0 8 0 futexpl 64 200895 0 200893 9 8 1 1 0 8 0 knotepl 120 177101 0 177021 48 42 6 11 0 8 3 kqueuepl 184 7116 0 7107 88 87 1 7 0 8 0 pipepl 304 3821 0 3793 103 95 8 12 0 8 5 fdescpl 432 19555 0 19531 5 1 4 5 0 8 0 filepl 120 149868 0 149627 260 245 15 18 0 8 7 lockfpl 104 5104 0 5102 8 7 1 2 0 8 0 lockfspl 48 1422 0 1420 1 0 1 1 0 8 0 sessionpl 144 103 0 87 1 0 1 1 0 8 0 pgrppl 48 315 0 299 1 0 1 1 0 8 0 ucredpl 96 18765 0 18755 1 0 1 1 0 8 0 zombiepl 144 19550 0 19547 5 4 1 1 0 8 0 processpl 1000 19595 0 19547 10 3 7 9 0 8 0 procpl 672 49606 0 49548 48 41 7 9 0 8 0 sosppl 168 84 0 84 21 21 0 1 0 8 0 sockpl 448 33243 0 33215 690 679 11 30 0 8 7 mcl64k 65536 922 0 922 69 68 1 1 0 8 1 mcl16k 16384 167 0 167 51 50 1 1 0 8 1 mcl12k 12288 630 0 630 62 61 1 1 0 8 1 mcl9k 9216 322 0 322 56 55 1 1 0 8 1 mcl8k 8192 1260 0 1260 62 61 1 2 0 8 1 mcl4k 4096 2313 0 2313 37 36 1 1 0 8 1 mcl2k2 2112 158 0 158 60 59 1 1 0 8 1 mcl2k 2048 117110 0 117028 73 61 12 18 0 8 0 mtagpl 96 4680 0 4565 41 33 8 12 0 8 2 mbufpl 256 337672 0 337348 1322 1286 36 560 0 8 1 bufpl 288 37223 0 30816 458 0 458 458 0 8 0 anonpl 24 5505605 0 5482705 530 370 160 210 0 188 1 amapchunkpl 152 607450 0 606631 822 784 38 660 0 158 0 amappl16 200 58423 0 57455 238 174 64 64 0 8 6 amappl15 192 5906 0 5899 1 0 1 1 0 8 0 amappl14 184 2785 0 2779 1 0 1 1 0 8 0 amappl13 176 4209 0 4205 1 0 1 1 0 8 0 amappl12 168 1955 0 1951 1 0 1 1 0 8 0 amappl11 160 2163 0 2150 1 0 1 1 0 8 0 amappl10 152 566 0 562 1 0 1 1 0 8 0 amappl9 144 2661 0 2657 1 0 1 1 0 8 0 amappl8 136 4123 0 3991 5 0 5 5 0 8 0 amappl7 128 2076 0 2062 1 0 1 1 0 8 0 amappl6 120 2654 0 2618 5 3 2 2 0 8 0 amappl5 112 12156 0 12142 1 0 1 1 0 8 0 amappl4 104 8006 0 7974 2 0 2 2 0 8 0 amappl3 96 6742 0 6726 1 0 1 1 0 8 0 amappl2 88 6859 0 6802 3 1 2 3 0 8 0 amappl1 80 349855 0 349341 18 5 13 18 0 8 0 amappl 88 233579 0 233322 12 4 8 8 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 132 0 2 3 0 3 3 0 8 0 uaddrrnd 24 19774 0 19657 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 19774 0 19657 1 0 1 1 0 8 0 vmmpekpl 168 136408 0 136349 4 0 4 4 0 8 0 vmmpepl 168 1794169 0 1791234 547 386 161 166 0 357 8 vmsppl 272 19773 0 19657 11 2 9 9 0 8 0 rwobjpl 24 427064 0 418752 57 4 53 53 0 8 2 pdppl 4096 39554 0 39407 1345 1188 157 159 0 8 10 pvpl 32 9163621 0 9141282 789 574 215 334 0 265 1 pmappl 216 19773 0 19657 7 0 7 7 0 8 0 extentpl 40 58 0 38 1 0 1 1 0 8 0 phpool 112 4720 0 3808 55 26 29 36 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,ffff800000da9000,ffff80002e7df0c8) at uvm_map_fill_vmmap+0xf6 vm_map_upgrade_ln sys/uvm/uvm_map.c:5540 [inline] uvm_map_fill_vmmap(ffffffff82a80470,ffff800000da9000,ffff80002e7df0c8) at uvm_map_fill_vmmap+0xf6 sys/uvm/uvm_map.c:5593 sysctl_proc_vmmap(ffff80002e7df4a8,1,200006c0,ffff80002e7df4d8,ffff80002160ea80) at sysctl_proc_vmmap+0x229 sys/kern/kern_sysctl.c:2111 kern_sysctl(ffff80002e7df4a4,2,200006c0,ffff80002e7df4d8,0,fffffffffffffe97,3472d0325ccc9339) at kern_sysctl+0xfd sys/kern/kern_sysctl.c:449 sys_sysctl(ffff80002160ea80,ffff80002e7df548,ffff80002e7df5a0) at sys_sysctl+0x209 sys/kern/kern_sysctl.c:249 syscall(ffff80002e7df610) at syscall+0x44e sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7105630f3e0, 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,ffff800000da9000,ffff80002e7df0c8) at uvm_map_fill_vmmap+0xf6 vm_map_upgrade_ln sys/uvm/uvm_map.c:5540 [inline] uvm_map_fill_vmmap(ffffffff82a80470,ffff800000da9000,ffff80002e7df0c8) at uvm_map_fill_vmmap+0xf6 sys/uvm/uvm_map.c:5593 sysctl_proc_vmmap(ffff80002e7df4a8,1,200006c0,ffff80002e7df4d8,ffff80002160ea80) at sysctl_proc_vmmap+0x229 sys/kern/kern_sysctl.c:2111 kern_sysctl(ffff80002e7df4a4,2,200006c0,ffff80002e7df4d8,0,fffffffffffffe97,3472d0325ccc9339) at kern_sysctl+0xfd sys/kern/kern_sysctl.c:449 sys_sysctl(ffff80002160ea80,ffff80002e7df548,ffff80002e7df5a0) at sys_sysctl+0x209 sys/kern/kern_sysctl.c:249 syscall(ffff80002e7df610) at syscall+0x44e sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7105630f3e0, count: -9