Re: sys_write can return -EFAULT instead of -EDQUOT
H. Peter Anvin (hpa@transmeta.com)
9 Feb 1999 10:28:35 GMT
Followup to: <E10AEKo-0002fs-00@sable.ox.ac.uk>
By author: Malcolm Beattie <mbeattie@sable.ox.ac.uk>
In newsgroup: linux.dev.kernel
>
> open("/foo/bar/INBOX", O_RDWR|O_CREAT, 0600) = 5
> fstat(5, {st_mode=0, st_size=2766, ...}) = 0
> lseek(5, 2766, SEEK_SET) = 2766
> write(5, "09-Feb-1999 13:22:55 +0000,26208"..., 56) = 56
> write(5, "Received: via tmail-4.1(10) (inv"..., 26208) = 1276
> write(5, "********************************"..., 24576) = -1 EFAULT (Bad address)
>
> This was reproducible. The above strace, however, is reconstructed
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> from memory. The two figures 26208 and 1276 are the only things I'm
^^^^^^^^^^^^
> not certain I've remembered correctly (just in case the problem
> depends on precise details of 512-block v. 4k page things).
>
You scare me, man...
-hpa
--
"Linux is a very complete and sophisticated operating system. There
are, and will be, large numbers of applications available for it."
-- Paul Maritz, Group Vice President for Platforms And Applications,
Microsoft Corporation [Reference at: http://www.kernel.org/~hpa/ms.html]
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/