panic: kmmaplk: lock not shared Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *445294 66830 0 0 0x4000000 0 syz-executor.5 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,ffff800000bd3000,ffff800024ad74a8) at uvm_map_fill_vmmap+0xf6 vm_map_upgrade_ln sys/uvm/uvm_map.c:5540 [inline] uvm_map_fill_vmmap(ffffffff82a80470,ffff800000bd3000,ffff800024ad74a8) at uvm_map_fill_vmmap+0xf6 sys/uvm/uvm_map.c:5593 sysctl_proc_vmmap(ffff800024ad7888,1,200006c0,ffff800024ad78b8,ffff800027f082b0) at sysctl_proc_vmmap+0x229 sys/kern/kern_sysctl.c:2111 kern_sysctl(ffff800024ad7884,2,200006c0,ffff800024ad78b8,0,fffffffffffffe97,2b419fe5d3cece1b) at kern_sysctl+0xfd sys/kern/kern_sysctl.c:449 sys_sysctl(ffff800027f082b0,ffff800024ad7928,ffff800024ad7980) at sys_sysctl+0x209 sys/kern/kern_sysctl.c:249 syscall(ffff800024ad79f0) at syscall+0x44e sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x5984c08fb40, 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,ffff800000bd3000,ffff800024ad74a8) at uvm_map_fill_vmmap+0xf6 vm_map_upgrade_ln sys/uvm/uvm_map.c:5540 [inline] uvm_map_fill_vmmap(ffffffff82a80470,ffff800000bd3000,ffff800024ad74a8) at uvm_map_fill_vmmap+0xf6 sys/uvm/uvm_map.c:5593 sysctl_proc_vmmap(ffff800024ad7888,1,200006c0,ffff800024ad78b8,ffff800027f082b0) at sysctl_proc_vmmap+0x229 sys/kern/kern_sysctl.c:2111 kern_sysctl(ffff800024ad7884,2,200006c0,ffff800024ad78b8,0,fffffffffffffe97,2b419fe5d3cece1b) at kern_sysctl+0xfd sys/kern/kern_sysctl.c:449 sys_sysctl(ffff800027f082b0,ffff800024ad7928,ffff800024ad7980) at sys_sysctl+0x209 sys/kern/kern_sysctl.c:249 syscall(ffff800024ad79f0) at syscall+0x44e sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x5984c08fb40, count: -9 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff800024ad7320 rbx 0xffffffff82a80478 kernel_map_store+0x8 rdx 0xffff800000bc8840 rcx 0 rax 0xffff800027f082b0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x603916995a0e17d4 r11 0x3bafdbcb38295750 r12 0 r13 0xffffffff82a80470 kernel_map_store r14 0 r15 0x1 rip 0xffffffff8120dfc8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800024ad7310 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.5) pid=445294 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800027f08d30,0xffff800027f09a60 process=0xffff80002168bb80 user=0xffff800024ad2000, vmspace=0xfffffd806349f000 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 72383 172375 17809 0 2 0 syz-executor.2 72383 268381 17809 0 3 0x4000080 fsleep syz-executor.2 1438 377655 93982 0 2 0 syz-executor.0 1438 423325 93982 0 3 0x4000080 fsleep syz-executor.0 29053 226823 39578 0 2 0 syz-executor.4 29053 79446 39578 0 3 0x4000080 kqpoll syz-executor.4 66830 144689 59062 0 2 0 syz-executor.5 *66830 445294 59062 0 7 0x4000000 syz-executor.5 81997 165046 80211 0 3 0x80 nanoslp syz-executor.7 81997 308525 80211 0 3 0x4000080 netcon syz-executor.7 81997 312838 80211 0 3 0x4000080 fsleep syz-executor.7 25418 219579 14098 0 3 0x82 nanoslp syz-executor.6 93982 102979 14098 0 3 0x82 nanoslp syz-executor.0 17809 483149 14098 0 3 0x82 nanoslp syz-executor.2 58593 219272 0 0 3 0x14280 nfsidl nfsio 14402 175908 0 0 3 0x14280 nfsidl nfsio 48066 433604 0 0 3 0x14280 nfsidl nfsio 55365 200763 0 0 3 0x14280 nfsidl nfsio 66533 143067 0 0 3 0x14280 nfsidl nfsio 61891 286811 0 0 3 0x14280 nfsidl nfsio 80211 341414 14098 0 3 0x82 nanoslp syz-executor.7 33981 255504 1 0 3 0x100083 ttyin getty 42553 17224 14098 0 3 0x82 piperd syz-executor.3 39578 130370 14098 0 3 0x82 nanoslp syz-executor.4 68059 103333 0 0 3 0x14200 acct acct 70621 97249 0 0 3 0x14200 bored sosplice 59062 34311 14098 0 3 0x82 nanoslp syz-executor.5 96942 167342 14098 0 3 0x82 nanoslp syz-executor.1 14098 37666 27825 0 3 0x82 thrsleep syz-fuzzer 14098 280773 27825 0 3 0x4000082 thrsleep syz-fuzzer 14098 91927 27825 0 3 0x4000082 thrsleep syz-fuzzer 14098 64443 27825 0 3 0x4000082 thrsleep syz-fuzzer 14098 104502 27825 0 3 0x4000082 thrsleep syz-fuzzer 14098 443938 27825 0 3 0x4000082 kqread syz-fuzzer 14098 408109 27825 0 3 0x4000082 thrsleep syz-fuzzer 14098 84948 27825 0 3 0x4000082 thrsleep syz-fuzzer 27825 239836 95229 0 3 0x10008a sigsusp ksh 95229 122226 93956 0 3 0x9a kqread sshd 93956 190588 1 0 3 0x88 kqread sshd 80180 25488 6881 73 3 0x1100090 kqread syslogd 6881 297585 1 0 3 0x100082 netio syslogd 44929 94844 1 0 3 0x100080 kqread resolvd 57998 41098 67285 77 3 0x100092 kqread dhcpleased 81541 46060 67285 77 3 0x100092 kqread dhcpleased 67285 408849 1 0 3 0x80 kqread dhcpleased 26549 61951 0 0 3 0x14200 bored smr 65617 318813 0 0 2 0x14200 zerothread 56386 283003 0 0 3 0x14200 aiodoned aiodoned 93979 311064 0 0 3 0x14200 syncer update 92713 95451 0 0 3 0x14200 cleaner cleaner 12096 214867 0 0 3 0x14200 reaper reaper 9113 363785 0 0 3 0x14200 pgdaemon pagedaemon 26686 242979 0 0 3 0x14200 bored viomb 80595 100638 0 0 3 0x40014200 acpi0 acpi0 33206 282074 0 0 3 0x14200 bored softnet 87697 46710 0 0 3 0x14200 bored systqmp 85646 284788 0 0 3 0x14200 bored systq 7925 321631 0 0 3 0x40014200 bored softclock 67367 283056 0 0 3 0x40014200 idle0 1 119563 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 10196 6433K 7271K 78643K 19720 0 pcb 13 14K 16K 78643K 813 0 rtable 187 16K 20K 78643K 1787 0 ifaddr 80 18K 20K 78643K 692 0 sysctl 2 0K 0K 78643K 2 0 counters 26 17K 17K 78643K 100 0 ioctlops 0 0K 4K 78643K 3456 0 iov 0 0K 32K 78643K 711 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1460 91K 92K 78643K 4700 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 61 0 VM map 2 0K 0K 78643K 2 0 sem 12 0K 0K 78643K 952 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 15 53K 81K 78643K 6196 0 sigio 0 0K 0K 78643K 3 0 proc 61 55K 79K 78643K 1302 0 subproc 104 6K 6K 78643K 403 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 302 0 in_multi 74 5K 7K 78643K 570 0 ether_multi 1 0K 0K 78643K 77 0 mrt 1 0K 0K 78643K 25 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 229 1023K 1023K 78643K 229 0 exec 0 0K 2K 78643K 2014 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 385 435K 436K 78643K 76427 0 UVM aobj 131 8K 8K 78643K 146 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 312 0 NDP 11 0K 1K 78643K 160 0 temp 163 4781K 4849K 78643K 90527 0 kqueue 12 18K 24K 78643K 292 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 414 0 411 6 5 1 3 0 8 0 rtentry 112 458 0 383 4 1 3 4 0 8 0 unpcb 136 2928 0 2913 28 27 1 9 0 8 0 syncache 296 18 0 18 7 7 0 1 0 8 0 tcpqe 32 74 0 74 3 3 0 1 0 8 0 tcpcb 736 2835 0 2764 131 123 8 18 0 8 1 arp 88 77 0 67 1 0 1 1 0 8 0 ipq 40 11 0 9 3 2 1 1 0 8 0 ipqe 40 32 0 30 3 2 1 1 0 8 0 inpcb 304 5928 0 5920 115 106 9 11 0 8 8 rttmr 72 6 0 6 2 2 0 1 0 8 0 ip6q 72 7 0 7 2 2 0 1 0 8 0 ip6af 40 16 0 16 2 2 0 1 0 8 0 nd6 48 124 0 101 1 0 1 1 0 8 0 pkpcb 40 38 0 38 2 2 0 1 0 8 0 kcovpl 48 31 0 23 1 0 1 1 0 8 0 ppxss 1152 23 0 23 5 5 0 1 0 8 0 pfstscr 40 14 0 13 2 1 1 1 0 8 0 pfosfp 40 3 0 2 1 0 1 1 0 8 0 pfosfpen 112 3 0 0 1 0 1 1 0 8 0 pfrktable 1344 183 0 179 1 0 1 1 0 8 0 pftag 88 11 0 6 2 1 1 1 0 8 0 pfstitem 24 2 0 0 1 0 1 1 0 8 0 pfstkey 112 22 0 20 2 1 1 1 0 8 0 pfstate 320 11 0 10 2 1 1 1 0 8 0 pfrule 1360 981 0 706 25 1 24 24 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 1811 0 1437 42 16 26 30 0 8 0 art_table 32 1812 0 1437 4 0 4 4 0 8 0 art_node 16 457 0 391 1 0 1 1 0 8 0 sysvmsgpl 40 15 0 3 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 950 0 940 1 0 1 1 0 8 0 shmpl 112 143 0 15 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 10864 0 9389 93 0 93 93 0 8 0 ffsino 240 10864 0 9389 87 0 87 87 0 8 0 nchpl 144 20081 0 18462 62 0 62 62 0 8 0 uvmvnodes 80 5926 0 0 121 0 121 121 0 8 0 vnodes 224 5926 0 0 349 0 349 349 0 8 0 namei 1024 75989 0 75989 11 10 1 2 0 8 1 vcpupl 1984 58 0 0 8 0 8 8 0 8 0 vmpool 528 140 0 82 5 1 4 4 0 8 0 pfiaddrpl 120 50 0 44 1 0 1 1 0 8 0 scxspl 216 58616 0 58616 20 19 1 8 0 8 1 plimitpl 152 762 0 748 1 0 1 1 0 8 0 sigapl 424 6447 0 6398 7 1 6 6 0 8 0 futexpl 64 65482 0 65479 8 7 1 1 0 8 0 knotepl 120 59630 0 59550 18 13 5 11 0 8 0 kqueuepl 184 1692 0 1683 26 25 1 6 0 8 0 pipepl 304 1613 0 1585 30 27 3 8 0 8 0 fdescpl 432 6422 0 6396 4 0 4 4 0 8 0 filepl 120 48916 0 48675 96 81 15 18 0 8 7 lockfpl 104 1517 0 1514 4 3 1 2 0 8 0 lockfspl 48 464 0 461 1 0 1 1 0 8 0 sessionpl 144 47 0 31 1 0 1 1 0 8 0 pgrppl 48 55 0 39 1 0 1 1 0 8 0 ucredpl 96 5633 0 5623 1 0 1 1 0 8 0 zombiepl 144 6400 0 6398 7 6 1 1 0 8 0 processpl 1000 6447 0 6398 7 0 7 7 0 8 0 procpl 672 15973 0 15911 12 5 7 7 0 8 0 sosppl 168 45 0 45 9 9 0 1 0 8 0 sockpl 448 9375 0 9349 221 210 11 30 0 8 8 mcl64k 65536 309 0 309 16 15 1 2 0 8 1 mcl16k 16384 37 0 37 9 9 0 1 0 8 0 mcl12k 12288 201 0 201 17 16 1 1 0 8 1 mcl9k 9216 116 0 116 18 17 1 1 0 8 1 mcl8k 8192 399 0 399 15 14 1 1 0 8 1 mcl4k 4096 699 0 699 13 12 1 1 0 8 1 mcl2k2 2112 51 0 51 18 17 1 1 0 8 1 mcl2k 2048 88859 0 88801 18 9 9 11 0 8 0 mtagpl 96 737 0 614 8 4 4 6 0 8 0 mbufpl 256 186748 0 186446 326 300 26 283 0 8 0 bufpl 288 14653 0 8246 458 0 458 458 0 8 0 anonpl 24 1800910 0 1782137 201 72 129 146 0 188 0 amapchunkpl 152 184130 0 183374 88 54 34 43 0 158 1 amappl16 200 19337 0 18544 154 111 43 57 0 8 0 amappl15 192 1251 0 1246 1 0 1 1 0 8 0 amappl14 184 1194 0 1189 1 0 1 1 0 8 0 amappl13 176 640 0 636 1 0 1 1 0 8 0 amappl12 168 133 0 128 1 0 1 1 0 8 0 amappl11 160 257 0 244 1 0 1 1 0 8 0 amappl10 152 339 0 336 1 0 1 1 0 8 0 amappl9 144 1297 0 1292 1 0 1 1 0 8 0 amappl8 136 3209 0 3133 5 2 3 3 0 8 0 amappl7 128 2302 0 2288 1 0 1 1 0 8 0 amappl6 120 1102 0 1074 2 1 1 2 0 8 0 amappl5 112 5737 0 5724 1 0 1 1 0 8 0 amappl4 104 2070 0 2039 2 1 1 2 0 8 0 amappl3 96 967 0 948 1 0 1 1 0 8 0 amappl2 88 1578 0 1527 3 1 2 3 0 8 0 amappl1 80 116385 0 115842 18 5 13 18 0 8 0 amappl 88 75436 0 75182 7 0 7 7 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 145 0 15 3 0 3 3 0 8 0 uaddrrnd 24 6562 0 6478 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 6562 0 6478 1 0 1 1 0 8 0 vmmpekpl 168 48935 0 48886 3 0 3 3 0 8 0 vmmpepl 168 598883 0 596192 266 136 130 143 0 357 2 vmsppl 272 6561 0 6478 7 1 6 6 0 8 0 rwobjpl 24 145662 0 137842 56 8 48 49 0 8 0 pdppl 4096 13130 0 13014 511 387 124 124 0 8 8 pvpl 32 3095248 0 3072119 373 166 207 258 0 265 0 pmappl 216 6561 0 6478 5 0 5 5 0 8 0 extentpl 40 58 0 38 1 0 1 1 0 8 0 phpool 112 1990 0 1109 28 2 26 28 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,ffff800000bd3000,ffff800024ad74a8) at uvm_map_fill_vmmap+0xf6 vm_map_upgrade_ln sys/uvm/uvm_map.c:5540 [inline] uvm_map_fill_vmmap(ffffffff82a80470,ffff800000bd3000,ffff800024ad74a8) at uvm_map_fill_vmmap+0xf6 sys/uvm/uvm_map.c:5593 sysctl_proc_vmmap(ffff800024ad7888,1,200006c0,ffff800024ad78b8,ffff800027f082b0) at sysctl_proc_vmmap+0x229 sys/kern/kern_sysctl.c:2111 kern_sysctl(ffff800024ad7884,2,200006c0,ffff800024ad78b8,0,fffffffffffffe97,2b419fe5d3cece1b) at kern_sysctl+0xfd sys/kern/kern_sysctl.c:449 sys_sysctl(ffff800027f082b0,ffff800024ad7928,ffff800024ad7980) at sys_sysctl+0x209 sys/kern/kern_sysctl.c:249 syscall(ffff800024ad79f0) at syscall+0x44e sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x5984c08fb40, 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,ffff800000bd3000,ffff800024ad74a8) at uvm_map_fill_vmmap+0xf6 vm_map_upgrade_ln sys/uvm/uvm_map.c:5540 [inline] uvm_map_fill_vmmap(ffffffff82a80470,ffff800000bd3000,ffff800024ad74a8) at uvm_map_fill_vmmap+0xf6 sys/uvm/uvm_map.c:5593 sysctl_proc_vmmap(ffff800024ad7888,1,200006c0,ffff800024ad78b8,ffff800027f082b0) at sysctl_proc_vmmap+0x229 sys/kern/kern_sysctl.c:2111 kern_sysctl(ffff800024ad7884,2,200006c0,ffff800024ad78b8,0,fffffffffffffe97,2b419fe5d3cece1b) at kern_sysctl+0xfd sys/kern/kern_sysctl.c:449 sys_sysctl(ffff800027f082b0,ffff800024ad7928,ffff800024ad7980) at sys_sysctl+0x209 sys/kern/kern_sysctl.c:249 syscall(ffff800024ad79f0) at syscall+0x44e sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x5984c08fb40, count: -9