AI Trajectory


Trajectory: (Expand/Collapse All)
Seq Timestamp Type Name Duration
0/0 2026/07/12 01:14 flow patch-triage
1m Args:
null

Results:
{
  "EnableConfigs": null,
  "FocusSymbols": [
    "reqsk_timer_handler",
    "tcp_fastopen_synack_timer"
  ],
  "Reasoning": "The patch makes functional changes to the core TCP stack, specifically modifying SYNACK retransmission logic, bounding the maximum number of retries, and fixing potential integer overflows in timeout calculations for request sockets and TCP Fast Open. These changes affect reachable timer handlers and should be fuzzed.",
  "WorthFuzzing": true
}

1/1 2026/07/12 01:14 action read-patch-diff
0m Args:
null

Results:
{
  "PatchDiff": "commit 7b7f79f254850d2e5924462fe3f5efdf1545f970\nAuthor: syz-cluster \u003ctriage@syzkaller.com\u003e\nDate:   Sun Jul 12 01:14:11 2026 +0000\n\n    syz-cluster: applied patch under review\n\ndiff --git a/include/net/tcp.h b/include/net/tcp.h\nindex 6d376ea4d1c01d..ee78436b89645a 100644\n--- a/include/net/tcp.h\n+++ b/include/net/tcp.h\n@@ -183,6 +183,7 @@ static_assert((1 \u003c\u003c ATO_BITS) \u003e TCP_DELACK_MAX);\n #define MAX_TCP_KEEPINTVL\t32767\n #define MAX_TCP_KEEPCNT\t\t127\n #define MAX_TCP_SYNCNT\t\t127\n+#define MAX_TCP_SYNACK_RETRIES\t63\n \n /* Ensure that TCP PAWS checks are relaxed after ~2147 seconds\n  * to avoid overflows. This assumes a clock smaller than 1 Mhz.\n@@ -882,12 +883,22 @@ static inline u32 __tcp_set_rto(const struct tcp_sock *tp)\n \treturn usecs_to_jiffies((tp-\u003esrtt_us \u003e\u003e 3) + tp-\u003erttvar_us);\n }\n \n-static inline unsigned long tcp_reqsk_timeout(struct request_sock *req)\n+static inline unsigned long tcp_reqsk_timeout_sk(const struct sock *sk,\n+\t\t\t\t\t\t struct request_sock *req)\n {\n-\tu64 timeout = (u64)req-\u003etimeout \u003c\u003c req-\u003enum_timeout;\n+\tu32 rto_max = tcp_rto_max(sk);\n+\tu64 timeout = req-\u003etimeout;\n+\n+\tif (req-\u003enum_timeout \u003e= BITS_PER_TYPE(u64) ||\n+\t    timeout \u003e U64_MAX \u003e\u003e req-\u003enum_timeout)\n+\t\treturn rto_max;\n+\n+\treturn (unsigned long)min_t(u64, timeout \u003c\u003c req-\u003enum_timeout, rto_max);\n+}\n \n-\treturn (unsigned long)min_t(u64, timeout,\n-\t\t\t\t    tcp_rto_max(req-\u003ersk_listener));\n+static inline unsigned long tcp_reqsk_timeout(struct request_sock *req)\n+{\n+\treturn tcp_reqsk_timeout_sk(req-\u003ersk_listener, req);\n }\n \n u32 tcp_delack_max(const struct sock *sk);\ndiff --git a/net/ipv4/inet_connection_sock.c b/net/ipv4/inet_connection_sock.c\nindex 56902bba54838b..b74212bae3dd25 100644\n--- a/net/ipv4/inet_connection_sock.c\n+++ b/net/ipv4/inet_connection_sock.c\n@@ -1056,6 +1056,8 @@ static void reqsk_timer_handler(struct timer_list *t)\n \tnet = sock_net(sk_listener);\n \tmax_syn_ack_retries = READ_ONCE(icsk-\u003eicsk_syn_retries) ? :\n \t\tREAD_ONCE(net-\u003eipv4.sysctl_tcp_synack_retries);\n+\tmax_syn_ack_retries = min_t(int, max_syn_ack_retries,\n+\t\t\t\t    MAX_TCP_SYNACK_RETRIES);\n \t/* Normally all the openreqs are young and become mature\n \t * (i.e. converted to established socket) for first timeout.\n \t * If synack was not acknowledged for 1 second, it means\n@@ -1086,7 +1088,9 @@ static void reqsk_timer_handler(struct timer_list *t)\n \t\t}\n \t}\n \n-\tsyn_ack_recalc(req, max_syn_ack_retries, READ_ONCE(queue-\u003erskq_defer_accept),\n+\tsyn_ack_recalc(req, max_syn_ack_retries,\n+\t\t       min_t(u8, READ_ONCE(queue-\u003erskq_defer_accept),\n+\t\t\t     MAX_TCP_SYNACK_RETRIES),\n \t\t       \u0026expire, \u0026resend);\n \ttcp_syn_ack_timeout(req);\n \ndiff --git a/net/ipv4/tcp_timer.c b/net/ipv4/tcp_timer.c\nindex bf171b5e1eb306..bbedf2b9e1bcea 100644\n--- a/net/ipv4/tcp_timer.c\n+++ b/net/ipv4/tcp_timer.c\n@@ -467,6 +467,7 @@ static void tcp_fastopen_synack_timer(struct sock *sk, struct request_sock *req)\n \t */\n \tmax_retries = READ_ONCE(icsk-\u003eicsk_syn_retries) ? :\n \t\tREAD_ONCE(sock_net(sk)-\u003eipv4.sysctl_tcp_synack_retries) + 1;\n+\tmax_retries = min_t(int, max_retries, MAX_TCP_SYNACK_RETRIES);\n \n \tif (req-\u003enum_timeout \u003e= max_retries) {\n \t\ttcp_write_err(sk);\n@@ -488,7 +489,7 @@ static void tcp_fastopen_synack_timer(struct sock *sk, struct request_sock *req)\n \tif (!tp-\u003eretrans_stamp)\n \t\ttp-\u003eretrans_stamp = tcp_time_stamp_ts(tp);\n \ttcp_reset_xmit_timer(sk, ICSK_TIME_RETRANS,\n-\t\t\t  req-\u003etimeout \u003c\u003c req-\u003enum_timeout, false);\n+\t\t\t     tcp_reqsk_timeout_sk(sk, req), false);\n }\n \n static bool tcp_rtx_probe0_timed_out(const struct sock *sk,\n"
}

2/1 2026/07/12 01:14 agent patch-evaluator
1m Model:
gemini-3.1-pro-preview

Args:
null

Results:
{
  "EnableConfigs": null,
  "FocusSymbols": [
    "reqsk_timer_handler",
    "tcp_fastopen_synack_timer"
  ],
  "Reasoning": "The patch makes functional changes to the core TCP stack, specifically modifying SYNACK retransmission logic, bounding the maximum number of retries, and fixing potential integer overflows in timeout calculations for request sockets and TCP Fast Open. These changes affect reachable timer handlers and should be fuzzed.",
  "WorthFuzzing": true
}

Instruction:
You are an expert Linux kernel maintainer.
Your job is to review a provided patch series and determine
if it makes functional changes to the kernel that should be fuzzed.

IMPORTANT: The changes have ALREADY been applied and committed as the HEAD commit in
your workspace. Do NOT rely on your internal knowledge of the kernel. You must actively
use your code access tools to examine the actual source code and confirm any assumptions.

Return WorthFuzzing=false if the patch only contains:
- Modifications to Documentation/, Kconfig files, or code comments.
- Purely decorative changes, such as logging (e.g., pr_err, printk) or tracepoints.
- Changes to numeric constants or macros that do not functionally alter execution flow.
- Code paths that are impossible to reach in virtualized environments like GCE or QEMU,
even when utilizing software-emulated hardware (e.g., usb gadget, mac80211_hwsim).

If it modifies reachable core kernel logic, drivers, or architectures, use your code search
tools to verify the code can be executed, then return WorthFuzzing=true.

When returning WorthFuzzing=true, you MUST ALSO:
1. Extract any specific kernel functions that should be heavily fuzzed into FocusSymbols.
   Avoid listing generic hot-path functions to prevent skewed test distributions.
2. Identify any specific CONFIG_ options required to properly test this new/modified feature.
   Go and look into the Kconfig files and check for ifdefs around the code, do not make assumptions.
   Do not list too generic configs (we already have them enabled). Only list those that
   specifically cover the modified code. List them in the EnableConfigs output array,
   and DO NOT add a 'CONFIG_' prefix (e.g., return "NET_IPV4" instead of "CONFIG_NET_IPV4").
Prefer calling several tools at the same time to save round-trips.


Use set-results tool to provide results of the analysis.
It must be called exactly once before the final reply.
Ignore results of this tool.

Prompt:
For your convenience, here is the diff of the changes:
commit 7b7f79f254850d2e5924462fe3f5efdf1545f970
Author: syz-cluster <triage@syzkaller.com>
Date:   Sun Jul 12 01:14:11 2026 +0000

    syz-cluster: applied patch under review

diff --git a/include/net/tcp.h b/include/net/tcp.h
index 6d376ea4d1c01d..ee78436b89645a 100644
--- a/include/net/tcp.h
+++ b/include/net/tcp.h
@@ -183,6 +183,7 @@ static_assert((1 << ATO_BITS) > TCP_DELACK_MAX);
 #define MAX_TCP_KEEPINTVL	32767
 #define MAX_TCP_KEEPCNT		127
 #define MAX_TCP_SYNCNT		127
+#define MAX_TCP_SYNACK_RETRIES	63
 
 /* Ensure that TCP PAWS checks are relaxed after ~2147 seconds
  * to avoid overflows. This assumes a clock smaller than 1 Mhz.
@@ -882,12 +883,22 @@ static inline u32 __tcp_set_rto(const struct tcp_sock *tp)
 	return usecs_to_jiffies((tp->srtt_us >> 3) + tp->rttvar_us);
 }
 
-static inline unsigned long tcp_reqsk_timeout(struct request_sock *req)
+static inline unsigned long tcp_reqsk_timeout_sk(const struct sock *sk,
+						 struct request_sock *req)
 {
-	u64 timeout = (u64)req->timeout << req->num_timeout;
+	u32 rto_max = tcp_rto_max(sk);
+	u64 timeout = req->timeout;
+
+	if (req->num_timeout >= BITS_PER_TYPE(u64) ||
+	    timeout > U64_MAX >> req->num_timeout)
+		return rto_max;
+
+	return (unsigned long)min_t(u64, timeout << req->num_timeout, rto_max);
+}
 
-	return (unsigned long)min_t(u64, timeout,
-				    tcp_rto_max(req->rsk_listener));
+static inline unsigned long tcp_reqsk_timeout(struct request_sock *req)
+{
+	return tcp_reqsk_timeout_sk(req->rsk_listener, req);
 }
 
 u32 tcp_delack_max(const struct sock *sk);
diff --git a/net/ipv4/inet_connection_sock.c b/net/ipv4/inet_connection_sock.c
index 56902bba54838b..b74212bae3dd25 100644
--- a/net/ipv4/inet_connection_sock.c
+++ b/net/ipv4/inet_connection_sock.c
@@ -1056,6 +1056,8 @@ static void reqsk_timer_handler(struct timer_list *t)
 	net = sock_net(sk_listener);
 	max_syn_ack_retries = READ_ONCE(icsk->icsk_syn_retries) ? :
 		READ_ONCE(net->ipv4.sysctl_tcp_synack_retries);
+	max_syn_ack_retries = min_t(int, max_syn_ack_retries,
+				    MAX_TCP_SYNACK_RETRIES);
 	/* Normally all the openreqs are young and become mature
 	 * (i.e. converted to established socket) for first timeout.
 	 * If synack was not acknowledged for 1 second, it means
@@ -1086,7 +1088,9 @@ static void reqsk_timer_handler(struct timer_list *t)
 		}
 	}
 
-	syn_ack_recalc(req, max_syn_ack_retries, READ_ONCE(queue->rskq_defer_accept),
+	syn_ack_recalc(req, max_syn_ack_retries,
+		       min_t(u8, READ_ONCE(queue->rskq_defer_accept),
+			     MAX_TCP_SYNACK_RETRIES),
 		       &expire, &resend);
 	tcp_syn_ack_timeout(req);
 
diff --git a/net/ipv4/tcp_timer.c b/net/ipv4/tcp_timer.c
index bf171b5e1eb306..bbedf2b9e1bcea 100644
--- a/net/ipv4/tcp_timer.c
+++ b/net/ipv4/tcp_timer.c
@@ -467,6 +467,7 @@ static void tcp_fastopen_synack_timer(struct sock *sk, struct request_sock *req)
 	 */
 	max_retries = READ_ONCE(icsk->icsk_syn_retries) ? :
 		READ_ONCE(sock_net(sk)->ipv4.sysctl_tcp_synack_retries) + 1;
+	max_retries = min_t(int, max_retries, MAX_TCP_SYNACK_RETRIES);
 
 	if (req->num_timeout >= max_retries) {
 		tcp_write_err(sk);
@@ -488,7 +489,7 @@ static void tcp_fastopen_synack_timer(struct sock *sk, struct request_sock *req)
 	if (!tp->retrans_stamp)
 		tp->retrans_stamp = tcp_time_stamp_ts(tp);
 	tcp_reset_xmit_timer(sk, ICSK_TIME_RETRANS,
-			  req->timeout << req->num_timeout, false);
+			     tcp_reqsk_timeout_sk(sk, req), false);
 }
 
 static bool tcp_rtx_probe0_timed_out(const struct sock *sk,

3/2 2026/07/12 01:14 llm patch-evaluator
0m Model:
gemini-3.1-pro-preview

Args:
null

Results:
null

Tokens:
							input: 3062
							output: 20
							thoughts: 263
						

Thoughts:
**My Initial Assessment of the TCP SYN-ACK Timeout Patch**

Okay, so I've got this patch in front of me that tweaks the TCP SYN-ACK timeout logic, and my immediate reaction is, "Interesting." It's touching some pretty critical files – `tcp.h`, `inet_connection_sock.c`, and `tcp_timer.c`. Those are all core components of the TCP stack, so any changes here warrant careful scrutiny.

I see it's introducing `MAX_TCP_SYNACK_RETRIES`, which is a good practice to cap the retries and prevent any potential runaway loops. Then there's the modification to `tcp_reqsk_timeout`, specifically to address that shift overflow vulnerability with `req->timeout << req->num_timeout`. Solid move, that's definitely a point to be addressed and fixed. Also, the addition of `tcp_reqsk_timeout_sk` and its usage in `tcp_fastopen_synack_timer` looks sensible.

My gut tells me this is functional code, right in the heart of the TCP implementation. So, my first thought? *Fuzz it.* This is a prime target for fuzzing. I need to poke and prod it to ensure it handles all sorts of unexpected input gracefully.

Now, let's get down to brass tacks: what are the key functions to focus on for fuzzing? Looking at the code, `reqsk_timer_handler` and `tcp_fastopen_synack_timer` immediately jump out. Those are the handlers most likely to be stressed by retries and timeouts.

Next, I need to check for any configuration dependencies that might be relevant. `inet_connection_sock.c` and `tcp_timer.c` are compiled if `CONFIG_INET` and `CONFIG_TCP` (or just `CONFIG_INET`) are enabled. That seems pretty standard for any modern kernel networking. I'll double-check those configs just to make sure my fuzzing setup accounts for any conditional compilation, but this shouldn't be too problematic.



4/2 2026/07/12 01:14 tool grepper
0m Args:
{
  "Expression": "reqsk_timer_handler"
}

Results:
{
  "Output": "net/ipv4/inet_connection_sock.c=1015=void inet_csk_reqsk_queue_drop_and_put(struct sock *sk, struct request_sock *req)\n--\nnet/ipv4/inet_connection_sock.c-1020-\nnet/ipv4/inet_connection_sock.c:1021:static void reqsk_timer_handler(struct timer_list *t)\nnet/ipv4/inet_connection_sock.c-1022-{\n--\nnet/ipv4/inet_connection_sock.c-1047-\t\trefcount_set(\u0026nreq-\u003ersk_refcnt, 2 + 1);\nnet/ipv4/inet_connection_sock.c:1048:\t\ttimer_setup(\u0026nreq-\u003ersk_timer, reqsk_timer_handler, TIMER_PINNED);\nnet/ipv4/inet_connection_sock.c-1049-\t\treqsk_queue_migrated(\u0026inet_csk(nsk)-\u003eicsk_accept_queue, req);\n--\nnet/ipv4/inet_connection_sock.c=1142=static bool reqsk_queue_hash_req(struct request_sock *req)\n--\nnet/ipv4/inet_connection_sock.c-1150-\treq-\u003etimeout = tcp_timeout_init((struct sock *)req);\nnet/ipv4/inet_connection_sock.c:1151:\ttimer_setup(\u0026req-\u003ersk_timer, reqsk_timer_handler, TIMER_PINNED);\nnet/ipv4/inet_connection_sock.c-1152-\n--\ntools/testing/selftests/bpf/prog_tests/migrate_reuseport.c=54=static struct migrate_reuseport_test_case {\n--\ntools/testing/selftests/bpf/prog_tests/migrate_reuseport.c-83-\t{\ntools/testing/selftests/bpf/prog_tests/migrate_reuseport.c:84:\t\t.name = \"IPv4 TCP_NEW_SYN_RECV reqsk_timer_handler\",\ntools/testing/selftests/bpf/prog_tests/migrate_reuseport.c-85-\t\t.family = AF_INET,\n--\ntools/testing/selftests/bpf/prog_tests/migrate_reuseport.c-115-\t{\ntools/testing/selftests/bpf/prog_tests/migrate_reuseport.c:116:\t\t.name = \"IPv6 TCP_NEW_SYN_RECV reqsk_timer_handler\",\ntools/testing/selftests/bpf/prog_tests/migrate_reuseport.c-117-\t\t.family = AF_INET6,\n--\ntools/testing/selftests/bpf/prog_tests/migrate_reuseport.c=491=static void run_test(struct migrate_reuseport_test_case *test_case,\n--\ntools/testing/selftests/bpf/prog_tests/migrate_reuseport.c-547-\t\t/* Wait for SYN+ACK timers to expire so that\ntools/testing/selftests/bpf/prog_tests/migrate_reuseport.c:548:\t\t * reqsk_timer_handler() migrates TCP_NEW_SYN_RECV requests.\ntools/testing/selftests/bpf/prog_tests/migrate_reuseport.c-549-\t\t */\n"
}

5/2 2026/07/12 01:14 llm patch-evaluator
0m Model:
gemini-3.1-pro-preview

Args:
null

Results:
null

Tokens:
							input: 4620
							output: 23
							thoughts: 50
						

Thoughts:
Here's my understanding of the situation, tailored for my expertise:

**Cross-Referencing Timers in the Linux TCP/IP Stack**

Okay, so I'm looking at these two timer functions, `reqsk_timer_handler` and `tcp_fastopen_synack_timer`. Right away, the file paths give me some critical context. `reqsk_timer_handler` is nestled in `inet_connection_sock.c`, which tells me it's likely handling the timeout procedures related to the request socket (reqsk) queue, an important part of the connection establishment process, particularly SYN flooding protection and incomplete connection management within the IPv4 inet family. I expect to find mechanisms related to the three-way handshake and dealing with half-open connections.

Then there's `tcp_fastopen_synack_timer` in `tcp_timer.c`. The name tells the story pretty clearly - this has to be the timer handling for the Fast Open SYN-ACK retransmission or expiry. This indicates a focus on the faster connection setup, which probably needs a quicker retransmit and timeout scheme than the standard SYN-ACK handling, particularly for dealing with the potential of lost packets. I'm imagining a more aggressive retry policy for the SYN-ACK given the specific constraints around Fast Open. I need to delve into the relationship between these two timers within their respective connection handling procedures.



6/2 2026/07/12 01:14 tool grepper
0m Args:
{
  "Expression": "tcp_fastopen_synack_timer"
}

Results:
{
  "Output": "net/ipv4/tcp_input.c=7073=static void tcp_rcv_synrecv_state_fastopen(struct sock *sk)\n--\nnet/ipv4/tcp_input.c-7085-\tWRITE_ONCE(inet_csk(sk)-\u003eicsk_retransmits, 0);\nnet/ipv4/tcp_input.c:7086:\t/* In tcp_fastopen_synack_timer() on the first SYNACK RTO we set\nnet/ipv4/tcp_input.c-7087-\t * retrans_stamp but don't enter CA_Loss, so in case that happened we\n--\nnet/ipv4/tcp_timer.c=440=static void tcp_update_rto_stats(struct sock *sk)\n--\nnet/ipv4/tcp_timer.c-456- */\nnet/ipv4/tcp_timer.c:457:static void tcp_fastopen_synack_timer(struct sock *sk, struct request_sock *req)\nnet/ipv4/tcp_timer.c-458-{\n--\nnet/ipv4/tcp_timer.c=536=void tcp_retransmit_timer(struct sock *sk)\n--\nnet/ipv4/tcp_timer.c-548-\t\t\t     sk-\u003esk_state != TCP_FIN_WAIT1);\nnet/ipv4/tcp_timer.c:549:\t\ttcp_fastopen_synack_timer(sk, req);\nnet/ipv4/tcp_timer.c-550-\t\t/* Before we receive ACK to our SYN-ACK don't retransmit\n"
}

7/2 2026/07/12 01:14 llm patch-evaluator
0m Model:
gemini-3.1-pro-preview

Args:
null

Results:
null

Tokens:
							input: 5076
							output: 18
							thoughts: 274
						

Thoughts:
**My Analysis of the TCP SYN-ACK Timeout Patch**

Okay, so this patch is tweaking the TCP SYN-ACK timeout logic – sounds like a good area to examine closely. My initial impression is that it's designed to prevent potential overflows or excessively aggressive retries, which is definitely a valid concern. The introduction of `MAX_TCP_SYNACK_RETRIES` (set to 63) is key, acting as a hard upper limit, and its application to `max_syn_ack_retries` and `queue->rskq_defer_accept` in `reqsk_timer_handler` and `tcp_fastopen_synack_timer` makes sense. It's good to see that boundary condition being enforced.

The modification to `tcp_reqsk_timeout` to prevent a `u64` overflow during the timeout calculation when shifting `req->timeout << req->num_timeout` is also very important. Avoiding integer overflows is critical for robustness.

Functionally, this impacts core TCP behavior, specifically how SYN-ACK retries are handled, both for standard SYN-ACK handshakes and with TCP Fast Open. I'd definitely classify this as a change that warrants thorough fuzzing.

My primary focus for fuzzing will be these functions: `reqsk_timer_handler`, `tcp_fastopen_synack_timer` and the callers of `tcp_reqsk_timeout_sk`, while I note that `tcp_reqsk_timeout_sk` itself might not be directly fuzzable because it's inline. However, the calling functions will still be of interest. And `tcp_retransmit_timer` is a clear target because it calls `tcp_fastopen_synack_timer`.

Configuration-wise, I need to make sure I'm testing with `CONFIG_NET` and `CONFIG_INET` enabled, obviously. I'll also want to check if `CONFIG_TCP_FASTOPEN` is present, as it seems relevant to this change and, if so, be sure to test with it enabled. That’s probably where I'll see some interesting edge cases.



8/2 2026/07/12 01:14 tool grepper
0m Args:
{
  "Expression": "TCP_FASTOPEN"
}

Results:
{
  "Output": "Documentation/networking/ip-sysctl.rst=1017=tcp_fastopen - INTEGER\n--\nDocumentation/networking/ip-sysctl.rst-1026-\teither enable for all listeners with another flag (0x400) or\nDocumentation/networking/ip-sysctl.rst:1027:\tenable individual listeners via TCP_FASTOPEN socket option with\nDocumentation/networking/ip-sysctl.rst-1028-\tthe option value being the length of the syn-data backlog.\n--\nDocumentation/networking/ip-sysctl.rst-1040-\t0x400  (server) enable all listeners to support Fast Open by\nDocumentation/networking/ip-sysctl.rst:1041:\t\t\tdefault without explicit TCP_FASTOPEN socket option.\nDocumentation/networking/ip-sysctl.rst-1042-\t=====  ======== ======================================================\n--\nDocumentation/networking/ip-sysctl.rst=1059=tcp_fastopen_key - list of comma separated 32-digit hexadecimal INTEGERs\n--\nDocumentation/networking/ip-sysctl.rst-1066-\tthe tcp_fastopen sysctl is set to 0x400 (see above), or if the\nDocumentation/networking/ip-sysctl.rst:1067:\tTCP_FASTOPEN setsockopt() optname is set and a key has not been\nDocumentation/networking/ip-sysctl.rst-1068-\tpreviously configured via sysctl. If keys are configured via\nDocumentation/networking/ip-sysctl.rst:1069:\tsetsockopt() by using the TCP_FASTOPEN_KEY optname, then those\nDocumentation/networking/ip-sysctl.rst-1070-\tper-socket keys will be used instead of any keys that are specified via\n--\nDocumentation/networking/snmp_counter.rst=949=TcpExtTCPFastOpenPassiveFail. The fastopenq-\u003emax_qlen is set by the\nDocumentation/networking/snmp_counter.rst:950:TCP_FASTOPEN socket operation and it could not be larger than\nDocumentation/networking/snmp_counter.rst-951-net.core.somaxconn. For example:\nDocumentation/networking/snmp_counter.rst-952-\nDocumentation/networking/snmp_counter.rst:953:setsockopt(sfd, SOL_TCP, TCP_FASTOPEN, \u0026qlen, sizeof(qlen));\nDocumentation/networking/snmp_counter.rst-954-\n--\ninclude/linux/tcp.h=79=static inline unsigned int tcp_optlen(const struct sk_buff *skb)\n--\ninclude/linux/tcp.h-84-/* TCP Fast Open */\ninclude/linux/tcp.h:85:#define TCP_FASTOPEN_COOKIE_MIN\t4\t/* Min Fast Open Cookie size in bytes */\ninclude/linux/tcp.h:86:#define TCP_FASTOPEN_COOKIE_MAX\t16\t/* Max Fast Open Cookie size in bytes */\ninclude/linux/tcp.h:87:#define TCP_FASTOPEN_COOKIE_SIZE 8\t/* the size employed by this impl. */\ninclude/linux/tcp.h-88-\n--\ninclude/linux/tcp.h=90=struct tcp_fastopen_cookie {\ninclude/linux/tcp.h:91:\t__le64\tval[DIV_ROUND_UP(TCP_FASTOPEN_COOKIE_MAX, sizeof(u64))];\ninclude/linux/tcp.h-92-\ts8\tlen;\n--\ninclude/net/dropreason-core.h-52-\tFN(TCP_CLOSE)\t\t\t\\\ninclude/net/dropreason-core.h:53:\tFN(TCP_FASTOPEN)\t\t\\\ninclude/net/dropreason-core.h-54-\tFN(TCP_OLD_ACK)\t\t\t\\\n--\ninclude/net/dropreason-core.h=138=enum skb_drop_reason {\n--\ninclude/net/dropreason-core.h-332-\tSKB_DROP_REASON_TCP_CLOSE,\ninclude/net/dropreason-core.h:333:\t/** @SKB_DROP_REASON_TCP_FASTOPEN: dropped by FASTOPEN request socket */\ninclude/net/dropreason-core.h:334:\tSKB_DROP_REASON_TCP_FASTOPEN,\ninclude/net/dropreason-core.h-335-\t/** @SKB_DROP_REASON_TCP_OLD_ACK: TCP ACK is old, but in window */\n--\ninclude/net/tcp.h=151=static_assert((1 \u003c\u003c ATO_BITS) \u003e TCP_DELACK_MAX);\n--\ninclude/net/tcp.h-280-/* Force enable TFO on all listeners, i.e., not requiring the\ninclude/net/tcp.h:281: * TCP_FASTOPEN socket option.\ninclude/net/tcp.h-282- */\n--\ninclude/net/tcp.h=2135=bool tcp_fastopen_defer_connect(struct sock *sk, int *err);\ninclude/net/tcp.h:2136:#define TCP_FASTOPEN_KEY_LENGTH sizeof(siphash_key_t)\ninclude/net/tcp.h:2137:#define TCP_FASTOPEN_KEY_MAX 2\ninclude/net/tcp.h:2138:#define TCP_FASTOPEN_KEY_BUF_LENGTH \\\ninclude/net/tcp.h:2139:\t(TCP_FASTOPEN_KEY_LENGTH * TCP_FASTOPEN_KEY_MAX)\ninclude/net/tcp.h-2140-\n--\ninclude/net/tcp.h=2142=struct tcp_fastopen_context {\ninclude/net/tcp.h:2143:\tsiphash_key_t\tkey[TCP_FASTOPEN_KEY_MAX];\ninclude/net/tcp.h-2144-\tint\t\tnum;\n--\ninclude/net/tcp.h=2166=bool tcp_fastopen_cookie_match(const struct tcp_fastopen_cookie *foc,\n--\ninclude/net/tcp.h-2168-{\ninclude/net/tcp.h:2169:\tif (orig-\u003elen == TCP_FASTOPEN_COOKIE_SIZE \u0026\u0026\ninclude/net/tcp.h-2170-\t    orig-\u003elen == foc-\u003elen \u0026\u0026\n--\ninclude/uapi/linux/tcp.h=74=enum {\n--\ninclude/uapi/linux/tcp.h-115-#define TCP_REPAIR_OPTIONS\t22\ninclude/uapi/linux/tcp.h:116:#define TCP_FASTOPEN\t\t23\t/* Enable FastOpen on listeners */\ninclude/uapi/linux/tcp.h-117-#define TCP_TIMESTAMP\t\t24\n--\ninclude/uapi/linux/tcp.h-122-#define TCP_REPAIR_WINDOW\t29\t/* Get/set window parameters */\ninclude/uapi/linux/tcp.h:123:#define TCP_FASTOPEN_CONNECT\t30\t/* Attempt FastOpen with connect */\ninclude/uapi/linux/tcp.h-124-#define TCP_ULP\t\t\t31\t/* Attach a ULP to a TCP connection */\ninclude/uapi/linux/tcp.h-125-#define TCP_MD5SIG_EXT\t\t32\t/* TCP MD5 Signature with extensions */\ninclude/uapi/linux/tcp.h:126:#define TCP_FASTOPEN_KEY\t33\t/* Set the key for Fast Open (cookie) */\ninclude/uapi/linux/tcp.h:127:#define TCP_FASTOPEN_NO_COOKIE\t34\t/* Enable TFO without a TFO cookie */\ninclude/uapi/linux/tcp.h-128-#define TCP_ZEROCOPY_RECEIVE\t35\n--\nnet/ipv4/af_inet.c=198=int __inet_listen_sk(struct sock *sk, int backlog)\n--\nnet/ipv4/af_inet.c-210-\tif (old_state != TCP_LISTEN) {\nnet/ipv4/af_inet.c:211:\t\t/* Enable TFO w/o requiring TCP_FASTOPEN socket option.\nnet/ipv4/af_inet.c-212-\t\t * Note that only TCP sockets (SOCK_STREAM) will reach here.\n--\nnet/ipv4/af_inet.c=631=int __inet_stream_connect(struct socket *sock, struct sockaddr_unsized *uaddr,\n--\nnet/ipv4/af_inet.c-640-\t * sk is a TCP fastopen active socket and\nnet/ipv4/af_inet.c:641:\t * TCP_FASTOPEN_CONNECT sockopt is set and\nnet/ipv4/af_inet.c-642-\t * we already have a valid cookie for this socket.\n--\nnet/ipv4/sysctl_net_ipv4.c=291=static int proc_tcp_fastopen_key(const struct ctl_table *table, int write,\n--\nnet/ipv4/sysctl_net_ipv4.c-298-\t */\nnet/ipv4/sysctl_net_ipv4.c:299:\tstruct ctl_table tbl = { .maxlen = ((TCP_FASTOPEN_KEY_LENGTH *\nnet/ipv4/sysctl_net_ipv4.c:300:\t\t\t\t\t    2 * TCP_FASTOPEN_KEY_MAX) +\nnet/ipv4/sysctl_net_ipv4.c:301:\t\t\t\t\t    (TCP_FASTOPEN_KEY_MAX * 5)) };\nnet/ipv4/sysctl_net_ipv4.c:302:\tu32 user_key[TCP_FASTOPEN_KEY_BUF_LENGTH / sizeof(u32)];\nnet/ipv4/sysctl_net_ipv4.c:303:\t__le32 key[TCP_FASTOPEN_KEY_BUF_LENGTH / sizeof(__le32)];\nnet/ipv4/sysctl_net_ipv4.c-304-\tchar *backup_data;\n--\nnet/ipv4/sysctl_net_ipv4.c-312-\tif (!n_keys) {\nnet/ipv4/sysctl_net_ipv4.c:313:\t\tmemset(\u0026key[0], 0, TCP_FASTOPEN_KEY_LENGTH);\nnet/ipv4/sysctl_net_ipv4.c-314-\t\tn_keys = 1;\n--\nnet/ipv4/sysctl_net_ipv4.c=627=static struct ctl_table ipv4_net_table[] = {\n--\nnet/ipv4/sysctl_net_ipv4.c-1139-\t\t */\nnet/ipv4/sysctl_net_ipv4.c:1140:\t\t.maxlen\t\t= ((TCP_FASTOPEN_KEY_LENGTH *\nnet/ipv4/sysctl_net_ipv4.c:1141:\t\t\t\t   2 * TCP_FASTOPEN_KEY_MAX) +\nnet/ipv4/sysctl_net_ipv4.c:1142:\t\t\t\t   (TCP_FASTOPEN_KEY_MAX * 5)),\nnet/ipv4/sysctl_net_ipv4.c-1143-\t\t.proc_handler\t= proc_tcp_fastopen_key,\n--\nnet/ipv4/tcp.c=3837=int do_tcp_setsockopt(struct sock *sk, int level, int optname,\n--\nnet/ipv4/tcp.c-3884-\t}\nnet/ipv4/tcp.c:3885:\tcase TCP_FASTOPEN_KEY: {\nnet/ipv4/tcp.c:3886:\t\t__u8 key[TCP_FASTOPEN_KEY_BUF_LENGTH];\nnet/ipv4/tcp.c-3887-\t\t__u8 *backup_key = NULL;\n--\nnet/ipv4/tcp.c-3891-\t\t */\nnet/ipv4/tcp.c:3892:\t\tif (optlen != TCP_FASTOPEN_KEY_LENGTH \u0026\u0026\nnet/ipv4/tcp.c:3893:\t\t    optlen != TCP_FASTOPEN_KEY_BUF_LENGTH)\nnet/ipv4/tcp.c-3894-\t\t\treturn -EINVAL;\n--\nnet/ipv4/tcp.c-3898-\nnet/ipv4/tcp.c:3899:\t\tif (optlen == TCP_FASTOPEN_KEY_BUF_LENGTH)\nnet/ipv4/tcp.c:3900:\t\t\tbackup_key = key + TCP_FASTOPEN_KEY_LENGTH;\nnet/ipv4/tcp.c-3901-\n--\nnet/ipv4/tcp.c-4097-#endif\nnet/ipv4/tcp.c:4098:\tcase TCP_FASTOPEN:\nnet/ipv4/tcp.c-4099-\t\tif (val \u003e= 0 \u0026\u0026 ((1 \u003c\u003c sk-\u003esk_state) \u0026 (TCPF_CLOSE |\n--\nnet/ipv4/tcp.c-4107-\t\tbreak;\nnet/ipv4/tcp.c:4108:\tcase TCP_FASTOPEN_CONNECT:\nnet/ipv4/tcp.c-4109-\t\tif (val \u003e 1 || val \u003c 0) {\n--\nnet/ipv4/tcp.c-4120-\t\tbreak;\nnet/ipv4/tcp.c:4121:\tcase TCP_FASTOPEN_NO_COOKIE:\nnet/ipv4/tcp.c-4122-\t\tif (val \u003e 1 || val \u003c 0)\n--\nnet/ipv4/tcp.c=4481=int do_tcp_getsockopt(struct sock *sk, int level,\n--\nnet/ipv4/tcp.c-4604-\nnet/ipv4/tcp.c:4605:\tcase TCP_FASTOPEN_KEY: {\nnet/ipv4/tcp.c:4606:\t\tu64 key[TCP_FASTOPEN_KEY_BUF_LENGTH / sizeof(u64)];\nnet/ipv4/tcp.c-4607-\t\tunsigned int key_len;\n--\nnet/ipv4/tcp.c-4612-\t\tkey_len = tcp_fastopen_get_cipher(net, icsk, key) *\nnet/ipv4/tcp.c:4613:\t\t\t\tTCP_FASTOPEN_KEY_LENGTH;\nnet/ipv4/tcp.c-4614-\t\tlen = min_t(unsigned int, len, key_len);\n--\nnet/ipv4/tcp.c-4674-\nnet/ipv4/tcp.c:4675:\tcase TCP_FASTOPEN:\nnet/ipv4/tcp.c-4676-\t\tval = READ_ONCE(icsk-\u003eicsk_accept_queue.fastopenq.max_qlen);\n--\nnet/ipv4/tcp.c-4678-\nnet/ipv4/tcp.c:4679:\tcase TCP_FASTOPEN_CONNECT:\nnet/ipv4/tcp.c-4680-\t\tval = tp-\u003efastopen_connect;\n--\nnet/ipv4/tcp.c-4682-\nnet/ipv4/tcp.c:4683:\tcase TCP_FASTOPEN_NO_COOKIE:\nnet/ipv4/tcp.c-4684-\t\tval = tp-\u003efastopen_no_cookie;\n--\nnet/ipv4/tcp_fastopen.c=94=void tcp_fastopen_init_key_once(struct net *net)\nnet/ipv4/tcp_fastopen.c-95-{\nnet/ipv4/tcp_fastopen.c:96:\tu8 key[TCP_FASTOPEN_KEY_LENGTH];\nnet/ipv4/tcp_fastopen.c-97-\tstruct tcp_fastopen_context *ctxt;\n--\nnet/ipv4/tcp_fastopen.c=205=static bool __tcp_fastopen_cookie_gen_cipher(struct request_sock *req,\n--\nnet/ipv4/tcp_fastopen.c-209-{\nnet/ipv4/tcp_fastopen.c:210:\tBUILD_BUG_ON(TCP_FASTOPEN_COOKIE_SIZE != sizeof(u64));\nnet/ipv4/tcp_fastopen.c-211-\n--\nnet/ipv4/tcp_fastopen.c-218-\t\t\t\t\t  key));\nnet/ipv4/tcp_fastopen.c:219:\t\tfoc-\u003elen = TCP_FASTOPEN_COOKIE_SIZE;\nnet/ipv4/tcp_fastopen.c-220-\t\treturn true;\n--\nnet/ipv4/tcp_fastopen.c-229-\t\t\t\t\t  key));\nnet/ipv4/tcp_fastopen.c:230:\t\tfoc-\u003elen = TCP_FASTOPEN_COOKIE_SIZE;\nnet/ipv4/tcp_fastopen.c-231-\t\treturn true;\n--\nnet/ipv4/tcp_input.c=4453=static void tcp_parse_fastopen_option(int len, const unsigned char *cookie,\n--\nnet/ipv4/tcp_input.c-4460-\nnet/ipv4/tcp_input.c:4461:\tif (len \u003e= TCP_FASTOPEN_COOKIE_MIN \u0026\u0026\nnet/ipv4/tcp_input.c:4462:\t    len \u003c= TCP_FASTOPEN_COOKIE_MAX)\nnet/ipv4/tcp_input.c-4463-\t\tmemcpy(foc-\u003eval, cookie, len);\n--\nnet/ipv4/tcp_input.c=7122=tcp_rcv_state_process(struct sock *sk, struct sk_buff *skb)\n--\nnet/ipv4/tcp_input.c-7187-\nnet/ipv4/tcp_input.c:7188:\t\tSKB_DR_SET(reason, TCP_FASTOPEN);\nnet/ipv4/tcp_input.c-7189-\t\tif (!tcp_check_req(sk, skb, req, true, \u0026req_stolen, \u0026reason))\n--\nnet/ipv4/tcp_metrics.c=618=static const struct nla_policy tcp_metrics_nl_policy[TCP_METRICS_ATTR_MAX + 1] = {\n--\nnet/ipv4/tcp_metrics.c-638-\t[TCP_METRICS_ATTR_FOPEN_COOKIE]\t= { .type = NLA_BINARY,\nnet/ipv4/tcp_metrics.c:639:\t\t\t\t\t    .len = TCP_FASTOPEN_COOKIE_MAX, },\nnet/ipv4/tcp_metrics.c-640-#endif\n--\nnet/mptcp/sockopt.c=444=static bool mptcp_supported_sockopt(int level, int optname)\n--\nnet/mptcp/sockopt.c-575-\t\tcase TCP_INQ:\nnet/mptcp/sockopt.c:576:\t\tcase TCP_FASTOPEN:\nnet/mptcp/sockopt.c:577:\t\tcase TCP_FASTOPEN_CONNECT:\nnet/mptcp/sockopt.c:578:\t\tcase TCP_FASTOPEN_KEY:\nnet/mptcp/sockopt.c:579:\t\tcase TCP_FASTOPEN_NO_COOKIE:\nnet/mptcp/sockopt.c-580-\t\t\treturn true;\n--\nnet/mptcp/sockopt.c=833=static int mptcp_setsockopt_sol_tcp(struct mptcp_sock *msk, int optname,\n--\nnet/mptcp/sockopt.c-847-\t\treturn 0;\nnet/mptcp/sockopt.c:848:\tcase TCP_FASTOPEN:\nnet/mptcp/sockopt.c:849:\tcase TCP_FASTOPEN_CONNECT:\nnet/mptcp/sockopt.c:850:\tcase TCP_FASTOPEN_KEY:\nnet/mptcp/sockopt.c:851:\tcase TCP_FASTOPEN_NO_COOKIE:\nnet/mptcp/sockopt.c-852-\t\treturn mptcp_setsockopt_first_sf_only(msk, SOL_TCP, optname,\n--\nnet/mptcp/sockopt.c=1411=static int mptcp_getsockopt_sol_tcp(struct mptcp_sock *msk, int optname,\n--\nnet/mptcp/sockopt.c-1421-\tcase TCP_DEFER_ACCEPT:\nnet/mptcp/sockopt.c:1422:\tcase TCP_FASTOPEN:\nnet/mptcp/sockopt.c:1423:\tcase TCP_FASTOPEN_CONNECT:\nnet/mptcp/sockopt.c:1424:\tcase TCP_FASTOPEN_KEY:\nnet/mptcp/sockopt.c:1425:\tcase TCP_FASTOPEN_NO_COOKIE:\nnet/mptcp/sockopt.c-1426-\t\treturn mptcp_getsockopt_first_sf_only(msk, SOL_TCP, optname,\n--\nnet/smc/af_smc.c=3083=int smc_setsockopt(struct socket *sock, int level, int optname,\n--\nnet/smc/af_smc.c-3124-\tswitch (optname) {\nnet/smc/af_smc.c:3125:\tcase TCP_FASTOPEN:\nnet/smc/af_smc.c:3126:\tcase TCP_FASTOPEN_CONNECT:\nnet/smc/af_smc.c:3127:\tcase TCP_FASTOPEN_KEY:\nnet/smc/af_smc.c:3128:\tcase TCP_FASTOPEN_NO_COOKIE:\nnet/smc/af_smc.c-3129-\t\t/* option not supported by SMC */\n--\ntools/include/uapi/linux/tcp.h=72=enum { \n--\ntools/include/uapi/linux/tcp.h-112-#define TCP_REPAIR_OPTIONS\t22\ntools/include/uapi/linux/tcp.h:113:#define TCP_FASTOPEN\t\t23\t/* Enable FastOpen on listeners */\ntools/include/uapi/linux/tcp.h-114-#define TCP_TIMESTAMP\t\t24\n--\ntools/include/uapi/linux/tcp.h-119-#define TCP_REPAIR_WINDOW\t29\t/* Get/set window parameters */\ntools/include/uapi/linux/tcp.h:120:#define TCP_FASTOPEN_CONNECT\t30\t/* Attempt FastOpen with connect */\ntools/include/uapi/linux/tcp.h-121-#define TCP_ULP\t\t\t31\t/* Attach a ULP to a TCP connection */\ntools/include/uapi/linux/tcp.h-122-#define TCP_MD5SIG_EXT\t\t32\t/* TCP MD5 Signature with extensions */\ntools/include/uapi/linux/tcp.h:123:#define TCP_FASTOPEN_KEY\t33\t/* Set the key for Fast Open (cookie) */\ntools/include/uapi/linux/tcp.h:124:#define TCP_FASTOPEN_NO_COOKIE\t34\t/* Enable TFO without a TFO cookie */\ntools/include/uapi/linux/tcp.h-125-#define TCP_ZEROCOPY_RECEIVE\t35\n--\ntools/testing/selftests/bpf/prog_tests/migrate_reuseport.c-37-\ntools/testing/selftests/bpf/prog_tests/migrate_reuseport.c:38:#ifndef TCP_FASTOPEN_CONNECT\ntools/testing/selftests/bpf/prog_tests/migrate_reuseport.c:39:#define TCP_FASTOPEN_CONNECT 30\ntools/testing/selftests/bpf/prog_tests/migrate_reuseport.c-40-#endif\n--\ntools/testing/selftests/bpf/prog_tests/migrate_reuseport.c=221=static int start_servers(struct migrate_reuseport_test_case *test_case,\n--\ntools/testing/selftests/bpf/prog_tests/migrate_reuseport.c-265-\t\t\terr = setsockopt(test_case-\u003eservers[i],\ntools/testing/selftests/bpf/prog_tests/migrate_reuseport.c:266:\t\t\t\t\t SOL_TCP, TCP_FASTOPEN,\ntools/testing/selftests/bpf/prog_tests/migrate_reuseport.c-267-\t\t\t\t\t \u0026qlen, sizeof(qlen));\ntools/testing/selftests/bpf/prog_tests/migrate_reuseport.c:268:\t\t\tif (!ASSERT_OK(err, \"setsockopt - TCP_FASTOPEN\"))\ntools/testing/selftests/bpf/prog_tests/migrate_reuseport.c-269-\t\t\t\treturn -1;\n--\ntools/testing/selftests/bpf/prog_tests/migrate_reuseport.c=283=static int start_clients(struct migrate_reuseport_test_case *test_case)\n--\ntools/testing/selftests/bpf/prog_tests/migrate_reuseport.c-304-\t\t\terr = setsockopt(test_case-\u003eclients[i], IPPROTO_TCP,\ntools/testing/selftests/bpf/prog_tests/migrate_reuseport.c:305:\t\t\t\t\t TCP_FASTOPEN_CONNECT, \u0026fastopen,\ntools/testing/selftests/bpf/prog_tests/migrate_reuseport.c-306-\t\t\t\t\t sizeof(fastopen));\ntools/testing/selftests/bpf/prog_tests/migrate_reuseport.c-307-\t\t\tif (!ASSERT_OK(err,\ntools/testing/selftests/bpf/prog_tests/migrate_reuseport.c:308:\t\t\t\t       \"setsockopt - TCP_FASTOPEN_CONNECT\"))\ntools/testing/selftests/bpf/prog_tests/migrate_reuseport.c-309-\t\t\t\treturn -1;\n--\ntools/testing/selftests/net/mptcp/mptcp_connect.c=262=static void set_mptfo(int fd)\n--\ntools/testing/selftests/net/mptcp/mptcp_connect.c-265-\ntools/testing/selftests/net/mptcp/mptcp_connect.c:266:\tif (setsockopt(fd, IPPROTO_TCP, TCP_FASTOPEN, \u0026qlen, sizeof(qlen)) == -1)\ntools/testing/selftests/net/mptcp/mptcp_connect.c:267:\t\tperror(\"TCP_FASTOPEN\");\ntools/testing/selftests/net/mptcp/mptcp_connect.c-268-}\n--\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_basic-cookie-not-reqd.pkt-14-   +0 listen(3, 1) = 0\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_basic-cookie-not-reqd.pkt:15:   +0 setsockopt(3, SOL_TCP, TCP_FASTOPEN, [1], 4) = 0\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_basic-cookie-not-reqd.pkt-16-\n--\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_basic-no-setsockopt.pkt-4-//\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_basic-no-setsockopt.pkt:5:// Test TFO_SERVER_WO_SOCKOPT1 without setsockopt(TCP_FASTOPEN)\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_basic-no-setsockopt.pkt-6-\n--\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_basic-non-tfo-listener.pkt-4-//\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_basic-non-tfo-listener.pkt:5:// Server w/o TCP_FASTOPEN socket option\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_basic-non-tfo-listener.pkt-6-\n--\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_basic-non-tfo-listener.pkt-15-\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_basic-non-tfo-listener.pkt:16:// Data is ignored since TCP_FASTOPEN is not set on the listener\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_basic-non-tfo-listener.pkt-17-   +0 \u003e S. 0:0(0) ack 1 \u003cmss 1460,nop,nop,sackOK\u003e\n--\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_basic-pure-syn-data.pkt-13-   +0 listen(3, 1) = 0\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_basic-pure-syn-data.pkt:14:   +0 setsockopt(3, SOL_TCP, TCP_FASTOPEN, [1], 4) = 0\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_basic-pure-syn-data.pkt-15-\n--\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_basic-pure-syn-data.pkt-27-   +0 listen(3, 1) = 0\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_basic-pure-syn-data.pkt:28:   +0 setsockopt(3, SOL_TCP, TCP_FASTOPEN, [1], 4) = 0\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_basic-pure-syn-data.pkt-29-\n--\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_basic-pure-syn-data.pkt-42-   +0 listen(3, 1) = 0\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_basic-pure-syn-data.pkt:43:   +0 setsockopt(3, SOL_TCP, TCP_FASTOPEN, [1], 4) = 0\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_basic-pure-syn-data.pkt-44-\n--\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_basic-rw.pkt-12-   +0 listen(3, 1) = 0\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_basic-rw.pkt:13:   +0 setsockopt(3, SOL_TCP, TCP_FASTOPEN, [1], 4) = 0\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_basic-rw.pkt-14-\n--\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_basic-zero-payload.pkt-14-   +0 listen(3, 1) = 0\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_basic-zero-payload.pkt:15:   +0 setsockopt(3, SOL_TCP, TCP_FASTOPEN, [1], 4) = 0\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_basic-zero-payload.pkt-16-\n--\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_client-ack-dropped-then-recovery-ms-timestamps.pkt-24-   +0 setsockopt(3, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_client-ack-dropped-then-recovery-ms-timestamps.pkt:25:   +0 setsockopt(3, SOL_TCP, TCP_FASTOPEN, [1], 4) = 0\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_client-ack-dropped-then-recovery-ms-timestamps.pkt-26-   +0 bind(3, ..., ...) = 0\n--\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_experimental_option.pkt-16-   +0 listen(3, 1) = 0\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_experimental_option.pkt:17:   +0 setsockopt(3, SOL_TCP, TCP_FASTOPEN, [1], 4) = 0\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_experimental_option.pkt-18-\n--\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_experimental_option.pkt-28-   +0 listen(3, 1) = 0\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_experimental_option.pkt:29:   +0 setsockopt(3, SOL_TCP, TCP_FASTOPEN, [1], 4) = 0\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_experimental_option.pkt-30-\n--\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_fin-close-socket.pkt-12-   +0 listen(3, 1) = 0\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_fin-close-socket.pkt:13:   +0 setsockopt(3, SOL_TCP, TCP_FASTOPEN, [1], 4) = 0\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_fin-close-socket.pkt-14-\n--\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_icmp-before-accept.pkt-15-   +0 listen(3, 1) = 0\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_icmp-before-accept.pkt:16:   +0 setsockopt(3, SOL_TCP, TCP_FASTOPEN, [1], 4) = 0\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_icmp-before-accept.pkt-17-\n--\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_reset-after-accept.pkt-13-   +0 listen(3, 1) = 0\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_reset-after-accept.pkt:14:   +0 setsockopt(3, SOL_TCP, TCP_FASTOPEN, [1], 4) = 0\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_reset-after-accept.pkt-15-\n--\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_reset-before-accept.pkt-14-   +0 listen(3, 1) = 0\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_reset-before-accept.pkt:15:   +0 setsockopt(3, SOL_TCP, TCP_FASTOPEN, [1], 4) = 0\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_reset-before-accept.pkt-16-\n--\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_reset-close-with-unread-data.pkt-17-   +0 listen(3, 1) = 0\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_reset-close-with-unread-data.pkt:18:   +0 setsockopt(3, SOL_TCP, TCP_FASTOPEN, [1], 4) = 0\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_reset-close-with-unread-data.pkt-19-\n--\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_reset-non-tfo-socket.pkt-14-   +0 listen(3, 1) = 0\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_reset-non-tfo-socket.pkt:15:   +0 setsockopt(3, SOL_TCP, TCP_FASTOPEN, [1], 4) = 0\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_reset-non-tfo-socket.pkt-16-\n--\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_sockopt-fastopen-key.pkt-3-// Test the server cookie is generated by aes64 encoding of remote and local\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_sockopt-fastopen-key.pkt:4:// IP addresses with a master key specified via sockopt TCP_FASTOPEN_KEY\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_sockopt-fastopen-key.pkt-5-//\n--\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_sockopt-fastopen-key.pkt-14-// tests (which the same key but set via sysctl).\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_sockopt-fastopen-key.pkt:15:   +0 setsockopt(3, SOL_TCP, TCP_FASTOPEN_KEY,\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_sockopt-fastopen-key.pkt-16-                 \"\\xa1\\xa1\\xa1\\xa1\\xb2\\xb2\\xb2\\xb2\\xc3\\xc3\\xc3\\xc3\\xd4\\xd4\\xd4\\xd4\", 16) = 0\n--\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_sockopt-fastopen-key.pkt-19-   +0 listen(3, 1) = 0\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_sockopt-fastopen-key.pkt:20:   +0 setsockopt(3, SOL_TCP, TCP_FASTOPEN, [1], 4) = 0\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_sockopt-fastopen-key.pkt-21-\n--\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_sockopt-fastopen-key.pkt-40-   +0 listen(3, 1) = 0\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_sockopt-fastopen-key.pkt:41:   +0 setsockopt(3, SOL_TCP, TCP_FASTOPEN, [1], 4) = 0\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_sockopt-fastopen-key.pkt-42-\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_sockopt-fastopen-key.pkt-43-// Test setting the key in the listen state, and produces an identical cookie\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_sockopt-fastopen-key.pkt:44:   +0 setsockopt(3, SOL_TCP, TCP_FASTOPEN_KEY,\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_sockopt-fastopen-key.pkt-45-                 \"\\xa1\\xa1\\xa1\\xa1\\xb2\\xb2\\xb2\\xb2\\xc3\\xc3\\xc3\\xc3\\xd4\\xd4\\xd4\\xd4\", 16) = 0\n--\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_sockopt-fastopen-key.pkt-65-   +0 listen(3, 1) = 0\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_sockopt-fastopen-key.pkt:66:   +0 setsockopt(3, SOL_TCP, TCP_FASTOPEN, [1], 4) = 0\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_sockopt-fastopen-key.pkt-67-\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_sockopt-fastopen-key.pkt-68-// Test invalid key length (must be 16 bytes)\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_sockopt-fastopen-key.pkt:69:   +0 setsockopt(3, SOL_TCP, TCP_FASTOPEN_KEY, \"\", 0) = -1 (Invalid Argument)\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_sockopt-fastopen-key.pkt:70:   +0 setsockopt(3, SOL_TCP, TCP_FASTOPEN_KEY, \"\", 3) = -1 (Invalid Argument)\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_sockopt-fastopen-key.pkt-71-\n--\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_trigger-rst-listener-closed.pkt-11-   +0 listen(3, 1) = 0\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_trigger-rst-listener-closed.pkt:12:   +0 setsockopt(3, SOL_TCP, TCP_FASTOPEN, [1], 4) = 0\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_trigger-rst-listener-closed.pkt-13-\n--\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_trigger-rst-reconnect.pkt-8-   +0 listen(3, 1) = 0\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_trigger-rst-reconnect.pkt:9:   +0 setsockopt(3, SOL_TCP, TCP_FASTOPEN, [1], 4) = 0\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_trigger-rst-reconnect.pkt-10-\n--\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_trigger-rst-unread-data-closed.pkt-11-   +0 listen(3, 1) = 0\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_trigger-rst-unread-data-closed.pkt:12:   +0 setsockopt(3, SOL_TCP, TCP_FASTOPEN, [1], 4) = 0\ntools/testing/selftests/net/packetdrill/tcp_fastopen_server_trigger-rst-unread-data-closed.pkt-13-\n--\ntools/testing/selftests/net/packetdrill/tcp_rto_synack_rto_max.pkt-14-   +0 listen(3, 1) = 0\ntools/testing/selftests/net/packetdrill/tcp_rto_synack_rto_max.pkt:15:   +0 setsockopt(3, SOL_TCP, TCP_FASTOPEN, [1], 4) = 0\ntools/testing/selftests/net/packetdrill/tcp_rto_synack_rto_max.pkt-16-\n--\ntools/testing/selftests/net/packetdrill/tcp_syscall_bad_arg_fastopen-invalid-buf-ptr.pkt-9-+0 fcntl(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0\ntools/testing/selftests/net/packetdrill/tcp_syscall_bad_arg_fastopen-invalid-buf-ptr.pkt:10:+0 setsockopt(3, SOL_TCP, TCP_FASTOPEN_CONNECT, [1], 4) = 0\ntools/testing/selftests/net/packetdrill/tcp_syscall_bad_arg_fastopen-invalid-buf-ptr.pkt-11-+0 connect(3, ..., ...) = -1 EINPROGRESS (Operation is now in progress)\n--\ntools/testing/selftests/net/packetdrill/tcp_syscall_bad_arg_fastopen-invalid-buf-ptr.pkt-19-\ntools/testing/selftests/net/packetdrill/tcp_syscall_bad_arg_fastopen-invalid-buf-ptr.pkt:20:// Test with MSG_FASTOPEN without TCP_FASTOPEN_CONNECT.\ntools/testing/selftests/net/packetdrill/tcp_syscall_bad_arg_fastopen-invalid-buf-ptr.pkt-21-+0 socket(..., SOCK_STREAM, IPPROTO_TCP) = 4\n--\ntools/testing/selftests/net/packetdrill/tcp_syscall_bad_arg_fastopen-invalid-buf-ptr.pkt-25-\ntools/testing/selftests/net/packetdrill/tcp_syscall_bad_arg_fastopen-invalid-buf-ptr.pkt:26:// Test with TCP_FASTOPEN_CONNECT without MSG_FASTOPEN.\ntools/testing/selftests/net/packetdrill/tcp_syscall_bad_arg_fastopen-invalid-buf-ptr.pkt-27-+0 socket(..., SOCK_STREAM, IPPROTO_TCP) = 5\ntools/testing/selftests/net/packetdrill/tcp_syscall_bad_arg_fastopen-invalid-buf-ptr.pkt-28-+0 fcntl(5, F_SETFL, O_RDWR|O_NONBLOCK) = 0\ntools/testing/selftests/net/packetdrill/tcp_syscall_bad_arg_fastopen-invalid-buf-ptr.pkt:29:+0 setsockopt(5, SOL_TCP, TCP_FASTOPEN_CONNECT, [1], 4) = 0\ntools/testing/selftests/net/packetdrill/tcp_syscall_bad_arg_fastopen-invalid-buf-ptr.pkt-30-+0 connect(5, ..., ...) = 0\n--\ntools/testing/selftests/net/packetdrill/tcp_syscall_bad_arg_fastopen-invalid-buf-ptr.pkt-33-\ntools/testing/selftests/net/packetdrill/tcp_syscall_bad_arg_fastopen-invalid-buf-ptr.pkt:34:// Test with both TCP_FASTOPEN_CONNECT and MSG_FASTOPEN.\ntools/testing/selftests/net/packetdrill/tcp_syscall_bad_arg_fastopen-invalid-buf-ptr.pkt-35-+0 socket(..., SOCK_STREAM, IPPROTO_TCP) = 6\ntools/testing/selftests/net/packetdrill/tcp_syscall_bad_arg_fastopen-invalid-buf-ptr.pkt-36-+0 fcntl(6, F_SETFL, O_RDWR|O_NONBLOCK) = 0\ntools/testing/selftests/net/packetdrill/tcp_syscall_bad_arg_fastopen-invalid-buf-ptr.pkt:37:+0 setsockopt(6, SOL_TCP, TCP_FASTOPEN_CONNECT, [1], 4) = 0\ntools/testing/selftests/net/packetdrill/tcp_syscall_bad_arg_fastopen-invalid-buf-ptr.pkt-38-+0 connect(6, ..., ...) = 0\n--\ntools/testing/selftests/net/packetdrill/tcp_zerocopy_fastopen-server.pkt-16-   +0 listen(3, 1) = 0\ntools/testing/selftests/net/packetdrill/tcp_zerocopy_fastopen-server.pkt:17:   +0 setsockopt(3, SOL_TCP, TCP_FASTOPEN, [2], 4) = 0\ntools/testing/selftests/net/packetdrill/tcp_zerocopy_fastopen-server.pkt-18-   +0 setsockopt(3, SOL_SOCKET, SO_ZEROCOPY, [1], 4) = 0\n--\ntools/testing/selftests/net/reuseport_bpf.c=151=static void build_recv_group(const struct test_params p, int fd[], uint16_t mod,\n--\ntools/testing/selftests/net/reuseport_bpf.c-175-\t\t\topt = 4;\ntools/testing/selftests/net/reuseport_bpf.c:176:\t\t\tif (setsockopt(fd[i], SOL_TCP, TCP_FASTOPEN, \u0026opt,\ntools/testing/selftests/net/reuseport_bpf.c-177-\t\t\t\t       sizeof(opt)))\ntools/testing/selftests/net/reuseport_bpf.c-178-\t\t\t\terror(1, errno,\ntools/testing/selftests/net/reuseport_bpf.c:179:\t\t\t\t      \"failed to set TCP_FASTOPEN on %d\", i);\ntools/testing/selftests/net/reuseport_bpf.c-180-\t\t\tif (listen(fd[i], p.recv_socks * 10))\n--\ntools/testing/selftests/net/tcp_fastopen_backup_key.c-30-\ntools/testing/selftests/net/tcp_fastopen_backup_key.c:31:#ifndef TCP_FASTOPEN_KEY\ntools/testing/selftests/net/tcp_fastopen_backup_key.c:32:#define TCP_FASTOPEN_KEY 33\ntools/testing/selftests/net/tcp_fastopen_backup_key.c-33-#endif\n--\ntools/testing/selftests/net/tcp_fastopen_backup_key.c=49=static void get_keys(int fd, uint32_t *keys)\n--\ntools/testing/selftests/net/tcp_fastopen_backup_key.c-54-\tif (do_sockopt) {\ntools/testing/selftests/net/tcp_fastopen_backup_key.c:55:\t\tif (getsockopt(fd, SOL_TCP, TCP_FASTOPEN_KEY, keys, \u0026len))\ntools/testing/selftests/net/tcp_fastopen_backup_key.c-56-\t\t\terror(1, errno, \"Unable to get key\");\n--\ntools/testing/selftests/net/tcp_fastopen_backup_key.c=67=static void set_keys(int fd, uint32_t *keys)\n--\ntools/testing/selftests/net/tcp_fastopen_backup_key.c-71-\tif (do_sockopt) {\ntools/testing/selftests/net/tcp_fastopen_backup_key.c:72:\t\tif (setsockopt(fd, SOL_TCP, TCP_FASTOPEN_KEY, keys,\ntools/testing/selftests/net/tcp_fastopen_backup_key.c-73-\t\t    key_len))\n--\ntools/testing/selftests/net/tcp_fastopen_backup_key.c=89=static void build_rcv_fd(int family, int proto, int *rcv_fds)\n--\ntools/testing/selftests/net/tcp_fastopen_backup_key.c-131-\t\t\terror(1, errno, \"failed to bind receive socket\");\ntools/testing/selftests/net/tcp_fastopen_backup_key.c:132:\t\tif (setsockopt(rcv_fds[i], SOL_TCP, TCP_FASTOPEN, \u0026qlen,\ntools/testing/selftests/net/tcp_fastopen_backup_key.c-133-\t\t\t       sizeof(qlen)))\ntools/testing/selftests/net/tcp_fastopen_backup_key.c:134:\t\t\terror(1, errno, \"failed to set TCP_FASTOPEN\");\ntools/testing/selftests/net/tcp_fastopen_backup_key.c-135-\t\tset_keys(rcv_fds[i], keys);\n--\ntools/testing/selftests/net/tfo.c=46=static void run_server(void)\n--\ntools/testing/selftests/net/tfo.c-65-\ntools/testing/selftests/net/tfo.c:66:\tif (setsockopt(fd, SOL_TCP, TCP_FASTOPEN, \u0026qlen, sizeof(qlen)) \u003c 0)\ntools/testing/selftests/net/tfo.c:67:\t\terror(1, errno, \"setsockopt(TCP_FASTOPEN)\");\ntools/testing/selftests/net/tfo.c-68-\n"
}

9/2 2026/07/12 01:15 llm patch-evaluator
0m Model:
gemini-3.1-pro-preview

Args:
null

Results:
null

Tokens:
							input: 19200
							output: 19
							thoughts: 31
						

Thoughts:
Okay, here's my take on those thoughts, tailored for an expert audience:

**TCP Fast Open - Digging into the Configuration**

Hmm, so TCP Fast Open... that's a pretty standard feature these days, so I assume it's exposed in the config. Let's see... I'm pretty sure it's controlled by something along the lines of `CONFIG_TCP_FASTOPEN`. But you know, just to be absolutely sure, I should really verify that in the Kconfig files. No point in making assumptions – need to confirm the exact option and its dependencies to understand its full implications within the build and enable/disable configuration logic. Gotta make sure I'm not missing any nuances. Time to double-check those Kconfig files.



10/2 2026/07/12 01:15 tool grepper
0m Error:
no matches

Args:
{
  "Expression": "config TCP_FASTOPEN"
}

Results:
{
  "error": "no matches"
}

11/2 2026/07/12 01:15 llm patch-evaluator
0m Model:
gemini-3.1-pro-preview

Args:
null

Results:
null

Tokens:
							input: 19423
							output: 29
							thoughts: 45
						

Thoughts:
Okay, here's my take on those thoughts, tailored for an expert audience:

**TCP Fast Open - Default Behavior Deep Dive**

Right, so I'm thinking about TCP Fast Open. It's interesting how, in these modern kernels, the assumption is it's just *on*. I'm not seeing a dedicated `CONFIG_TCP_FASTOPEN` flag popping up. I'm used to seeing individual config options, so I'm wondering how this is being handled. I need to track down how this behavior is controlled. Time to jump into `net/ipv4/Kconfig` and take a look at the TCP configuration section. I'll bet it's being managed through some broader setting or maybe implicitly enabled based on another feature. Let's see what the Kconfig file reveals... I'm expecting something in the dependencies that control it.



12/2 2026/07/12 01:15 tool grepper
0m Args:
{
  "Expression": "config TCP",
  "PathPrefix": "net/ipv4/Kconfig"
}

Results:
{
  "Output": "net/ipv4/Kconfig=455=config INET_DIAG_DESTROY\n--\nnet/ipv4/Kconfig-467-\nnet/ipv4/Kconfig:468:menuconfig TCP_CONG_ADVANCED\nnet/ipv4/Kconfig-469-\tbool \"TCP: advanced congestion control\"\n--\nnet/ipv4/Kconfig=479=if TCP_CONG_ADVANCED\nnet/ipv4/Kconfig-480-\nnet/ipv4/Kconfig:481:config TCP_CONG_BIC\nnet/ipv4/Kconfig-482-\ttristate \"Binary Increase Congestion (BIC) control\"\n--\nnet/ipv4/Kconfig-494-\nnet/ipv4/Kconfig:495:config TCP_CONG_CUBIC\nnet/ipv4/Kconfig-496-\ttristate \"CUBIC TCP\"\n--\nnet/ipv4/Kconfig-502-\nnet/ipv4/Kconfig:503:config TCP_CONG_WESTWOOD\nnet/ipv4/Kconfig-504-\ttristate \"TCP Westwood+\"\n--\nnet/ipv4/Kconfig-516-\nnet/ipv4/Kconfig:517:config TCP_CONG_HTCP\nnet/ipv4/Kconfig-518-\ttristate \"H-TCP\"\n--\nnet/ipv4/Kconfig-527-\nnet/ipv4/Kconfig:528:config TCP_CONG_HSTCP\nnet/ipv4/Kconfig-529-\ttristate \"High Speed TCP\"\n--\nnet/ipv4/Kconfig-537-\nnet/ipv4/Kconfig:538:config TCP_CONG_HYBLA\nnet/ipv4/Kconfig-539-\ttristate \"TCP-Hybla congestion control algorithm\"\n--\nnet/ipv4/Kconfig-546-\nnet/ipv4/Kconfig:547:config TCP_CONG_VEGAS\nnet/ipv4/Kconfig-548-\ttristate \"TCP Vegas\"\n--\nnet/ipv4/Kconfig-556-\nnet/ipv4/Kconfig:557:config TCP_CONG_NV\nnet/ipv4/Kconfig-558-\ttristate \"TCP NV\"\n--\nnet/ipv4/Kconfig-572-\nnet/ipv4/Kconfig:573:config TCP_CONG_SCALABLE\nnet/ipv4/Kconfig-574-\ttristate \"Scalable TCP\"\n--\nnet/ipv4/Kconfig-581-\nnet/ipv4/Kconfig:582:config TCP_CONG_LP\nnet/ipv4/Kconfig-583-\ttristate \"TCP Low Priority\"\n--\nnet/ipv4/Kconfig-590-\nnet/ipv4/Kconfig:591:config TCP_CONG_VENO\nnet/ipv4/Kconfig-592-\ttristate \"TCP Veno\"\n--\nnet/ipv4/Kconfig-601-\nnet/ipv4/Kconfig:602:config TCP_CONG_YEAH\nnet/ipv4/Kconfig-603-\ttristate \"YeAH TCP\"\n--\nnet/ipv4/Kconfig-615-\nnet/ipv4/Kconfig:616:config TCP_CONG_ILLINOIS\nnet/ipv4/Kconfig-617-\ttristate \"TCP Illinois\"\n--\nnet/ipv4/Kconfig-627-\nnet/ipv4/Kconfig:628:config TCP_CONG_DCTCP\nnet/ipv4/Kconfig-629-\ttristate \"DataCenter TCP (DCTCP)\"\n--\nnet/ipv4/Kconfig-648-\nnet/ipv4/Kconfig:649:config TCP_CONG_CDG\nnet/ipv4/Kconfig-650-\ttristate \"CAIA Delay-Gradient (CDG)\"\n--\nnet/ipv4/Kconfig-665-\nnet/ipv4/Kconfig:666:config TCP_CONG_BBR\nnet/ipv4/Kconfig-667-\ttristate \"BBR TCP\"\n--\nnet/ipv4/Kconfig=722=endif\nnet/ipv4/Kconfig-723-\nnet/ipv4/Kconfig:724:config TCP_CONG_CUBIC\nnet/ipv4/Kconfig-725-\ttristate\n--\nnet/ipv4/Kconfig=729=config DEFAULT_TCP_CONG\n--\nnet/ipv4/Kconfig-743-\nnet/ipv4/Kconfig:744:config TCP_AO\nnet/ipv4/Kconfig-745-\tbool \"TCP: Authentication Option (RFC5925)\"\n--\nnet/ipv4/Kconfig-758-\nnet/ipv4/Kconfig:759:config TCP_MD5SIG\nnet/ipv4/Kconfig-760-\tbool \"TCP: MD5 Signature Option support (RFC2385)\"\n"
}

13/2 2026/07/12 01:15 llm patch-evaluator
0m Model:
gemini-3.1-pro-preview

Args:
null

Results:
null

Tokens:
							input: 20284
							output: 107
							thoughts: 636
						

Thoughts:
**My Assessment of the TCP Stack Patch**

Okay, so I've been looking at this patch and the changes are focused on the TCP stack, specifically concerning SYNACK retransmissions and the Fast Open feature. It looks like they're limiting the number of SYNACK retries to a maximum of 63, which is `MAX_TCP_SYNACK_RETRIES`, and fixing a potential overflow in the `tcp_reqsk_timeout` calculation. These are clearly functional changes deep in the core TCP stack. Definitely, worth fuzzing this!

Let me zero in on the key symbols involved. It looks like `reqsk_timer_handler`, `tcp_fastopen_synack_timer`, and by extension, `tcp_reqsk_timeout`, even though it's inlined. I should keep in mind that the inlining of `tcp_reqsk_timeout` means the other two are the more directly fuzzable functions.

I need to confirm if any specific configurations are needed to trigger this logic. The code is located in `net/ipv4/inet_connection_sock.c` and `net/ipv4/tcp_timer.c`, which are compiled with `CONFIG_INET` and `CONFIG_TCP`, so nothing unusual networking related.

So, I've got my focus symbols: `reqsk_timer_handler` and `tcp_fastopen_synack_timer`.

Just to be sure, I'll quickly confirm that `tcp_reqsk_timeout` is inlined, which it is. That means my initial assessment is sound. It is a `static inline` function.

Now, a bit of background check. Wait, `reqsk_timer_handler` is a timer handler that's part of the request socket queue, and `tcp_fastopen_synack_timer` is called from `tcp_retransmit_timer`, so that gives me a clear idea of what's happening.

I'll check `tcp_fastopen_synack_timer` now, which is called from the retransmit timer.

Also checking where `reqsk_timer_handler` is set up. It looks like its set up in `inet_csk_reqsk_queue_hash_add` and `inet_csk_reqsk_queue_drop_and_put`.

Let me quickly double-check if Fast Open needs any special configurations. After a quick search, no. Seems it's enabled by default, probably controlled via sysctls.

Alright, final assessment:

`WorthFuzzing: true`.
`FocusSymbols: ["reqsk_timer_handler", "tcp_fastopen_synack_timer"]`.
`EnableConfigs: []`.
`Reasoning: "The patch modifies TCP SYNACK retransmission logic and timeout calculations, particularly for Fast Open and request sockets, fixing potential overflows and bounding retries. These are functional changes in core TCP timer handlers."`



14/2 2026/07/12 01:15 tool set-results
0m Args:
{
  "EnableConfigs": [],
  "FocusSymbols": [
    "reqsk_timer_handler",
    "tcp_fastopen_synack_timer"
  ],
  "Reasoning": "The patch makes functional changes to the core TCP stack, specifically modifying SYNACK retransmission logic, bounding the maximum number of retries, and fixing potential integer overflows in timeout calculations for request sockets and TCP Fast Open. These changes affect reachable timer handlers and should be fuzzed.",
  "WorthFuzzing": true
}

Results:
{
  "EnableConfigs": null,
  "FocusSymbols": [
    "reqsk_timer_handler",
    "tcp_fastopen_synack_timer"
  ],
  "Reasoning": "The patch makes functional changes to the core TCP stack, specifically modifying SYNACK retransmission logic, bounding the maximum number of retries, and fixing potential integer overflows in timeout calculations for request sockets and TCP Fast Open. These changes affect reachable timer handlers and should be fuzzed.",
  "WorthFuzzing": true
}

LLM Calls Summary:
Total Calls Total Tokens Avg Tokens Total Duration (Seconds) Avg Duration (Seconds)
Tool Calls Summary:
Total Calls Total Duration (Seconds) Avg Duration (Seconds)