summaryrefslogtreecommitdiffstats
path: root/net/dsa
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2018-07-30 21:50:29 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-08-06 16:20:47 +0200
commit8721f360894576908a32f5c2979dbe640731a97b (patch)
tree117230a98849e46dc02b74e137db42ec6af05b73 /net/dsa
parentfc63057d5fdad14ccf94dffe746187388aad2e55 (diff)
downloadlinux-stable-8721f360894576908a32f5c2979dbe640731a97b.tar.gz
linux-stable-8721f360894576908a32f5c2979dbe640731a97b.tar.bz2
linux-stable-8721f360894576908a32f5c2979dbe640731a97b.zip
ipv4: frags: handle possible skb truesize change
[ Upstream commit 4672694bd4f1aebdab0ad763ae4716e89cb15221 ] ip_frag_queue() might call pskb_pull() on one skb that is already in the fragment queue. We need to take care of possible truesize change, or we might have an imbalance of the netns frags memory usage. IPv6 is immune to this bug, because RFC5722, Section 4, amended by Errata ID 3089 states : When reassembling an IPv6 datagram, if one or more its constituent fragments is determined to be an overlapping fragment, the entire datagram (and any constituent fragments) MUST be silently discarded. Fixes: 158f323b9868 ("net: adjust skb->truesize in pskb_expand_head()") Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/dsa')
0 files changed, 0 insertions, 0 deletions