Thread (3 messages) 3 messages, 3 authors, 2017-02-28

Re: [PATCH RFC v2 00/12] socket sendmsg MSG_ZEROCOPY

flat view

From: Andy Lutomirski <luto@amacapital.net>
Date: 2017-02-28 23:18:19
Also in: netdev

On Tue, Feb 28, 2017 at 2:40 PM, Eric Dumazet [off-list ref] wrote:
On Tue, 2017-02-28 at 14:25 -0800, Andy Lutomirski wrote:
quoted
On Tue, Feb 28, 2017 at 1:47 PM, Eric Dumazet [off-list ref] wrote:
quoted
On Tue, 2017-02-28 at 13:09 -0800, Andy Lutomirski wrote:
quoted
Does this mean that a user program that does a zerocopy send can cause
a retransmitted segment to contain different data than the original
segment?  If so, is that okay?
Same remark applies to sendfile() already
True.
quoted
, or other zero copy modes
(vmsplice() + splice() )
I hate vmsplice().  I thought I remembered it being essentially
disabled at some point due to security problems.
Right, zero copy is hard ;)

vmsplice() is not disabled in current kernels, unless I missed
something.
I think you're right.  That being said, from the man page:

The user pages are a gift to the kernel.  The application  may  not
modify this memory ever, otherwise the page cache and on-disk data may
differ.

This is just not okay IMO.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help