3 ms·
Excerpts: "My CPU still thought 0xFFFFFFFF was the randomest number ever, always, no matter what." "What if two years later, I was still vulnerable to stack-s
by peter_d_sherman 7y ago
Excerpts:
"My CPU still thought 0xFFFFFFFF was the randomest number ever, always, no matter what."
"What if two years later, I was still vulnerable to stack-smashing that I shouldn't have been, due to ASLR that wasn't actually randomizing?"
An excellent point... IF ASLR is dependent on RDRAND, and IF RDRAND always returns 0xFFFFFFFF, THEN ASLR will not work, and addresses will be laid out in memory deterministically rather than randomly... which is a big no-no for security...
A future OS would check the RNG's it uses for any security feature, on startup, and upon failure would stop, log the problem, advise the user, and ask them how they want to proceed...
- jzwinck 7y ago99% of users would click "Ignore and don't ask me again." If that option is not available they would tell their friends how stupid their OS was and that it ruined their weekend. The OS needs to paper over known defects, if consumers are to be kept sane.
- peter_d_sherman 7y agoDOS had abort, retry, fail (https://en.wikipedia.org/wiki/Abort,_Retry,_Fail%3F https://en.wikipedia.org/wiki/Abort,_Retry,_Fail%3F) when it encountered an issue; most BIOSes will stop if they can't detect the keyboard or if a memory test failed (it typically can be overriden), Windows has an Advanced Boot Options screen that automatically comes up (such that the user can select "Safe Mode") if/when the computer crashed previously... I'm not saying you're wrong; I'm just saying, hey, there's "prior art" for this... <g>
- Dylan16807 7y agoOn the other hand, it could collect entropy in that prompt!