panic: kmmaplk: lock not shared Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *343990 97562 0 0 0x4000000 0 syz-executor.3 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,ffff800000bc7000,ffff80002e7eb7c8) at uvm_map_fill_vmmap+0xf6 vm_map_upgrade_ln sys/uvm/uvm_map.c:5540 [inline] uvm_map_fill_vmmap(ffffffff82a80470,ffff800000bc7000,ffff80002e7eb7c8) at uvm_map_fill_vmmap+0xf6 sys/uvm/uvm_map.c:5593 sysctl_proc_vmmap(ffff80002e7ebba8,1,200006c0,ffff80002e7ebbd8,ffff80002160e540) at sysctl_proc_vmmap+0x229 sys/kern/kern_sysctl.c:2111 kern_sysctl(ffff80002e7ebba4,2,200006c0,ffff80002e7ebbd8,0,fffffffffffffe97,11bb38ce8d1eb919) at kern_sysctl+0xfd sys/kern/kern_sysctl.c:449 sys_sysctl(ffff80002160e540,ffff80002e7ebc48,ffff80002e7ebca0) at sys_sysctl+0x209 sys/kern/kern_sysctl.c:249 syscall(ffff80002e7ebd10) at syscall+0x44e sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x84378efa3c0, 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,ffff800000bc7000,ffff80002e7eb7c8) at uvm_map_fill_vmmap+0xf6 vm_map_upgrade_ln sys/uvm/uvm_map.c:5540 [inline] uvm_map_fill_vmmap(ffffffff82a80470,ffff800000bc7000,ffff80002e7eb7c8) at uvm_map_fill_vmmap+0xf6 sys/uvm/uvm_map.c:5593 sysctl_proc_vmmap(ffff80002e7ebba8,1,200006c0,ffff80002e7ebbd8,ffff80002160e540) at sysctl_proc_vmmap+0x229 sys/kern/kern_sysctl.c:2111 kern_sysctl(ffff80002e7ebba4,2,200006c0,ffff80002e7ebbd8,0,fffffffffffffe97,11bb38ce8d1eb919) at kern_sysctl+0xfd sys/kern/kern_sysctl.c:449 sys_sysctl(ffff80002160e540,ffff80002e7ebc48,ffff80002e7ebca0) at sys_sysctl+0x209 sys/kern/kern_sysctl.c:249 syscall(ffff80002e7ebd10) at syscall+0x44e sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x84378efa3c0, count: -9 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80002e7eb640 rbx 0xffffffff82a80478 kernel_map_store+0x8 rdx 0xffff800000bdee40 rcx 0 rax 0xffff80002160e540 r8 0x101010101010101 r9 0x8080808080808080 r10 0x6b06e27a7fe5b6f6 r11 0x21e250e25a06684 r12 0 r13 0xffffffff82a80470 kernel_map_store r14 0 r15 0x1 rip 0xffffffff8120dfc8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80002e7eb630 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.3) pid=343990 stat=onproc flags process=0 proc=4000000 pri=50, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800021662d28,0xffffffff829b7c50 process=0xffff8000230d1b80 user=0xffff80002e7e6000, vmspace=0xfffffd806c418bc0 estcpu=8, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 97562 190930 47239 0 2 0 syz-executor.3 *97562 343990 47239 0 7 0x4000000 syz-executor.3 73078 479698 27924 0 2 0 syz-executor.5 73078 201492 27924 0 2 0x4000000 syz-executor.5 27811 416161 72718 0 2 0 syz-executor.4 27811 251365 72718 0 2 0x4000000 syz-executor.4 5737 134389 9845 0 2 0 syz-executor.7 5737 315685 9845 0 2 0x4000000 syz-executor.7 67135 44006 55402 0 2 0 syz-executor.2 99207 105197 72830 0 2 0 syz-executor.6 99207 436423 72830 0 2 0x4000000 syz-executor.6 10441 463090 17748 0 2 0 syz-executor.1 10441 64801 17748 0 3 0x4000080 fsleep syz-executor.1 12068 465383 54100 0 2 0 syz-executor.0 12068 254427 54100 0 2 0x4000000 syz-executor.0 47239 217973 79864 0 3 0x82 nanoslp syz-executor.3 56082 167961 0 0 3 0x14200 bored sosplice 72830 295335 79864 0 3 0x82 nanoslp syz-executor.6 9845 376528 79864 0 3 0x82 nanoslp syz-executor.7 27924 110127 79864 0 3 0x82 nanoslp syz-executor.5 72718 420603 79864 0 3 0x82 nanoslp syz-executor.4 55402 331704 79864 0 3 0x82 nanoslp syz-executor.2 54100 229390 79864 0 3 0x82 nanoslp syz-executor.0 17748 106873 79864 0 3 0x82 nanoslp syz-executor.1 79864 521847 84493 0 3 0x82 kqread syz-fuzzer 79864 172856 84493 0 2 0x4000002 syz-fuzzer 79864 477514 84493 0 3 0x4000082 thrsleep syz-fuzzer 79864 363031 84493 0 3 0x4000082 thrsleep syz-fuzzer 79864 243970 84493 0 3 0x4000082 thrsleep syz-fuzzer 79864 194896 84493 0 3 0x4000082 thrsleep syz-fuzzer 79864 342203 84493 0 3 0x4000082 thrsleep syz-fuzzer 79864 267082 84493 0 3 0x4000082 thrsleep syz-fuzzer 79864 193185 84493 0 3 0x4000082 thrsleep syz-fuzzer 84493 39004 18846 0 3 0x10008a sigsusp ksh 18846 31789 32457 0 3 0x9a kqread sshd 70145 59179 1 0 3 0x100083 ttyin getty 32457 98867 1 0 3 0x88 kqread sshd 73666 370267 62462 73 3 0x1100090 kqread syslogd 62462 455243 1 0 3 0x100082 netio syslogd 93405 241792 1 0 3 0x100080 kqread resolvd 96429 361796 43413 77 3 0x100092 kqread dhcpleased 78671 321397 43413 77 3 0x100092 kqread dhcpleased 43413 498240 1 0 3 0x80 kqread dhcpleased 370 437372 0 0 3 0x14200 bored smr 84269 398626 0 0 2 0x14200 zerothread 16656 13169 0 0 3 0x14200 aiodoned aiodoned 58216 519062 0 0 3 0x14200 syncer update 58091 189373 0 0 3 0x14200 cleaner cleaner 61570 249593 0 0 3 0x14200 reaper reaper 21675 185289 0 0 3 0x14200 pgdaemon pagedaemon 6775 256953 0 0 3 0x14200 bored viomb 58768 194019 0 0 3 0x40014200 acpi0 acpi0 79316 118486 0 0 3 0x14200 bored softnet 89261 224020 0 0 3 0x14200 bored systqmp 92773 87927 0 0 3 0x14200 bored systq 33431 144515 0 0 3 0x40014200 bored softclock 8664 149533 0 0 3 0x40014200 idle0 1 64114 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 10166 6465K 6788K 78643K 11624 0 pcb 13 8K 8K 78643K 33 0 rtable 243 8K 8K 78643K 407 0 ifaddr 82 17K 17K 78643K 104 0 counters 27 17K 17K 78643K 31 0 ioctlops 0 0K 4K 78643K 47 0 iov 0 0K 4K 78643K 7 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1271 79K 80K 78643K 1394 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 1K 78643K 2 0 VM map 2 0K 0K 78643K 2 0 sem 7 0K 0K 78643K 7 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 18 65K 81K 78643K 401 0 sigio 0 0K 0K 78643K 1 0 proc 57 55K 79K 78643K 483 0 subproc 104 6K 6K 78643K 117 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 9 0 in_multi 99 6K 7K 78643K 121 0 ether_multi 1 0K 0K 78643K 5 0 mrt 1 0K 0K 78643K 2 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 49 228K 228K 78643K 49 0 exec 0 0K 2K 78643K 646 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 304 94K 104K 78643K 5986 0 UVM aobj 4 2K 2K 78643K 4 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 15 0 NDP 13 0K 2K 78643K 33 0 temp 110 4711K 4767K 78643K 5882 0 kqueue 12 18K 24K 78643K 32 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 48 0 45 1 0 1 1 0 8 0 rtentry 112 125 0 15 4 0 4 4 0 8 0 unpcb 136 81 0 68 1 0 1 1 0 8 0 syncache 296 5 0 5 2 1 1 1 0 8 1 tcpqe 32 27 0 27 1 1 0 1 0 8 0 tcpcb 736 43 0 39 2 0 2 2 0 8 1 arp 88 21 0 3 1 0 1 1 0 8 0 ipq 40 1 0 0 1 0 1 1 0 8 0 ipqe 40 1 0 0 1 0 1 1 0 8 0 inpcb 304 137 0 130 2 0 2 2 0 8 1 nd6 48 27 0 3 1 0 1 1 0 8 0 kcovpl 48 9 0 1 1 0 1 1 0 8 0 ppxss 1152 3 0 3 1 0 1 1 0 8 1 pfosfp 40 2 0 0 1 0 1 1 0 8 0 pfosfpen 112 2 0 0 1 0 1 1 0 8 0 pfrktable 1344 3 0 1 1 0 1 1 0 8 0 pfrule 1360 3 0 2 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 507 0 55 29 0 29 29 0 8 0 art_table 32 508 0 55 4 0 4 4 0 8 0 art_node 16 124 0 24 1 0 1 1 0 8 0 sysvmsgpl 40 1 0 1 1 0 1 1 0 8 1 semapl 112 5 0 0 1 0 1 1 0 8 0 shmpl 112 1 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1807 0 379 90 0 90 90 0 8 0 ffsino 240 1807 0 379 85 0 85 85 0 8 0 nchpl 144 2356 0 731 62 0 62 62 0 8 0 uvmvnodes 80 2009 0 0 41 0 41 41 0 8 0 vnodes 224 2009 0 0 119 0 119 119 0 8 0 namei 1024 7391 0 7391 2 0 2 2 0 8 2 vcpupl 1984 1 0 0 1 0 1 1 0 8 0 vmpool 528 1 0 0 1 0 1 1 0 8 0 pfiaddrpl 120 1 0 0 1 0 1 1 0 8 0 scxspl 216 6987 0 6987 2 1 1 2 0 8 1 plimitpl 152 28 0 14 1 0 1 1 0 8 0 sigapl 424 685 0 642 6 0 6 6 0 8 1 futexpl 64 1464 0 1463 1 0 1 1 0 8 0 knotepl 120 10254 0 10174 4 0 4 4 0 8 0 kqueuepl 184 32 0 24 1 0 1 1 0 8 0 pipepl 304 134 0 106 3 0 3 3 0 8 0 fdescpl 432 671 0 642 4 0 4 4 0 8 0 filepl 120 2165 0 1932 8 0 8 8 0 8 0 lockfpl 104 53 0 51 1 0 1 1 0 8 0 lockfspl 48 26 0 24 1 0 1 1 0 8 0 sessionpl 144 24 0 8 1 0 1 1 0 8 0 pgrppl 48 25 0 9 1 0 1 1 0 8 0 ucredpl 96 145 0 135 1 0 1 1 0 8 0 zombiepl 144 642 0 642 1 0 1 1 0 8 1 processpl 1000 685 0 642 6 0 6 6 0 8 0 procpl 672 965 0 907 5 0 5 5 0 8 0 sosppl 168 1 0 1 1 0 1 1 0 8 1 sockpl 448 266 0 243 4 0 4 4 0 8 1 mcl16k 16384 1 0 1 1 0 1 1 0 8 1 mcl12k 12288 1 0 1 1 0 1 1 0 8 1 mcl8k 8192 10 0 10 2 1 1 1 0 8 1 mcl4k 4096 11 0 11 2 1 1 1 0 8 1 mcl2k2 2112 3 0 3 1 0 1 1 0 8 1 mcl2k 2048 68659 0 68615 13 3 10 11 0 8 3 mtagpl 96 57 0 12 3 1 2 2 0 8 0 mbufpl 256 111089 0 110782 22 1 21 21 0 8 0 bufpl 288 3905 0 142 269 0 269 269 0 8 0 anonpl 24 152241 0 137587 125 0 125 125 0 188 26 amapchunkpl 152 13895 0 13137 35 1 34 34 0 158 4 amappl16 200 2135 0 1619 40 5 35 40 0 8 7 amappl15 192 94 0 88 1 0 1 1 0 8 0 amappl14 184 7 0 4 1 0 1 1 0 8 0 amappl13 176 125 0 120 1 0 1 1 0 8 0 amappl12 168 88 0 79 1 0 1 1 0 8 0 amappl11 160 89 0 74 1 0 1 1 0 8 0 amappl10 152 95 0 89 1 0 1 1 0 8 0 amappl9 144 491 0 486 1 0 1 1 0 8 0 amappl8 136 599 0 560 2 0 2 2 0 8 0 amappl7 128 143 0 134 1 0 1 1 0 8 0 amappl6 120 230 0 213 2 1 1 2 0 8 0 amappl5 112 485 0 469 1 0 1 1 0 8 0 amappl4 104 868 0 836 2 0 2 2 0 8 0 amappl3 96 267 0 251 1 0 1 1 0 8 0 amappl2 88 598 0 549 3 1 2 3 0 8 0 amappl1 80 14676 0 14114 18 4 14 18 0 8 1 amappl 88 5544 0 5306 6 0 6 6 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 3 0 0 1 0 1 1 0 8 0 uaddrrnd 24 672 0 642 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 672 0 642 1 0 1 1 0 8 0 vmmpekpl 168 9049 0 9009 3 0 3 3 0 8 0 vmmpepl 168 66131 0 63643 140 0 140 140 0 357 31 vmsppl 272 671 0 642 4 1 3 3 0 8 1 rwobjpl 24 18693 0 15261 22 0 22 22 0 8 0 pdppl 4096 1350 0 1285 105 40 65 72 0 8 0 pvpl 32 382907 0 363904 244 4 240 244 0 265 72 pmappl 216 671 0 642 2 0 2 2 0 8 0 extentpl 40 58 0 38 1 0 1 1 0 8 0 phpool 112 638 0 49 17 0 17 17 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,ffff800000bc7000,ffff80002e7eb7c8) at uvm_map_fill_vmmap+0xf6 vm_map_upgrade_ln sys/uvm/uvm_map.c:5540 [inline] uvm_map_fill_vmmap(ffffffff82a80470,ffff800000bc7000,ffff80002e7eb7c8) at uvm_map_fill_vmmap+0xf6 sys/uvm/uvm_map.c:5593 sysctl_proc_vmmap(ffff80002e7ebba8,1,200006c0,ffff80002e7ebbd8,ffff80002160e540) at sysctl_proc_vmmap+0x229 sys/kern/kern_sysctl.c:2111 kern_sysctl(ffff80002e7ebba4,2,200006c0,ffff80002e7ebbd8,0,fffffffffffffe97,11bb38ce8d1eb919) at kern_sysctl+0xfd sys/kern/kern_sysctl.c:449 sys_sysctl(ffff80002160e540,ffff80002e7ebc48,ffff80002e7ebca0) at sys_sysctl+0x209 sys/kern/kern_sysctl.c:249 syscall(ffff80002e7ebd10) at syscall+0x44e sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x84378efa3c0, 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,ffff800000bc7000,ffff80002e7eb7c8) at uvm_map_fill_vmmap+0xf6 vm_map_upgrade_ln sys/uvm/uvm_map.c:5540 [inline] uvm_map_fill_vmmap(ffffffff82a80470,ffff800000bc7000,ffff80002e7eb7c8) at uvm_map_fill_vmmap+0xf6 sys/uvm/uvm_map.c:5593 sysctl_proc_vmmap(ffff80002e7ebba8,1,200006c0,ffff80002e7ebbd8,ffff80002160e540) at sysctl_proc_vmmap+0x229 sys/kern/kern_sysctl.c:2111 kern_sysctl(ffff80002e7ebba4,2,200006c0,ffff80002e7ebbd8,0,fffffffffffffe97,11bb38ce8d1eb919) at kern_sysctl+0xfd sys/kern/kern_sysctl.c:449 sys_sysctl(ffff80002160e540,ffff80002e7ebc48,ffff80002e7ebca0) at sys_sysctl+0x209 sys/kern/kern_sysctl.c:249 syscall(ffff80002e7ebd10) at syscall+0x44e sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x84378efa3c0, count: -9