android_kernel_google_msm/net/core
Michael S. Tsirkin 2edae61bce skbuff: skb_segment: orphan frags before copying
commit 1fd819ecb9 upstream.

skb_segment copies frags around, so we need
to copy them carefully to avoid accessing
user memory after reporting completion to userspace
through a callback.

skb_segment doesn't normally happen on datapath:
TSO needs to be disabled - so disabling zero copy
in this case does not look like a big deal.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
[bwh: Backported to 3.2.  As skb_segment() only supports page-frags *or* a
 frag list, there is no need for the additional frag_skb pointer or the
 preparatory renaming.]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-30 20:01:33 -07:00
..
datagram.c net: fix infinite loop in __skb_recv_datagram() 2013-02-28 06:59:06 -08:00
dev.c net-gro: reset skb->truesize in napi_reuse_skb() 2014-06-07 16:02:00 -07:00
dev_addr_lists.c net: count hw_addr syncs so that unsync works properly. 2013-05-01 09:41:06 -07:00
drop_monitor.c net: drop_monitor: fix the value of maxattr 2014-01-15 15:27:10 -08:00
dst.c
ethtool.c net: vlan,ethtool: netdev_features_t is more than 32 bit 2013-05-19 10:54:45 -07:00
fib_rules.c net: fix 'ip rule' iif/oif device rename 2014-03-11 16:09:58 -07:00
filter.c filter: prevent nla extensions to peek beyond the end of the message 2014-06-07 16:01:59 -07:00
flow.c
flow_dissector.c net: flow_dissector: fail on evil iph->ihl 2013-11-20 10:43:18 -08:00
gen_estimator.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
gen_stats.c
iovec.c net: rework recvmsg handler msg_name and msg_namelen logic 2013-12-08 07:29:41 -08:00
kmap_skb.h net: remove the second argument of k[un]map_atomic() 2012-03-20 21:48:27 +08:00
link_watch.c
Makefile
neighbour.c neighbour: populate neigh_parms on alloc before calling ndo_neigh_setup 2013-09-14 06:02:08 -07:00
net-sysfs.c static keys: Introduce 'struct static_key', static_key_true()/false() and static_key_slow_[inc|dec]() 2012-02-24 10:05:59 +01:00
net-sysfs.h
net-traces.c
net_namespace.c net: Statically initialize init_net.dev_base_head 2012-10-02 10:30:35 -07:00
netevent.c
netpoll.c netpoll: fix NULL pointer dereference in netpoll_cleanup 2013-10-13 15:42:47 -07:00
netprio_cgroup.c Merge branch 'for-3.4' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup 2012-03-20 18:11:21 -07:00
pktgen.c {pktgen, xfrm} Update IPv4 header total len and checksum after tranformation 2013-12-08 07:29:42 -08:00
request_sock.c
rtnetlink.c rtnetlink: Only supply IFLA_VF_PORTS information when RTEXT_FILTER_VF is set 2014-06-07 16:01:59 -07:00
scm.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
secure_seq.c net: fix some sparse errors 2012-01-17 10:31:12 -05:00
skbuff.c skbuff: skb_segment: orphan frags before copying 2014-06-30 20:01:33 -07:00
sock.c net: unix: allow set_peek_off to fail 2014-01-15 15:27:11 -08:00
sock_diag.c sock_diag: Fix out-of-bounds access to sock_diag_handlers[] 2013-02-28 06:59:06 -08:00
stream.c
sysctl_net_core.c net: check net.core.somaxconn sysctl values 2013-09-14 06:02:08 -07:00
timestamping.c
user_dma.c
utils.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00