News for hackers. Stuff that matters.
Re:10% of Firefox crashes are caused by bitflips by rendaw on Thursday March 05, 2026 @10:10AM (#47262442)
That would tell you if there's a bitflip in your test, but not if there's a bitflip in normal program code causing a crash, no? IIUC GP's questions was how do they actually tell after a crash that that crash was caused by a bitflip.
Re:10% of Firefox crashes are caused by bitflips by rincebrain on Thursday March 05, 2026 @10:20AM (#47262593)
The example I gave in there is of adding sentinel values in your data, so you can check the constants in your data structures later and go "oh, this is overwritten with garbage" versus "oh, this is one or two bits off". I would imagine plumbing things like that through most common structures is what was done there, though I haven't done the archaeology to find out, because Firefox is an enormous codebase to try and find one person's commits from several years ago in.
Re:10% of Firefox crashes are caused by bitflips by patrulek on Friday March 06, 2026 @01:58AM (#47271827)
But it would be also possible that sentinel value used for comparison changed because of bitflip, not data structure used by program.
Re:10% of Firefox crashes are caused by bitflips by rincebrain on Saturday March 07, 2026 @05:22AM (#47286278)
Detecting that is the point, yes.
Re:10% of Firefox crashes are caused by bitflips by kevincox on Friday March 06, 2026 @11:50AM (#47277483)
This doesn't always protect against out-of-bounds writes. Although if these sentinel values are in read only memory mappings it probably gets pretty close. (Especially if you consider kernel memory corruption a "bitflip".)
Re:10% of Firefox crashes are caused by bitflips by rincebrain on Saturday March 07, 2026 @05:22AM (#47286275)
Well, yes, the author described it as "a heuristic", which checking sentinel values would seem to match.