panic: solock: lock not held Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *382745 54544 0 0 0x4000000 0 syz-executor.5 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(fffffd806333a9f0) at rw_assert_wrlock+0xb7 sys/kern/kern_rwlock.c:388 sbunlock(fffffd806333a9e8,fffffd806333ab10) at sbunlock+0xc9 soassertlocked sys/kern/uipc_socket2.c:414 [inline] sbunlock(fffffd806333a9e8,fffffd806333ab10) at sbunlock+0xc9 sys/kern/uipc_socket2.c:479 sosplice(fffffd806333a490,3,0,fffffd800706d010) at sosplice+0x547 sosetopt(fffffd806333a490,ffff,1023,fffffd80640c1d00) at sosetopt+0x7ec sys_setsockopt(ffff800029a69270,ffff800029a61188,ffff800029a611e0) at sys_setsockopt+0x1f5 sys/kern/uipc_syscalls.c:1233 syscall(ffff800029a61250) at syscall+0x447 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xd92ae079730, 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(fffffd806333a9f0) at rw_assert_wrlock+0xb7 sys/kern/kern_rwlock.c:388 sbunlock(fffffd806333a9e8,fffffd806333ab10) at sbunlock+0xc9 soassertlocked sys/kern/uipc_socket2.c:414 [inline] sbunlock(fffffd806333a9e8,fffffd806333ab10) at sbunlock+0xc9 sys/kern/uipc_socket2.c:479 sosplice(fffffd806333a490,3,0,fffffd800706d010) at sosplice+0x547 sosetopt(fffffd806333a490,ffff,1023,fffffd80640c1d00) at sosetopt+0x7ec sys_setsockopt(ffff800029a69270,ffff800029a61188,ffff800029a611e0) at sys_setsockopt+0x1f5 sys/kern/uipc_syscalls.c:1233 syscall(ffff800029a61250) at syscall+0x447 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xd92ae079730, count: -9 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff800029a60f00 rbx 0x39 rdx 0xffff800000bd8580 rcx 0 rax 0xffff800029a69270 r8 0x101010101010101 r9 0x8080808080808080 r10 0x98b95f1eebf89532 r11 0xaefbc63149cffc2f r12 0 r13 0xfffffd806333a540 r14 0 r15 0x1 rip 0xffffffff8101e5c8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800029a60ef0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.5) pid=382745 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=80, nice=20 forw=0xffffffffffffffff, list=0xffff800029a697b0,0xffff800029a68aa0 process=0xffff800021760420 user=0xffff800029a5c000, vmspace=0xfffffd806c042010 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 70404 229791 13271 0 3 0x80 nanoslp syz-executor.3 70404 80113 13271 0 3 0x4000080 fsleep syz-executor.3 54544 146871 83698 0 2 0 syz-executor.5 *54544 382745 83698 0 7 0x4000000 syz-executor.5 9587 330853 79243 0 2 0 syz-executor.7 9587 450482 79243 0 2 0x4000000 syz-executor.7 9587 288762 79243 0 3 0x4000080 fsleep syz-executor.7 58551 369703 96038 0 3 0x80 nanoslp syz-executor.2 58551 1486 96038 0 3 0x4000080 fsleep syz-executor.2 68688 70373 1 0 3 0x100083 ttyin getty 30856 365945 0 0 3 0x14200 bored sosplice 79243 230984 7138 0 3 0x82 nanoslp syz-executor.7 83698 199246 7138 0 3 0x82 nanoslp syz-executor.5 40903 297931 7138 0 3 0x82 nanoslp syz-executor.4 13271 177681 7138 0 3 0x82 nanoslp syz-executor.3 96038 473286 7138 0 3 0x82 nanoslp syz-executor.2 62934 368860 7138 0 3 0x82 nanoslp syz-executor.1 68062 502283 7138 0 3 0x82 piperd syz-executor.0 7138 508038 94830 0 3 0x82 wait syz-fuzzer 7138 384203 94830 0 3 0x4000082 nanoslp syz-fuzzer 7138 240961 94830 0 3 0x4000082 wait syz-fuzzer 7138 150866 94830 0 3 0x4000082 thrsleep syz-fuzzer 7138 357688 94830 0 3 0x4000082 wait syz-fuzzer 7138 302830 94830 0 3 0x4000082 thrsleep syz-fuzzer 7138 68881 94830 0 3 0x4000082 wait syz-fuzzer 7138 56589 94830 0 3 0x4000082 thrsleep syz-fuzzer 7138 70293 94830 0 3 0x4000082 wait syz-fuzzer 7138 430277 94830 0 3 0x4000082 wait syz-fuzzer 7138 269270 94830 0 3 0x4000082 thrsleep syz-fuzzer 7138 410636 94830 0 3 0x4000082 wait syz-fuzzer 7138 487901 94830 0 3 0x4000082 thrsleep syz-fuzzer 7138 211999 94830 0 2 0x4000002 syz-fuzzer 94830 375472 2789 0 3 0x10008a sigsusp ksh 2789 183824 18728 0 3 0x9a kqread sshd 18728 521262 1 0 3 0x88 kqread sshd 58616 91999 92668 73 3 0x1100090 kqread syslogd 92668 229565 1 0 3 0x100082 netio syslogd 68267 435216 1 0 3 0x100080 kqread resolvd 91260 159913 16015 77 3 0x100092 kqread dhcpleased 47262 514363 16015 77 3 0x100092 kqread dhcpleased 16015 450269 1 0 3 0x80 kqread dhcpleased 97197 78608 0 0 3 0x14200 bored smr 28356 39449 0 0 2 0x14200 zerothread 2544 491203 0 0 3 0x14200 aiodoned aiodoned 15467 231225 0 0 3 0x14200 syncer update 12058 186621 0 0 3 0x14200 cleaner cleaner 91304 437306 0 0 3 0x14200 reaper reaper 13276 334782 0 0 3 0x14200 pgdaemon pagedaemon 19085 305543 0 0 3 0x14200 bored viomb 25138 480990 0 0 3 0x40014200 acpi0 acpi0 3752 447945 0 0 3 0x14200 bored softnet 61085 516154 0 0 3 0x14200 bored softnet 67891 116750 0 0 3 0x14200 bored softnet 10051 5345 0 0 3 0x14200 bored softnet 16215 430592 0 0 3 0x14200 bored systqmp 66244 366976 0 0 3 0x14200 bored systq 83961 364029 0 0 3 0x40014200 bored softclock 807 510301 0 0 3 0x40014200 idle0 1 138336 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 10197 6727K 7191K 78643K 14691 0 pcb 13 13K 18K 78643K 319 0 rtable 239 12K 12K 78643K 542 0 ifaddr 85 18K 20K 78643K 226 0 counters 26 17K 17K 78643K 49 0 ioctlops 0 0K 4K 78643K 333 0 iov 0 0K 28K 78643K 317 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1372 86K 86K 78643K 2008 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 13 0 VM map 2 0K 0K 78643K 2 0 sem 6 0K 0K 78643K 12 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 13 45K 73K 78643K 759 0 proc 59 59K 75K 78643K 538 0 subproc 91 5K 6K 78643K 130 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 11 0 in_multi 92 6K 7K 78643K 131 0 ether_multi 1 0K 0K 78643K 7 0 mrt 0 0K 0K 78643K 9 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 61 281K 281K 78643K 61 0 exec 0 0K 2K 78643K 698 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 222 74K 86K 78643K 5482 0 UVM aobj 93 3K 3K 78643K 93 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 62 0 NDP 10 0K 2K 78643K 47 0 temp 115 4717K 4798K 78643K 18672 0 kqueue 12 18K 26K 78643K 83 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 70 0 67 1 0 1 1 0 8 0 rtentry 112 138 0 38 4 0 4 4 0 8 0 unpcb 144 315 0 301 4 0 4 4 0 8 3 syncache 296 6 0 6 3 2 1 1 0 8 1 tcpqe 32 87 0 87 3 2 1 1 0 8 1 tcpcb 768 336 0 329 15 7 8 9 0 8 6 arp 88 22 0 6 1 0 1 1 0 8 0 inpcb 336 952 0 940 29 19 10 15 0 8 8 nd6 48 32 0 10 1 0 1 1 0 8 0 pkpcb 40 57 0 57 2 1 1 1 0 8 1 kcovpl 48 10 0 3 1 0 1 1 0 8 0 ppxss 1160 15 0 15 1 1 0 1 0 8 0 pfstscr 40 3 0 2 1 0 1 1 0 8 0 pfosfp 40 36 0 34 1 0 1 1 0 8 0 pfosfpen 112 36 0 34 1 0 1 1 0 8 0 pfrktable 1344 49 0 39 1 0 1 1 0 8 0 pfanchor 1280 259 0 156 14 2 12 12 0 8 0 pftag 88 5 0 2 2 1 1 1 0 8 0 pfstitem 24 2 0 0 1 0 1 1 0 8 0 pfstkey 120 6 0 4 1 0 1 1 0 8 0 pfstate 336 3 0 2 1 0 1 1 0 8 0 pfrule 1360 96 0 80 2 0 2 2 0 8 0 rttmr 136 3 0 3 1 1 0 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 562 0 151 30 1 29 30 0 8 0 art_table 32 563 0 151 4 0 4 4 0 8 0 art_node 16 137 0 46 1 0 1 1 0 8 0 sysvmsgpl 40 36 0 36 1 1 0 1 0 8 0 semupl 112 3 0 3 1 0 1 1 0 8 1 semapl 112 6 0 2 2 1 1 1 0 8 0 shmpl 112 90 0 0 3 0 3 3 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2439 0 1010 90 0 90 90 0 8 0 ffsino 240 2439 0 1010 85 0 85 85 0 8 0 nchpl 144 3552 0 1919 63 0 63 63 0 8 0 rtmask 32 2 0 2 1 1 0 1 0 8 0 uvmvnodes 80 3098 0 0 64 0 64 64 0 8 0 vnodes 216 3098 0 0 173 0 173 173 0 8 0 namei 1024 12730 0 12730 3 2 1 2 0 8 1 pfiaddrpl 120 21 0 9 3 2 1 1 0 8 0 kstatmem 264 54 0 34 2 0 2 2 0 8 0 scxspl 216 14297 0 14297 9 8 1 8 0 8 1 plimitpl 152 95 0 82 1 0 1 1 0 8 0 sigapl 424 1044 0 1001 8 2 6 6 0 8 0 futexpl 64 7218 0 7215 4 3 1 1 0 8 0 knotepl 120 13076 0 13002 10 6 4 7 0 8 0 kqueuepl 184 193 0 183 3 0 3 3 0 8 2 pipepl 288 193 0 168 4 1 3 3 0 8 1 fdescpl 432 1027 0 1003 7 3 4 4 0 8 0 filepl 120 6908 0 6678 23 7 16 17 0 8 8 lockfpl 104 460 0 455 2 0 2 2 0 8 1 lockfspl 48 137 0 133 1 0 1 1 0 8 0 sessionpl 144 26 0 11 1 0 1 1 0 8 0 pgrppl 48 161 0 146 1 0 1 1 0 8 0 ucredpl 104 835 0 825 1 0 1 1 0 8 0 zombiepl 144 1003 0 1001 1 0 1 1 0 8 0 processpl 1000 1044 0 1001 8 2 6 6 0 8 0 procpl 672 2128 0 2067 7 0 7 7 0 8 0 sosppl 168 8 0 6 2 1 1 1 0 8 0 sockpl 456 1394 0 1365 45 32 13 24 0 8 8 mcl64k 65536 16 0 16 3 2 1 1 0 8 1 mcl16k 16384 3 0 3 1 1 0 1 0 8 0 mcl12k 12288 30 0 30 3 2 1 1 0 8 1 mcl9k 9216 3 0 3 2 1 1 1 0 8 1 mcl8k 8192 41 0 41 4 3 1 1 0 8 1 mcl4k 4096 81 0 81 3 2 1 1 0 8 1 mcl2k2 2112 6 0 6 4 4 0 1 0 8 0 mcl2k 2048 71664 0 71597 15 5 10 14 0 8 1 mtagpl 96 52 0 19 2 1 1 1 0 8 0 mbufpl 256 117641 0 117393 20 0 20 20 0 8 0 bufpl 288 4977 0 133 346 0 346 346 0 8 0 anonpl 24 191970 0 178262 131 27 104 128 0 188 4 amapchunkpl 152 16211 0 15621 42 14 28 38 0 158 1 amappl16 200 2085 0 1509 36 5 31 31 0 8 0 amappl15 192 96 0 90 1 0 1 1 0 8 0 amappl14 184 73 0 69 1 0 1 1 0 8 0 amappl13 176 199 0 198 1 0 1 1 0 8 0 amappl12 168 11 0 7 1 0 1 1 0 8 0 amappl11 160 141 0 126 1 0 1 1 0 8 0 amappl10 152 153 0 149 1 0 1 1 0 8 0 amappl9 144 647 0 642 1 0 1 1 0 8 0 amappl8 136 687 0 629 3 0 3 3 0 8 0 amappl7 128 225 0 208 1 0 1 1 0 8 0 amappl6 120 362 0 349 2 1 1 2 0 8 0 amappl5 112 749 0 734 1 0 1 1 0 8 0 amappl4 104 954 0 924 2 1 1 2 0 8 0 amappl3 96 2452 0 2407 2 0 2 2 0 8 0 amappl2 88 575 0 541 2 0 2 2 0 8 0 amappl1 80 26685 0 26085 19 4 15 19 0 8 0 amappl 88 4988 0 4846 4 0 4 4 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 92 0 0 2 0 2 2 0 8 0 uaddrrnd 24 1027 0 1003 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1027 0 1003 1 0 1 1 0 8 0 vmmpekpl 168 11776 0 11732 3 0 3 3 0 8 0 vmmpepl 168 102750 0 100430 153 24 129 136 0 357 17 vmsppl 272 1026 0 1003 4 2 2 3 0 8 0 rwobjpl 24 28528 0 23845 29 0 29 29 0 8 0 pdppl 4096 2060 0 2006 144 84 60 68 0 8 6 pvpl 32 545277 0 527627 251 51 200 239 0 265 29 pmappl 216 1026 0 1003 2 0 2 2 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 791 0 124 20 0 20 20 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(fffffd806333a9f0) at rw_assert_wrlock+0xb7 sys/kern/kern_rwlock.c:388 sbunlock(fffffd806333a9e8,fffffd806333ab10) at sbunlock+0xc9 soassertlocked sys/kern/uipc_socket2.c:414 [inline] sbunlock(fffffd806333a9e8,fffffd806333ab10) at sbunlock+0xc9 sys/kern/uipc_socket2.c:479 sosplice(fffffd806333a490,3,0,fffffd800706d010) at sosplice+0x547 sosetopt(fffffd806333a490,ffff,1023,fffffd80640c1d00) at sosetopt+0x7ec sys_setsockopt(ffff800029a69270,ffff800029a61188,ffff800029a611e0) at sys_setsockopt+0x1f5 sys/kern/uipc_syscalls.c:1233 syscall(ffff800029a61250) at syscall+0x447 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xd92ae079730, 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(fffffd806333a9f0) at rw_assert_wrlock+0xb7 sys/kern/kern_rwlock.c:388 sbunlock(fffffd806333a9e8,fffffd806333ab10) at sbunlock+0xc9 soassertlocked sys/kern/uipc_socket2.c:414 [inline] sbunlock(fffffd806333a9e8,fffffd806333ab10) at sbunlock+0xc9 sys/kern/uipc_socket2.c:479 sosplice(fffffd806333a490,3,0,fffffd800706d010) at sosplice+0x547 sosetopt(fffffd806333a490,ffff,1023,fffffd80640c1d00) at sosetopt+0x7ec sys_setsockopt(ffff800029a69270,ffff800029a61188,ffff800029a611e0) at sys_setsockopt+0x1f5 sys/kern/uipc_syscalls.c:1233 syscall(ffff800029a61250) at syscall+0x447 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xd92ae079730, count: -9