How recurring network maintenance exposed 6 bugs
Recurring weekend network partitions caused Jane Street's Kafka relays and consumer-group monitors to segfault, leak hundreds of thousands of sockets, and crash under recovery-time TCP connection surges, and tracing them uncovered six layered bugs. Among them are an eleven-year-old glibc bug where a failed res_init leaves nscount nonzero with null nameserver pointers so the next gethostbyname segfaults in sock_eq, a UDP socket leak when bind fails with EADDRINUSE under ephemeral-port exhaustion, and a fourteen-year-old Async regression where Tcp.connect_sock's timeout no longer covers DNS resolution. The rest are a Kafka client retry loop that never aborts timed-out attempts, duplicated concurrent discovery lookups, and a job runner migration that cut file-descriptor limits eightfold. Each bug masked the next, and the glibc fix shipped upstream in 2.44.
Related posts
- The case of the vanishing CPU: A Linux kernel debugging story
ClickHouse hardMaster
Intermittent, indefinite CPU saturation of ClickHouse Cloud pods, seen only on GCP, turned out to be a Linux kernel memory-management livelock. Pods sat just under their cgroup memory limit while every CPU spun in shrink_lruvec during memcg reclaim triggered by page-cache readahead on page faults. The investigation used gdb backtraces, bpftrace syscall latency histograms, perf top/stat, pidstat and an on-call runbook to reach a reproducible test case and a kernel fix, after which another kernel bug surfaced. One lesson along the way: signal-based user-space stack traces hide kernel time entirely, so gdb backtraces pointed the team at the wrong code.
- A Higgs-bugson in the Linux Kernel
Jane Street Tech Blog hardMasterRare EACCES failures during large file copies over Kerberized NFSv3 came from a Linux kernel bug in RPCSEC_GSS reply verification. When an overloaded server caused the client to retransmit a request with the same XID, the kernel assigned a new GSS sequence number, so a late reply HMAC'd over the old sequence number failed checksum validation, which triggered more retransmissions and, after three failures, returned EACCES to userspace. The bug was isolated with an in-memory FUSE filesystem written in Rust, bpftrace probes on auth_rpcgss functions, a custom Wireshark checksum plugin, and an NFQUEUE-based manual packet delayer. Two upstream patches, shipping in Linux 6.16, fix it: one caches prior sequence numbers as RFC 2203 suggests, and one stops retransmitting immediately on a bad checksum.
- Well, That Wasn't Fun: October 16 '26
Fly.io mediumAdeptA Linux kernel bug in IPv4 checksum offload validation let a guest VM direct the host to write its computed checksum into an already-trusted IPv4 header field. This enabled a firewall bypass and a 32-byte out-of-bounds read that could leak host memory or packets from neighboring VMs. XDP rules ran too early to catch the rewrite, and disabling offload required a reboot anyway, so Fly.io patched and rebooted its entire fleet in 10 hours. Reboots were sequenced in waves so no Managed Postgres cluster lost both nodes (17 waves in iad), with some hosts stuck in BIOS or lost to a failed power supply. The write-up also covers the decision to label the work as 'maintenance' rather than disclose vulnerability, the move of incident comms to the exec team, and advice to encrypt internal traffic, scope and expire agent credentials, and rehearse rotation.
- Core dump epidemiology: fixing an 18-year-old bug
OpenAI hardMaster
Mysterious return-to-bogus-address crashes in Rockset's C++ execution layer turned out to be two unrelated bugs: silent register corruption on a single bad Azure host, and an 18-year-old race in GNU libunwind's _Ux86_64_setcontext, which read the synthesized ucontext_t after moving %rsp past it, letting a frequent SIGUSR2 CPU-time signal clobber it during exception unwinding. The breakthrough came from switching from close inspection of individual cores to population analysis: an automated pipeline classified every production core dump from the past year, and the clean data set separated the two crash clusters by region, start date and node age. Fixes included denylisting the host, logging register state in the fatal signal handler, reusing VMs to make bad-node detection easier, and patching libunwind.
- Intermittent downtime from repeated crashes
incident.io mediumAdeptA poison-pill Pub/Sub message crashed incident.io's Go monolith on Heroku repeatedly, causing 13 minutes of downtime over 32 minutes. The root cause was an unhandled panic inside goroutines spawned by the Google Cloud Pub/Sub client's Receive method, which a parent goroutine's recover() cannot catch. Debugging was slowed because Go's full goroutine stack dumps overwhelmed Heroku's log rate limits, and the abrupt exit also killed Sentry reporting. The team recovered by purging suspect subscriptions, then added a recover inside the message handler and split web, worker and cron work into separate Heroku dyno tiers so worker crashes can't take down request serving.