panic: solock: lock not held Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *232255 84004 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(fffffd806efc63a0) at rw_assert_wrlock+0xb7 sys/kern/kern_rwlock.c:388 sbunlock(fffffd806efc6398,fffffd806efc64c0) at sbunlock+0xc9 soassertlocked sys/kern/uipc_socket2.c:414 [inline] sbunlock(fffffd806efc6398,fffffd806efc64c0) at sbunlock+0xc9 sys/kern/uipc_socket2.c:479 sosplice(fffffd8067b95b10,3,0,fffffd800706e010) at sosplice+0x547 sosetopt(fffffd8067b95b10,ffff,1023,fffffd806a4e5500) at sosetopt+0x7ec sys_setsockopt(ffff80002179fce8,ffff80002e96d8f8,ffff80002e96d950) at sys_setsockopt+0x1f5 sys/kern/uipc_syscalls.c:1233 syscall(ffff80002e96d9c0) at syscall+0x447 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x5fa8c923630, 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(fffffd806efc63a0) at rw_assert_wrlock+0xb7 sys/kern/kern_rwlock.c:388 sbunlock(fffffd806efc6398,fffffd806efc64c0) at sbunlock+0xc9 soassertlocked sys/kern/uipc_socket2.c:414 [inline] sbunlock(fffffd806efc6398,fffffd806efc64c0) at sbunlock+0xc9 sys/kern/uipc_socket2.c:479 sosplice(fffffd8067b95b10,3,0,fffffd800706e010) at sosplice+0x547 sosetopt(fffffd8067b95b10,ffff,1023,fffffd806a4e5500) at sosetopt+0x7ec sys_setsockopt(ffff80002179fce8,ffff80002e96d8f8,ffff80002e96d950) at sys_setsockopt+0x1f5 sys/kern/uipc_syscalls.c:1233 syscall(ffff80002e96d9c0) at syscall+0x447 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x5fa8c923630, count: -9 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80002e96d670 rbx 0x39 rdx 0xffff800000be4740 rcx 0 rax 0xffff80002179fce8 r8 0x101010101010101 r9 0x8080808080808080 r10 0xd1416b5b88d8927e r11 0xfa4dac3cc578c535 r12 0 r13 0xfffffd8067b95bc0 r14 0 r15 0x1 rip 0xffffffff8101e5c8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80002e96d660 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.5) pid=232255 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=83, nice=20 forw=0xffffffffffffffff, list=0xffff8000216f0000,0xffffffff82a95cc0 process=0xffff800028077ba0 user=0xffff80002e968000, vmspace=0xfffffd806c534670 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 84004 170929 58821 0 2 0 syz-executor.5 *84004 232255 58821 0 7 0x4000000 syz-executor.5 45264 172294 6522 0 3 0x80 nanoslp syz-executor.0 45264 289014 6522 0 3 0x4000080 pipewr syz-executor.0 45264 39684 6522 0 3 0x4000080 fsleep syz-executor.0 6522 333118 60241 0 3 0x82 nanoslp syz-executor.0 56680 36024 0 0 3 0x14200 acct acct 46095 363843 60241 0 3 0x82 nanoslp syz-executor.1 53471 32754 60241 0 3 0x82 nanoslp syz-executor.4 4766 173230 0 0 3 0x14280 nfsidl nfsio 55895 461156 0 0 3 0x14280 nfsidl nfsio 46054 153953 0 0 3 0x14280 nfsidl nfsio 27855 160350 0 0 3 0x14280 nfsidl nfsio 28087 130527 0 0 3 0x14280 nfsidl nfsio 43593 205432 0 0 3 0x14280 nfsidl nfsio 72486 358401 0 0 3 0x14280 nfsidl nfsio 30730 105329 0 0 3 0x14280 nfsidl nfsio 21887 291942 0 0 3 0x14280 nfsidl nfsio 64722 429976 0 0 3 0x14280 nfsidl nfsio 53995 160023 0 0 3 0x14280 nfsidl nfsio 93016 117349 0 0 3 0x14280 nfsidl nfsio 95544 24499 0 0 3 0x14280 nfsidl nfsio 64092 367655 0 0 3 0x14280 nfsidl nfsio 34379 204298 0 0 3 0x14280 nfsidl nfsio 95149 76702 0 0 3 0x14280 nfsidl nfsio 53526 28861 0 0 3 0x14280 nfsidl nfsio 79735 407648 0 0 3 0x14280 nfsidl nfsio 14734 237151 0 0 3 0x14280 nfsidl nfsio 21426 314543 0 0 3 0x14280 nfsidl nfsio 58821 156541 60241 0 3 0x82 nanoslp syz-executor.5 52501 497837 1 0 3 0x100083 ttyin getty 63509 423432 60241 0 3 0x82 nanoslp syz-executor.7 66221 119420 60241 0 3 0x82 nanoslp syz-executor.3 91131 66003 0 0 3 0x14200 bored sosplice 71515 25428 60241 0 3 0x82 piperd syz-executor.6 96535 448526 60241 0 3 0x82 nanoslp syz-executor.2 60241 149853 35081 0 3 0x82 wait syz-fuzzer 60241 206974 35081 0 3 0x4000082 thrsleep syz-fuzzer 60241 305936 35081 0 3 0x4000082 wait syz-fuzzer 60241 432427 35081 0 3 0x4000082 thrsleep syz-fuzzer 60241 418576 35081 0 3 0x4000082 thrsleep syz-fuzzer 60241 519513 35081 0 3 0x4000082 wait syz-fuzzer 60241 117142 35081 0 3 0x4000082 wait syz-fuzzer 60241 37748 35081 0 3 0x4000082 thrsleep syz-fuzzer 60241 342922 35081 0 3 0x4000082 thrsleep syz-fuzzer 60241 68221 35081 0 3 0x4000082 wait syz-fuzzer 60241 255459 35081 0 3 0x4000082 wait syz-fuzzer 60241 129135 35081 0 3 0x4000082 kqread syz-fuzzer 60241 33974 35081 0 3 0x4000082 wait syz-fuzzer 60241 344752 35081 0 3 0x4000082 wait syz-fuzzer 35081 459494 56291 0 3 0x10008a sigsusp ksh 56291 443393 25390 0 3 0x9a kqread sshd 25390 328893 1 0 3 0x88 kqread sshd 66820 515502 47587 73 3 0x1100090 kqread syslogd 47587 348030 1 0 3 0x100082 netio syslogd 49719 50983 1 0 3 0x100080 kqread resolvd 52535 402671 80453 77 3 0x100092 kqread dhcpleased 87432 63348 80453 77 3 0x100092 kqread dhcpleased 80453 490339 1 0 3 0x80 kqread dhcpleased 67601 86595 0 0 3 0x14200 bored smr 93129 489642 0 0 2 0x14200 zerothread 31103 163426 0 0 3 0x14200 aiodoned aiodoned 81102 120013 0 0 3 0x14200 syncer update 66984 218595 0 0 3 0x14200 cleaner cleaner 10783 210265 0 0 3 0x14200 reaper reaper 54011 214483 0 0 3 0x14200 pgdaemon pagedaemon 80173 54816 0 0 3 0x14200 bored viomb 53070 335842 0 0 3 0x40014200 acpi0 acpi0 7851 511582 0 0 3 0x14200 bored softnet 15876 67917 0 0 3 0x14200 bored softnet 37882 11067 0 0 3 0x14200 bored softnet 40721 413332 0 0 3 0x14200 bored softnet 87981 251370 0 0 3 0x14200 bored systqmp 470 506592 0 0 3 0x14200 bored systq 29979 223961 0 0 3 0x40014200 bored softclock 44445 85314 0 0 3 0x40014200 idle0 1 329306 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 10222 6502K 6934K 78643K 15407 0 pcb 13 14K 16K 78643K 527 0 rtable 236 20K 20K 78643K 944 0 ifaddr 99 20K 20K 78643K 426 0 sysctl 3 1K 1K 78643K 3 0 counters 27 17K 17K 78643K 67 0 ioctlops 0 0K 4K 78643K 1785 0 iov 0 0K 36K 78643K 283 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1339 84K 84K 78643K 2744 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 42 0 VM map 2 0K 0K 78643K 2 0 sem 17 2K 3K 78643K 71 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 12 41K 69K 78643K 2813 0 sigio 1 0K 0K 78643K 109 0 proc 63 59K 75K 78643K 891 0 subproc 104 6K 6K 78643K 234 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 123 0 in_multi 92 6K 6K 78643K 248 0 ether_multi 1 0K 0K 78643K 18 0 mrt 1 0K 0K 78643K 33 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 241 1076K 1076K 78643K 241 0 exec 0 0K 2K 78643K 1243 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 306 379K 380K 78643K 16746 0 UVM aobj 131 6K 6K 78643K 155 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 133 0 NDP 14 0K 2K 78643K 91 0 temp 139 4722K 5746K 78643K 22551 0 kqueue 12 18K 26K 78643K 278 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 180 0 177 2 1 1 2 0 8 0 rtentry 112 254 0 161 4 1 3 4 0 8 0 unpcb 144 3231 0 3217 27 21 6 6 0 8 5 syncache 296 15 0 15 4 3 1 1 0 8 1 tcpqe 32 104 0 104 1 1 0 1 0 8 0 tcpcb 768 3260 0 3256 86 77 9 23 0 8 8 arp 88 39 0 23 1 0 1 1 0 8 0 ipq 40 1 0 0 1 0 1 1 0 8 0 ipqe 40 3 0 2 1 0 1 1 0 8 0 inpcb 336 4702 0 4694 52 45 7 15 0 8 6 nd6 48 58 0 36 1 0 1 1 0 8 0 pkpcb 40 8 0 8 2 2 0 1 0 8 0 kcovpl 48 18 0 10 1 0 1 1 0 8 0 ppxss 1160 18 0 18 4 4 0 1 0 8 0 pfstscr 40 55 0 49 1 0 1 1 0 8 0 pfosfp 40 6 0 5 1 0 1 1 0 8 0 pfosfpen 112 6 0 4 1 0 1 1 0 8 0 pfrke_plain 168 3 0 3 1 1 0 1 0 8 0 pfrktable 1344 45 0 37 1 0 1 1 0 8 0 pfanchor 1280 30 0 29 1 0 1 1 0 8 0 pftag 88 6 0 1 2 1 1 1 0 8 0 pfqueue 264 4 0 4 2 2 0 1 0 8 0 pfstitem 24 88 0 78 1 0 1 1 0 8 0 pfstkey 120 108 0 101 1 0 1 1 0 8 0 pfstate 336 54 0 49 1 0 1 1 0 8 0 pfrule 1360 243 0 222 2 0 2 2 0 8 0 rttmr 136 12 0 12 3 3 0 1 0 8 0 art_heap8 4096 2 0 1 2 1 1 2 0 8 0 art_heap4 256 1058 0 648 36 10 26 29 0 8 0 art_table 32 1060 0 649 5 1 4 4 0 8 0 art_node 16 250 0 169 1 0 1 1 0 8 0 sysvmsgpl 40 46 0 7 1 0 1 1 0 8 0 semupl 112 5 0 5 2 2 0 1 0 8 0 semapl 112 59 0 44 1 0 1 1 0 8 0 shmpl 112 152 0 24 5 1 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 5270 0 3828 91 0 91 91 0 8 0 ffsino 240 5270 0 3828 86 0 86 86 0 8 0 nchpl 144 9054 0 7416 63 0 63 63 0 8 0 uvmvnodes 80 5926 0 0 121 0 121 121 0 8 0 vnodes 216 5926 0 0 330 0 330 330 0 8 0 namei 1024 34234 0 34234 2 1 1 2 0 8 1 vcpupl 2048 86 0 0 11 0 11 11 0 8 0 vmpool 536 98 0 12 6 0 6 6 0 8 0 pfiaddrpl 120 24 0 9 1 0 1 1 0 8 0 kstatmem 264 108 0 80 4 1 3 3 0 8 1 scsiplug 72 9 0 9 3 2 1 1 0 8 1 scxspl 216 25551 0 25551 10 9 1 8 0 8 1 plimitpl 152 467 0 453 1 0 1 1 0 8 0 sigapl 424 3104 0 3038 8 0 8 8 0 8 0 futexpl 64 30113 0 30112 1 0 1 1 0 8 0 knotepl 120 46649 0 46569 23 16 7 15 0 8 2 kqueuepl 184 689 0 681 9 5 4 4 0 8 3 pipepl 288 915 0 886 23 18 5 11 0 8 2 fdescpl 432 3066 0 3043 4 0 4 4 0 8 0 filepl 120 25472 0 25234 48 33 15 18 0 8 7 lockfpl 104 867 0 865 2 1 1 2 0 8 0 lockfspl 48 277 0 275 1 0 1 1 0 8 0 sessionpl 144 35 0 19 1 0 1 1 0 8 0 pgrppl 48 39 0 23 1 0 1 1 0 8 0 ucredpl 104 3612 0 3602 1 0 1 1 0 8 0 zombiepl 144 3043 0 3038 1 0 1 1 0 8 0 processpl 1000 3104 0 3038 10 1 9 9 0 8 0 procpl 672 7539 0 7457 12 3 9 9 0 8 1 sosppl 168 35 0 33 6 5 1 1 0 8 0 sockpl 456 8121 0 8096 191 180 11 28 0 8 7 mcl64k 65536 103 0 103 5 4 1 1 0 8 1 mcl16k 16384 39 0 39 6 5 1 1 0 8 1 mcl12k 12288 106 0 106 5 4 1 1 0 8 1 mcl9k 9216 32 0 32 4 3 1 1 0 8 1 mcl8k 8192 122 0 122 4 3 1 1 0 8 1 mcl4k 4096 319 0 319 2 1 1 1 0 8 1 mcl2k2 2112 17 0 17 7 6 1 1 0 8 1 mcl2k 2048 76444 0 76369 30 18 12 26 0 8 1 mtagpl 96 381 0 132 8 1 7 7 0 8 0 mbufpl 256 145687 0 145217 112 79 33 94 0 8 0 bufpl 288 8214 0 1810 458 0 458 458 0 8 0 anonpl 24 583643 0 565224 156 36 120 126 0 188 2 amapchunkpl 152 46667 0 45946 39 7 32 32 0 158 0 amappl16 200 8673 0 8029 62 26 36 44 0 8 0 amappl15 192 620 0 612 1 0 1 1 0 8 0 amappl14 184 353 0 350 1 0 1 1 0 8 0 amappl13 176 579 0 576 1 0 1 1 0 8 0 amappl12 168 415 0 409 1 0 1 1 0 8 0 amappl11 160 187 0 173 1 0 1 1 0 8 0 amappl10 152 625 0 622 1 0 1 1 0 8 0 amappl9 144 789 0 785 1 0 1 1 0 8 0 amappl8 136 787 0 717 3 0 3 3 0 8 0 amappl7 128 175 0 154 1 0 1 1 0 8 0 amappl6 120 534 0 519 2 1 1 2 0 8 0 amappl5 112 2685 0 2672 1 0 1 1 0 8 0 amappl4 104 1255 0 1226 1 0 1 1 0 8 0 amappl3 96 8742 0 8697 2 0 2 2 0 8 0 amappl2 88 1442 0 1402 2 0 2 2 0 8 0 amappl1 80 76487 0 75918 19 4 15 19 0 8 0 amappl 88 15994 0 15834 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 154 0 24 3 0 3 3 0 8 0 uaddrrnd 24 3164 0 3055 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 3164 0 3055 1 0 1 1 0 8 0 vmmpekpl 168 27537 0 27466 4 0 4 4 0 8 0 vmmpepl 168 303366 0 300951 167 35 132 135 0 357 7 vmsppl 272 3163 0 3055 9 1 8 8 0 8 0 rwobjpl 24 79268 0 71616 47 0 47 47 0 8 0 pdppl 4096 6334 0 6196 307 157 150 151 0 8 12 pvpl 32 1210297 0 1190722 267 89 178 238 0 265 1 pmappl 216 3163 0 3055 7 0 7 7 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 1245 0 345 26 0 26 26 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(fffffd806efc63a0) at rw_assert_wrlock+0xb7 sys/kern/kern_rwlock.c:388 sbunlock(fffffd806efc6398,fffffd806efc64c0) at sbunlock+0xc9 soassertlocked sys/kern/uipc_socket2.c:414 [inline] sbunlock(fffffd806efc6398,fffffd806efc64c0) at sbunlock+0xc9 sys/kern/uipc_socket2.c:479 sosplice(fffffd8067b95b10,3,0,fffffd800706e010) at sosplice+0x547 sosetopt(fffffd8067b95b10,ffff,1023,fffffd806a4e5500) at sosetopt+0x7ec sys_setsockopt(ffff80002179fce8,ffff80002e96d8f8,ffff80002e96d950) at sys_setsockopt+0x1f5 sys/kern/uipc_syscalls.c:1233 syscall(ffff80002e96d9c0) at syscall+0x447 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x5fa8c923630, 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(fffffd806efc63a0) at rw_assert_wrlock+0xb7 sys/kern/kern_rwlock.c:388 sbunlock(fffffd806efc6398,fffffd806efc64c0) at sbunlock+0xc9 soassertlocked sys/kern/uipc_socket2.c:414 [inline] sbunlock(fffffd806efc6398,fffffd806efc64c0) at sbunlock+0xc9 sys/kern/uipc_socket2.c:479 sosplice(fffffd8067b95b10,3,0,fffffd800706e010) at sosplice+0x547 sosetopt(fffffd8067b95b10,ffff,1023,fffffd806a4e5500) at sosetopt+0x7ec sys_setsockopt(ffff80002179fce8,ffff80002e96d8f8,ffff80002e96d950) at sys_setsockopt+0x1f5 sys/kern/uipc_syscalls.c:1233 syscall(ffff80002e96d9c0) at syscall+0x447 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x5fa8c923630, count: -9