3 ms·
You could but it would induce corruption in programs. Programs expect I/O to fail much more often than they expect memory accesses to fail.
by dataflow 2y ago
You could but it would induce corruption in programs. Programs expect I/O to fail much more often than they expect memory accesses to fail.
- quotemstr 2y agoPrograms using mmap have to be prepared for SIGBUS on mapped region access anyway --- consider the surprise removal (yanking out USB stick) case. That few programs, especially native code ones, bother to make themselves robust against this failure mode of mmap doesn't make it any less part of the mmap contract between the kernel and userspace.
- dataflow 2y agoContracts are one thing, reality is something else though.