Re: AUDIT: copy_from_user is a deathtrap.

Alan Cox (alan@lxorguk.ukuu.org.uk)
Sun, 19 May 2002 23:44:41 +0100 (BST)


> > Oh, like read() or write() for regular files? Yup, they exist.
>
> And that would be? I've never seen such an abomination. Sure,
> mapping pages on SEGV is use, but passing only partially mapped
> buffers to read/write on purpose???

Some of the storage systems do this. They may try to use the host page
size but on some platforms the host page size is variable so that isnt
feasible.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/