Re: [PATCH net] ipv4: frags: handle possible skb truesize change

2018-07-31 Thread David Miller
From: Eric Dumazet Date: Mon, 30 Jul 2018 21:50:29 -0700 > 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

[PATCH net] ipv4: frags: handle possible skb truesize change

2018-07-30 Thread Eric Dumazet
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 : W