Skip to content

fix udp pull header breakage

Willem de Bruijn netdev 1 version In review

Get series with b4
b4 am 1460043899-56894-1-git-send-email-willemdebruijn.kernel@gmail.com

Versions newest first

  1. v1 Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2sunrpc: do not pull udp headers on receivenet/sunrpc/socklib.c net/sunrpc/svcsock.c net/sunrpc/xprtsock.c+5 -71 reply
2/2rxrpc: do not pull udp headers on receivenet/rxrpc/ar-input.c+2 -21 reply

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by.

PatchThierry Reding
1/2T-b
2/2T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH net-next 0/2] fix udp pull header breakage

From: Willem de Bruijn <[email protected]>

Commit e6afc8ace6dd ("udp: remove headers from UDP packets before queueing") modified udp receive processing to pull headers before enqueue and to not expect them on dequeue.

The patch missed protocols on top of udp with in-kernel implementations that have their own skb_recv_datagram calls and dequeue logic. Modify these datapaths to also no longer expect a udp header at skb->data.

Sunrpc and rxrpc are the only two protocols that call this function and contain references to udphr (some others, like tipc, are based on encap_rcv, which acts before enqueue, before the the header pull).

Willem de Bruijn (2):
sunrpc: do not pull udp headers on receive
rxrpc: do not pull udp headers on receive

 net/rxrpc/ar-input.c  | 4 ++--
 net/sunrpc/socklib.c  | 2 +-
 net/sunrpc/svcsock.c  | 5 ++---
 net/sunrpc/xprtsock.c | 5 ++---
 4 files changed, 7 insertions(+), 9 deletions(-)
Signature · 1 line
2.8.0.rc3.226.g39d4020