Paolo Abeni
cb891fa6a1
udp6: fix jumbogram reception
...
Since commit 67a51780ae ("ipv6: udp: leverage scratch area
helpers") udp6_recvmsg() read the skb len from the scratch area,
to avoid a cache miss.
But the UDP6 rx path support RFC 2675 UDPv6 jumbograms, and their
length exceeds the 16 bits available in the scratch area. As a side
effect the length returned by recvmsg() is:
<ingress datagram len> % (1<<16)
This commit addresses the issue allocating one more bit in the
IP6CB flags field and setting it for incoming jumbograms.
Such field is still in the first cacheline, so at recvmsg()
time we can check it and fallback to access skb->len if
required, without a measurable overhead.
Fixes: 67a51780ae ("ipv6: udp: leverage scratch area helpers")
Signed-off-by: Paolo Abeni <[email protected] >
Signed-off-by: David S. Miller <[email protected] >
2017-07-31 22:01:21 -07:00
..
ila
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2017-06-15 11:59:32 -04:00
netfilter
Merge git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf-next
2017-06-30 06:27:09 -07:00
addrconf.c
net, ipv6: convert inet6_ifaddr.refcnt from atomic_t to refcount_t
2017-07-04 01:29:04 -07:00
addrconf_core.c
Ipvlan should return an error when an address is already in use.
2017-06-09 12:26:07 -04:00
addrlabel.c
net, ipv6: convert ip6addrlbl_entry.refcnt from atomic_t to refcount_t
2017-07-04 01:29:04 -07:00
af_inet6.c
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2017-04-26 22:39:08 -04:00
ah6.c
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/klassert/ipsec-next
2017-06-23 14:17:31 -04:00
anycast.c
net, ipv6: convert ifacaddr6.aca_refcnt from atomic_t to refcount_t
2017-07-04 01:29:04 -07:00
calipso.c
net, calipso: convert calipso_doi.refcount from atomic_t to refcount_t
2017-07-04 22:35:16 +01:00
datagram.c
net: convert sock.sk_refcnt from atomic_t to refcount_t
2017-07-01 07:39:08 -07:00
esp6.c
net: convert sock.sk_wmem_alloc from atomic_t to refcount_t
2017-07-01 07:39:08 -07:00
esp6_offload.c
esp6_offload: Fix IP6CB(skb)->nhoff for ESP GRO
2017-06-22 10:49:14 +02:00
exthdrs.c
udp6: fix jumbogram reception
2017-07-31 22:01:21 -07:00
exthdrs_core.c
exthdrs_offload.c
fib6_rules.c
ipv6: Do not leak throw route references
2017-06-20 15:34:02 -04:00
fou6.c
fou: make local function static
2017-05-21 13:42:36 -04:00
icmp.c
net: don't global ICMP rate limit packets originating from loopback
2017-06-14 15:33:58 -04:00
inet6_connection_sock.c
inet6_hashtables.c
net: convert sock.sk_refcnt from atomic_t to refcount_t
2017-07-01 07:39:08 -07:00
ip6_checksum.c
ip6_fib.c
net: ipv6: Compare lwstate in detecting duplicate nexthops
2017-07-06 10:48:01 +01:00
ip6_flowlabel.c
ip6_gre.c
net: add netlink_ext_ack argument to rtnl_link_ops.validate
2017-06-26 23:13:22 -04:00
ip6_icmp.c
ip6_input.c
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2017-04-20 10:35:33 -04:00
ip6_offload.c
ipv6: Fix leak in ipv6_gso_segment().
2017-06-04 21:41:10 -04:00
ip6_offload.h
ip6_output.c
ipv6: Don't increase IPSTATS_MIB_FRAGFAILS twice in ip6_fragment()
2017-07-25 21:17:10 -07:00
ip6_tunnel.c
net: add netlink_ext_ack argument to rtnl_link_ops.validate
2017-06-26 23:13:22 -04:00
ip6_udp_tunnel.c
ip6_vti.c
net: add netlink_ext_ack argument to rtnl_link_ops.validate
2017-06-26 23:13:22 -04:00
ip6mr.c
ip6mr: add netlink notifications on mrt6msg cache reports
2017-06-21 11:22:53 -04:00
ipcomp6.c
ipv6_sockglue.c
Merge branch 'work.memdup_user' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
2017-07-05 16:05:24 -07:00
Kconfig
Makefile
mcast.c
net, ipv6: convert ifmcaddr6.mca_refcnt from atomic_t to refcount_t
2017-07-04 01:29:04 -07:00
mcast_snoop.c
mip6.c
ndisc.c
networking: make skb_put & friends return void pointers
2017-06-16 11:48:39 -04:00
netfilter.c
output_core.c
ipv6: avoid overflow of offset in ip6_find_1stfragopt
2017-07-19 22:50:14 -07:00
ping.c
net: ping: do not abuse udp_poll()
2017-06-04 22:56:55 -04:00
proc.c
proc: snmp6: Use correct type in memset
2017-06-12 09:53:14 -04:00
protocol.c
raw.c
net: ping: do not abuse udp_poll()
2017-06-04 22:56:55 -04:00
reassembly.c
route.c
net: ipv6: Compare lwstate in detecting duplicate nexthops
2017-07-06 10:48:01 +01:00
seg6.c
ipv6: drop unused variables in seg6_genl_dumphac
2017-05-21 13:42:36 -04:00
seg6_hmac.c
seg6_iptunnel.c
net: add extack arg to lwtunnel build state
2017-05-30 11:55:32 -04:00
sit.c
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2017-06-30 12:43:08 -04:00
syncookies.c
ipv4: ipv6: initialize treq->txhash in cookie_v[46]_check()
2017-07-18 11:22:51 -07:00
sysctl_net_ipv6.c
tcp_ipv6.c
net: convert sock.sk_refcnt from atomic_t to refcount_t
2017-07-01 07:39:08 -07:00
tcpv6_offload.c
tunnel6.c
udp.c
udp6: fix jumbogram reception
2017-07-31 22:01:21 -07:00
udp_impl.h
udp: make *udp*_queue_rcv_skb() functions static
2017-05-18 10:23:33 -04:00
udp_offload.c
ipv6: Check ip6_find_1stfragopt() return value properly.
2017-05-17 22:54:11 -04:00
udplite.c
xfrm6_input.c
xfrm6: Fix IPv6 payload_len in xfrm6_transport_finish
2017-06-22 10:49:14 +02:00
xfrm6_mode_beet.c
networking: make skb_pull & friends return void pointers
2017-06-16 11:48:39 -04:00
xfrm6_mode_ro.c
ipv6: xfrm: Handle errors reported by xfrm6_find_1stfragopt()
2017-06-02 13:57:27 -04:00
xfrm6_mode_transport.c
ipv6: xfrm: Handle errors reported by xfrm6_find_1stfragopt()
2017-06-02 13:57:27 -04:00
xfrm6_mode_tunnel.c
xfrm: Add encapsulation header offsets while SKB is not encrypted
2017-04-14 10:07:39 +02:00
xfrm6_output.c
xfrm: Add an IPsec hardware offloading API
2017-04-14 10:06:10 +02:00
xfrm6_policy.c
xfrm6_protocol.c
xfrm6_state.c
xfrm6_tunnel.c
net, ipv6: convert xfrm6_tunnel_spi.refcnt from atomic_t to refcount_t
2017-07-04 01:29:04 -07:00