Re: AUDIT: copy_from_user is a deathtrap.

Alan Cox (alan@lxorguk.ukuu.org.uk)
Wed, 22 May 2002 14:30:40 +0100 (BST)


> > Because the standard says either you return the errorcode and no data
> > is transferred or for a partial I/O you return how much was done.
>
> Hmm... I can't find anything like that in SuSv2: can you give a reference?
> And we're already violating that for the write() case.

The we should fix the bug. Its explicitly covered in SuSv3 because that
incorporates the posix text. Its also discussed in things like 1003.1g
drafts in great detail (sockets have very explicit ordering for error
reporting)
-
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/