netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* problem forwarding IP fragments with DF bit set (caused by ipv4: fix path MTU discovery with connection tracking)
@ 2014-04-28 16:37 Maxime Bizon
  2014-04-28 17:59 ` Maxime Bizon
  2014-04-29 14:33 ` Patrick McHardy
  0 siblings, 2 replies; 10+ messages in thread
From: Maxime Bizon @ 2014-04-28 16:37 UTC (permalink / raw)
  To: Patrick McHardy, Eric Dumazet; +Cc: davem, netdev


Hello Patrick & Eric,

After upgrading a router with a kernel that has patch 5f2d04f1f9 (ipv4:
fix path MTU discovery with connection tracking), some packets are not
forwarded anymore.

(note: kernel is 3.11.10, and conntrack is enabled)

Offending packets are IP fragments with DF bit set, MTU is the same on
both interfaces involved in forwarding. All received fragments are
(obviously) below MTU. The resulting packet after re-assembly is however
above MTU.

conntrack causes the packets to be re-assembled, but since the resulting
skb now has IP_DF set, it fails the (DF + MTU) test in ip_forward.c and
causes ICMP frag_needed to be sent.

Without the patch, the packet was (re-)fragmented in the output path
(but as the patch says, breaking PMTUD because original fragment size is
not considered).

-- 
Maxime

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-04-30 14:34 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-28 16:37 problem forwarding IP fragments with DF bit set (caused by ipv4: fix path MTU discovery with connection tracking) Maxime Bizon
2014-04-28 17:59 ` Maxime Bizon
2014-04-29 14:35   ` Patrick McHardy
2014-04-29 14:33 ` Patrick McHardy
2014-04-29 14:42   ` Maxime Bizon
2014-04-29 14:45     ` Patrick McHardy
2014-04-29 15:23       ` Maxime Bizon
2014-04-29 15:37         ` Eric Dumazet
2014-04-29 20:13           ` Florian Westphal
2014-04-30 14:34           ` Maxime Bizon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).