’gÓ˙O ‡–Ÿ’gÓ˙O ‡–Ÿpanic: syn_cache_insert: cacheoverflow: impossible Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *321710 79369 0 0x14000 0x200 0 softnet db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821da4eb) at panic+0x15c sys/kern/subr_prf.c:207 syn_cache_insert(fffffd805315ee78,ffff8000009f4880) at syn_cache_insert+0x944 sys/netinet/tcp_input.c:3235 syn_cache_add(ffff80001d708268,ffff80001d708218,fffffd80626f0cc4,14,fffffd805e56e4b0,fffffd80626f0c00) at syn_cache_add+0x66b tcp_input(ffff80001d708568,ffff80001d708574,6,2) at tcp_input+0x37d8 sys/netinet/tcp_input.c:830 ip_deliver(ffff80001d708568,ffff80001d708574,6,2) at ip_deliver+0x2e3 sys/netinet/ip_input.c:668 ip_ours(ffff80001d708568,ffff80001d708574,2,0) at ip_ours+0x4fe sys/netinet/ip_input.c:563 ip_input_if(ffff80001d708568,ffff80001d708574,4,0,ffff800000677800) at ip_input_if+0x571 ipv4_input(ffff800000677800,fffffd80626f0c00) at ipv4_input+0x48 sys/netinet/ip_input.c:215 if_input_local(ffff800000677800,fffffd80626f0c00,2) at if_input_local+0xf9 sys/net/if.c:775 loinput(ffff800000677800,fffffd80626f0c00,0) at loinput+0x4f sys/net/if_loop.c:239 if_input_process(ffff800000677800,ffff80001d7086b8) at if_input_process+0xf8 if_ih_input sys/net/if.c:908 [inline] if_input_process(ffff800000677800,ffff80001d7086b8) at if_input_process+0xf8 sys/net/if.c:942 ifiq_process(ffff800000677bb8) at ifiq_process+0x80 sys/net/ifq.c:646 taskq_thread(ffff8000000290c0) at taskq_thread+0x52 sys/kern/kern_task.c:370 end trace frame: 0x0, count: 1 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 syn_cache_insert: cacheoverflow: impossible ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821da4eb) at panic+0x15c sys/kern/subr_prf.c:207 syn_cache_insert(fffffd805315ee78,ffff8000009f4880) at syn_cache_insert+0x944 sys/netinet/tcp_input.c:3235 syn_cache_add(ffff80001d708268,ffff80001d708218,fffffd80626f0cc4,14,fffffd805e56e4b0,fffffd80626f0c00) at syn_cache_add+0x66b tcp_input(ffff80001d708568,ffff80001d708574,6,2) at tcp_input+0x37d8 sys/netinet/tcp_input.c:830 ip_deliver(ffff80001d708568,ffff80001d708574,6,2) at ip_deliver+0x2e3 sys/netinet/ip_input.c:668 ip_ours(ffff80001d708568,ffff80001d708574,2,0) at ip_ours+0x4fe sys/netinet/ip_input.c:563 ip_input_if(ffff80001d708568,ffff80001d708574,4,0,ffff800000677800) at ip_input_if+0x571 ipv4_input(ffff800000677800,fffffd80626f0c00) at ipv4_input+0x48 sys/netinet/ip_input.c:215 if_input_local(ffff800000677800,fffffd80626f0c00,2) at if_input_local+0xf9 sys/net/if.c:775 loinput(ffff800000677800,fffffd80626f0c00,0) at loinput+0x4f sys/net/if_loop.c:239 if_input_process(ffff800000677800,ffff80001d7086b8) at if_input_process+0xf8 if_ih_input sys/net/if.c:908 [inline] if_input_process(ffff800000677800,ffff80001d7086b8) at if_input_process+0xf8 sys/net/if.c:942 ifiq_process(ffff800000677bb8) at ifiq_process+0x80 sys/net/ifq.c:646 taskq_thread(ffff8000000290c0) at taskq_thread+0x52 sys/kern/kern_task.c:370 end trace frame: 0x0, count: -14 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80001d707de0 rbx 0xffff80001d707e90 rdx 0x2 rcx 0 rax 0x1 r8 0xffffffff81726bbf kprintf+0x15f r9 0x1 r10 0x2 r11 0x2606d048ad9697d4 r12 0x3000000008 r13 0xffff80001d707df0 r14 0x100 r15 0x1 rip 0xffffffff82065928 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001d707dd0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (softnet) pid=321710 stat=onproc flags process=14000 proc=200 pri=32, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff80001d6e2110,0xffff80001d6e19d0 process=0xffff8000ffffe730 user=0xffff80001d703000, vmspace=0xffffffff8257aa00 estcpu=0, cpticks=0, pctcpu=0.1 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 94068 284195 99811 0 2 0 syz-executor.1 94068 32432 99811 0 3 0x4000080 netcon2 syz-executor.1 7482 502951 0 0 3 0x14200 bored sosplice 99811 117455 3295 0 3 0x82 nanosleep syz-executor.1 25279 454537 3295 0 2 0x2 syz-executor.0 3295 382100 46413 0 3 0x82 kqread syz-fuzzer 3295 428677 46413 0 3 0x4000082 nanosleep syz-fuzzer 3295 406374 46413 0 3 0x4000082 thrsleep syz-fuzzer 3295 349533 46413 0 3 0x4000082 thrsleep syz-fuzzer 3295 269389 46413 0 3 0x4000082 thrsleep syz-fuzzer 3295 476156 46413 0 3 0x4000082 thrsleep syz-fuzzer 3295 417950 46413 0 3 0x4000082 thrsleep syz-fuzzer 46413 288085 57189 0 3 0x10008a pause ksh 57189 151413 74860 0 3 0x92 select sshd 94399 376764 1 0 3 0x100083 ttyin getty 74860 435493 1 0 3 0x80 select sshd 80216 230494 41151 73 3 0x100090 kqread syslogd 41151 191295 1 0 3 0x100082 netio syslogd 14560 411757 1 77 3 0x100090 poll dhclient 80115 100099 1 0 3 0x80 poll dhclient 91409 47474 0 0 3 0x14200 bored smr 62199 168848 0 0 2 0x14200 zerothread 64650 48919 0 0 3 0x14200 aiodoned aiodoned 72220 194003 0 0 3 0x14200 syncer update 53598 50051 0 0 3 0x14200 cleaner cleaner 69321 231133 0 0 3 0x14200 reaper reaper 93327 75744 0 0 3 0x14200 pgdaemon pagedaemon 12308 306797 0 0 3 0x14200 bored crynlk 4490 135049 0 0 3 0x14200 bored crypto 98674 107107 0 0 3 0x40014200 acpi0 acpi0 *79369 321710 0 0 7 0x14200 softnet 41955 434817 0 0 3 0x14200 bored systqmp 55361 191284 0 0 3 0x14200 bored systq 10789 456552 0 0 3 0x40014200 bored softclock 96419 275418 0 0 3 0x40014200 idle0 1 397675 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 9516 6411K 7435K 78643K 12033 0 pcb 13 8K 8K 78643K 58 0 rtable 115 5K 7K 78643K 364 0 ifaddr 77 14K 15K 78643K 141 0 sysctl 2 0K 0K 78643K 2 0 counters 21 16K 16K 78643K 28 0 ioctlops 0 0K 4K 78643K 41 0 iov 0 0K 16K 78643K 62 0 mount 1 1K 1K 78643K 1 0 vnodes 1220 77K 77K 78643K 1605 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 3 0 VM map 2 0K 0K 78643K 2 0 sem 12 0K 0K 78643K 78 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 195K 288K 78643K 12938 0 file desc 5 13K 25K 78643K 356 0 sigio 0 0K 0K 78643K 2 0 proc 50 38K 63K 78643K 376 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 202 0 in_multi 40 2K 2K 78643K 82 0 ether_multi 1 0K 0K 78643K 11 0 mrt 0 0K 0K 78643K 2 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 43 201K 201K 78643K 43 0 exec 0 0K 1K 78643K 199 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 132 55K 56K 78643K 1679 0 UVM aobj 12 2K 3K 78643K 16 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 38 0 NDP 13 0K 0K 78643K 24 0 temp 108 3034K 3098K 78643K 7080 0 kqueue 3 4K 8K 78643K 7 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 arp 64 6 0 0 1 0 1 1 0 8 0 rtpcb 80 33 0 31 1 0 1 1 0 8 0 rtentry 112 48 0 4 2 0 2 2 0 8 0 unpcb 120 203 0 195 1 0 1 1 0 8 0 syncache 264 5 0 4 2 1 1 1 0 8 0 tcpqe 32 134 0 134 1 1 0 1 0 8 0 tcpcb 544 204 0 198 1 0 1 1 0 8 0 ipq 40 2 0 1 1 0 1 1 0 8 0 ipqe 40 47 0 46 1 0 1 1 0 8 0 inpcb 280 413 0 404 2 1 1 2 0 8 0 rttmr 72 1 0 1 1 1 0 1 0 8 0 nd6 48 8 0 2 1 0 1 1 0 8 0 ppxss 1128 2 0 2 1 1 0 1 0 8 0 pfstscr 40 2 0 0 1 0 1 1 0 8 0 pfrktable 1344 42 0 40 1 0 1 1 0 8 0 pftag 88 5 0 4 1 0 1 1 0 8 0 pfqueue 264 2 0 0 1 0 1 1 0 8 0 pfstitem 24 1 0 0 1 0 1 1 0 8 0 pfstkey 112 1 0 0 1 0 1 1 0 8 0 pfstate 328 1 0 0 1 0 1 1 0 8 0 pfrule 1360 8 0 7 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 216 0 28 14 1 13 13 0 8 1 art_table 32 217 0 28 2 0 2 2 0 8 0 art_node 16 47 0 7 1 0 1 1 0 8 0 sysvmsgpl 40 2 0 0 1 0 1 1 0 8 0 semapl 112 76 0 66 1 0 1 1 0 8 0 shmpl 112 14 0 4 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1900 0 505 88 0 88 88 0 8 0 ffsino 240 1900 0 505 83 0 83 83 0 8 0 nchpl 144 2644 0 1042 60 0 60 60 0 8 0 uvmvnodes 72 2256 0 0 42 0 42 42 0 8 0 vnodes 208 2256 0 0 119 0 119 119 0 8 0 namei 1024 7038 0 7038 2 1 1 1 0 8 1 vcpupl 1984 3 0 0 1 0 1 1 0 8 0 vmpool 528 3 0 0 1 0 1 1 0 8 0 pfiaddrpl 120 13 0 12 1 0 1 1 0 8 0 scxspl 192 8805 0 8805 1 0 1 1 0 8 1 plimitpl 152 43 0 36 1 0 1 1 0 8 0 sigapl 424 543 0 514 4 0 4 4 0 8 0 futexpl 56 7286 0 7286 2 1 1 1 0 8 1 knotepl 112 66 0 47 1 0 1 1 0 8 0 kqueuepl 144 49 0 46 1 0 1 1 0 8 0 pipelkpl 16 108 0 98 1 0 1 1 0 8 0 pipepl 120 216 0 197 1 0 1 1 0 8 0 fdescpl 432 528 0 514 2 0 2 2 0 8 0 filepl 120 3220 0 3121 4 0 4 4 0 8 0 lockfpl 104 95 0 94 1 0 1 1 0 8 0 lockfspl 48 34 0 33 1 0 1 1 0 8 0 sessionpl 112 17 0 7 1 0 1 1 0 8 0 pgrppl 48 19 0 9 1 0 1 1 0 8 0 ucredpl 96 327 0 320 1 0 1 1 0 8 0 zombiepl 144 514 0 514 1 0 1 1 0 8 1 processpl 920 543 0 514 4 0 4 4 0 8 0 procpl 624 950 0 914 5 1 4 4 0 8 0 sosppl 128 5 0 5 2 1 1 1 0 8 1 sockpl 400 649 0 630 5 2 3 4 0 8 1 mcl64k 65536 55 0 55 2 1 1 1 0 8 1 mcl16k 16384 6 0 6 2 1 1 1 0 8 1 mcl12k 12288 14 0 14 2 1 1 1 0 8 1 mcl9k 9216 7 0 7 2 1 1 1 0 8 1 mcl8k 8192 18 0 18 2 1 1 1 0 8 1 mcl4k 4096 33 0 33 2 1 1 1 0 8 1 mcl2k2 2112 2 0 2 2 2 0 1 0 8 0 mcl2k 2048 74762 0 74713 16 8 8 13 0 8 1 mtagpl 80 189 0 9 5 1 4 4 0 8 0 mbufpl 256 121156 0 120709 33 4 29 29 0 8 0 bufpl 280 4082 0 135 282 0 282 282 0 8 0 anonpl 16 78547 0 63209 91 13 78 78 0 107 16 amapchunkpl 152 2180 0 2052 9 0 9 9 0 158 1 amappl16 192 3652 0 2791 73 18 55 55 0 8 11 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 34 0 28 1 0 1 1 0 8 0 amappl13 168 34 0 30 1 0 1 1 0 8 0 amappl12 160 12 0 10 1 0 1 1 0 8 0 amappl11 152 48 0 39 1 0 1 1 0 8 0 amappl10 144 170 0 166 1 0 1 1 0 8 0 amappl9 136 532 0 527 1 0 1 1 0 8 0 amappl8 128 495 0 452 2 0 2 2 0 8 0 amappl7 120 258 0 246 1 0 1 1 0 8 0 amappl6 112 29 0 24 1 0 1 1 0 8 0 amappl5 104 493 0 482 1 0 1 1 0 8 0 amappl4 96 432 0 401 1 0 1 1 0 8 0 amappl3 88 113 0 108 1 0 1 1 0 8 0 amappl2 80 3406 0 3343 2 0 2 2 0 8 0 amappl1 72 18356 0 17949 21 11 10 17 0 8 0 amappl 80 1179 0 1137 1 0 1 1 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 15 0 4 1 0 1 1 0 8 0 uaddrrnd 24 531 0 514 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 531 0 514 1 0 1 1 0 8 0 vmmpekpl 168 7546 0 7518 2 0 2 2 0 8 0 vmmpepl 168 72988 0 71042 125 24 101 111 0 357 13 vmsppl 272 530 0 514 3 1 2 2 0 8 0 pdppl 4096 1068 0 1031 6 1 5 6 0 8 0 pvpl 32 240664 0 222364 196 11 185 185 0 265 33 pmappl 200 530 0 514 1 0 1 1 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 271 0 25 8 0 8 8 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:398 panic(ffffffff821da4eb) at panic+0x15c sys/kern/subr_prf.c:207 syn_cache_insert(fffffd805315ee78,ffff8000009f4880) at syn_cache_insert+0x944 sys/netinet/tcp_input.c:3235 syn_cache_add(ffff80001d708268,ffff80001d708218,fffffd80626f0cc4,14,fffffd805e56e4b0,fffffd80626f0c00) at syn_cache_add+0x66b tcp_input(ffff80001d708568,ffff80001d708574,6,2) at tcp_input+0x37d8 sys/netinet/tcp_input.c:830 ip_deliver(ffff80001d708568,ffff80001d708574,6,2) at ip_deliver+0x2e3 sys/netinet/ip_input.c:668 ip_ours(ffff80001d708568,ffff80001d708574,2,0) at ip_ours+0x4fe sys/netinet/ip_input.c:563 ip_input_if(ffff80001d708568,ffff80001d708574,4,0,ffff800000677800) at ip_input_if+0x571 ipv4_input(ffff800000677800,fffffd80626f0c00) at ipv4_input+0x48 sys/netinet/ip_input.c:215 if_input_local(ffff800000677800,fffffd80626f0c00,2) at if_input_local+0xf9 sys/net/if.c:775 loinput(ffff800000677800,fffffd80626f0c00,0) at loinput+0x4f sys/net/if_loop.c:239 if_input_process(ffff800000677800,ffff80001d7086b8) at if_input_process+0xf8 if_ih_input sys/net/if.c:908 [inline] if_input_process(ffff800000677800,ffff80001d7086b8) at if_input_process+0xf8 sys/net/if.c:942 ifiq_process(ffff800000677bb8) at ifiq_process+0x80 sys/net/ifq.c:646 taskq_thread(ffff8000000290c0) at taskq_thread+0x52 sys/kern/kern_task.c:370 end trace frame: 0x0, count: -14 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821da4eb) at panic+0x15c sys/kern/subr_prf.c:207 syn_cache_insert(fffffd805315ee78,ffff8000009f4880) at syn_cache_insert+0x944 sys/netinet/tcp_input.c:3235 syn_cache_add(ffff80001d708268,ffff80001d708218,fffffd80626f0cc4,14,fffffd805e56e4b0,fffffd80626f0c00) at syn_cache_add+0x66b tcp_input(ffff80001d708568,ffff80001d708574,6,2) at tcp_input+0x37d8 sys/netinet/tcp_input.c:830 ip_deliver(ffff80001d708568,ffff80001d708574,6,2) at ip_deliver+0x2e3 sys/netinet/ip_input.c:668 ip_ours(ffff80001d708568,ffff80001d708574,2,0) at ip_ours+0x4fe sys/netinet/ip_input.c:563 ip_input_if(ffff80001d708568,ffff80001d708574,4,0,ffff800000677800) at ip_input_if+0x571 ipv4_input(ffff800000677800,fffffd80626f0c00) at ipv4_input+0x48 sys/netinet/ip_input.c:215 if_input_local(ffff800000677800,fffffd80626f0c00,2) at if_input_local+0xf9 sys/net/if.c:775 loinput(ffff800000677800,fffffd80626f0c00,0) at loinput+0x4f sys/net/if_loop.c:239 if_input_process(ffff800000677800,ffff80001d7086b8) at if_input_process+0xf8 if_ih_input sys/net/if.c:908 [inline] if_input_process(ffff800000677800,ffff80001d7086b8) at if_input_process+0xf8 sys/net/if.c:942 ifiq_process(ffff800000677bb8) at ifiq_process+0x80 sys/net/ifq.c:646 taskq_thread(ffff8000000290c0) at taskq_thread+0x52 sys/kern/kern_task.c:370 end trace frame: 0x0, count: -14