panic: sbdrop Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 283104 80972 0 0x1000 0x4080000 0 syz-executor.0 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff8221b14b) at panic+0x15c sys/kern/subr_prf.c:207 sbdrop(ffff800023fad2c8,ffff800023fad350,184) at sbdrop+0x3c6 sys/kern/uipc_socket2.c:953 sbflush(ffff800023fad2c8,ffff800023fad350) at sbflush+0x93 sys/kern/uipc_socket2.c:934 sbrelease(ffff800023fad2c8,ffff800023fad350) at sbrelease+0x2e sys/kern/uipc_socket2.c:525 sorflush(fffffd8066df1c98) at sorflush+0x14b sys/kern/uipc_socket.c:1131 sofree(fffffd8066df1c98,42) at sofree+0x147 sys/kern/uipc_socket.c:257 soclose(fffffd8066df1c98,0) at soclose+0x270 sys/kern/uipc_socket.c:338 soo_close(fffffd80673f5e60,ffff800020e929d8) at soo_close+0x40 fdrop(fffffd80673f5e60,ffff800020e929d8) at fdrop+0xc2 sys/kern/kern_descrip.c:1276 closef(fffffd80673f5e60,ffff800020e929d8) at closef+0x11c sys/kern/kern_descrip.c:1260 fdfree(ffff800020e929d8) at fdfree+0x101 sys/kern/kern_descrip.c:1192 exit1(ffff800020e929d8,0,0,1) at exit1+0x32c sys/kern/kern_exit.c:197 sys_exit(ffff800020e929d8,ffff800023fad720,ffff800023fad770) at sys_exit+0x16 sys/kern/kern_exit.c:95 end trace frame: 0xffff800023fad7e0, count: 0 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{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic sbdrop ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff8221b14b) at panic+0x15c sys/kern/subr_prf.c:207 sbdrop(ffff800023fad2c8,ffff800023fad350,184) at sbdrop+0x3c6 sys/kern/uipc_socket2.c:953 sbflush(ffff800023fad2c8,ffff800023fad350) at sbflush+0x93 sys/kern/uipc_socket2.c:934 sbrelease(ffff800023fad2c8,ffff800023fad350) at sbrelease+0x2e sys/kern/uipc_socket2.c:525 sorflush(fffffd8066df1c98) at sorflush+0x14b sys/kern/uipc_socket.c:1131 sofree(fffffd8066df1c98,42) at sofree+0x147 sys/kern/uipc_socket.c:257 soclose(fffffd8066df1c98,0) at soclose+0x270 sys/kern/uipc_socket.c:338 soo_close(fffffd80673f5e60,ffff800020e929d8) at soo_close+0x40 fdrop(fffffd80673f5e60,ffff800020e929d8) at fdrop+0xc2 sys/kern/kern_descrip.c:1276 closef(fffffd80673f5e60,ffff800020e929d8) at closef+0x11c sys/kern/kern_descrip.c:1260 fdfree(ffff800020e929d8) at fdfree+0x101 sys/kern/kern_descrip.c:1192 exit1(ffff800020e929d8,0,0,1) at exit1+0x32c sys/kern/kern_exit.c:197 sys_exit(ffff800020e929d8,ffff800023fad720,ffff800023fad770) at sys_exit+0x16 sys/kern/kern_exit.c:95 syscall(ffff800023fad7f0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800023fad7f0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe1e70, count: -16 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800023fad110 rbx 0xffff800023fad1c0 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff8116c11f kprintf+0x16f r9 0x1 r10 0x2 r11 0x4cb646afc50f2ada r12 0x3000000008 r13 0xffff800023fad120 r14 0x100 r15 0x1 rip 0xffffffff8170fd68 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800023fad100 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=19382 stat=onproc flags process=1008 proc=2000 pri=32, usrpri=78, nice=20 forw=0xffffffffffffffff, list=0xffff800020e93d58,0xffff800020e93138 process=0xffff800020ec7738 user=0xffff800023fa8000, vmspace=0xfffffd807efff450 estcpu=28, cpticks=1, pctcpu=0.4 user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 80972 278651 68613 0 3 0x3000 suspend syz-executor.0 80972 283104 68613 0 7 0x4081000 syz-executor.0 80972 207156 68613 0 2 0x4081080 syz-executor.0 97561 118161 0 0 3 0x14200 bored sosplice 16197 93437 82659 0 3 0x82 nanosleep syz-executor.1 68613 233014 82659 0 3 0x82 nanosleep syz-executor.0 82659 136381 64052 0 3 0x82 thrsleep syz-fuzzer 82659 351529 64052 0 3 0x4000082 thrsleep syz-fuzzer 82659 469094 64052 0 3 0x4000082 thrsleep syz-fuzzer 82659 79325 64052 0 3 0x4000082 thrsleep syz-fuzzer 82659 71448 64052 0 3 0x4000082 thrsleep syz-fuzzer 82659 279893 64052 0 3 0x4000082 thrsleep syz-fuzzer 82659 66634 64052 0 3 0x4000082 thrsleep syz-fuzzer 82659 378456 64052 0 3 0x4000082 thrsleep syz-fuzzer 82659 364929 64052 0 3 0x4000082 kqread syz-fuzzer 82659 196858 64052 0 3 0x4000082 thrsleep syz-fuzzer 64052 510522 88320 0 3 0x10008a pause ksh 88320 196490 60325 0 3 0x92 select sshd 31495 465360 1 0 3 0x100083 ttyin getty 60325 327929 1 0 3 0x80 select sshd 48723 103990 60156 74 3 0x100092 bpf pflogd 60156 187361 1 0 3 0x80 netio pflogd 24421 86757 93338 73 3 0x100090 kqread syslogd 93338 446866 1 0 3 0x100082 netio syslogd 5448 492177 1 77 3 0x100090 poll dhclient 29032 179610 1 0 3 0x80 poll dhclient 39347 438655 0 0 3 0x14200 bored smr 78698 324093 0 0 2 0x14200 zerothread 6229 150623 0 0 3 0x14200 aiodoned aiodoned 53463 2231 0 0 3 0x14200 syncer update 99837 95160 0 0 3 0x14200 cleaner cleaner 67405 303012 0 0 3 0x14200 reaper reaper 37085 359158 0 0 3 0x14200 pgdaemon pagedaemon 38888 244773 0 0 3 0x14200 bored crynlk 28783 506115 0 0 3 0x14200 bored crypto 73939 453677 0 0 3 0x40014200 acpi0 acpi0 4067 144197 0 0 3 0x40014200 idle1 35536 18710 0 0 3 0x14200 bored softnet 1796 490466 0 0 3 0x14200 bored systqmp 68788 444610 0 0 3 0x14200 bored systq 41163 100554 0 0 3 0x40014200 bored softclock 19092 12534 0 0 3 0x40014200 idle0 1 298495 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9507 6419K 6790K 78643K 11387 0 pcb 13 8K 8K 78643K 96 0 rtable 97 3K 3K 78643K 323 0 ifaddr 68 14K 15K 78643K 133 0 counters 43 33K 34K 78643K 65 0 ioctlops 0 0K 4K 78643K 1493 0 iov 0 0K 12K 78643K 46 0 mount 1 1K 1K 78643K 1 0 vnodes 1220 77K 77K 78643K 1413 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 4 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 72 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 6 17K 25K 78643K 372 0 sigio 0 0K 0K 78643K 7 0 proc 63 63K 83K 78643K 468 0 subproc 32 2K 2K 78643K 34 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 58 0 in_multi 55 2K 3K 78643K 99 0 ether_multi 1 0K 0K 78643K 17 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 49 228K 228K 78643K 49 0 exec 0 0K 1K 78643K 232 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 133 71K 71K 78643K 2202 0 UVM aobj 14 2K 2K 78643K 14 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 79 0 NDP 10 0K 0K 78643K 26 0 temp 100 3036K 3104K 78643K 5215 0 kqueue 3 4K 14K 78643K 21 0 SYN cache 2 16K 16K 78643K 2 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 6 0 1 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 49 0 44 1 0 1 1 0 8 0 rtentry 112 52 0 12 2 0 2 2 0 8 0 unpcb 120 421 0 410 1 0 1 1 0 8 0 syncache 264 10 0 10 3 2 1 1 0 8 1 tcpqe 32 366 0 366 3 2 1 2 0 8 1 tcpcb 544 164 0 160 1 0 1 1 0 8 0 inpcb 280 769 0 758 2 0 2 2 0 8 1 rttmr 72 1 0 1 1 1 0 1 0 8 0 nd6 48 7 0 3 1 0 1 1 0 8 0 pkpcb 40 2 0 2 1 1 0 1 0 8 0 pffrag 232 5 0 4 1 0 1 1 0 482 0 pffrnode 88 5 0 4 1 0 1 1 0 8 0 pffrent 40 96 0 95 1 0 1 1 0 8 0 pfosfp 40 846 0 423 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfstitem 24 51 0 6 1 0 1 1 0 8 0 pfstkey 112 51 0 6 2 0 2 2 0 8 0 pfstate 328 51 0 6 4 0 4 4 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 218 0 42 12 0 12 12 0 8 0 art_table 32 219 0 42 2 0 2 2 0 8 0 art_node 16 51 0 14 1 0 1 1 0 8 0 sysvmsgpl 40 16 0 10 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 68 0 58 1 0 1 1 0 8 0 shmpl 112 12 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1915 0 507 89 0 89 89 0 8 0 ffsino 272 1915 0 507 96 1 95 95 0 8 0 nchpl 144 2603 0 1005 60 0 60 60 0 8 0 uvmvnodes 72 2099 0 0 39 0 39 39 0 8 0 vnodes 208 2099 0 0 111 0 111 111 0 8 0 namei 1024 7428 0 7428 2 1 1 1 0 8 1 percpumem 16 43 0 11 1 0 1 1 0 8 0 vcpupl 1984 5 0 0 1 0 1 1 0 8 0 vmpool 560 9 0 4 1 0 1 1 0 8 0 scxspl 192 7096 0 7096 10 9 1 7 0 8 1 plimitpl 152 57 0 49 1 0 1 1 0 8 0 sigapl 424 590 0 557 4 0 4 4 0 8 0 futexpl 56 6018 0 6017 1 0 1 1 0 8 0 knotepl 112 84 0 65 1 0 1 1 0 8 0 kqueuepl 144 99 0 97 1 0 1 1 0 8 0 pipelkpl 48 128 0 118 1 0 1 1 0 8 0 pipepl 120 256 0 237 1 0 1 1 0 8 0 fdescpl 496 572 0 555 3 0 3 3 0 8 0 filepl 152 4026 0 3918 7 2 5 6 0 8 0 lockfpl 104 126 0 125 1 0 1 1 0 8 0 lockfspl 48 41 0 40 1 0 1 1 0 8 0 sessionpl 112 18 0 7 1 0 1 1 0 8 0 pgrppl 48 18 0 7 1 0 1 1 0 8 0 ucredpl 96 283 0 272 1 0 1 1 0 8 0 zombiepl 144 558 0 557 2 1 1 1 0 8 0 processpl 984 590 0 557 6 1 5 5 0 8 0 procpl 624 1423 0 1379 5 0 5 5 0 8 1 sosppl 128 12 0 12 1 0 1 1 0 8 1 sockpl 400 1243 0 1215 6 2 4 4 0 8 1 mcl64k 65536 5 0 0 1 0 1 1 0 8 0 mcl16k 16384 2 0 0 1 0 1 1 0 8 0 mcl12k 12288 5 0 0 1 0 1 1 0 8 0 mcl9k 9216 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 6 0 0 1 0 1 1 0 8 0 mcl2k2 2112 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 248 0 0 30 0 30 30 0 8 0 mtagpl 80 48 0 0 1 0 1 1 0 8 0 mbufpl 256 305 0 0 17 0 17 17 0 8 0 bufpl 280 3919 0 133 271 0 271 271 0 8 0 anonpl 16 63965 0 49839 74 4 70 73 0 124 11 amapchunkpl 152 3015 0 2880 8 2 6 7 0 158 0 amappl16 192 2652 0 1883 51 7 44 51 0 8 5 amappl15 184 1 0 1 1 1 0 1 0 8 0 amappl14 176 25 0 19 1 0 1 1 0 8 0 amappl13 168 25 0 24 1 0 1 1 0 8 0 amappl12 160 25 0 19 1 0 1 1 0 8 0 amappl11 152 214 0 197 1 0 1 1 0 8 0 amappl10 144 199 0 193 1 0 1 1 0 8 0 amappl9 136 386 0 385 1 0 1 1 0 8 0 amappl8 128 366 0 329 2 0 2 2 0 8 0 amappl7 120 301 0 287 1 0 1 1 0 8 0 amappl6 112 182 0 175 2 1 1 1 0 8 0 amappl5 104 467 0 450 1 0 1 1 0 8 0 amappl4 96 487 0 457 1 0 1 1 0 8 0 amappl3 88 116 0 111 1 0 1 1 0 8 0 amappl2 80 3632 0 3554 2 0 2 2 0 8 0 amappl1 72 22098 0 21634 23 13 10 18 0 8 0 amappl 80 1671 0 1622 2 0 2 2 0 84 0 dma4096 4096 1 0 1 1 1 0 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 64 13 0 0 1 0 1 1 0 8 0 uaddrrnd 24 581 0 559 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 581 0 559 1 0 1 1 0 8 0 vmmpekpl 168 8263 0 8231 2 0 2 2 0 8 0 vmmpepl 168 75483 0 73430 119 22 97 106 0 357 7 vmsppl 368 580 0 559 2 0 2 2 0 8 0 pdppl 4096 1170 0 1123 6 0 6 6 0 8 0 pvpl 32 207032 0 189699 180 6 174 177 0 265 34 pmappl 232 580 0 559 2 0 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 278 0 7 8 0 8 8 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffffffff8251cff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:352 x86_ipi_handler() at x86_ipi_handler+0xc6 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 __mp_lock(ffffffff82640950) at __mp_lock+0x127 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82640950) at __mp_lock+0x127 sys/kern/kern_lock.c:147 single_thread_check(ffff800020e93d58,0) at single_thread_check+0x13a sys/kern/kern_sig.c:1917 userret(ffff800020e93d58) at userret+0x345 sys/kern/kern_sig.c:1891 syscall(ffff800023171420) at syscall+0x55f mi_syscall_return sys/sys/syscall_mi.h:129 [inline] syscall(ffff800023171420) at syscall+0x55f sys/arch/amd64/amd64/trap.c:592 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xf52db778c70, count: 7 ddb{0}> trace x86_ipi_db(ffffffff8251cff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:352 x86_ipi_handler() at x86_ipi_handler+0xc6 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 __mp_lock(ffffffff82640950) at __mp_lock+0x127 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82640950) at __mp_lock+0x127 sys/kern/kern_lock.c:147 single_thread_check(ffff800020e93d58,0) at single_thread_check+0x13a sys/kern/kern_sig.c:1917 userret(ffff800020e93d58) at userret+0x345 sys/kern/kern_sig.c:1891 syscall(ffff800023171420) at syscall+0x55f mi_syscall_return sys/sys/syscall_mi.h:129 [inline] syscall(ffff800023171420) at syscall+0x55f sys/arch/amd64/amd64/trap.c:592 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xf52db778c70, count: -8 ddb{0}> machine ddbcpu 1 Stopped at db_enter+0x18: addq $0x8,%rsp db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff8221b14b) at panic+0x15c sys/kern/subr_prf.c:207 sbdrop(ffff800023fad2c8,ffff800023fad350,184) at sbdrop+0x3c6 sys/kern/uipc_socket2.c:953 sbflush(ffff800023fad2c8,ffff800023fad350) at sbflush+0x93 sys/kern/uipc_socket2.c:934 sbrelease(ffff800023fad2c8,ffff800023fad350) at sbrelease+0x2e sys/kern/uipc_socket2.c:525 sorflush(fffffd8066df1c98) at sorflush+0x14b sys/kern/uipc_socket.c:1131 sofree(fffffd8066df1c98,42) at sofree+0x147 sys/kern/uipc_socket.c:257 soclose(fffffd8066df1c98,0) at soclose+0x270 sys/kern/uipc_socket.c:338 soo_close(fffffd80673f5e60,ffff800020e929d8) at soo_close+0x40 fdrop(fffffd80673f5e60,ffff800020e929d8) at fdrop+0xc2 sys/kern/kern_descrip.c:1276 closef(fffffd80673f5e60,ffff800020e929d8) at closef+0x11c sys/kern/kern_descrip.c:1260 fdfree(ffff800020e929d8) at fdfree+0x101 sys/kern/kern_descrip.c:1192 exit1(ffff800020e929d8,0,0,1) at exit1+0x32c sys/kern/kern_exit.c:197 sys_exit(ffff800020e929d8,ffff800023fad720,ffff800023fad770) at sys_exit+0x16 sys/kern/kern_exit.c:95 end trace frame: 0xffff800023fad7e0, count: 0 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff8221b14b) at panic+0x15c sys/kern/subr_prf.c:207 sbdrop(ffff800023fad2c8,ffff800023fad350,184) at sbdrop+0x3c6 sys/kern/uipc_socket2.c:953 sbflush(ffff800023fad2c8,ffff800023fad350) at sbflush+0x93 sys/kern/uipc_socket2.c:934 sbrelease(ffff800023fad2c8,ffff800023fad350) at sbrelease+0x2e sys/kern/uipc_socket2.c:525 sorflush(fffffd8066df1c98) at sorflush+0x14b sys/kern/uipc_socket.c:1131 sofree(fffffd8066df1c98,42) at sofree+0x147 sys/kern/uipc_socket.c:257 soclose(fffffd8066df1c98,0) at soclose+0x270 sys/kern/uipc_socket.c:338 soo_close(fffffd80673f5e60,ffff800020e929d8) at soo_close+0x40 fdrop(fffffd80673f5e60,ffff800020e929d8) at fdrop+0xc2 sys/kern/kern_descrip.c:1276 closef(fffffd80673f5e60,ffff800020e929d8) at closef+0x11c sys/kern/kern_descrip.c:1260 fdfree(ffff800020e929d8) at fdfree+0x101 sys/kern/kern_descrip.c:1192 exit1(ffff800020e929d8,0,0,1) at exit1+0x32c sys/kern/kern_exit.c:197 sys_exit(ffff800020e929d8,ffff800023fad720,ffff800023fad770) at sys_exit+0x16 sys/kern/kern_exit.c:95 syscall(ffff800023fad7f0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800023fad7f0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe1e70, count: -16