]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: fix IPSKB_FRAG_PMTU handling with fragmentation
authorEric Dumazet <edumazet@google.com>
Sat, 19 Oct 2019 16:26:37 +0000 (09:26 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Oct 2019 17:46:42 +0000 (10:46 -0700)
commitf6929268a74a17ce49195097997b7d5d65da365d
tree1a87acde604b1a6eaacb4a7c87fbf5342923e659
parent6ee7766cab5bcd4f58b7c2012103aea5407ecb0b
ipv4: fix IPSKB_FRAG_PMTU handling with fragmentation

This patch removes the iph field from the state structure, which is not
properly initialized. Instead, add a new field to make the "do we want
to set DF" be the state bit and move the code to set the DF flag from
ip_frag_next().

Joint work with Pablo and Linus.

Fixes: 0e1d1447321d ("net: ipv4: place control buffer handling away from fragmentation iterators")
Reported-by: Patrick Schönthaler <patrick@notvads.ovh>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip.h
net/bridge/netfilter/nf_conntrack_bridge.c
net/ipv4/ip_output.c