by zxzax · 5y ago · 0 comments
>People forget that only a few years ago have we decided that the kernel now has to protect userspace programs from malicious hardware. That's a major shift in thinking, now data that we used to blindly trust can not be trusted at all.
How come this wasn't being done already? Wouldn't you want drivers to do safety checks on everything, in case of a hardware failure? Or does this refer to something else, besides safety checks?
Designing code to be resistant to active malicious attack is very different than just handling error cases for things that don't work.
I think it largely refers to the Spectre + Meltdown class of attacks, which caused the kernel to introduce a whole class of fixes (retpolines, etc.).
malicious device - will send dma requests to read memory and then to send it to some other server or will implant some malicious software in memory or inside other devices.