netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [ipsec/xfrmi] fragmentation of IPv4 packets
@ 2019-03-17 23:59 Bram Yvahk
  0 siblings, 0 replies; only message in thread
From: Bram Yvahk @ 2019-03-17 23:59 UTC (permalink / raw)
  To: netdev; +Cc: steffen.klassert, herbert, davem

After running into some issues with VTI code (see my VTI patches) I
decided to take a peek at the xfrmi code.  I believe it has the same
problems as the VTI code for which I submitted patches.

I was planning on testing this with latest kernel but so far I've not
yet been able to do so... Only reason why I'm already submitting this
message is because there is a 'Linux IPsec workshop' next week.

Two issues that I believe exist:

- 'xfrmi_xmit2': for an IPv4 packet the DF bit is not checked --> it
  will send a 'ICMP_FRAG_NEEDED' in response to a packet that is too
  big but does not have the 'DF' bit set. I believe proper behavior
  is to fragment the packet
 
  See also: [PATCH ipsec/vti 1/2] vti: fragment IPv4 packets when DF bit
is not
 
- 'xfrmi6_err': this is not able to handle a ICMPv6 in response to a
  fragmented IPv6 ESP packet. It uses iph->nexthdr which will be set
  to 'NEXTHDR_FRAGMENT' which is unhand led in the code.
  (It expects IPPROTO_ESP/_AH/_COMP)

  See also: [PATCH ipsec/vti 2/2] vti6: process icmp msg when IPv6 is
fragmented

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-03-17 23:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-17 23:59 [ipsec/xfrmi] fragmentation of IPv4 packets Bram Yvahk

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).