panic: kmmaplk: lock not shared Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *221359 28084 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,ffff800000bbe000,ffff800029fd2e98) at uvm_map_fill_vmmap+0xf6 vm_map_upgrade_ln sys/uvm/uvm_map.c:5540 [inline] uvm_map_fill_vmmap(ffffffff82a80470,ffff800000bbe000,ffff800029fd2e98) at uvm_map_fill_vmmap+0xf6 sys/uvm/uvm_map.c:5593 sysctl_proc_vmmap(ffff800029fd3278,1,200006c0,ffff800029fd32a8,ffff8000215dfa40) at sysctl_proc_vmmap+0x229 sys/kern/kern_sysctl.c:2111 kern_sysctl(ffff800029fd3274,2,200006c0,ffff800029fd32a8,0,fffffffffffffe97,9be574dd87ce25f4) at kern_sysctl+0xfd sys/kern/kern_sysctl.c:449 sys_sysctl(ffff8000215dfa40,ffff800029fd3318,ffff800029fd3370) at sys_sysctl+0x209 sys/kern/kern_sysctl.c:249 syscall(ffff800029fd33e0) at syscall+0x44e sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xd7fefa97550, 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,ffff800000bbe000,ffff800029fd2e98) at uvm_map_fill_vmmap+0xf6 vm_map_upgrade_ln sys/uvm/uvm_map.c:5540 [inline] uvm_map_fill_vmmap(ffffffff82a80470,ffff800000bbe000,ffff800029fd2e98) at uvm_map_fill_vmmap+0xf6 sys/uvm/uvm_map.c:5593 sysctl_proc_vmmap(ffff800029fd3278,1,200006c0,ffff800029fd32a8,ffff8000215dfa40) at sysctl_proc_vmmap+0x229 sys/kern/kern_sysctl.c:2111 kern_sysctl(ffff800029fd3274,2,200006c0,ffff800029fd32a8,0,fffffffffffffe97,9be574dd87ce25f4) at kern_sysctl+0xfd sys/kern/kern_sysctl.c:449 sys_sysctl(ffff8000215dfa40,ffff800029fd3318,ffff800029fd3370) at sys_sysctl+0x209 sys/kern/kern_sysctl.c:249 syscall(ffff800029fd33e0) at syscall+0x44e sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xd7fefa97550, count: -9 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff800029fd2d10 rbx 0xffffffff82a80478 kernel_map_store+0x8 rdx 0xffff800000d14d00 rcx 0 rax 0xffff8000215dfa40 r8 0x101010101010101 r9 0x8080808080808080 r10 0xa7e689753b0155f4 r11 0x4effe9cc07f75435 r12 0 r13 0xffffffff82a80470 kernel_map_store r14 0 r15 0x1 rip 0xffffffff8120dfc8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800029fd2d00 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.3) pid=221359 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=83, nice=20 forw=0xffffffffffffffff, list=0xffff8000215de000,0xffff8000215dea90 process=0xffff8000230c3ba8 user=0xffff800029fce000, vmspace=0xfffffd8063b6baa0 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 36776 217680 8499 0 2 0 syz-executor.0 36776 505636 8499 0 2 0x4000000 syz-executor.0 20627 205851 7475 0 2 0 syz-executor.4 20627 218650 7475 0 3 0x4000080 fsleep syz-executor.4 28084 66947 95962 0 2 0 syz-executor.3 *28084 221359 95962 0 7 0x4000000 syz-executor.3 5494 153863 85 0 2 0x10 syz-executor.2 5494 288743 85 0 2 0x4000010 syz-executor.2 36045 462621 36127 0 3 0x80 nanoslp syz-executor.6 36045 153021 36127 0 3 0x4000080 fsleep syz-executor.6 59979 19279 8686 0 2 0 syz-executor.5 59979 435355 8686 0 3 0x4000080 fsleep syz-executor.5 95962 140003 35781 0 3 0x82 nanoslp syz-executor.3 47204 273554 35781 0 3 0x82 nanoslp syz-executor.1 3040 289538 0 0 3 0x14200 acct acct 36127 192142 35781 0 3 0x82 nanoslp syz-executor.6 8686 101210 35781 0 3 0x82 nanoslp syz-executor.5 8499 457491 35781 0 3 0x82 nanoslp syz-executor.0 34575 348449 35781 0 3 0x82 nanoslp syz-executor.7 7475 105550 35781 0 3 0x82 nanoslp syz-executor.4 85 401095 35781 0 3 0x82 nanoslp syz-executor.2 39488 235900 1 0 3 0x100083 ttyin getty 66861 202084 0 0 3 0x14280 nfsidl nfsio 50137 25422 0 0 3 0x14280 nfsidl nfsio 72586 352365 0 0 3 0x14280 nfsidl nfsio 81743 499788 0 0 3 0x14280 nfsidl nfsio 98842 212528 0 0 3 0x14280 nfsidl nfsio 43447 221116 0 0 3 0x14280 nfsidl nfsio 64366 241319 0 0 3 0x14280 nfsidl nfsio 72307 490951 0 0 3 0x14280 nfsidl nfsio 5293 361120 0 0 3 0x14280 nfsidl nfsio 1949 380322 0 0 3 0x14280 nfsidl nfsio 70553 359807 0 0 3 0x14280 nfsidl nfsio 93624 323885 0 0 3 0x14280 nfsidl nfsio 71762 313091 0 0 3 0x14280 nfsidl nfsio 1878 446738 0 0 3 0x14280 nfsidl nfsio 93609 307054 0 0 3 0x14280 nfsidl nfsio 38343 149370 0 0 3 0x14280 nfsidl nfsio 51310 397532 0 0 3 0x14280 nfsidl nfsio 93346 385584 0 0 3 0x14280 nfsidl nfsio 49160 417358 0 0 3 0x14280 nfsidl nfsio 63789 364711 0 0 3 0x14280 nfsidl nfsio 88582 360654 0 0 3 0x14200 bored sosplice 35781 28131 87827 0 3 0x82 thrsleep syz-fuzzer 35781 53399 87827 0 3 0x4000082 thrsleep syz-fuzzer 35781 290796 87827 0 3 0x4000082 thrsleep syz-fuzzer 35781 335418 87827 0 3 0x4000082 thrsleep syz-fuzzer 35781 145066 87827 0 3 0x4000082 kqread syz-fuzzer 35781 65632 87827 0 3 0x4000082 thrsleep syz-fuzzer 35781 39338 87827 0 3 0x4000082 thrsleep syz-fuzzer 35781 192711 87827 0 3 0x4000082 thrsleep syz-fuzzer 87827 318550 57208 0 3 0x10008a sigsusp ksh 57208 11738 76703 0 3 0x9a kqread sshd 76703 274445 1 0 3 0x88 kqread sshd 58146 374602 37187 73 3 0x1100090 kqread syslogd 37187 102098 1 0 3 0x100082 netio syslogd 88670 169761 1 0 3 0x100080 kqread resolvd 78086 235014 61326 77 3 0x100092 kqread dhcpleased 42170 186013 61326 77 3 0x100092 kqread dhcpleased 61326 98647 1 0 3 0x80 kqread dhcpleased 63697 133911 0 0 3 0x14200 bored smr 17033 301228 0 0 2 0x14200 zerothread 87573 134015 0 0 3 0x14200 aiodoned aiodoned 90470 15904 0 0 3 0x14200 syncer update 85784 56622 0 0 3 0x14200 cleaner cleaner 29140 151349 0 0 3 0x14200 reaper reaper 3214 74487 0 0 3 0x14200 pgdaemon pagedaemon 49830 269626 0 0 3 0x14200 bored viomb 59716 484848 0 0 3 0x40014200 acpi0 acpi0 38949 239526 0 0 3 0x14200 bored softnet 73976 119340 0 0 3 0x14200 bored systqmp 19268 368924 0 0 3 0x14200 bored systq 65585 262174 0 0 3 0x40014200 bored softclock 99682 23659 0 0 3 0x40014200 idle0 1 354138 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 10195 6480K 6945K 78643K 31493 0 pcb 13 20K 22K 78643K 1319 0 rtable 182 15K 26K 78643K 3575 0 ifaddr 85 21K 26K 78643K 1370 0 sysctl 3 1K 1K 78643K 5 0 counters 26 17K 17K 78643K 184 0 ioctlops 0 0K 4K 78643K 2395 0 iov 0 0K 32K 78643K 1433 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1467 92K 92K 78643K 6812 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 1K 1K 78643K 1100 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 16 57K 89K 78643K 8691 0 sigio 0 0K 0K 78643K 82 0 proc 66 55K 79K 78643K 1851 0 subproc 104 6K 6K 78643K 639 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 443 0 in_multi 70 4K 6K 78643K 896 0 ether_multi 1 0K 0K 78643K 139 0 mrt 1 0K 0K 78643K 52 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 187 837K 837K 78643K 187 0 exec 0 0K 2K 78643K 3048 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 459 673K 674K 78643K 105929 0 UVM aobj 131 8K 8K 78643K 134 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 617 0 NDP 11 0K 2K 78643K 277 0 temp 129 4713K 4775K 78643K 84509 0 kqueue 12 18K 28K 78643K 633 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 544 0 541 4 3 1 3 0 8 0 rtentry 112 696 0 622 4 0 4 4 0 8 0 unpcb 136 6335 0 6318 69 64 5 9 0 8 4 syncache 296 14 0 14 4 4 0 1 0 8 0 tcpqe 32 30 0 30 3 3 0 1 0 8 0 tcpcb 736 3576 0 3572 154 149 5 19 0 8 4 arp 88 115 0 98 1 0 1 1 0 8 0 ipq 40 19 0 19 6 6 0 1 0 8 0 ipqe 40 46 0 46 6 6 0 1 0 8 0 inpcb 304 9025 0 9015 138 132 6 16 0 8 4 rttmr 72 18 0 18 6 6 0 1 0 8 0 ip6q 72 25 0 25 3 3 0 1 0 8 0 ip6af 40 53 0 53 3 3 0 1 0 8 0 nd6 48 162 0 147 1 0 1 1 0 8 0 pkpcb 40 15 0 15 3 3 0 1 0 8 0 kcovpl 48 49 0 41 1 0 1 1 0 8 0 ppxss 1152 55 0 55 9 9 0 1 0 8 0 pfstscr 40 178 0 163 1 0 1 1 0 8 0 pfosfp 40 6 0 5 1 0 1 1 0 8 0 pfosfpen 112 6 0 5 1 0 1 1 0 8 0 pfrktable 1344 477 0 475 6 5 1 2 0 8 0 pftag 88 11 0 6 1 0 1 1 0 8 0 pfstitem 24 24 0 8 1 0 1 1 0 8 0 pfstkey 112 194 0 190 1 0 1 1 0 8 0 pfstate 320 99 0 91 1 0 1 1 0 8 0 pfrule 1360 635 0 614 9 6 3 5 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 3158 0 2852 49 26 23 29 0 8 0 art_table 32 3159 0 2852 5 1 4 4 0 8 0 art_node 16 692 0 627 1 0 1 1 0 8 0 sysvmsgpl 40 2 0 0 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 1098 0 1088 1 0 1 1 0 8 0 shmpl 112 131 0 3 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 13383 0 11901 93 0 93 93 0 8 0 ffsino 240 13383 0 11901 88 0 88 88 0 8 0 nchpl 144 25165 0 23540 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 103099 0 103097 10 9 1 2 0 8 0 vcpupl 1984 40 0 1 5 0 5 5 0 8 0 vmpool 528 55 0 16 3 0 3 3 0 8 0 pfiaddrpl 120 156 0 153 2 1 1 1 0 8 0 scsiplug 72 3 0 3 1 1 0 1 0 8 0 scxspl 216 83853 0 83853 14 13 1 8 0 8 1 plimitpl 152 890 0 874 1 0 1 1 0 8 0 sigapl 424 8913 0 8849 11 3 8 8 0 8 0 futexpl 64 91575 0 91572 7 6 1 1 0 8 0 knotepl 120 96854 0 96773 40 37 3 11 0 8 0 kqueuepl 184 2147 0 2139 37 36 1 4 0 8 0 pipepl 304 2055 0 2027 46 43 3 12 0 8 0 fdescpl 432 8878 0 8851 4 0 4 4 0 8 0 filepl 120 73861 0 73617 103 91 12 16 0 8 4 lockfpl 104 2482 0 2480 2 1 1 2 0 8 0 lockfspl 48 759 0 757 1 0 1 1 0 8 0 sessionpl 144 67 0 51 1 0 1 1 0 8 0 pgrppl 48 206 0 190 1 0 1 1 0 8 0 ucredpl 96 9791 0 9779 1 0 1 1 0 8 0 zombiepl 144 8851 0 8849 3 2 1 1 0 8 0 processpl 1000 8913 0 8849 11 2 9 9 0 8 0 procpl 672 22239 0 22162 26 18 8 9 0 8 1 sosppl 168 48 0 48 9 9 0 1 0 8 0 sockpl 448 15928 0 15900 316 305 11 30 0 8 7 mcl64k 65536 421 0 421 17 16 1 1 0 8 1 mcl16k 16384 55 0 55 14 14 0 1 0 8 0 mcl12k 12288 296 0 296 16 15 1 1 0 8 1 mcl9k 9216 206 0 206 18 17 1 1 0 8 1 mcl8k 8192 758 0 758 15 14 1 1 0 8 1 mcl4k 4096 1111 0 1111 12 11 1 1 0 8 1 mcl2k2 2112 111 0 111 22 22 0 1 0 8 0 mcl2k 2048 94708 0 94591 35 19 16 16 0 8 0 mtagpl 96 1687 0 1470 17 11 6 12 0 8 0 mbufpl 256 212299 0 211912 262 234 28 238 0 8 0 bufpl 288 20112 0 13704 459 0 459 459 0 8 0 anonpl 24 2460836 0 2442652 198 63 135 153 0 188 0 amapchunkpl 152 255061 0 254280 94 61 33 43 0 158 0 amappl16 200 24060 0 23273 130 86 44 54 0 8 0 amappl15 192 1443 0 1436 1 0 1 1 0 8 0 amappl14 184 546 0 543 1 0 1 1 0 8 0 amappl13 176 2194 0 2187 1 0 1 1 0 8 0 amappl12 168 1075 0 1070 1 0 1 1 0 8 0 amappl11 160 1273 0 1261 1 0 1 1 0 8 0 amappl10 152 754 0 748 1 0 1 1 0 8 0 amappl9 144 721 0 717 1 0 1 1 0 8 0 amappl8 136 2716 0 2615 4 0 4 4 0 8 0 amappl7 128 1530 0 1516 1 0 1 1 0 8 0 amappl6 120 582 0 551 3 2 1 2 0 8 0 amappl5 112 8127 0 8114 1 0 1 1 0 8 0 amappl4 104 3768 0 3736 2 0 2 2 0 8 0 amappl3 96 2391 0 2375 1 0 1 1 0 8 0 amappl2 88 3281 0 3218 3 1 2 3 0 8 0 amappl1 80 159068 0 158512 20 7 13 18 0 8 0 amappl 88 104560 0 104285 8 1 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 133 0 3 3 0 3 3 0 8 0 uaddrrnd 24 8933 0 8867 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 8933 0 8867 1 0 1 1 0 8 0 vmmpekpl 168 66770 0 66717 3 0 3 3 0 8 0 vmmpepl 168 819146 0 816362 327 197 130 152 0 357 0 vmsppl 272 8932 0 8867 7 2 5 5 0 8 0 rwobjpl 24 195020 0 187146 51 2 49 49 0 8 0 pdppl 4096 17872 0 17773 576 473 103 103 0 8 4 pvpl 32 4426509 0 4403724 490 280 210 259 0 265 0 pmappl 216 8932 0 8867 4 0 4 4 0 8 0 extentpl 40 58 0 38 1 0 1 1 0 8 0 phpool 112 2123 0 1280 30 5 25 30 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,ffff800000bbe000,ffff800029fd2e98) at uvm_map_fill_vmmap+0xf6 vm_map_upgrade_ln sys/uvm/uvm_map.c:5540 [inline] uvm_map_fill_vmmap(ffffffff82a80470,ffff800000bbe000,ffff800029fd2e98) at uvm_map_fill_vmmap+0xf6 sys/uvm/uvm_map.c:5593 sysctl_proc_vmmap(ffff800029fd3278,1,200006c0,ffff800029fd32a8,ffff8000215dfa40) at sysctl_proc_vmmap+0x229 sys/kern/kern_sysctl.c:2111 kern_sysctl(ffff800029fd3274,2,200006c0,ffff800029fd32a8,0,fffffffffffffe97,9be574dd87ce25f4) at kern_sysctl+0xfd sys/kern/kern_sysctl.c:449 sys_sysctl(ffff8000215dfa40,ffff800029fd3318,ffff800029fd3370) at sys_sysctl+0x209 sys/kern/kern_sysctl.c:249 syscall(ffff800029fd33e0) at syscall+0x44e sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xd7fefa97550, 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,ffff800000bbe000,ffff800029fd2e98) at uvm_map_fill_vmmap+0xf6 vm_map_upgrade_ln sys/uvm/uvm_map.c:5540 [inline] uvm_map_fill_vmmap(ffffffff82a80470,ffff800000bbe000,ffff800029fd2e98) at uvm_map_fill_vmmap+0xf6 sys/uvm/uvm_map.c:5593 sysctl_proc_vmmap(ffff800029fd3278,1,200006c0,ffff800029fd32a8,ffff8000215dfa40) at sysctl_proc_vmmap+0x229 sys/kern/kern_sysctl.c:2111 kern_sysctl(ffff800029fd3274,2,200006c0,ffff800029fd32a8,0,fffffffffffffe97,9be574dd87ce25f4) at kern_sysctl+0xfd sys/kern/kern_sysctl.c:449 sys_sysctl(ffff8000215dfa40,ffff800029fd3318,ffff800029fd3370) at sys_sysctl+0x209 sys/kern/kern_sysctl.c:249 syscall(ffff800029fd33e0) at syscall+0x44e sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xd7fefa97550, count: -9