The returned errno is 14 (bad address) for write and 121 (remote I/O error) for read.