Skip to content

zerocopy fixes

Willem de Bruijn netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2skbuff: orphan frags before zerocopy clonenet/core/skbuff.c+2 -20 replies
2/2skbuff: skb_copy_ubufs must release uarg even without user fragsnet/core/skbuff.c+2 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH net 0/2] zerocopy fixes

From: Willem de Bruijn <[email protected]>

The removal of UFO hardware offload support exposed a bug in segmentation of zerocopy skbs.

The reference counting mechanism for msg_zerocopy was incorrectly applied to vhost_net zerocopy packets.

The other issue observed through analysis. We do not cook skbs with skb_zcopy(skb) but no frags, but this is possible in principle. Correctly call skb_zcopy_clear on those.

Willem de Bruijn (2):
skbuff: orphan frags before zerocopy clone
skbuff: skb_copy_ubufs must release uarg even without user frags

 net/core/skbuff.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
Signature · 1 line
2.15.1.620.gb9897f4670-goog