schrodingers-toctou: The binary you run is not the program you wrote

7 points by juri


fanf

tl;dr: someone got an AI to complain at length about data race vulnerabilities. They are shocked that what looks like one read in the source code might not be one read in the machine code. They don’t like the standard fixes: marking every load from shared memory with something like READ_ONCE() requires too much discipline, and they ignore the possibility of using atomic types to get the ergonomics they want. They have invented a huge number of bogus issues that are only problems if the attacker is already on the other side of the airtight hatchway.