Porting the Solana eBPF JIT compiler to ARM64
Summary: A Trail of Bits summer intern ported Solana's RBPF JIT compiler, which executes smart contracts on validator nodes by default, to ARM64 by updating the register map, calling convention, and instruction translations; RBPF previously supported JIT mode only on x86 hosts. The work is live in two pull requests on Solana's GitHub but sits behind a feature gate named 'jit-aarch64-not-safe-for-production' until it receives thorough peer review, and the intern also added Windows support to the x86 JIT compiler behind 'jit-windows-not-safe-for-production'.
Why it matters: The ARM64 port surfaced a small, unexploitable uninitialized memory bug that was present even in the existing x86 JIT compiler, and the RBPF verifier performs no control-flow-graph analysis or register value tracking, so most exceptions are caught at runtime rather than at verification time.
Read the original at Trail of Bits Blog ↗