4 ms·
Reminds me about one time when I've spent a week debugging random, but quite consistent kernel crashes, which turned out to be a gcc miscompiling kernel driver
by dpc_pw 7y ago
Reminds me about one time when I've spent a week debugging random, but quite consistent kernel crashes, which turned out to be a gcc miscompiling kernel driver code to decrement stack pointer before ceasing to use some values in that stack area. There was one or two instructions, where if a re-entrant irq happened, would reuse that stack part and corrupt data there.
- Vogtinator 7y agoSounds like the AMD64 red zone, which can't be used in the kernel context.
- dpc_pw 7y agoAarch64. It was just a minor gcc bug.