Re: BUG: mmapfile/writev spurious zero bytes (x86_64/not i386,bisected, reproducable)

From: Al Viro
Date: Tue Jun 17 2008 - 17:36:33 EST


On Tue, Jun 17, 2008 at 02:24:39PM -0700, Linus Torvalds wrote:

> The whole *and*only* reason for copy_to/from_user() existing AT ALL is
> exactly the fact that the source or destination access can fault.

Erm... The reason for copy_to_user() existing is that dereferencing
a user-supplied address in the kernel does not have to access any
memory reachable in user mode, regardless of any faults. WTF are you
guys talking about?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/