panic: kmmaplk: lock not shared Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *188698 55845 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,ffff800000e3a000,ffff800027f47078) at uvm_map_fill_vmmap+0xf6 vm_map_upgrade_ln sys/uvm/uvm_map.c:5540 [inline] uvm_map_fill_vmmap(ffffffff82a80470,ffff800000e3a000,ffff800027f47078) at uvm_map_fill_vmmap+0xf6 sys/uvm/uvm_map.c:5593 sysctl_proc_vmmap(ffff800027f47458,1,200006c0,ffff800027f47488,ffff8000215fd260) at sysctl_proc_vmmap+0x229 sys/kern/kern_sysctl.c:2111 kern_sysctl(ffff800027f47454,2,200006c0,ffff800027f47488,0,fffffffffffffe97,1ef5411e2205f161) at kern_sysctl+0xfd sys/kern/kern_sysctl.c:449 sys_sysctl(ffff8000215fd260,ffff800027f474f8,ffff800027f47550) at sys_sysctl+0x209 sys/kern/kern_sysctl.c:249 syscall(ffff800027f475c0) at syscall+0x44e sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x4f332471fb0, 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,ffff800000e3a000,ffff800027f47078) at uvm_map_fill_vmmap+0xf6 vm_map_upgrade_ln sys/uvm/uvm_map.c:5540 [inline] uvm_map_fill_vmmap(ffffffff82a80470,ffff800000e3a000,ffff800027f47078) at uvm_map_fill_vmmap+0xf6 sys/uvm/uvm_map.c:5593 sysctl_proc_vmmap(ffff800027f47458,1,200006c0,ffff800027f47488,ffff8000215fd260) at sysctl_proc_vmmap+0x229 sys/kern/kern_sysctl.c:2111 kern_sysctl(ffff800027f47454,2,200006c0,ffff800027f47488,0,fffffffffffffe97,1ef5411e2205f161) at kern_sysctl+0xfd sys/kern/kern_sysctl.c:449 sys_sysctl(ffff8000215fd260,ffff800027f474f8,ffff800027f47550) at sys_sysctl+0x209 sys/kern/kern_sysctl.c:249 syscall(ffff800027f475c0) at syscall+0x44e sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x4f332471fb0, count: -9 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff800027f46ef0 rbx 0xffffffff82a80478 kernel_map_store+0x8 rdx 0xffff800000d6a6c0 rcx 0 rax 0xffff8000215fd260 r8 0 r9 0x8080808080808080 r10 0x7844612293250c81 r11 0x673079c76458e1d1 r12 0 r13 0xffffffff82a80470 kernel_map_store r14 0 r15 0x1 rip 0xffffffff8120dfc8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800027f46ee0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=188698 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=84, nice=20 forw=0xffffffffffffffff, list=0xffff8000215fd7a0,0xffff8000215fca90 process=0xffff80002e78f3a0 user=0xffff800027f42000, vmspace=0xfffffd8072bf4cd0 estcpu=34, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 7385 382980 49744 0 2 0x4081000 syz-executor.5 7385 30059 49744 0 3 0x4003000 suspend syz-executor.5 42841 337965 32263 0 2 0 syz-executor.4 42841 434448 32263 0 3 0x4000080 fsleep syz-executor.4 87334 35801 869 0 2 0 syz-executor.3 87334 521091 869 0 3 0x4000080 fsleep syz-executor.3 55845 299865 25029 0 2 0 syz-executor.0 *55845 188698 25029 0 7 0x4000000 syz-executor.0 73148 122289 85938 0 2 0 syz-executor.2 73148 470189 85938 0 3 0x4000080 ttyout syz-executor.2 73148 1298 85938 0 3 0x4000080 ttyin syz-executor.2 51994 168302 59621 0 2 0 syz-executor.1 51994 95150 59621 0 3 0x4000080 fsleep syz-executor.1 90264 354515 77601 0 2 0x2 syz-executor.6 89342 371667 77601 0 2 0x2 syz-executor.7 85938 520188 77601 0 2 0x482 syz-executor.2 85936 349233 0 0 3 0x14280 nfsidl nfsio 13425 371653 0 0 3 0x14280 nfsidl nfsio 65638 507516 0 0 3 0x14280 nfsidl nfsio 59514 345310 0 0 3 0x14280 nfsidl nfsio 85697 477604 0 0 3 0x14280 nfsidl nfsio 31975 313475 0 0 3 0x14280 nfsidl nfsio 2672 322950 0 0 3 0x14280 nfsidl nfsio 3595 297610 0 0 3 0x14280 nfsidl nfsio 64243 496554 0 0 3 0x14280 nfsidl nfsio 686 182426 0 0 3 0x14280 nfsidl nfsio 58223 214533 0 0 3 0x14280 nfsidl nfsio 49363 320398 0 0 3 0x14280 nfsidl nfsio 5466 463192 0 0 3 0x14280 nfsidl nfsio 60566 399496 0 0 3 0x14280 nfsidl nfsio 9694 275984 0 0 3 0x14280 nfsidl nfsio 47512 413880 0 0 3 0x14280 nfsidl nfsio 23675 26759 0 0 3 0x14280 nfsidl nfsio 29129 419084 0 0 3 0x14280 nfsidl nfsio 35373 205224 0 0 3 0x14280 nfsidl nfsio 71461 509617 0 0 3 0x14280 nfsidl nfsio 96072 170387 1 0 3 0x100083 ttyopn getty 869 246326 77601 0 2 0x482 syz-executor.3 49744 192736 77601 0 2 0x482 syz-executor.5 59621 505120 77601 0 2 0x482 syz-executor.1 25029 233061 77601 0 2 0x482 syz-executor.0 32263 501322 77601 0 2 0x482 syz-executor.4 13506 145793 0 0 3 0x14200 acct acct 45284 41987 0 0 3 0x14200 bored sosplice 77601 59911 91647 0 3 0x82 thrsleep syz-fuzzer 77601 106669 91647 0 2 0x4000482 syz-fuzzer 77601 151115 91647 0 3 0x4000082 thrsleep syz-fuzzer 77601 406309 91647 0 3 0x4000082 thrsleep syz-fuzzer 77601 107497 91647 0 3 0x4000082 thrsleep syz-fuzzer 77601 503890 91647 0 3 0x4000082 thrsleep syz-fuzzer 77601 508873 91647 0 3 0x4000082 kqread syz-fuzzer 77601 101876 91647 0 3 0x4000082 thrsleep syz-fuzzer 91647 229589 95074 0 3 0x10008a sigsusp ksh 95074 164154 95542 0 3 0x9a kqread sshd 95542 289552 1 0 3 0x88 kqread sshd 7039 442370 45118 73 3 0x1100090 kqread syslogd 45118 170842 1 0 3 0x100082 netio syslogd 82295 275384 1 0 3 0x100080 kqread resolvd 35429 329003 74591 77 3 0x100092 kqread dhcpleased 22234 410390 74591 77 3 0x100092 kqread dhcpleased 74591 436214 1 0 3 0x80 kqread dhcpleased 29401 298876 0 0 3 0x14200 bored smr 32879 449141 0 0 2 0x14200 zerothread 48559 443252 0 0 3 0x14200 aiodoned aiodoned 72753 353040 0 0 3 0x14200 syncer update 2824 302934 0 0 3 0x14200 cleaner cleaner 78890 11155 0 0 3 0x14200 reaper reaper 4728 282420 0 0 3 0x14200 pgdaemon pagedaemon 88989 189972 0 0 3 0x14200 bored viomb 70603 301343 0 0 3 0x40014200 acpi0 acpi0 24706 105810 0 0 3 0x14200 bored softnet 30197 479996 0 0 3 0x14200 bored systqmp 55204 502226 0 0 3 0x14200 bored systq 31702 54729 0 0 2 0x40014200 softclock 79295 256360 0 0 3 0x40014200 idle0 1 21957 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 10221 6506K 8057K 78643K 138679 0 pcb 14 20K 25K 78643K 3020 0 rtable 229 17K 19K 78643K 5645 0 ifaddr 115 31K 35K 78643K 3358 0 sysctl 3 1K 1K 78643K 7 0 counters 28 17K 17K 78643K 357 0 ioctlops 0 0K 4K 78643K 11351 0 iov 0 0K 28K 78643K 3162 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1612 101K 101K 78643K 34266 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 184 0 VM map 2 0K 0K 78643K 2 0 sem 23 5K 10K 78643K 788 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 16 57K 85K 78643K 24038 0 sigio 0 0K 0K 78643K 154 0 proc 66 55K 87K 78643K 4025 0 subproc 104 6K 7K 78643K 1419 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 1434 0 in_multi 73 4K 6K 78643K 2058 0 ether_multi 1 0K 0K 78643K 335 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 283 1261K 1261K 78643K 283 0 exec 0 0K 2K 78643K 6086 0 pfkey data 0 0K 1K 78643K 9 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 694 1486K 1660K 78643K 290736 0 UVM aobj 131 6K 6K 78643K 134 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 1160 0 NDP 14 0K 2K 78643K 594 0 temp 188 4803K 4865K 78643K 213876 0 kqueue 12 18K 28K 78643K 1557 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 1731 0 1728 23 22 1 3 0 8 0 rtentry 112 1468 0 1390 4 1 3 4 0 8 0 unpcb 136 14526 0 14511 149 144 5 9 0 8 4 syncache 296 27 0 27 10 10 0 1 0 8 0 tcpqe 32 69 0 69 5 5 0 1 0 8 0 tcpcb 736 8662 0 8649 315 307 8 15 0 8 5 arp 88 239 0 224 1 0 1 1 0 8 0 ipq 40 139 0 139 17 17 0 1 0 8 0 ipqe 40 432 0 432 17 17 0 1 0 8 0 inpcb 304 22655 0 22644 321 315 6 16 0 8 5 rttmr 72 45 0 45 3 3 0 1 0 8 0 ip6q 72 9 0 9 3 3 0 1 0 8 0 ip6af 40 21 0 21 3 3 0 1 0 8 0 nd6 48 382 0 365 1 0 1 1 0 8 0 pkpcb 40 99 0 99 15 14 1 1 0 8 1 kcovpl 48 105 0 97 1 0 1 1 0 8 0 ppxss 1152 100 0 100 21 20 1 1 0 8 1 pfstscr 40 77 0 77 3 3 0 1 0 8 0 pfosfp 40 16 0 11 2 1 1 1 0 8 0 pfosfpen 112 16 0 5 2 1 1 1 0 8 0 pfrktable 1344 246 0 226 6 3 3 3 0 8 1 pftag 88 38 0 17 1 0 1 1 0 8 0 pfqueue 264 1 0 1 1 1 0 1 0 8 0 pfstitem 24 53 0 53 1 1 0 1 0 8 0 pfstkey 112 218 0 218 3 3 0 1 0 8 0 pfstate 320 109 23 109 3 3 0 1 0 8 0 pfrule 1360 4172 0 4008 16 2 14 14 0 8 0 art_heap8 4096 6 0 5 5 4 1 3 0 8 0 art_heap4 256 6416 0 6077 78 56 22 29 0 8 0 art_table 32 6422 0 6082 5 1 4 4 0 8 0 art_node 16 1467 0 1401 1 0 1 1 0 8 0 sysvmsgpl 40 34 0 2 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 782 0 761 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 34248 0 32688 98 0 98 98 0 8 0 ffsino 240 34248 0 32688 93 0 93 93 0 8 0 nchpl 144 64775 0 63153 62 0 62 62 0 8 0 uvmvnodes 80 7654 0 0 157 0 157 157 0 8 0 vnodes 224 7654 0 0 451 0 451 451 0 8 0 namei 1024 274647 0 274647 16 14 2 2 0 8 2 vcpupl 1984 119 0 0 15 0 15 15 0 8 0 vmpool 528 298 0 179 10 2 8 8 0 8 0 pfiaddrpl 120 86 0 42 4 2 2 2 0 8 0 scsiplug 72 12 0 12 4 4 0 1 0 8 0 scxspl 216 202140 0 202140 51 50 1 8 0 8 1 plimitpl 152 2844 0 2829 1 0 1 1 0 8 0 sigapl 424 24201 0 24139 11 3 8 8 0 8 0 futexpl 64 267246 0 267243 14 13 1 1 0 8 0 knotepl 120 259142 0 259062 80 77 3 11 0 8 0 kqueuepl 184 9133 0 9125 125 121 4 7 0 8 3 pipepl 304 4732 0 4704 115 107 8 9 0 8 5 fdescpl 432 24111 0 24084 6 2 4 4 0 8 0 filepl 120 188467 0 188222 252 239 13 17 0 8 4 lockfpl 104 33332 0 33329 81 79 2 6 0 8 1 lockfspl 48 15219 0 15216 11 10 1 2 0 8 0 sessionpl 144 127 0 111 1 0 1 1 0 8 0 pgrppl 48 176 0 160 1 0 1 1 0 8 0 ucredpl 96 24225 0 24211 1 0 1 1 0 8 0 zombiepl 144 24140 0 24139 6 5 1 1 0 8 0 processpl 1000 24201 0 24139 15 6 9 9 0 8 0 procpl 672 60907 0 60830 54 46 8 9 0 8 0 sosppl 168 170 0 170 30 30 0 1 0 8 0 sockpl 448 39033 0 39004 740 729 11 30 0 8 7 mcl64k 65536 914 0 914 62 61 1 1 0 8 1 mcl16k 16384 205 0 205 55 55 0 1 0 8 0 mcl12k 12288 845 0 845 55 54 1 1 0 8 1 mcl9k 9216 498 0 498 55 55 0 1 0 8 0 mcl8k 8192 2401 0 2401 38 37 1 1 0 8 1 mcl4k 4096 3577 0 3577 30 29 1 1 0 8 1 mcl2k2 2112 201 0 201 61 60 1 1 0 8 1 mcl2k 2048 130194 0 130107 59 45 14 20 0 8 0 mtagpl 96 31784 0 29832 119 71 48 48 0 8 0 mbufpl 256 396844 0 394664 568 423 145 311 0 8 7 bufpl 288 44439 0 37724 549 14 535 549 0 8 0 anonpl 24 6772699 0 6749084 473 307 166 203 0 188 5 amapchunkpl 152 798449 0 797619 893 846 47 662 0 158 13 amappl16 200 68189 0 67143 321 263 58 80 0 8 0 amappl15 192 3290 0 3284 1 0 1 1 0 8 0 amappl14 184 1845 0 1834 1 0 1 1 0 8 0 amappl13 176 1511 0 1510 1 0 1 1 0 8 0 amappl12 168 4068 0 4060 1 0 1 1 0 8 0 amappl11 160 3645 0 3631 1 0 1 1 0 8 0 amappl10 152 3331 0 3325 1 0 1 1 0 8 0 amappl9 144 4639 0 4635 1 0 1 1 0 8 0 amappl8 136 6189 0 6003 7 0 7 7 0 8 0 amappl7 128 3842 0 3830 1 0 1 1 0 8 0 amappl6 120 4705 0 4671 3 1 2 2 0 8 0 amappl5 112 22398 0 22381 1 0 1 1 0 8 0 amappl4 104 8826 0 8788 2 0 2 2 0 8 0 amappl3 96 6614 0 6595 1 0 1 1 0 8 0 amappl2 88 6077 0 6008 3 1 2 3 0 8 0 amappl1 80 421927 0 421363 19 6 13 18 0 8 0 amappl 88 288051 0 287697 13 4 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 133 0 3 3 0 3 3 0 8 0 uaddrrnd 24 24409 0 24263 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 24409 0 24263 1 0 1 1 0 8 0 vmmpekpl 168 166275 0 166199 4 0 4 4 0 8 0 vmmpepl 168 2211938 0 2208631 610 452 158 204 0 357 0 vmsppl 272 24408 0 24263 12 2 10 10 0 8 0 rwobjpl 24 514053 0 504028 74 13 61 64 0 8 0 pdppl 4096 48824 0 48645 1379 1196 183 183 0 8 4 pvpl 32 11436767 0 11411865 805 562 243 326 0 265 22 pmappl 216 24408 0 24263 9 0 9 9 0 8 0 extentpl 40 58 0 38 1 0 1 1 0 8 0 phpool 112 4119 0 2976 38 5 33 33 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,ffff800000e3a000,ffff800027f47078) at uvm_map_fill_vmmap+0xf6 vm_map_upgrade_ln sys/uvm/uvm_map.c:5540 [inline] uvm_map_fill_vmmap(ffffffff82a80470,ffff800000e3a000,ffff800027f47078) at uvm_map_fill_vmmap+0xf6 sys/uvm/uvm_map.c:5593 sysctl_proc_vmmap(ffff800027f47458,1,200006c0,ffff800027f47488,ffff8000215fd260) at sysctl_proc_vmmap+0x229 sys/kern/kern_sysctl.c:2111 kern_sysctl(ffff800027f47454,2,200006c0,ffff800027f47488,0,fffffffffffffe97,1ef5411e2205f161) at kern_sysctl+0xfd sys/kern/kern_sysctl.c:449 sys_sysctl(ffff8000215fd260,ffff800027f474f8,ffff800027f47550) at sys_sysctl+0x209 sys/kern/kern_sysctl.c:249 syscall(ffff800027f475c0) at syscall+0x44e sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x4f332471fb0, 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,ffff800000e3a000,ffff800027f47078) at uvm_map_fill_vmmap+0xf6 vm_map_upgrade_ln sys/uvm/uvm_map.c:5540 [inline] uvm_map_fill_vmmap(ffffffff82a80470,ffff800000e3a000,ffff800027f47078) at uvm_map_fill_vmmap+0xf6 sys/uvm/uvm_map.c:5593 sysctl_proc_vmmap(ffff800027f47458,1,200006c0,ffff800027f47488,ffff8000215fd260) at sysctl_proc_vmmap+0x229 sys/kern/kern_sysctl.c:2111 kern_sysctl(ffff800027f47454,2,200006c0,ffff800027f47488,0,fffffffffffffe97,1ef5411e2205f161) at kern_sysctl+0xfd sys/kern/kern_sysctl.c:449 sys_sysctl(ffff8000215fd260,ffff800027f474f8,ffff800027f47550) at sys_sysctl+0x209 sys/kern/kern_sysctl.c:249 syscall(ffff800027f475c0) at syscall+0x44e sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x4f332471fb0, count: -9