Eric Dumazet
cef401de7b
net: fix possible wrong checksum generation
...
Pravin Shelar mentioned that GSO could potentially generate
wrong TX checksum if skb has fragments that are overwritten
by the user between the checksum computation and transmit.
He suggested to linearize skbs but this extra copy can be
avoided for normal tcp skbs cooked by tcp_sendmsg().
This patch introduces a new SKB_GSO_SHARED_FRAG flag, set
in skb_shinfo(skb)->gso_type if at least one frag can be
modified by the user.
Typical sources of such possible overwrites are {vm}splice(),
sendfile(), and macvtap/tun/virtio_net drivers.
Tested:
$ netperf -H 7.7.8.84
MIGRATED TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to
7.7.8.84 () port 0 AF_INET
Recv Send Send
Socket Socket Message Elapsed
Size Size Size Time Throughput
bytes bytes bytes secs. 10^6bits/sec
87380 16384 16384 10.00 3959.52
$ netperf -H 7.7.8.84 -t TCP_SENDFILE
TCP SENDFILE TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 7.7.8.84 ()
port 0 AF_INET
Recv Send Send
Socket Socket Message Elapsed
Size Size Size Time Throughput
bytes bytes bytes secs. 10^6bits/sec
87380 16384 16384 10.00 3216.80
Performance of the SENDFILE is impacted by the extra allocation and
copy, and because we use order-0 pages, while the TCP_STREAM uses
bigger pages.
Reported-by: Pravin Shelar <[email protected] >
Signed-off-by: Eric Dumazet <[email protected] >
Signed-off-by: David S. Miller <[email protected] >
2013-01-28 00:27:15 -05:00
..
9p
virtio: 9p: correctly pass physical address to userspace for high pages
2012-10-22 18:19:36 +10:30
802
8021q
ethtool: fix drvinfo strings set in drivers
2013-01-06 21:06:31 -08:00
appletalk
atm
atm: use scnprintf() instead of sprintf()
2012-12-17 20:50:51 -08:00
ax25
batman-adv
batman-adv: Start new development cycle
2013-01-19 21:18:13 +08:00
bluetooth
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid
2012-12-13 12:00:48 -08:00
bridge
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2013-01-15 15:05:59 -05:00
caif
caif_usb: Make the driver name check more efficient
2012-12-09 00:34:02 -05:00
can
can: gw: indicate and count deleted frames due to misconfiguration
2013-01-26 16:59:02 +01:00
ceph
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph-client
2013-01-02 17:32:49 -08:00
core
net: fix possible wrong checksum generation
2013-01-28 00:27:15 -05:00
dcb
net: Allow DCBnl to use other namespaces besides init_net
2012-12-10 14:09:01 -05:00
dccp
inet: Fix kmemleak in tcp_v4/6_syn_recv_sock and dccp_v4/6_request_recv_sock
2012-12-14 13:14:07 -05:00
decnet
decnet: use correct RCU API to deref sk_dst_cache field
2013-01-28 00:15:27 -05:00
dns_resolver
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security
2012-12-16 15:40:50 -08:00
dsa
dsa: make dsa_switch_setup check for valid port names
2013-01-21 15:40:12 -05:00
ethernet
net: split eth_mac_addr for better error handling
2013-01-21 14:07:44 -05:00
ieee802154
6lowpan: Handle uncompressed IPv6 packets over 6LoWPAN
2013-01-18 14:18:30 -05:00
ipv4
net: fix possible wrong checksum generation
2013-01-28 00:27:15 -05:00
ipv6
net: fix possible wrong checksum generation
2013-01-28 00:27:15 -05:00
ipx
irda
irda: buffer overflow in irnet_ctrl_read()
2013-01-27 20:38:19 -05:00
iucv
s390/irq: remove split irq fields from /proc/stat
2013-01-08 10:57:07 +01:00
key
net: Allow userns root to control llc, netfilter, netlink, packet, and xfrm
2012-11-18 20:32:45 -05:00
l2tp
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2012-11-10 18:32:51 -05:00
lapb
llc
net: Allow userns root to control llc, netfilter, netlink, packet, and xfrm
2012-11-18 20:32:45 -05:00
mac80211
mac80211: fix maximum MTU
2013-01-03 13:00:01 +01:00
mac802154
mac802154: fix NOHZ local_softirq_pending 08 warning
2013-01-04 13:47:21 -08:00
netfilter
netfilter: nf_conntrack: fix compilation if sysctl are disabled
2013-01-23 15:14:31 +01:00
netlabel
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next
2012-10-02 13:38:27 -07:00
netlink
netlink: Use FIELD_SIZEOF() in netlink_proto_init().
2013-01-09 23:38:23 -08:00
netrom
nfc
nfc: remove noisy message from llcp_sock_sendmsg
2012-12-13 12:58:10 -05:00
openvswitch
openvswitch: Use FIELD_SIZEOF() in dp_init().
2013-01-09 23:38:24 -08:00
packet
net: Allow userns root to control llc, netfilter, netlink, packet, and xfrm
2012-11-18 20:32:45 -05:00
phonet
net: Push capable(CAP_NET_ADMIN) into the rtnl methods
2012-11-18 20:32:44 -05:00
rds
IB/rds: suppress incompatible protocol when version is known
2012-12-26 15:17:37 -08:00
rfkill
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial
2012-12-13 12:00:02 -08:00
rose
rxrpc
rxrpc: Use FIELD_SIZEOF() in af_rxrpc_init().
2013-01-09 23:38:24 -08:00
sched
pkt_sched: namespace aware act_mirred
2013-01-14 15:09:36 -05:00
sctp
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2013-01-15 15:05:59 -05:00
sunrpc
NFS client bugfixe for Linux 3.8
2013-01-11 12:09:04 -08:00
tipc
tipc: refactor accept() code for improved readability
2012-12-07 17:23:24 -05:00
unix
unix: Use FIELD_SIZEOF() in af_unix_init().
2013-01-09 23:38:24 -08:00
wanrouter
wimax
wireless
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2013-01-15 15:05:59 -05:00
x25
xfrm
xfrm: use separated locks to protect pointers of struct xfrm_state_afinfo
2013-01-17 10:03:57 +01:00
compat.c
Kconfig
net: Add support for XPS without sysfs being defined
2013-01-10 22:47:04 -08:00
Makefile
ipv6: Preserve ipv6 functionality needed by NET
2012-11-18 02:34:00 -05:00
nonet.c
socket.c
cgroup: net_cls: Rework update socket logic
2012-10-26 03:40:51 -04:00
sysctl_net.c
user_ns: get rid of duplicate code in net_ctl_permissions
2012-11-18 20:32:45 -05:00