panic: tcp_output Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 235147 60194 32767 0x10 0 1 syz-executor.6 * 69609 60194 32767 0x10 0x4000000 0 syz-executor.6 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8257e05d) at panic+0x177 sys/kern/subr_prf.c:198 tcp_output(ffff800000d1f688) at tcp_output+0x2cd2 sys/netinet/tcp_output.c:727 tcp_send(fffffd8066ea17d0,fffffd8069530c00,0,fffffd80643a2300) at tcp_send+0xc4 sys/netinet/tcp_usrreq.c:944 sosend(fffffd8066ea17d0,0,ffff80002e4de130,0,fffffd80643a2300,0) at sosend+0x62a pru_send sys/sys/protosw.h:331 [inline] sosend(fffffd8066ea17d0,0,ffff80002e4de130,0,fffffd80643a2300,0) at sosend+0x62a sys/kern/uipc_socket.c:646 sendit(ffff8000212b1a40,3,ffff80002e4de2b0,0,ffff80002e4de3a0) at sendit+0x65d sys/kern/uipc_syscalls.c:694 sys_sendmsg(ffff8000212b1a40,ffff80002e4de358,ffff80002e4de3a0) at sys_sendmsg+0x198 sys/kern/uipc_syscalls.c:601 syscall(ffff80002e4de420) at syscall+0x4c3 mi_syscall sys/sys/syscall_mi.h:101 [inline] syscall(ffff80002e4de420) at syscall+0x4c3 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x8606537bcb0, 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: tcp_output ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8257e05d) at panic+0x177 sys/kern/subr_prf.c:198 tcp_output(ffff800000d1f688) at tcp_output+0x2cd2 sys/netinet/tcp_output.c:727 tcp_send(fffffd8066ea17d0,fffffd8069530c00,0,fffffd80643a2300) at tcp_send+0xc4 sys/netinet/tcp_usrreq.c:944 sosend(fffffd8066ea17d0,0,ffff80002e4de130,0,fffffd80643a2300,0) at sosend+0x62a pru_send sys/sys/protosw.h:331 [inline] sosend(fffffd8066ea17d0,0,ffff80002e4de130,0,fffffd80643a2300,0) at sosend+0x62a sys/kern/uipc_socket.c:646 sendit(ffff8000212b1a40,3,ffff80002e4de2b0,0,ffff80002e4de3a0) at sendit+0x65d sys/kern/uipc_syscalls.c:694 sys_sendmsg(ffff8000212b1a40,ffff80002e4de358,ffff80002e4de3a0) at sys_sendmsg+0x198 sys/kern/uipc_syscalls.c:601 syscall(ffff80002e4de420) at syscall+0x4c3 mi_syscall sys/sys/syscall_mi.h:101 [inline] syscall(ffff80002e4de420) at syscall+0x4c3 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x8606537bcb0, count: -9 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff80002e4ddd90 rbx 0xffffffff829b9b8f cpu_info_full_primary+0x2b8f rdx 0 rcx 0 rax 0xffff8000212b1a40 r8 0x101010101010101 r9 0x8080808080808080 r10 0xa4e1ba01d7aaaacf r11 0xc98d3024b414c0c6 r12 0xffffffff829b9990 cpu_info_full_primary+0x2990 r13 0 r14 0 r15 0x1 rip 0xffffffff824835f8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80002e4ddd80 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.6) pid=69609 stat=onproc flags process=10 proc=4000000 pri=32, usrpri=82, nice=20 forw=0xffffffffffffffff, list=0xffff8000212b1260,0xffff80002a643510 process=0xffff80002129adc8 user=0xffff80002e4d9000, vmspace=0xfffffd806c930010 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 60194 235147 70468 32767 7 0x10 syz-executor.6 *60194 69609 70468 32767 7 0x4000010 syz-executor.6 60194 42200 70468 32767 2 0x4000010 syz-executor.6 60194 437320 70468 32767 2 0x4000010 syz-executor.6 60194 286674 70468 32767 2 0x4000010 syz-executor.6 60194 360042 70468 32767 2 0x4000010 syz-executor.6 21432 366959 81087 32767 3 0x90 nanoslp syz-executor.2 21432 469541 81087 32767 3 0x4000090 fsleep syz-executor.2 21432 280750 81087 32767 3 0x4000090 fsleep syz-executor.2 49735 402860 21912 32767 2 0x10 syz-executor.5 49735 366334 21912 32767 3 0x4000090 fsleep syz-executor.5 88492 278415 27665 32767 2 0x10 syz-executor.3 88492 90182 27665 32767 3 0x4000090 fsleep syz-executor.3 19112 84032 72360 32767 2 0x10 syz-executor.7 19112 449609 72360 32767 2 0x4000010 syz-executor.7 19112 370341 72360 32767 3 0x4000090 fsleep syz-executor.7 77217 257917 94634 32767 2 0x10 syz-executor.1 77217 266558 94634 32767 2 0x4000010 syz-executor.1 77217 157514 94634 32767 2 0x4000010 syz-executor.1 55752 43057 25492 32767 2 0x10 syz-executor.4 55752 410603 25492 32767 3 0x4000090 fsleep syz-executor.4 55752 366877 25492 32767 3 0x4000090 fsleep syz-executor.4 70590 442990 68604 32767 3 0x90 nanoslp syz-executor.0 70590 256801 68604 32767 3 0x4000090 fsleep syz-executor.0 70590 404743 68604 32767 3 0x4000090 fsleep syz-executor.0 70590 199914 68604 32767 3 0x4000090 netcon syz-executor.0 81087 473452 5546 32767 3 0x90 nanoslp syz-executor.2 5546 369357 9344 0 3 0x82 wait syz-executor.2 25492 253114 82234 32767 3 0x90 nanoslp syz-executor.4 82234 58400 9344 0 3 0x82 wait syz-executor.4 21912 295934 70244 32767 3 0x90 nanoslp syz-executor.5 70244 401021 9344 0 3 0x82 wait syz-executor.5 70468 302471 66172 32767 3 0x90 nanoslp syz-executor.6 66172 30319 9344 0 3 0x82 wait syz-executor.6 83201 515400 0 0 3 0x14200 bored sosplice 72360 34891 81900 32767 2 0x10 syz-executor.7 81900 357343 9344 0 3 0x82 wait syz-executor.7 27665 323174 52433 32767 3 0x90 nanoslp syz-executor.3 52433 326562 9344 0 3 0x82 wait syz-executor.3 94634 430080 94688 32767 3 0x90 nanoslp syz-executor.1 68604 486468 14606 32767 3 0x90 nanoslp syz-executor.0 94688 312696 9344 0 3 0x82 wait syz-executor.1 14606 154873 9344 0 3 0x82 wait syz-executor.0 9344 78252 5595 0 3 0x82 wait syz-fuzzer 9344 195525 5595 0 3 0x4000082 thrsleep syz-fuzzer 9344 291183 5595 0 3 0x4000082 thrsleep syz-fuzzer 9344 449802 5595 0 3 0x4000082 wait syz-fuzzer 9344 505465 5595 0 3 0x4000082 wait syz-fuzzer 9344 202500 5595 0 3 0x4000082 thrsleep syz-fuzzer 9344 204110 5595 0 3 0x4000082 wait syz-fuzzer 9344 464158 5595 0 3 0x4000082 wait syz-fuzzer 9344 195470 5595 0 3 0x4000082 thrsleep syz-fuzzer 9344 294269 5595 0 3 0x4000082 thrsleep syz-fuzzer 9344 212304 5595 0 3 0x4000082 kqread syz-fuzzer 9344 185328 5595 0 3 0x4000082 wait syz-fuzzer 9344 164458 5595 0 3 0x4000082 wait syz-fuzzer 9344 63338 5595 0 3 0x4000082 wait syz-fuzzer 9344 405874 5595 0 3 0x4000082 thrsleep syz-fuzzer 9344 167949 5595 0 3 0x4000082 thrsleep syz-fuzzer 5595 308585 11694 0 3 0x10008a sigsusp ksh 11694 215750 9509 0 3 0x9a kqread sshd 27142 95871 1 0 3 0x100083 ttyin getty 9509 249876 1 0 3 0x88 kqread sshd 13564 91048 12331 73 3 0x1100090 kqread syslogd 12331 430094 1 0 3 0x100082 netio syslogd 49840 327076 1 0 3 0x100080 kqread resolvd 98987 138437 98088 77 3 0x100092 kqread dhcpleased 79509 445610 98088 77 3 0x100092 kqread dhcpleased 98088 365370 1 0 3 0x80 kqread dhcpleased 24211 224120 0 0 3 0x14200 bored smr 96243 58572 0 0 2 0x14200 zerothread 33005 131768 0 0 3 0x14200 aiodoned aiodoned 34999 152063 0 0 3 0x14200 syncer update 38377 174340 0 0 3 0x14200 cleaner cleaner 99879 348544 0 0 3 0x14200 reaper reaper 30561 67047 0 0 3 0x14200 pgdaemon pagedaemon 11890 167795 0 0 3 0x14200 bored viomb 56338 17816 0 0 3 0x40014200 acpi0 acpi0 51262 406935 0 0 3 0x40014200 idle1 59116 382693 0 0 3 0x14200 bored softnet 73392 75853 0 0 3 0x14200 bored softnet 15190 45669 0 0 3 0x14200 bored softnet 8161 165959 0 0 3 0x14200 bored softnet 48899 89023 0 0 3 0x14200 bored systqmp 16923 433327 0 0 3 0x14200 bored systq 28880 496810 0 0 3 0x40014200 bored softclock 41312 330762 0 0 3 0x40014200 idle0 1 57043 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 60194 (syz-executor.6) thread 0xffff8000212b1a40 (69609) exclusive rwlock netlock r = 0 (0xffffffff829ae840) #0 witness_lock+0x44d #1 sosend+0x500 sys/kern/uipc_socket.c:632 #2 sendit+0x65d sys/kern/uipc_syscalls.c:694 #3 sys_sendmsg+0x198 sys/kern/uipc_syscalls.c:601 #4 syscall+0x4c3 mi_syscall sys/sys/syscall_mi.h:101 [inline] #4 syscall+0x4c3 sys/arch/amd64/amd64/trap.c:585 #5 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10211 6412K 6419K 78643K 11327 0 pcb 13 16K 20K 78643K 19 0 rtable 246 7K 7K 78643K 1132 0 ifaddr 82 17K 17K 78643K 142 0 sysctl 3 1K 1K 78643K 3 0 counters 56 35K 35K 78643K 72 0 ioctlops 0 0K 2K 78643K 196 0 iov 0 0K 28K 78643K 2363 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1271 79K 79K 78643K 9024 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 164 0 VM map 2 1K 1K 78643K 2 0 sem 12 1K 1K 78643K 2965 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 26 97K 125K 78643K 12476 0 sigio 0 0K 0K 78643K 551 0 proc 56 78K 103K 78643K 1573 0 subproc 104 6K 6K 78643K 208 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 926 0 in_multi 99 6K 7K 78643K 359 0 ether_multi 1 0K 0K 78643K 43 0 mrt 2 0K 0K 78643K 2 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 247 1102K 1102K 78643K 247 0 exec 0 0K 2K 78643K 3261 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 62K 78643K 8 0 UVM amap 338 87K 102K 78643K 77360 0 UVM aobj 131 8K 8K 78643K 136 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 392 0 NDP 11 0K 2K 78643K 51 0 temp 124 4726K 4790K 78643K 33010 0 kqueue 14 22K 28K 78643K 1322 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 976 0 971 11 10 1 4 0 8 0 rtentry 112 213 0 97 4 0 4 4 0 8 0 unpcb 144 10321 0 10307 105 99 6 9 0 8 5 syncache 296 150 0 150 25 25 0 1 0 8 0 tcpqe 32 287 0 287 21 21 0 1 0 8 0 tcpcb 768 5523 0 5510 169 158 11 38 0 8 7 arp 120 36 0 18 1 0 1 1 0 8 0 ipq 40 12 0 11 6 5 1 1 0 8 0 ipqe 40 106 0 105 6 5 1 1 0 8 0 inpcb 368 11464 0 11450 165 155 10 24 0 8 7 nd6 48 60 0 30 1 0 1 1 0 8 0 kcovpl 48 16 0 8 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 857 0 386 31 1 30 30 0 8 0 art_table 32 858 0 386 4 0 4 4 0 8 0 art_node 16 212 0 106 1 0 1 1 0 8 0 sysvmsgpl 40 9 0 7 1 0 1 1 0 8 0 semupl 112 4 0 4 1 1 0 1 0 8 0 semapl 112 2963 0 2953 1 0 1 1 0 8 0 shmpl 112 133 0 5 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 23715 0 22239 93 0 93 93 0 8 0 ffsino 272 23715 0 22239 99 0 99 99 0 8 0 nchpl 144 41055 0 39412 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 158789 0 158789 4 3 1 2 0 8 1 percpumem 16 48 0 8 1 0 1 1 0 8 0 kstatmem 264 38 0 16 2 0 2 2 0 8 0 scxspl 216 111156 0 111156 34 33 1 8 0 8 1 plimitpl 152 3055 0 3033 12 11 1 2 0 8 0 sigapl 424 12742 0 12687 7 0 7 7 0 8 0 futexpl 64 115969 0 115960 8 7 1 1 0 8 0 knotepl 120 865 0 0 13 2 11 11 0 8 0 kqueuepl 216 4178 0 4168 69 68 1 10 0 8 0 pipepl 320 9057 0 9029 159 151 8 15 0 8 5 fdescpl 496 12724 0 12687 7 2 5 6 0 8 0 filepl 152 125648 0 125399 203 186 17 23 0 8 6 lockfpl 104 1359 0 1357 1 0 1 1 0 8 0 lockfspl 48 473 0 471 1 0 1 1 0 8 0 sessionpl 144 31 0 15 1 0 1 1 0 8 0 pgrppl 48 187 0 171 1 0 1 1 0 8 0 ucredpl 104 40132 0 40114 1 0 1 1 0 8 0 zombiepl 144 12687 0 12687 1 0 1 1 0 8 1 processpl 1064 12742 0 12687 5 1 4 5 0 8 0 procpl 672 37931 0 37843 25 17 8 9 0 8 0 sosppl 168 196 0 196 18 18 0 1 0 8 0 sockpl 488 23187 0 23154 454 441 13 35 0 8 8 mcl64k 65536 26 0 0 4 1 3 3 0 8 0 mcl16k 16384 29 0 0 4 1 3 3 0 8 0 mcl12k 12288 49 0 0 2 0 2 2 0 8 0 mcl9k 9216 18 0 0 2 0 2 2 0 8 0 mcl8k 8192 33 0 0 3 0 3 3 0 8 0 mcl4k 4096 41 0 0 4 0 4 4 0 8 0 mcl2k2 2112 14 0 0 1 0 1 1 0 8 0 mcl2k 2048 465 0 0 40 13 27 40 0 8 2 mtagpl 96 4 0 0 1 0 1 1 0 8 0 mbufpl 256 947 0 0 31 0 31 31 0 8 0 bufpl 288 24703 0 18370 453 0 453 453 0 8 0 anonpl 24 2631873 0 2618347 323 222 101 126 0 186 1 amapchunkpl 152 244352 0 243622 124 95 29 43 0 158 0 amappl16 200 41734 0 41362 224 198 26 39 0 8 5 amappl15 192 2937 0 2929 1 0 1 1 0 8 0 amappl14 184 4091 0 4082 1 0 1 1 0 8 0 amappl13 176 583 0 581 1 0 1 1 0 8 0 amappl12 168 2015 0 2007 1 0 1 1 0 8 0 amappl11 160 107 0 92 1 0 1 1 0 8 0 amappl10 152 3062 0 3055 1 0 1 1 0 8 0 amappl9 144 2401 0 2395 1 0 1 1 0 8 0 amappl8 136 1893 0 1780 4 0 4 4 0 8 0 amappl7 128 1172 0 1145 1 0 1 1 0 8 0 amappl6 120 2159 0 2142 2 1 1 2 0 8 0 amappl5 112 12099 0 12072 1 0 1 1 0 8 0 amappl4 104 4112 0 4079 2 0 2 2 0 8 0 amappl3 96 41107 0 41032 2 0 2 2 0 8 0 amappl2 88 2112 0 2075 2 1 1 2 0 8 0 amappl1 80 322928 0 322115 22 5 17 20 0 8 0 amappl 88 76114 0 75902 6 1 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 135 0 5 3 0 3 3 0 8 0 uaddrrnd 24 12724 0 12687 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 12724 0 12687 1 0 1 1 0 8 0 vmmpekpl 168 133531 0 133474 5 1 4 4 0 8 0 vmmpepl 168 1263067 0 1260037 300 166 134 142 0 357 2 vmsppl 368 12723 0 12687 4 0 4 4 0 8 0 rwobjpl 56 325656 0 318095 121 11 110 110 0 8 0 pdppl 4096 25455 0 25374 333 252 81 95 0 8 0 pvpl 32 5028003 0 5008797 547 367 180 255 0 265 2 pmappl 248 12723 0 12687 4 1 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 1275 0 428 25 0 25 25 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8257e05d) at panic+0x177 sys/kern/subr_prf.c:198 tcp_output(ffff800000d1f688) at tcp_output+0x2cd2 sys/netinet/tcp_output.c:727 tcp_send(fffffd8066ea17d0,fffffd8069530c00,0,fffffd80643a2300) at tcp_send+0xc4 sys/netinet/tcp_usrreq.c:944 sosend(fffffd8066ea17d0,0,ffff80002e4de130,0,fffffd80643a2300,0) at sosend+0x62a pru_send sys/sys/protosw.h:331 [inline] sosend(fffffd8066ea17d0,0,ffff80002e4de130,0,fffffd80643a2300,0) at sosend+0x62a sys/kern/uipc_socket.c:646 sendit(ffff8000212b1a40,3,ffff80002e4de2b0,0,ffff80002e4de3a0) at sendit+0x65d sys/kern/uipc_syscalls.c:694 sys_sendmsg(ffff8000212b1a40,ffff80002e4de358,ffff80002e4de3a0) at sys_sendmsg+0x198 sys/kern/uipc_syscalls.c:601 syscall(ffff80002e4de420) at syscall+0x4c3 mi_syscall sys/sys/syscall_mi.h:101 [inline] syscall(ffff80002e4de420) at syscall+0x4c3 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x8606537bcb0, count: -9 ddb{0}> machine ddbcpu 1