4 ms·
You don't get interrupt handlers, for one thing (though I think there are projects that do allow complete userspace drivers), and as binarycrusader mentioned, i
by nitrogen 14y ago
You don't get interrupt handlers, for one thing (though I think there are projects that do allow complete userspace drivers), and as binarycrusader mentioned, it's incredibly dangerous to give any process full access to the entire physical memory space. A single vulnerability in that process gives the attacker the ability to write to all of system memory. This can be mitigated somewhat by mmap()ing only the smallest possible region of interest, then dropping root privileges.
- justin66 14y ago> You don't get interrupt handlers, for one thing Thanks.
- xyzzy123 14y agoYep, although most linux dists now have "/dev/mem protection" meaning that on stock distro kernels (Ubuntu, CentOS, etc), access to actual "physical memory" is disabled. Ref: http://lwn.net/Articles/267427/ http://lwn.net/Articles/267427/ OK for driver development. If you need access to physical memory you have to compile a kernel with unrestricted /dev/mem.