summaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_output.c
diff options
context:
space:
mode:
authorDavid S. Miller2014-03-11 21:26:46 +0100
committerDavid S. Miller2014-03-11 21:26:46 +0100
commitc7b76f854e01cfdfdfaeb22b2ba1350be5d09ad7 (patch)
treea6ebab17f5c69d2c9ef08aa5fa1426201adfa7e7 /net/ipv4/tcp_output.c
parentMerge branch 'stmmac' (diff)
parentskbuff: skb_segment: orphan frags before copying (diff)
downloadkernel-qcow2-linux-c7b76f854e01cfdfdfaeb22b2ba1350be5d09ad7.tar.gz
kernel-qcow2-linux-c7b76f854e01cfdfdfaeb22b2ba1350be5d09ad7.tar.xz
kernel-qcow2-linux-c7b76f854e01cfdfdfaeb22b2ba1350be5d09ad7.zip
Merge branch 'skb_frags'
Michael S. Tsirkin says: ==================== skbuff: fix skb_segment with zero copy skbs This fixes a bug in skb_segment where it moves frags between skbs without orphaning them. This causes userspace to assume it's safe to reuse the buffer, and receiver gets corrupted data. This further might leak information from the transmitter on the wire. To fix track which skb does a copied frag belong to, and orphan frags when copying them. As we are tracking multiple skbs here, using short names (skb,nskb,fskb,skb_frag,frag) becomes confusing. So before adding another one, I refactor these names slightly. Patch is split out to make it easier to verify that all trasformations are trivially correct. The problem was observed in the field, so I think that the patch is necessary on stable as well. ==================== Signed-off-by: David S. Miller <davem@davemloft.net> Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'net/ipv4/tcp_output.c')
0 files changed, 0 insertions, 0 deletions