A disappearing Service Processor
Oxide's Cosmo sled Service Processor (an STM32H7 Cortex-M7 running Hubris) intermittently dropped off the network and hung so hard a debug probe couldn't halt it. The root cause was mismatched memory attributes. Unprivileged tasks mapped the FPGA's FMC bus as uncached device memory via the MPU, but the privileged kernel's default ARM memory map treated that address as Normal Cached. An interrupt landing during a buffered store could then produce cache write-backs with unexpected access sizes, which hung the 32-bit-only FPGA bus. A measured-boot reset loop cut reproduction time from 24+ hours to about 10-20 minutes, and moving the FMC base address into a default device/uncached region of the address space fixed the issue.
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.
- Porting the Solana eBPF JIT compiler to ARM64
Trail of Bits hardMasterSolana's RBPF JIT compiler, which translates eBPF smart contracts to native code on validators, was ported from x86-only to ARM64, and its x86 backend gained Windows support. The port rewrote the register map, calling convention, shared subroutines (address translation, exceptions, indirect calls, instruction metering) and per-opcode translations. ARM64's fixed 4-byte instructions mean immediates often need several instructions, and the M1 enforces 16-byte stack alignment where QEMU does not. Running the port under MSAN exposed an uninitialized-memory bug: unsafe code read a Rust enum discriminant that was only a u8, so 7 bytes of stack garbage landed in JIT code and weakened its code-reuse mitigations. The fix adds #[repr(u64)] and layout tests, and both new targets remain behind feature gates until reviewed.
- Hubris and Humility
Oxide easyNovice
Hubris is an all-Rust, microkernel-based embedded operating system for Oxide's root of trust and service processors, now open sourced alongside its companion debugger, Humility. Rather than creating tasks dynamically at runtime, Hubris fixes every task for an application at build time and links them with the kernel into a single attestable image. Tasks, kernel and drivers each run in separate memory-protected domains with a strictly synchronous task model. Because all resources are known ahead of time, faulted tasks can always be safely restarted and load-driven resource exhaustion (no fork, no fork bomb) is designed out.
- A Gap in the TrustZone Preset Settings for the LPC55S69
Oxide hardMaster
The LPC55S69's ROM applies TrustZone preset register data roughly in struct order, switching VTOR to the user vector table first. A fault after that point, such as enabling the MPU without covering the ROM region, therefore vectors into user code before the ROM applies the CMPA debug settings and the PUF lockout. A signed image can use this to re-enable SWD debug despite CMPA settings. An unsigned CRC image at manufacturing time can extract the PUF-protected Unique Device Secret used for DICE identity. NXP classified it as a non-security erratum with no CVE, and Oxide stopped using TrustZone preset data, noting that secure boot is only as strong as the code you sign.
- 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.