Re: __user and iov_base

From: viro
Date: Mon Jun 14 2004 - 13:31:47 EST


On Mon, Jun 14, 2004 at 12:53:18PM -0500, Steve French wrote:
> If a buffer is never used in user space, and is potentially recycled
> (via mempools) for use by more than one process, then it can't be passed
> around as an __user buffer, but is it ok to simply do
> myiovec.iov_base = (__user char *)some_buffer;
> or is there another preferred way to handle kernel to __user
> mappings/casts?

Yes - leave them alone. The warning points to real problem with the
interface; ergo, it should not disappear until there's a clean solution
(if ever).
-
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/