[email protected] (=?UTF-8?B?SmFuIFbEjWVsw6Fr?=) writes:

>I've found that the problem is in the newly added sendmmsg() interface.
>It's behavior slightly differs from the implementation in Linux. The
>sendmmsg() on NetBSD modifies the msg_hdr.msg_iov member of the supplied
>struct mmsg_hdr, which doesn't happen on Linux.


That is a bug in the NetBSD sendmmsg() implementation.

The code copies back the structure to the caller to pass modifications
to the msg_len element. But the msg_hdr.msg_iov pointer has been
changed to point to a copy of the iov structure on the kernel stack.

-- 
-- 
                                Michael van Elst
Internet: [email protected]
                                "A potential Snark may lurk in every tree."

Reply via email to