Cloudflare discovered a bug in Go's arm64 compiler that causes a race condition in the generated code, leading to rare but frequent panics on arm64 machines. The bug was found through monitoring and investigation of sporadic panics in a service that configures the kernel to handle traffic. The root cause was determined to be a non-atomic adjustment of the stack pointer, which was fixed by using a temporary register to hold the full value being added to the stack pointer. The bug was likely only noticeable due to Cloudflare's large scale.