· JavaScript

Google traces GKE API timeouts to Linux kernel TCP bug affecting 800 developers

A kernel-level TCP bug, interacting with issues in Private Service Connect and Google Kubernetes Engine (GKE), was the underlying culprit behind intermittent Kubernetes API connectivity failures…


A kernel-level TCP bug, interacting with issues in Private Service Connect and Google Kubernetes Engine (GKE), was the underlying culprit behind intermittent Kubernetes API connectivity failures that prevented approximately 800 developers from deploying to production.

In January, a customer utilizing multiple GKE clusters equipped with Private Service Connect (PSC) for private control-plane access encountered unpredictable timeouts whenever pods attempted to communicate with the Kubernetes API server. Packet captures provided evidence that the control plane was sending outdated ACK packets in response to new TCP connection requests, packets that actually belonged to connections that had already been terminated.

The complexity stemmed from three separate bugs residing in distinct networking layers. Akash Thakur, a senior technical solutions engineer at Google Cloud, recounted the intensive process where engineers from various Google groups—including those managing GKE, PSC, networking, hostnet, the kernel, and the Linux upstream community—collaborated to uncover three distinct root causes. The final resolution did not come from a simple configuration alteration or a feature flag, but rather from a patch applied directly to the Linux kernel.

Thakur detailed the intricate troubleshooting scenario, which involved I/O timeouts spanning Private Service Connect, virtual network interfaces, and the Linux TCP state machine. This investigation ultimately uncovered a kernel defect that caused sockets to remain indefinitely in the FIN_WAIT_2 state. Thakur elaborated that typically, networking problems resolve themselves within a single layer; one might uncover a faulty firewall rule, an exhausted connection pool, or an incorrect MTU setting, resolve it, and conclude the matter. However, this particular instance was unique because the symptom—an I/O timeout on a connection that never successfully concluded—manifested identically whether observers were examining the Private Service Connect layer, the kernel's TCP state machine, or Envoy's connection management. Each layer offered a seemingly valid explanation, yet every explanation proved incomplete.

The resolution was achieved through a series of three coordinated fixes spanning several weeks. Initially, Google reverted a Private Service Connect modification to restore operational connectivity, followed by correcting the proxy protocol handling and introducing regression tests. Finally, Eric Dumazet, who previously worked as a software engineer at Google, authored a Linux kernel patch that rectified the fundamental TCP issue.

Rohan Karne, managing director at Google Cloud, offered perspective on this situation, stating, "This is the unglamorous reality of mission-critical platform engineering—methodically ruling out the obvious suspects and digging into packet captures until you find the kernel root cause." Thakur further emphasized how individually plausible behaviors across operating systems, proxies, and networking components can coalesce into sophisticated infrastructure failures. Identifying the problem absolutely required examining packet captures across multiple network strata, and correlating these network symptoms with recent infrastructure modifications was key to linking the three bugs together.

Guangba Yu, a postdoctoral researcher at the Chinese University of Hong Kong, pointed out that for AIOps and chaos engineering practices, the transferable methodology involves observing simultaneous path states, protocol conditions, and deployment events, while carefully differentiating between symptom recovery and the correction of the underlying state machine. He added that this specific, anonymized case does not provide a population failure rate and cannot account for every observed API timeout. Justin Garrison, field CTO at Sidero, commented that while he was initially intrigued by the prospect of a kernel patch, he discovered that GKE was running an older kernel version (6.1), and the necessary bug fix had already been implemented upstream. The kernel fix was merged into Linux 6.9.7 and subsequently backported to the 6.6 and 6.1 LTS branches, making it available to GKE customers in version 1.33.5 and subsequent releases.

Why it matters

This case highlights how complex infrastructure failures can arise from seemingly independent bugs across different layers of the stack. Developers using GKE should be aware of the importance of kernel updates, as underlying OS issues can impact cloud service reliability.

Earlier coverage

Related coverage

Also worth reading

  1. Next.js 16.5.0-canary.61 adds experimental image optimization support, Turbopack cache recovery
  2. Firefox UI features glowing progress bar in URL bar, user criticizes "AI slop
  3. Grafana 13.3 adds shared dashboard variables, Notebooks in public preview
  4. QCon San Francisco 2026: Netflix engineer presents staff-plus alignment for tech strategy
  5. Researchers show malicious webpage can hijack Meta Muse and access private chats