News for hackers. Stuff that matters.
Re:A one in a million bug in Switch kernel by saagarjha on Wednesday March 23, 2022 @03:26AM (#30775935)
Most OS vendors will just put a full barrier there and be done with it. Switch doesn't for some reason (and still doesn't, for some reason…not entirely sure why, maybe their context switch is ridiculously fast and the extra barrier would be very expensive?) but when you don't do that you run into problems like these. What's harder is processors storing microarchitectural state that you don't know about, but (post Spectre and Meltdown) CPU vendors have realized that this is not a great idea and started fixing it in microcode and/or hardware.

There are no comments on this comment yet.