Been a long time since I looked at the relevant bits of the kernel source, but errors when _writing_ to swap devices should be quite manageble, I would have thought - simply mark the block/page as bad and go looking for another free location. It'll be _read_ errors that cause problems!
Some info here, though no discussion of error handling that I noticed. https://www.kernel.org/doc/gorman/html/understand/understand014.html I've had no crashes since installing the fix that went into -proposed and then was released. Still getting the I/O errors though. On Wed, Oct 02, 2013 at 02:37:33AM -0000, Mel Dee wrote: > IMO, this bug *is* a duplicate of #1215513. The real problem is that the > zram kernel module creates a block device with a bad sector at the end. > When you try to swap on it, anything can happen, from system lockdowns > to program crashes to nothing (e.g., if you have so much RAM you never > get to use the last sector of /dev/zram0). [..] -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1217189 Title: Buffer I/O error on device zram0 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1217189/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs