panic: kmmaplk: lock not shared Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *511693 56373 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,ffff800000bb2000,ffff80002cc4d698) at uvm_map_fill_vmmap+0xf6 vm_map_upgrade_ln sys/uvm/uvm_map.c:5540 [inline] uvm_map_fill_vmmap(ffffffff82a80470,ffff800000bb2000,ffff80002cc4d698) at uvm_map_fill_vmmap+0xf6 sys/uvm/uvm_map.c:5593 sysctl_proc_vmmap(ffff80002cc4da78,1,200006c0,ffff80002cc4daa8,ffff800024f0da40) at sysctl_proc_vmmap+0x229 sys/kern/kern_sysctl.c:2111 kern_sysctl(ffff80002cc4da74,2,200006c0,ffff80002cc4daa8,0,fffffffffffffe97,c7aaa14b807036c7) at kern_sysctl+0xfd sys/kern/kern_sysctl.c:449 sys_sysctl(ffff800024f0da40,ffff80002cc4db18,ffff80002cc4db70) at sys_sysctl+0x209 sys/kern/kern_sysctl.c:249 syscall(ffff80002cc4dbe0) at syscall+0x44e sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa9da4b793d0, 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,ffff800000bb2000,ffff80002cc4d698) at uvm_map_fill_vmmap+0xf6 vm_map_upgrade_ln sys/uvm/uvm_map.c:5540 [inline] uvm_map_fill_vmmap(ffffffff82a80470,ffff800000bb2000,ffff80002cc4d698) at uvm_map_fill_vmmap+0xf6 sys/uvm/uvm_map.c:5593 sysctl_proc_vmmap(ffff80002cc4da78,1,200006c0,ffff80002cc4daa8,ffff800024f0da40) at sysctl_proc_vmmap+0x229 sys/kern/kern_sysctl.c:2111 kern_sysctl(ffff80002cc4da74,2,200006c0,ffff80002cc4daa8,0,fffffffffffffe97,c7aaa14b807036c7) at kern_sysctl+0xfd sys/kern/kern_sysctl.c:449 sys_sysctl(ffff800024f0da40,ffff80002cc4db18,ffff80002cc4db70) at sys_sysctl+0x209 sys/kern/kern_sysctl.c:249 syscall(ffff80002cc4dbe0) at syscall+0x44e sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa9da4b793d0, count: -9 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80002cc4d510 rbx 0xffffffff82a80478 kernel_map_store+0x8 rdx 0xffff800000bc5280 rcx 0 rax 0xffff800024f0da40 r8 0x101010101010101 r9 0x8080808080808080 r10 0x6049157dfe0fad9a r11 0x167c951c6ccbbed5 r12 0 r13 0xffffffff82a80470 kernel_map_store r14 0 r15 0x1 rip 0xffffffff8120dfc8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80002cc4d500 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.2) pid=511693 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=83, nice=20 forw=0xffffffffffffffff, list=0xffff8000230adce8,0xffff800021675278 process=0xffff80002160fb78 user=0xffff80002cc48000, vmspace=0xfffffd80776b59a0 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 9357 374844 62949 0 3 0x80 nanoslp syz-executor.3 9357 187946 62949 0 3 0x4000080 fsleep syz-executor.3 40877 261048 153 0 2 0 syz-executor.5 40877 114584 153 0 3 0x4000080 fsleep syz-executor.5 56373 5834 68702 0 2 0 syz-executor.2 *56373 511693 68702 0 7 0x4000000 syz-executor.2 37083 454140 51904 0 2 0 syz-executor.7 37083 264601 51904 0 3 0x4000080 fsleep syz-executor.7 41290 375805 4936 0 2 0 syz-executor.0 41290 230818 4936 0 3 0x4000080 fsleep syz-executor.0 62949 212260 93812 0 3 0x82 nanoslp syz-executor.3 4936 201614 93812 0 3 0x82 nanoslp syz-executor.0 66936 216324 93812 0 3 0x82 nanoslp syz-executor.4 51904 175650 93812 0 3 0x82 nanoslp syz-executor.7 57634 217857 0 0 3 0x14200 acct acct 68702 236219 93812 0 3 0x82 nanoslp syz-executor.2 71651 345148 93812 0 3 0x82 nanoslp syz-executor.6 153 313952 93812 0 3 0x82 nanoslp syz-executor.5 58113 245226 0 0 3 0x14280 nfsidl nfsio 6992 148331 0 0 3 0x14280 nfsidl nfsio 55842 188548 0 0 3 0x14280 nfsidl nfsio 28258 306603 0 0 3 0x14280 nfsidl nfsio 35610 120875 0 0 3 0x14280 nfsidl nfsio 17475 7840 0 0 3 0x14280 nfsidl nfsio 26029 25604 0 0 3 0x14280 nfsidl nfsio 12718 73946 0 0 3 0x14280 nfsidl nfsio 77215 238508 0 0 3 0x14280 nfsidl nfsio 87899 199953 0 0 3 0x14280 nfsidl nfsio 58121 131731 0 0 3 0x14280 nfsidl nfsio 60279 141526 0 0 3 0x14280 nfsidl nfsio 13012 2502 0 0 3 0x14280 nfsidl nfsio 75109 427035 0 0 3 0x14280 nfsidl nfsio 26384 315500 93812 0 3 0x82 nanoslp syz-executor.1 63301 51344 0 0 3 0x14280 nfsidl nfsio 67663 232828 0 0 3 0x14280 nfsidl nfsio 66696 369211 0 0 3 0x14280 nfsidl nfsio 48773 228639 0 0 3 0x14280 nfsidl nfsio 35120 61698 0 0 3 0x14280 nfsidl nfsio 9079 38944 0 0 3 0x14280 nfsidl nfsio 50618 121124 0 0 3 0x14200 bored sosplice 93812 116922 95658 0 3 0x82 thrsleep syz-fuzzer 93812 449987 95658 0 3 0x4000082 thrsleep syz-fuzzer 93812 44028 95658 0 3 0x4000082 thrsleep syz-fuzzer 93812 191946 95658 0 3 0x4000082 thrsleep syz-fuzzer 93812 170136 95658 0 3 0x4000082 thrsleep syz-fuzzer 93812 511782 95658 0 3 0x4000082 kqread syz-fuzzer 93812 48409 95658 0 3 0x4000082 thrsleep syz-fuzzer 93812 489176 95658 0 3 0x4000082 thrsleep syz-fuzzer 93812 515211 95658 0 3 0x4000082 thrsleep syz-fuzzer 95658 461291 86287 0 3 0x10008a sigsusp ksh 86287 476915 54694 0 3 0x9a kqread sshd 53491 138055 1 0 3 0x100083 ttyin getty 54694 227429 1 0 3 0x88 kqread sshd 55733 458167 92695 73 3 0x1100090 kqread syslogd 92695 450460 1 0 3 0x100082 netio syslogd 49906 83854 1 0 3 0x100080 kqread resolvd 48700 270071 57513 77 3 0x100092 kqread dhcpleased 85689 457242 57513 77 3 0x100092 kqread dhcpleased 57513 395294 1 0 3 0x80 kqread dhcpleased 71359 155317 0 0 3 0x14200 bored smr 13045 48841 0 0 2 0x14200 zerothread 63112 321177 0 0 3 0x14200 aiodoned aiodoned 77152 187359 0 0 3 0x14200 syncer update 74075 93604 0 0 3 0x14200 cleaner cleaner 12141 42682 0 0 3 0x14200 reaper reaper 72876 70490 0 0 3 0x14200 pgdaemon pagedaemon 73287 512963 0 0 3 0x14200 bored viomb 4054 145198 0 0 3 0x40014200 acpi0 acpi0 80895 427678 0 0 3 0x14200 bored softnet 90486 512850 0 0 3 0x14200 bored systqmp 55473 93199 0 0 3 0x14200 bored systq 3769 225267 0 0 3 0x40014200 bored softclock 72149 446703 0 0 3 0x40014200 idle0 1 298318 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 10243 6646K 7046K 78643K 58990 0 pcb 13 22K 26K 78643K 4882 0 rtable 238 15K 16K 78643K 7566 0 ifaddr 94 26K 30K 78643K 2208 0 sysctl 3 1K 5K 78643K 14 0 counters 29 17K 17K 78643K 311 0 ioctlops 0 0K 4K 78643K 6348 0 iov 0 0K 28K 78643K 3753 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1526 95K 96K 78643K 27850 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 3 5K 9K 78643K 286 0 VM map 2 0K 0K 78643K 2 0 sem 12 0K 0K 78643K 3251 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 15 53K 69K 78643K 28692 0 sigio 0 0K 0K 78643K 299 0 proc 72 55K 79K 78643K 4207 0 subproc 104 6K 6K 78643K 1407 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 13351 0 in_multi 89 6K 7K 78643K 2203 0 ether_multi 1 0K 0K 78643K 387 0 mrt 1 0K 0K 78643K 95 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 373 1659K 1659K 78643K 373 0 exec 0 0K 2K 78643K 6569 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 612 1156K 1468K 78643K 348101 0 UVM aobj 131 4K 4K 78643K 131 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 1545 0 NDP 14 0K 2K 78643K 546 0 temp 166 4761K 5009K 78643K 245819 0 kqueue 12 18K 28K 78643K 1693 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 2850 0 2847 34 33 1 5 0 8 0 rtentry 112 1558 0 1453 4 0 4 4 0 8 0 unpcb 136 16586 0 16571 194 191 3 9 0 8 2 syncache 296 10 0 10 3 3 0 1 0 8 0 sackhl 24 2 0 2 2 2 0 1 0 8 0 tcpcb 736 15071 0 15056 514 507 7 26 0 8 5 arp 88 255 0 239 1 0 1 1 0 8 0 ipq 40 99 0 98 15 14 1 1 0 8 0 ipqe 40 324 0 323 15 14 1 1 0 8 0 inpcb 304 39788 0 39776 503 497 6 17 0 8 5 rttmr 72 269 0 269 6 6 0 1 0 8 0 ip6q 72 52 0 52 6 6 0 1 0 8 0 ip6af 40 98 0 98 7 7 0 1 0 8 0 nd6 48 373 0 346 1 0 1 1 0 8 0 pkpcb 40 69 0 69 16 15 1 1 0 8 1 kcovpl 48 108 0 100 1 0 1 1 0 8 0 ppxss 1152 89 0 89 26 26 0 1 0 8 0 pfstscr 40 4 0 4 1 1 0 1 0 8 0 pfosfp 40 5 0 4 2 1 1 1 0 8 0 pfosfpen 112 5 0 4 2 1 1 1 0 8 0 pfrktable 1344 672 0 672 11 11 0 2 0 8 0 pftag 88 30 0 18 1 0 1 1 0 8 0 pfqueue 264 1 0 1 1 1 0 1 0 8 0 pfstkey 112 8 0 8 1 1 0 1 0 8 0 pfstate 320 4 0 4 1 1 0 1 0 8 0 pfrule 1360 507 0 507 16 16 0 3 0 8 0 art_heap8 4096 4 0 2 4 2 2 3 0 8 0 art_heap4 256 6636 0 6211 97 70 27 62 0 8 0 art_table 32 6640 0 6213 9 4 5 8 0 8 0 art_node 16 1553 0 1463 1 0 1 1 0 8 0 sysvmsgpl 40 53 0 53 1 1 0 1 0 8 0 semapl 112 3249 0 3239 1 0 1 1 0 8 0 shmpl 112 128 0 0 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 50582 0 48997 100 0 100 100 0 8 0 ffsino 240 50582 0 48997 94 0 94 94 0 8 0 nchpl 144 88093 0 86472 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 347606 0 347606 8 7 1 2 0 8 1 vcpupl 1984 286 0 0 36 0 36 36 0 8 0 vmpool 528 426 0 140 24 4 20 20 0 8 0 pfiaddrpl 120 207 0 207 7 7 0 1 0 8 0 scsiplug 72 27 0 27 8 7 1 1 0 8 1 scxspl 216 219590 0 219590 41 39 2 8 0 8 2 plimitpl 152 3297 0 3283 1 0 1 1 0 8 0 sigapl 424 28842 0 28778 11 3 8 8 0 8 0 futexpl 64 296454 0 296450 6 5 1 1 0 8 0 knotepl 120 288610 0 288530 103 100 3 11 0 8 0 kqueuepl 184 5879 0 5871 83 82 1 5 0 8 0 pipepl 304 5378 0 5350 143 140 3 8 0 8 0 fdescpl 432 28758 0 28732 4 0 4 4 0 8 0 filepl 120 255427 0 255186 356 344 12 18 0 8 4 lockfpl 104 6896 0 6894 14 13 1 2 0 8 0 lockfspl 48 1796 0 1794 1 0 1 1 0 8 0 sessionpl 144 123 0 107 1 0 1 1 0 8 0 pgrppl 48 388 0 372 1 0 1 1 0 8 0 ucredpl 96 80338 0 80316 1 0 1 1 0 8 0 zombiepl 144 28781 0 28778 2 1 1 1 0 8 0 processpl 1000 28842 0 28778 13 4 9 9 0 8 0 procpl 672 72268 0 72191 79 71 8 9 0 8 1 sosppl 168 201 0 201 36 35 1 1 0 8 1 sockpl 448 59487 0 59457 1064 1053 11 32 0 8 7 mcl64k 65536 1081 0 1081 73 72 1 1 0 8 1 mcl16k 16384 210 0 210 66 66 0 1 0 8 0 mcl12k 12288 1043 0 1043 73 73 0 1 0 8 0 mcl9k 9216 507 0 507 77 76 1 1 0 8 1 mcl8k 8192 2032 0 2032 59 58 1 1 0 8 1 mcl4k 4096 3537 0 3537 24 23 1 1 0 8 1 mcl2k2 2112 210 0 210 84 83 1 1 0 8 1 mcl2k 2048 137248 0 137196 63 55 8 16 0 8 0 mtagpl 96 7097 0 6972 47 41 6 25 0 8 0 mbufpl 256 485527 0 485215 1382 1354 28 516 0 8 0 bufpl 288 50901 0 44505 459 0 459 459 0 8 0 anonpl 24 8111487 0 8090464 614 462 152 211 0 188 9 amapchunkpl 152 873987 0 873148 865 825 40 661 0 158 3 amappl16 200 84880 0 84017 385 330 55 71 0 8 8 amappl15 192 5630 0 5626 1 0 1 1 0 8 0 amappl14 184 2326 0 2324 1 0 1 1 0 8 0 amappl13 176 5878 0 5873 1 0 1 1 0 8 0 amappl12 168 2063 0 2060 1 0 1 1 0 8 0 amappl11 160 2263 0 2250 1 0 1 1 0 8 0 amappl10 152 3246 0 3240 2 1 1 1 0 8 0 amappl9 144 3144 0 3140 1 0 1 1 0 8 0 amappl8 136 8180 0 8029 9 3 6 6 0 8 0 amappl7 128 5714 0 5699 1 0 1 1 0 8 0 amappl6 120 3171 0 3140 5 4 1 2 0 8 0 amappl5 112 26633 0 26618 1 0 1 1 0 8 0 amappl4 104 7309 0 7271 2 0 2 2 0 8 0 amappl3 96 7586 0 7555 1 0 1 1 0 8 0 amappl2 88 8168 0 8116 3 1 2 3 0 8 0 amappl1 80 503713 0 503178 18 5 13 18 0 8 0 amappl 88 345291 0 344982 9 1 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 130 0 0 3 0 3 3 0 8 0 uaddrrnd 24 29184 0 28872 2 0 2 2 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 29184 0 28872 2 0 2 2 0 8 0 vmmpekpl 168 184752 0 184663 5 0 5 5 0 8 0 vmmpepl 168 2618170 0 2614806 901 724 177 179 0 357 13 vmsppl 272 29183 0 28872 24 3 21 22 0 8 0 rwobjpl 24 612753 0 604419 55 1 54 54 0 8 0 pdppl 4096 58374 0 58030 2055 1705 350 352 0 8 6 pvpl 32 13275055 0 13251626 996 760 236 329 0 265 23 pmappl 216 29183 0 28872 18 0 18 18 0 8 0 extentpl 40 58 0 38 1 0 1 1 0 8 0 phpool 112 6108 0 4993 57 24 33 41 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,ffff800000bb2000,ffff80002cc4d698) at uvm_map_fill_vmmap+0xf6 vm_map_upgrade_ln sys/uvm/uvm_map.c:5540 [inline] uvm_map_fill_vmmap(ffffffff82a80470,ffff800000bb2000,ffff80002cc4d698) at uvm_map_fill_vmmap+0xf6 sys/uvm/uvm_map.c:5593 sysctl_proc_vmmap(ffff80002cc4da78,1,200006c0,ffff80002cc4daa8,ffff800024f0da40) at sysctl_proc_vmmap+0x229 sys/kern/kern_sysctl.c:2111 kern_sysctl(ffff80002cc4da74,2,200006c0,ffff80002cc4daa8,0,fffffffffffffe97,c7aaa14b807036c7) at kern_sysctl+0xfd sys/kern/kern_sysctl.c:449 sys_sysctl(ffff800024f0da40,ffff80002cc4db18,ffff80002cc4db70) at sys_sysctl+0x209 sys/kern/kern_sysctl.c:249 syscall(ffff80002cc4dbe0) at syscall+0x44e sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa9da4b793d0, 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,ffff800000bb2000,ffff80002cc4d698) at uvm_map_fill_vmmap+0xf6 vm_map_upgrade_ln sys/uvm/uvm_map.c:5540 [inline] uvm_map_fill_vmmap(ffffffff82a80470,ffff800000bb2000,ffff80002cc4d698) at uvm_map_fill_vmmap+0xf6 sys/uvm/uvm_map.c:5593 sysctl_proc_vmmap(ffff80002cc4da78,1,200006c0,ffff80002cc4daa8,ffff800024f0da40) at sysctl_proc_vmmap+0x229 sys/kern/kern_sysctl.c:2111 kern_sysctl(ffff80002cc4da74,2,200006c0,ffff80002cc4daa8,0,fffffffffffffe97,c7aaa14b807036c7) at kern_sysctl+0xfd sys/kern/kern_sysctl.c:449 sys_sysctl(ffff800024f0da40,ffff80002cc4db18,ffff80002cc4db70) at sys_sysctl+0x209 sys/kern/kern_sysctl.c:249 syscall(ffff80002cc4dbe0) at syscall+0x44e sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa9da4b793d0, count: -9