panic: solock: lock not held Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *259490 47405 0 0 0x4000000 0 syz-executor.3 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8254949d) at panic+0x161 sys/kern/subr_prf.c:198 rw_assert_wrlock(fffffd8071d94a20) at rw_assert_wrlock+0xb7 sys/kern/kern_rwlock.c:388 sbunlock(fffffd8071d94a18,fffffd8071d94b40) at sbunlock+0xc9 soassertlocked sys/kern/uipc_socket2.c:414 [inline] sbunlock(fffffd8071d94a18,fffffd8071d94b40) at sbunlock+0xc9 sys/kern/uipc_socket2.c:479 sosplice(fffffd8071d942f8,5,0,0) at sosplice+0x547 sosetopt(fffffd8071d942f8,ffff,1023,fffffd8077b93d00) at sosetopt+0x7ec sys_setsockopt(ffff8000ffff82a8,ffff80002660f138,ffff80002660f190) at sys_setsockopt+0x1f5 sys/kern/uipc_syscalls.c:1233 syscall(ffff80002660f200) at syscall+0x447 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xee4c427cbd0, 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: solock: lock not held ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8254949d) at panic+0x161 sys/kern/subr_prf.c:198 rw_assert_wrlock(fffffd8071d94a20) at rw_assert_wrlock+0xb7 sys/kern/kern_rwlock.c:388 sbunlock(fffffd8071d94a18,fffffd8071d94b40) at sbunlock+0xc9 soassertlocked sys/kern/uipc_socket2.c:414 [inline] sbunlock(fffffd8071d94a18,fffffd8071d94b40) at sbunlock+0xc9 sys/kern/uipc_socket2.c:479 sosplice(fffffd8071d942f8,5,0,0) at sosplice+0x547 sosetopt(fffffd8071d942f8,ffff,1023,fffffd8077b93d00) at sosetopt+0x7ec sys_setsockopt(ffff8000ffff82a8,ffff80002660f138,ffff80002660f190) at sys_setsockopt+0x1f5 sys/kern/uipc_syscalls.c:1233 syscall(ffff80002660f200) at syscall+0x447 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xee4c427cbd0, count: -9 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80002660eeb0 rbx 0x39 rdx 0xffff800000bcaf80 rcx 0 rax 0xffff8000ffff82a8 r8 0x101010101010101 r9 0x8080808080808080 r10 0x1894cb8bc64c58ae r11 0x36e036ddae732633 r12 0 r13 0xfffffd8071d943a8 r14 0 r15 0x1 rip 0xffffffff8101e5c8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80002660eea0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.3) pid=259490 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=82, nice=20 forw=0xffffffffffffffff, list=0xffff80002178e2a8,0xffff80002170a550 process=0xffff8000217ca030 user=0xffff80002660a000, vmspace=0xfffffd8069255ee8 estcpu=32, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 43064 116206 41025 0 2 0 syz-executor.6 43064 123816 41025 0 3 0x4000080 netcon syz-executor.6 43064 435445 41025 0 3 0x4000080 fsleep syz-executor.6 43064 214594 41025 0 3 0x4000080 fsleep syz-executor.6 47943 366402 62702 0 2 0 syz-executor.5 47943 320522 62702 0 3 0x4000080 fsleep syz-executor.5 99948 285820 93321 0 2 0 syz-executor.4 99948 486350 93321 0 3 0x4000080 fsleep syz-executor.4 23219 247072 74920 0 2 0 syz-executor.0 23219 460488 74920 0 3 0x4000080 fsleep syz-executor.0 91838 289881 68410 0 2 0 syz-executor.2 91838 142536 68410 0 3 0x4000080 fsleep syz-executor.2 91838 452438 68410 0 3 0x4000080 fsleep syz-executor.2 77012 365578 46800 0 2 0 syz-executor.7 77012 81019 46800 0 3 0x4000080 fsleep syz-executor.7 77012 118958 46800 0 3 0x4000080 fsleep syz-executor.7 47405 155461 42803 0 2 0 syz-executor.3 *47405 259490 42803 0 7 0x4000000 syz-executor.3 80682 259092 58051 0 2 0 syz-executor.1 80682 195805 58051 0 3 0x4000080 fsleep syz-executor.1 68410 160797 39096 0 3 0x82 nanoslp syz-executor.2 62702 339076 39096 0 3 0x82 nanoslp syz-executor.5 58051 393536 39096 0 3 0x82 nanoslp syz-executor.1 9283 442696 1 0 3 0x100083 ttyin getty 42803 140422 39096 0 3 0x82 nanoslp syz-executor.3 46800 510856 39096 0 3 0x82 nanoslp syz-executor.7 74920 185418 39096 0 3 0x82 nanoslp syz-executor.0 41025 517528 39096 0 3 0x82 nanoslp syz-executor.6 2727 519388 0 0 3 0x14200 bored sosplice 93321 502649 39096 0 3 0x82 nanoslp syz-executor.4 39096 274282 13336 0 3 0x82 wait syz-fuzzer 39096 295835 13336 0 3 0x4000082 thrsleep syz-fuzzer 39096 297265 13336 0 3 0x4000082 wait syz-fuzzer 39096 157599 13336 0 3 0x4000082 kqread syz-fuzzer 39096 149956 13336 0 3 0x4000082 thrsleep syz-fuzzer 39096 136484 13336 0 3 0x4000082 thrsleep syz-fuzzer 39096 374941 13336 0 3 0x4000082 wait syz-fuzzer 39096 228506 13336 0 3 0x4000082 thrsleep syz-fuzzer 39096 108385 13336 0 3 0x4000082 thrsleep syz-fuzzer 39096 409890 13336 0 3 0x4000082 wait syz-fuzzer 39096 421635 13336 0 3 0x4000082 wait syz-fuzzer 39096 265103 13336 0 3 0x4000082 wait syz-fuzzer 39096 365195 13336 0 3 0x4000082 wait syz-fuzzer 39096 358404 13336 0 3 0x4000082 wait syz-fuzzer 13336 125328 98625 0 3 0x10008a sigsusp ksh 98625 387974 71853 0 3 0x9a kqread sshd 71853 252166 1 0 3 0x88 kqread sshd 28544 204149 17139 73 3 0x1100090 kqread syslogd 17139 197771 1 0 3 0x100082 netio syslogd 54582 152383 1 0 3 0x100080 kqread resolvd 32352 126543 85412 77 3 0x100092 kqread dhcpleased 78194 73666 85412 77 3 0x100092 kqread dhcpleased 85412 151323 1 0 3 0x80 kqread dhcpleased 53729 74929 0 0 3 0x14200 bored smr 58196 73164 0 0 2 0x14200 zerothread 52823 136630 0 0 3 0x14200 aiodoned aiodoned 35909 43593 0 0 3 0x14200 syncer update 71621 411249 0 0 3 0x14200 cleaner cleaner 82451 308680 0 0 3 0x14200 reaper reaper 1411 120036 0 0 3 0x14200 pgdaemon pagedaemon 98955 463193 0 0 3 0x14200 bored viomb 55743 300228 0 0 3 0x40014200 acpi0 acpi0 13454 457565 0 0 3 0x14200 bored softnet 77291 136191 0 0 3 0x14200 bored softnet 11634 501380 0 0 3 0x14200 bored softnet 64049 29023 0 0 3 0x14200 bored softnet 21258 170281 0 0 3 0x14200 bored systqmp 83047 117696 0 0 3 0x14200 bored systq 90542 469050 0 0 3 0x40014200 bored softclock 26292 467023 0 0 3 0x40014200 idle0 1 176353 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 10201 6418K 7637K 78643K 22459 0 pcb 13 16K 18K 78643K 1269 0 rtable 207 23K 23K 78643K 1942 0 ifaddr 84 21K 22K 78643K 1212 0 sysctl 2 0K 0K 78643K 2 0 counters 25 17K 17K 78643K 191 0 ioctlops 0 0K 4K 78643K 2701 0 iov 0 0K 28K 78643K 1801 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1362 85K 86K 78643K 4695 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 68 0 VM map 2 0K 0K 78643K 2 0 sem 11 5K 7K 78643K 17 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 18 65K 77K 78643K 8578 0 sigio 0 0K 0K 78643K 6608 0 proc 64 59K 75K 78643K 1513 0 subproc 104 6K 6K 78643K 403 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 734 0 in_multi 66 4K 6K 78643K 506 0 ether_multi 1 0K 0K 78643K 45 0 mrt 1 0K 0K 78643K 48 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 193 864K 864K 78643K 193 0 exec 0 0K 2K 78643K 2920 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 8 62K 64K 78643K 10 0 UVM amap 428 756K 1355K 78643K 48258 0 UVM aobj 131 8K 8K 78643K 131 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 604 0 NDP 11 0K 2K 78643K 246 0 temp 124 4722K 5746K 78643K 109171 0 kqueue 12 18K 26K 78643K 564 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 597 0 594 9 8 1 3 0 8 0 rtentry 112 561 0 488 4 1 3 4 0 8 0 unpcb 144 26492 0 26474 105 99 6 13 0 8 5 syncache 296 120 0 120 11 10 1 1 0 8 1 tcpqe 32 111 0 111 10 9 1 1 0 8 1 tcpcb 768 6465 0 6440 139 131 8 22 0 8 0 arp 88 81 0 67 1 0 1 1 0 8 0 ipq 40 2 0 2 2 2 0 1 0 8 0 ipqe 40 8 0 8 2 2 0 1 0 8 0 inpcb 336 13812 0 13779 111 103 8 15 0 8 0 nd6 48 110 0 95 1 0 1 1 0 8 0 pkpcb 40 90 0 90 4 4 0 1 0 8 0 kcovpl 48 31 0 23 1 0 1 1 0 8 0 ppxss 1160 112 0 112 12 12 0 1 0 8 0 pfstscr 40 11 0 8 2 1 1 1 0 8 0 pfrke_plain 168 7 0 7 2 2 0 1 0 8 0 pfrktable 1344 127 0 110 3 1 2 2 0 8 0 pfanchor 1280 61 0 25 3 0 3 3 0 8 0 pftag 88 4 0 4 1 1 0 1 0 8 0 pfstitem 24 6 0 2 1 0 1 1 0 8 0 pfstkey 120 151 0 148 2 1 1 1 0 8 0 pfstate 336 77 0 74 2 1 1 1 0 8 0 pfrule 1360 390 0 348 6 2 4 4 0 8 0 rttmr 136 10 0 10 3 3 0 1 0 8 0 art_heap8 4096 4 0 3 4 3 1 2 0 8 0 art_heap4 256 2595 0 2288 49 26 23 30 0 8 0 art_table 32 2599 0 2291 4 1 3 4 0 8 0 art_node 16 560 0 496 1 0 1 1 0 8 0 sysvmsgpl 40 24 0 12 2 1 1 1 0 8 0 semapl 112 9 0 0 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 12472 0 11020 92 1 91 91 0 8 0 ffsino 240 12472 0 11020 86 0 86 86 0 8 0 nchpl 144 23773 0 22130 63 0 63 63 0 8 0 rtmask 32 10 0 10 2 2 0 1 0 8 0 uvmvnodes 80 5937 0 0 122 0 122 122 0 8 0 vnodes 216 5937 0 0 330 0 330 330 0 8 0 namei 1024 87840 0 87840 4 3 1 2 0 8 1 vcpupl 2048 179 0 0 23 0 23 23 0 8 0 vmpool 536 202 0 23 12 0 12 12 0 8 0 pfiaddrpl 120 61 0 30 1 0 1 1 0 8 0 kstatmem 264 348 0 326 2 0 2 2 0 8 0 scxspl 216 67664 0 67664 20 19 1 8 0 8 1 plimitpl 152 1279 0 1265 1 0 1 1 0 8 0 sigapl 424 8845 0 8799 8 1 7 8 0 8 0 futexpl 64 96782 0 96772 1 0 1 1 0 8 0 knotepl 120 95461 0 95381 33 30 3 10 0 8 0 kqueuepl 184 1412 0 1403 20 18 2 4 0 8 1 pipepl 288 1969 0 1938 43 36 7 7 0 8 4 fdescpl 432 8805 0 8776 4 0 4 4 0 8 0 filepl 120 80308 0 80052 93 78 15 19 0 8 6 lockfpl 104 1310 0 1308 1 0 1 1 0 8 0 lockfspl 48 442 0 440 1 0 1 1 0 8 0 sessionpl 144 50 0 34 1 0 1 1 0 8 0 pgrppl 48 111 0 95 1 0 1 1 0 8 0 ucredpl 104 7969 0 7959 1 0 1 1 0 8 0 zombiepl 144 8799 0 8799 1 0 1 1 0 8 1 processpl 1000 8845 0 8799 11 4 7 9 0 8 0 procpl 672 22463 0 22392 23 16 7 9 0 8 0 sosppl 168 79 0 76 14 13 1 1 0 8 0 sockpl 456 40999 0 40945 785 765 20 48 0 8 8 mcl64k 65536 426 0 426 10 9 1 1 0 8 1 mcl16k 16384 138 0 138 20 20 0 1 0 8 0 mcl12k 12288 403 0 403 7 7 0 1 0 8 0 mcl9k 9216 137 0 137 17 17 0 1 0 8 0 mcl8k 8192 488 0 488 6 5 1 1 0 8 1 mcl4k 4096 840 0 840 2 1 1 1 0 8 1 mcl2k2 2112 61 0 61 14 13 1 1 0 8 1 mcl2k 2048 86334 0 86205 33 15 18 18 0 8 0 mtagpl 96 730 0 566 11 6 5 5 0 8 0 mbufpl 256 204355 0 203961 212 184 28 75 0 8 0 bufpl 288 17832 0 11428 458 0 458 458 0 8 0 anonpl 24 1656232 0 1636870 239 119 120 143 0 188 0 amapchunkpl 152 323089 0 322320 4443 4413 30 4419 0 158 0 amappl16 200 24006 0 23294 116 77 39 52 0 8 0 amappl15 192 690 0 684 1 0 1 1 0 8 0 amappl14 184 258 0 255 1 0 1 1 0 8 0 amappl13 176 1226 0 1220 1 0 1 1 0 8 0 amappl12 168 2310 0 2303 1 0 1 1 0 8 0 amappl11 160 1671 0 1652 1 0 1 1 0 8 0 amappl10 152 319 0 316 1 0 1 1 0 8 0 amappl9 144 2305 0 2301 1 0 1 1 0 8 0 amappl8 136 1861 0 1755 4 0 4 4 0 8 0 amappl7 128 969 0 943 1 0 1 1 0 8 0 amappl6 120 2169 0 2153 2 1 1 2 0 8 0 amappl5 112 6778 0 6760 1 0 1 1 0 8 0 amappl4 104 3437 0 3400 3 2 1 2 0 8 0 amappl3 96 27821 0 27756 2 0 2 2 0 8 0 amappl2 88 2754 0 2715 2 0 2 2 0 8 0 amappl1 80 215320 0 214607 20 5 15 19 0 8 0 amappl 88 47079 0 46863 5 0 5 5 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 9007 0 8799 2 0 2 2 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 9007 0 8799 2 0 2 2 0 8 0 vmmpekpl 168 64213 0 64141 4 0 4 4 0 8 0 vmmpepl 168 857889 0 854705 281 137 144 156 0 357 0 vmsppl 272 9006 0 8799 16 2 14 14 0 8 0 rwobjpl 24 209467 0 201557 50 1 49 49 0 8 0 pdppl 4096 18020 0 17777 620 377 243 244 0 8 0 pvpl 32 3182426 0 3161559 396 223 173 238 0 265 0 pmappl 216 9006 0 8799 12 0 12 12 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 1803 0 790 30 0 30 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:437 panic(ffffffff8254949d) at panic+0x161 sys/kern/subr_prf.c:198 rw_assert_wrlock(fffffd8071d94a20) at rw_assert_wrlock+0xb7 sys/kern/kern_rwlock.c:388 sbunlock(fffffd8071d94a18,fffffd8071d94b40) at sbunlock+0xc9 soassertlocked sys/kern/uipc_socket2.c:414 [inline] sbunlock(fffffd8071d94a18,fffffd8071d94b40) at sbunlock+0xc9 sys/kern/uipc_socket2.c:479 sosplice(fffffd8071d942f8,5,0,0) at sosplice+0x547 sosetopt(fffffd8071d942f8,ffff,1023,fffffd8077b93d00) at sosetopt+0x7ec sys_setsockopt(ffff8000ffff82a8,ffff80002660f138,ffff80002660f190) at sys_setsockopt+0x1f5 sys/kern/uipc_syscalls.c:1233 syscall(ffff80002660f200) at syscall+0x447 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xee4c427cbd0, count: -9 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8254949d) at panic+0x161 sys/kern/subr_prf.c:198 rw_assert_wrlock(fffffd8071d94a20) at rw_assert_wrlock+0xb7 sys/kern/kern_rwlock.c:388 sbunlock(fffffd8071d94a18,fffffd8071d94b40) at sbunlock+0xc9 soassertlocked sys/kern/uipc_socket2.c:414 [inline] sbunlock(fffffd8071d94a18,fffffd8071d94b40) at sbunlock+0xc9 sys/kern/uipc_socket2.c:479 sosplice(fffffd8071d942f8,5,0,0) at sosplice+0x547 sosetopt(fffffd8071d942f8,ffff,1023,fffffd8077b93d00) at sosetopt+0x7ec sys_setsockopt(ffff8000ffff82a8,ffff80002660f138,ffff80002660f190) at sys_setsockopt+0x1f5 sys/kern/uipc_syscalls.c:1233 syscall(ffff80002660f200) at syscall+0x447 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xee4c427cbd0, count: -9