Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: sendmmsg() on NetBSD vs Linux



On Mon, Nov 02, 2015 at 12:40:21AM +0700, Robert Elz wrote:
>     Date:        Sun, 1 Nov 2015 15:41:04 +0000 (UTC)
>     From:        mlelstv%serpens.de@localhost (Michael van Elst)
>     Message-ID:  <n15bqg$3og$1%serpens.de@localhost>
> 
>   | That is a bug in the NetBSD sendmmsg() implementation.
> 
> I'm not sure that's necessarily true.

Well, returning a kernel address in a buffer passed from userland
is clearly a bug, wether you consider the contents to be undefined
or not.

The functions also define clearly where data is returned. Modifying
other data as an undocumented side effect just leads to errors even
when nothing forbids it explicitely.


Greetings,
-- 
                                Michael van Elst
Internet: mlelstv%serpens.de@localhost
                                "A potential Snark may lurk in every tree."


Home | Main Index | Thread Index | Old Index