linux/net/core
Eric Dumazet 34fad54c25 net: __skb_flow_dissect() must cap its return value
After Tom patch, thoff field could point past the end of the buffer,
this could fool some callers.

If an skb was provided, skb->len should be the upper limit.
If not, hlen is supposed to be the upper limit.

Fixes: a6e544b0a8 ("flow_dissector: Jump to exit code in __skb_flow_dissect")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: Yibin Yang <yibyang@cisco.com
Acked-by: Alexander Duyck <alexander.h.duyck@intel.com>
Acked-by: Willem de Bruijn <willemb@google.com>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-11-12 23:41:53 -05:00
..
datagram.c
dev_addr_lists.c
dev_ioctl.c
dev.c bpf: Fix bpf_redirect to an ipip/ip6tnl dev 2016-11-12 23:38:07 -05:00
devlink.c
drop_monitor.c
dst_cache.c
dst.c
ethtool.c
fib_rules.c
filter.c bpf: Fix bpf_redirect to an ipip/ip6tnl dev 2016-11-12 23:38:07 -05:00
flow_dissector.c net: __skb_flow_dissect() must cap its return value 2016-11-12 23:41:53 -05:00
flow.c
gen_estimator.c
gen_stats.c
hwbm.c
link_watch.c
lwtunnel.c
Makefile
neighbour.c
net_namespace.c netns: revert "netns: avoid disabling irq for netns id" 2016-10-22 16:16:29 -04:00
net-procfs.c
net-sysfs.c
net-sysfs.h
net-traces.c
netclassid_cgroup.c
netevent.c
netpoll.c
netprio_cgroup.c
pktgen.c net: pktgen: remove rcu locking in pktgen_change_name() 2016-10-17 10:52:59 -04:00
ptp_classifier.c
request_sock.c
rtnetlink.c rtnl: reset calcit fptr in rtnl_unregister() 2016-11-09 20:18:19 -05:00
scm.c
secure_seq.c
skbuff.c Merge branch 'work.splice_read' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2016-10-07 15:36:58 -07:00
sock_diag.c
sock_reuseport.c soreuseport: do not export reuseport_add_sock() 2016-10-18 14:18:23 -04:00
sock.c dccp: do not release listeners too soon 2016-11-03 16:16:50 -04:00
stream.c net: do not export sk_stream_write_space 2016-09-28 20:32:38 -04:00
sysctl_net_core.c
timestamping.c
tso.c
utils.c