Warning: Permanently added '10.128.0.32' (ED25519) to the list of known hosts. panic: lock (rwlock) solock not locked Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND * 74223 62624 0 0x2 0 0K syz-executor1443616285 69469 39906 0 0x12 0 1 sshd db_enter() at db_enter+0x18 panic(ffffffff82585177) at panic+0x177 witness_assert(fffffd806e9a8b98,4) at witness_assert+0x3ef somove(fffffd806da117b8,1) at somove+0x25d sosplice(fffffd806da117b8,3,0,0) at sosplice+0x50b sosetopt(fffffd806da117b8,ffff,1023,fffffd806d7cec00) at sosetopt+0x7f4 sys_setsockopt(ffff800021232008,ffff80002127acb8,ffff80002127ad00) at sys_setsockopt+0x1f6 syscall(ffff80002127ad80) at syscall+0x435 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffec4b0, 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{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic *cpu0: lock (rwlock) solock not locked ddb{0}> trace db_enter() at db_enter+0x18 panic(ffffffff82585177) at panic+0x177 witness_assert(fffffd806e9a8b98,4) at witness_assert+0x3ef somove(fffffd806da117b8,1) at somove+0x25d sosplice(fffffd806da117b8,3,0,0) at sosplice+0x50b sosetopt(fffffd806da117b8,ffff,1023,fffffd806d7cec00) at sosetopt+0x7f4 sys_setsockopt(ffff800021232008,ffff80002127acb8,ffff80002127ad00) at sys_setsockopt+0x1f6 syscall(ffff80002127ad80) at syscall+0x435 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffec4b0, count: -9 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff80002127a9b0 rbx 0xffffffff829bab8f cpu_info_full_primary+0x2b8f rdx 0x3fd rcx 0 rax 0x27 r8 0x101010101010101 r9 0x8080808080808080 r10 0x53bf486ac725654e r11 0x578b94db3c9eef66 r12 0xffffffff829ba990 cpu_info_full_primary+0x2990 r13 0 r14 0 r15 0x1 rip 0xffffffff81fd76c8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80002127a9a0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor1443616285) pid=74223 stat=onproc flags process=2 proc=0 pri=52, usrpri=53, nice=20 forw=0xffffffffffffffff, list=0xffff800021232fc8,0xffff800021232d38 process=0xffff800021298438 user=0xffff800021275000, vmspace=0xfffffd807effd170 estcpu=3, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 26543 128176 0 0 2 0x14200 sosplice *62624 74223 23539 0 7 0x2 syz-executor1443616285 23539 130284 39906 0 3 0x10008a sigsusp ksh 39906 69469 32645 0 7 0x12 sshd 32937 147996 1 0 3 0x100083 ttyin getty 32645 487716 1 0 3 0x88 kqread sshd 43197 321542 64397 73 3 0x1100090 kqread syslogd 64397 39362 1 0 3 0x100082 netio syslogd 91475 19052 1 0 3 0x100080 kqread resolvd 24457 436151 51338 77 3 0x100092 kqread dhcpleased 88829 359226 51338 77 3 0x100092 kqread dhcpleased 51338 63892 1 0 3 0x80 kqread dhcpleased 50616 54315 0 0 3 0x14200 bored smr 7697 16761 0 0 2 0x14200 zerothread 89317 54265 0 0 3 0x14200 aiodoned aiodoned 66317 427675 0 0 3 0x14200 syncer update 25806 48826 0 0 3 0x14200 cleaner cleaner 31451 235703 0 0 3 0x14200 reaper reaper 11519 262913 0 0 3 0x14200 pgdaemon pagedaemon 15670 210666 0 0 3 0x14200 bored viomb 33993 159758 0 0 3 0x40014200 acpi0 acpi0 90766 71171 0 0 3 0x40014200 idle1 80438 17611 0 0 3 0x14200 bored softnet 5924 504602 0 0 3 0x14200 bored softnet 92737 232974 0 0 3 0x14200 bored softnet 78847 125535 0 0 3 0x14200 bored softnet 69834 81664 0 0 3 0x14200 bored systqmp 43141 333357 0 0 3 0x14200 bored systq 68381 9067 0 0 3 0x40014200 bored softclock 27694 27673 0 0 3 0x40014200 idle0 1 167028 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 62624 (syz-executor1443616285) thread 0xffff800021232008 (74223) exclusive rwlock netlock r = 0 (0xffffffff82971a40) #0 witness_lock+0x44d #1 sys_setsockopt+0x1de #2 syscall+0x435 #3 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82a8d100) #0 witness_lock+0x44d #1 syscall+0x41d #2 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10156 6389K 6420K 78643K 11246 0 pcb 13 8K 8K 78643K 13 0 rtable 58 1K 2K 78643K 111 0 ifaddr 25 7K 7K 78643K 25 0 counters 40 33K 33K 78643K 40 0 ioctlops 0 0K 2K 78643K 25 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1166 73K 73K 78643K 1179 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 1K 78643K 2 0 VM map 2 1K 1K 78643K 2 0 sem 2 0K 0K 78643K 2 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 1 0K 0K 78643K 1 0 proc 55 78K 79K 78643K 226 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 in_multi 11 0K 0K 78643K 11 0 ether_multi 1 0K 0K 78643K 1 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 25 122K 122K 78643K 25 0 exec 0 0K 2K 78643K 410 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 50 2K 4K 78643K 1458 0 UVM aobj 3 2K 2K 78643K 3 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 NDP 3 0K 0K 78643K 3 0 temp 18 4709K 4773K 78643K 2342 0 kqueue 11 16K 18K 78643K 24 0 SYN cache 2 16K 16K 78643K 2 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 22 0 0 1 0 1 1 0 8 0 rtpcb 120 21 0 18 1 0 1 1 0 8 0 rtentry 112 23 0 1 1 0 1 1 0 8 0 unpcb 144 35 0 20 1 0 1 1 0 8 0 syncache 296 5 0 5 1 0 1 1 0 8 1 tcpcb 768 8 0 5 1 0 1 1 0 8 0 arp 120 2 0 0 1 0 1 1 0 8 0 inpcb 368 26 0 19 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 96 0 0 6 0 6 6 0 8 0 art_table 32 97 0 0 1 0 1 1 0 8 0 art_node 16 22 0 2 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1415 0 38 87 0 87 87 0 8 0 ffsino 272 1415 0 38 92 0 92 92 0 8 0 nchpl 144 1600 0 46 58 0 58 58 0 8 0 uvmvnodes 80 1424 0 0 30 0 30 30 0 8 0 vnodes 216 1424 0 0 80 0 80 80 0 8 0 namei 1024 4155 0 4155 1 0 1 1 0 8 1 percpumem 16 32 0 0 1 0 1 1 0 8 0 kstatmem 264 6 0 0 1 0 1 1 0 8 0 scxspl 216 3776 0 3776 2 1 1 2 0 8 1 plimitpl 152 15 0 9 1 0 1 1 0 8 0 sigapl 424 307 0 276 4 0 4 4 0 8 0 knotepl 120 48 0 0 2 0 2 2 0 8 0 kqueuepl 216 20 0 13 1 0 1 1 0 8 0 pipepl 320 83 0 80 1 0 1 1 0 8 0 fdescpl 496 289 0 276 3 1 2 3 0 8 0 filepl 152 1070 0 1014 3 0 3 3 0 8 0 lockfpl 104 6 0 4 1 0 1 1 0 8 0 lockfspl 48 4 0 2 1 0 1 1 0 8 0 sessionpl 144 17 0 9 1 0 1 1 0 8 0 pgrppl 48 17 0 9 1 0 1 1 0 8 0 ucredpl 104 64 0 54 1 0 1 1 0 8 0 zombiepl 144 276 0 276 1 0 1 1 0 8 1 processpl 1064 307 0 276 3 0 3 3 0 8 0 procpl 672 307 0 276 3 0 3 3 0 8 0 sosppl 168 2 0 0 1 0 1 1 0 8 0 sockpl 488 82 0 57 4 0 4 4 0 8 0 mcl8k 8192 8 0 0 1 0 1 1 0 8 0 mcl4k 4096 4 0 0 1 0 1 1 0 8 0 mcl2k 2048 65 0 0 9 0 9 9 0 8 0 mtagpl 96 2 0 0 1 0 1 1 0 8 0 mbufpl 256 114 0 0 8 0 8 8 0 8 0 bufpl 288 1907 0 75 131 0 131 131 0 8 0 anonpl 24 35895 0 34120 13 1 12 13 0 186 1 amapchunkpl 152 2628 0 2542 5 1 4 5 0 158 0 amappl16 200 27 0 26 2 1 1 1 0 8 0 amappl15 192 63 0 59 1 0 1 1 0 8 0 amappl14 184 1 0 0 1 0 1 1 0 8 0 amappl13 176 32 0 31 1 0 1 1 0 8 0 amappl12 168 3 0 3 1 0 1 1 0 8 1 amappl11 160 60 0 47 1 0 1 1 0 8 0 amappl9 144 469 0 467 1 0 1 1 0 8 0 amappl8 136 350 0 349 1 0 1 1 0 8 0 amappl7 128 62 0 55 1 0 1 1 0 8 0 amappl6 120 82 0 76 1 0 1 1 0 8 0 amappl5 112 87 0 78 1 0 1 1 0 8 0 amappl4 104 590 0 570 1 0 1 1 0 8 0 amappl3 96 421 0 398 1 0 1 1 0 8 0 amappl2 88 301 0 274 1 0 1 1 0 8 0 amappl1 80 9119 0 8742 9 0 9 9 0 8 0 amappl 88 1194 0 1159 1 0 1 1 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 2 0 0 1 0 1 1 0 8 0 uaddrrnd 24 289 0 276 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 289 0 276 1 0 1 1 0 8 0 vmmpekpl 168 6007 0 5992 1 0 1 1 0 8 0 vmmpepl 168 25800 0 25029 38 0 38 38 0 357 3 vmsppl 368 288 0 276 2 0 2 2 0 8 0 rwobjpl 56 9334 0 7393 29 0 29 29 0 8 0 pdppl 4096 585 0 552 53 20 33 41 0 8 0 pvpl 32 120097 0 116476 33 0 33 33 0 265 3 pmappl 248 288 0 276 2 1 1 2 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 399 0 22 11 0 11 11 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace db_enter() at db_enter+0x18 panic(ffffffff82585177) at panic+0x177 witness_assert(fffffd806e9a8b98,4) at witness_assert+0x3ef somove(fffffd806da117b8,1) at somove+0x25d sosplice(fffffd806da117b8,3,0,0) at sosplice+0x50b sosetopt(fffffd806da117b8,ffff,1023,fffffd806d7cec00) at sosetopt+0x7f4 sys_setsockopt(ffff800021232008,ffff80002127acb8,ffff80002127ad00) at sys_setsockopt+0x1f6 syscall(ffff80002127ad80) at syscall+0x435 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffec4b0, count: -9 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffff800020dd8ff0) at x86_ipi_db+0x1a x86_ipi_handler() at x86_ipi_handler+0xb7 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 __mp_lock(ffffffff82a8cef8) at __mp_lock+0x122 syscall(ffff8000212af160) at syscall+0x41d Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffdec90, count: 9 ddb{1}> trace x86_ipi_db(ffff800020dd8ff0) at x86_ipi_db+0x1a x86_ipi_handler() at x86_ipi_handler+0xb7 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 __mp_lock(ffffffff82a8cef8) at __mp_lock+0x122 syscall(ffff8000212af160) at syscall+0x41d Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffdec90, count: -6 ddb{1}>