Skip to content
Commit 41097c9c authored by Xin Long's avatar Xin Long Committed by Greg Kroah-Hartman
Browse files

udp: fix the proto value passed to ip_protocol_deliver_rcu for the segments

[ Upstream commit 10c678bd ]

Guillaume noticed that: for segments udp_queue_rcv_one_skb() returns the
proto, and it should pass "ret" unmodified to ip_protocol_deliver_rcu().
Otherwize, with a negtive value passed, it will underflow inet_protos.

This can be reproduced with IPIP FOU:

  # ip fou add port 5555 ipproto 4
  # ethtool -K eth1 rx-gro-list on

Fixes: cf329aa4

 ("udp: cope with UDP GRO packet misdirection")
Reported-by: default avatarGuillaume Nault <gnault@redhat.com>
Signed-off-by: default avatarXin Long <lucien.xin@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8253de6c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment