panic: kmmaplk: lock not shared Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND * 79669 24498 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,ffff800000e36000,ffff80002cd9ab88) at uvm_map_fill_vmmap+0xf6 vm_map_upgrade_ln sys/uvm/uvm_map.c:5540 [inline] uvm_map_fill_vmmap(ffffffff82a80470,ffff800000e36000,ffff80002cd9ab88) at uvm_map_fill_vmmap+0xf6 sys/uvm/uvm_map.c:5593 sysctl_proc_vmmap(ffff80002cd9af68,1,200006c0,ffff80002cd9af98,ffff8000216762a8) at sysctl_proc_vmmap+0x229 sys/kern/kern_sysctl.c:2111 kern_sysctl(ffff80002cd9af64,2,200006c0,ffff80002cd9af98,0,fffffffffffffe97,97f06f83eaf76a48) at kern_sysctl+0xfd sys/kern/kern_sysctl.c:449 sys_sysctl(ffff8000216762a8,ffff80002cd9b008,ffff80002cd9b060) at sys_sysctl+0x209 sys/kern/kern_sysctl.c:249 syscall(ffff80002cd9b0d0) at syscall+0x44e sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x4a32a1998c0, 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,ffff800000e36000,ffff80002cd9ab88) at uvm_map_fill_vmmap+0xf6 vm_map_upgrade_ln sys/uvm/uvm_map.c:5540 [inline] uvm_map_fill_vmmap(ffffffff82a80470,ffff800000e36000,ffff80002cd9ab88) at uvm_map_fill_vmmap+0xf6 sys/uvm/uvm_map.c:5593 sysctl_proc_vmmap(ffff80002cd9af68,1,200006c0,ffff80002cd9af98,ffff8000216762a8) at sysctl_proc_vmmap+0x229 sys/kern/kern_sysctl.c:2111 kern_sysctl(ffff80002cd9af64,2,200006c0,ffff80002cd9af98,0,fffffffffffffe97,97f06f83eaf76a48) at kern_sysctl+0xfd sys/kern/kern_sysctl.c:449 sys_sysctl(ffff8000216762a8,ffff80002cd9b008,ffff80002cd9b060) at sys_sysctl+0x209 sys/kern/kern_sysctl.c:249 syscall(ffff80002cd9b0d0) at syscall+0x44e sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x4a32a1998c0, count: -9 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80002cd9aa00 rbx 0xffffffff82a80478 kernel_map_store+0x8 rdx 0xffff800000daa2c0 rcx 0 rax 0xffff8000216762a8 r8 0x101010101010101 r9 0x8080808080808080 r10 0xde84621c9bb3abf r11 0x64c53589cefcd5e9 r12 0 r13 0xffffffff82a80470 kernel_map_store r14 0 r15 0x1 rip 0xffffffff8120dfc8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80002cd9a9f0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=79669 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=80, nice=20 forw=0xffffffffffffffff, list=0xffff8000216767e8,0xffff8000ffff8018 process=0xffff800027f3ebe0 user=0xffff80002cd96000, vmspace=0xfffffd806d5f8340 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 25146 191801 7064 0 2 0 syz-executor.6 25146 477410 7064 0 3 0x4000080 fsleep syz-executor.6 75022 110902 75931 0 2 0 syz-executor.3 75022 508614 75931 0 3 0x4000080 fsleep syz-executor.3 24498 131784 38317 0 2 0 syz-executor.0 *24498 79669 38317 0 7 0x4000000 syz-executor.0 86476 73339 65886 0 2 0 syz-executor.2 86476 144178 65886 0 3 0x4000080 fsleep syz-executor.2 86476 367355 65886 0 2 0x4000000 syz-executor.2 90574 116459 23396 0 2 0 syz-executor.5 90574 46698 23396 0 3 0x4000080 fsleep syz-executor.5 91312 195824 6199 0 2 0x2 syz-executor.4 51750 52932 6199 0 3 0x82 piperd syz-executor.1 7064 124799 6199 0 3 0x82 nanoslp syz-executor.6 23396 382374 6199 0 3 0x82 nanoslp syz-executor.5 53919 239030 6199 0 3 0x82 piperd syz-executor.7 75931 488335 6199 0 3 0x82 nanoslp syz-executor.3 38317 513565 6199 0 3 0x82 nanoslp syz-executor.0 65886 88628 6199 0 3 0x82 nanoslp syz-executor.2 54297 102644 0 0 3 0x14280 nfsidl nfsio 58901 310918 0 0 3 0x14280 nfsidl nfsio 186 450725 0 0 3 0x14280 nfsidl nfsio 50718 236759 0 0 3 0x14280 nfsidl nfsio 47858 156442 0 0 3 0x14280 nfsidl nfsio 44044 202894 0 0 3 0x14280 nfsidl nfsio 25337 404879 0 0 3 0x14200 bored sosplice 6199 389327 33266 0 3 0x82 thrsleep syz-fuzzer 6199 322933 33266 0 3 0x4000082 thrsleep syz-fuzzer 6199 74346 33266 0 3 0x4000082 kqread syz-fuzzer 6199 368392 33266 0 3 0x4000082 thrsleep syz-fuzzer 6199 253635 33266 0 3 0x4000082 thrsleep syz-fuzzer 6199 486019 33266 0 3 0x4000082 thrsleep syz-fuzzer 6199 164852 33266 0 3 0x4000082 thrsleep syz-fuzzer 6199 70559 33266 0 3 0x4000082 thrsleep syz-fuzzer 6199 411073 33266 0 3 0x4000082 thrsleep syz-fuzzer 33266 310226 53425 0 3 0x10008a sigsusp ksh 53425 23821 42397 0 3 0x9a kqread sshd 10929 351940 1 0 3 0x100083 ttyin getty 42397 418340 1 0 3 0x88 kqread sshd 74889 273206 44511 73 3 0x1100090 kqread syslogd 44511 481280 1 0 3 0x100082 netio syslogd 44778 194050 1 0 3 0x100080 kqread resolvd 98670 361309 92736 77 3 0x100092 kqread dhcpleased 92549 328219 92736 77 3 0x100092 kqread dhcpleased 92736 492740 1 0 3 0x80 kqread dhcpleased 1461 316453 0 0 3 0x14200 bored smr 96745 306287 0 0 2 0x14200 zerothread 593 72657 0 0 3 0x14200 aiodoned aiodoned 62087 417906 0 0 3 0x14200 syncer update 58833 196418 0 0 3 0x14200 cleaner cleaner 28473 415071 0 0 3 0x14200 reaper reaper 30385 118569 0 0 3 0x14200 pgdaemon pagedaemon 1549 516245 0 0 3 0x14200 bored viomb 69240 84340 0 0 3 0x40014200 acpi0 acpi0 46330 172497 0 0 3 0x14200 bored softnet 64863 190435 0 0 3 0x14200 bored systqmp 72116 70197 0 0 3 0x14200 bored systq 75893 117362 0 0 3 0x40014200 bored softclock 38184 174943 0 0 3 0x40014200 idle0 1 189070 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 10212 6438K 10575K 78643K 75131 0 pcb 13 20K 25K 78643K 4037 0 rtable 176 15K 21K 78643K 6115 0 ifaddr 94 26K 31K 78643K 2571 0 sysctl 3 1K 1K 78643K 3 0 counters 28 17K 17K 78643K 282 0 ioctlops 0 0K 4K 78643K 5238 0 iov 0 0K 32K 78643K 3402 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1688 105K 106K 78643K 31837 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 13K 78643K 240 0 VM map 2 0K 0K 78643K 2 0 sem 16 3K 3K 78643K 299 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 15 53K 89K 78643K 23476 0 sigio 0 0K 0K 78643K 288 0 proc 74 63K 95K 78643K 3609 0 subproc 104 6K 6K 78643K 1227 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 1471 0 in_multi 55 3K 7K 78643K 2123 0 ether_multi 1 0K 0K 78643K 368 0 mrt 1 0K 0K 78643K 92 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 5652 0 pfkey data 0 0K 0K 78643K 19 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 634 1284K 1287K 78643K 286840 0 UVM aobj 131 4K 4K 78643K 137 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 1885 0 NDP 14 0K 2K 78643K 536 0 temp 188 4807K 4991K 78643K 259369 0 kqueue 13 20K 28K 78643K 1391 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 1639 0 1636 20 19 1 3 0 8 0 rtentry 112 1414 0 1348 4 0 4 4 0 8 0 unpcb 136 17994 0 17979 183 182 1 9 0 8 0 syncache 296 33 0 33 9 9 0 1 0 8 0 tcpqe 32 58 0 58 4 4 0 1 0 8 0 tcpcb 736 8959 0 8947 298 296 2 20 0 8 0 arp 88 250 0 235 1 0 1 1 0 8 0 ipq 40 11 0 11 6 6 0 1 0 8 0 ipqe 40 99 0 99 6 6 0 1 0 8 0 inpcb 304 24957 0 24950 378 377 1 19 0 8 0 rttmr 72 20 0 20 7 7 0 1 0 8 0 ip6q 72 25 0 25 8 8 0 1 0 8 0 ip6af 40 50 0 50 8 8 0 1 0 8 0 nd6 48 350 0 337 1 0 1 1 0 8 0 pkpcb 40 58 0 58 13 13 0 1 0 8 0 kcovpl 48 94 0 86 1 0 1 1 0 8 0 ppxss 1152 51 0 51 16 16 0 1 0 8 0 pfstscr 40 84 0 83 3 2 1 1 0 8 0 pfosfp 40 131 0 127 2 1 1 1 0 8 0 pfosfpen 112 131 0 88 3 1 2 2 0 8 0 pfrktable 1344 698 0 695 14 13 1 2 0 8 0 pftag 88 57 0 44 2 1 1 1 0 8 0 pfqueue 264 6 0 6 2 2 0 1 0 8 0 pfstitem 24 114 0 112 1 0 1 1 0 8 0 pfstkey 112 160 0 158 3 2 1 1 0 8 0 pfstate 320 80 0 79 3 2 1 1 0 8 0 pfrule 1360 1459 0 1443 22 20 2 7 0 8 0 art_heap8 4096 2 0 1 2 1 1 2 0 8 0 art_heap4 256 6010 0 5711 53 28 25 31 0 8 0 art_table 32 6012 0 5712 6 2 4 4 0 8 0 art_node 16 1410 0 1349 1 0 1 1 0 8 0 sysvmsgpl 40 41 0 36 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 292 0 278 1 0 1 1 0 8 0 shmpl 112 134 0 6 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 32625 0 31040 100 0 100 100 0 8 0 ffsino 240 32625 0 31040 94 0 94 94 0 8 0 nchpl 144 64017 0 62391 62 0 62 62 0 8 0 uvmvnodes 80 6242 0 0 128 0 128 128 0 8 0 vnodes 224 6242 0 0 368 0 368 368 0 8 0 namei 1024 252658 0 252658 10 9 1 2 0 8 1 vcpupl 1984 138 0 0 18 0 18 18 0 8 0 vmpool 528 211 0 73 13 3 10 10 0 8 0 pfiaddrpl 120 252 0 251 7 6 1 2 0 8 0 scsiplug 72 25 0 25 7 7 0 1 0 8 0 scxspl 216 186938 0 186938 42 41 1 8 0 8 1 plimitpl 152 2675 0 2659 1 0 1 1 0 8 0 sigapl 424 23650 0 23604 9 1 8 8 0 8 0 futexpl 64 251439 0 251435 3 2 1 1 0 8 0 knotepl 120 210174 0 210093 69 65 4 14 0 8 0 kqueuepl 184 5945 0 5936 102 101 1 7 0 8 0 pipepl 304 4151 0 4123 112 104 8 8 0 8 5 fdescpl 432 23571 0 23545 4 0 4 4 0 8 0 filepl 120 179251 0 179005 259 245 14 17 0 8 5 lockfpl 104 5928 0 5926 12 11 1 2 0 8 0 lockfspl 48 1677 0 1675 1 0 1 1 0 8 0 sessionpl 144 109 0 93 1 0 1 1 0 8 0 pgrppl 48 404 0 388 1 0 1 1 0 8 0 ucredpl 96 20864 0 20849 1 0 1 1 0 8 0 zombiepl 144 23604 0 23604 5 4 1 1 0 8 1 processpl 1000 23650 0 23604 10 3 7 9 0 8 0 procpl 672 61584 0 61524 53 46 7 9 0 8 1 sosppl 168 168 0 168 29 29 0 1 0 8 0 sockpl 448 44662 0 44637 931 926 5 31 0 8 2 mcl64k 65536 1077 0 1077 57 56 1 1 0 8 1 mcl16k 16384 179 0 179 52 51 1 1 0 8 1 mcl12k 12288 719 0 719 58 57 1 1 0 8 1 mcl9k 9216 485 0 485 67 66 1 1 0 8 1 mcl8k 8192 1285 0 1285 58 57 1 1 0 8 1 mcl4k 4096 2490 0 2490 28 27 1 1 0 8 1 mcl2k2 2112 186 0 186 68 68 0 1 0 8 0 mcl2k 2048 125722 0 125668 60 52 8 17 0 8 0 mtagpl 96 5449 0 5103 40 27 13 19 0 8 0 mbufpl 256 367174 0 366619 998 955 43 577 0 8 0 bufpl 288 44257 0 37885 460 1 459 459 0 8 0 anonpl 24 6623883 0 6595273 542 352 190 209 0 188 13 amapchunkpl 152 797297 0 796319 1679 1632 47 667 0 158 7 amappl16 200 67783 0 66641 205 138 67 76 0 8 0 amappl15 192 6957 0 6950 1 0 1 1 0 8 0 amappl14 184 4229 0 4221 1 0 1 1 0 8 0 amappl13 176 4859 0 4856 1 0 1 1 0 8 0 amappl12 168 1215 0 1208 1 0 1 1 0 8 0 amappl11 160 3389 0 3379 1 0 1 1 0 8 0 amappl10 152 1951 0 1948 1 0 1 1 0 8 0 amappl9 144 1656 0 1650 1 0 1 1 0 8 0 amappl8 136 4703 0 4557 6 0 6 6 0 8 0 amappl7 128 2476 0 2464 1 0 1 1 0 8 0 amappl6 120 1699 0 1664 7 5 2 2 0 8 0 amappl5 112 18672 0 18660 1 0 1 1 0 8 0 amappl4 104 10522 0 10488 2 0 2 2 0 8 0 amappl3 96 4695 0 4671 1 0 1 1 0 8 0 amappl2 88 6988 0 6926 3 1 2 3 0 8 0 amappl1 80 418289 0 417744 18 5 13 18 0 8 0 amappl 88 284357 0 284025 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 136 0 6 3 0 3 3 0 8 0 uaddrrnd 24 23782 0 23618 2 0 2 2 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 23782 0 23618 2 0 2 2 0 8 0 vmmpekpl 168 162665 0 162606 4 0 4 4 0 8 0 vmmpepl 168 2152184 0 2148841 532 363 169 190 0 357 0 vmsppl 272 23781 0 23618 15 3 12 12 0 8 0 rwobjpl 24 507248 0 498613 60 6 54 54 0 8 0 pdppl 4096 47570 0 47374 1495 1293 202 202 0 8 6 pvpl 32 11065062 0 11040222 775 552 223 321 0 265 16 pmappl 216 23781 0 23618 11 1 10 10 0 8 0 extentpl 40 58 0 38 1 0 1 1 0 8 0 phpool 112 4739 0 3777 44 15 29 40 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,ffff800000e36000,ffff80002cd9ab88) at uvm_map_fill_vmmap+0xf6 vm_map_upgrade_ln sys/uvm/uvm_map.c:5540 [inline] uvm_map_fill_vmmap(ffffffff82a80470,ffff800000e36000,ffff80002cd9ab88) at uvm_map_fill_vmmap+0xf6 sys/uvm/uvm_map.c:5593 sysctl_proc_vmmap(ffff80002cd9af68,1,200006c0,ffff80002cd9af98,ffff8000216762a8) at sysctl_proc_vmmap+0x229 sys/kern/kern_sysctl.c:2111 kern_sysctl(ffff80002cd9af64,2,200006c0,ffff80002cd9af98,0,fffffffffffffe97,97f06f83eaf76a48) at kern_sysctl+0xfd sys/kern/kern_sysctl.c:449 sys_sysctl(ffff8000216762a8,ffff80002cd9b008,ffff80002cd9b060) at sys_sysctl+0x209 sys/kern/kern_sysctl.c:249 syscall(ffff80002cd9b0d0) at syscall+0x44e sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x4a32a1998c0, 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,ffff800000e36000,ffff80002cd9ab88) at uvm_map_fill_vmmap+0xf6 vm_map_upgrade_ln sys/uvm/uvm_map.c:5540 [inline] uvm_map_fill_vmmap(ffffffff82a80470,ffff800000e36000,ffff80002cd9ab88) at uvm_map_fill_vmmap+0xf6 sys/uvm/uvm_map.c:5593 sysctl_proc_vmmap(ffff80002cd9af68,1,200006c0,ffff80002cd9af98,ffff8000216762a8) at sysctl_proc_vmmap+0x229 sys/kern/kern_sysctl.c:2111 kern_sysctl(ffff80002cd9af64,2,200006c0,ffff80002cd9af98,0,fffffffffffffe97,97f06f83eaf76a48) at kern_sysctl+0xfd sys/kern/kern_sysctl.c:449 sys_sysctl(ffff8000216762a8,ffff80002cd9b008,ffff80002cd9b060) at sys_sysctl+0x209 sys/kern/kern_sysctl.c:249 syscall(ffff80002cd9b0d0) at syscall+0x44e sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x4a32a1998c0, count: -9