OSDN Git Service

net: IP6 defrag: use rbtrees in nf_conntrack_reasm.c
authorPeter Oskolkov <posk@google.com>
Tue, 22 Jan 2019 18:02:52 +0000 (10:02 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 26 Jan 2019 05:37:11 +0000 (21:37 -0800)
commit997dd96471641e147cb2c33ad54284000d0f5e35
tree13dba3118a055a9d207cc7e3f4cd31edb49f10fb
parentd4289fcc9b16b89619ee1c54f829e05e56de8b9a
net: IP6 defrag: use rbtrees in nf_conntrack_reasm.c

Currently, IPv6 defragmentation code drops non-last fragments that
are smaller than 1280 bytes: see
commit 0ed4229b08c1 ("ipv6: defrag: drop non-last frags smaller than min mtu")

This behavior is not specified in IPv6 RFCs and appears to break
compatibility with some IPv6 implemenations, as reported here:
https://www.spinics.net/lists/netdev/msg543846.html

This patch re-uses common IP defragmentation queueing and reassembly
code in IP6 defragmentation in nf_conntrack, removing the 1280 byte
restriction.

Signed-off-by: Peter Oskolkov <posk@google.com>
Reported-by: Tom Herbert <tom@herbertland.com>
Cc: Eric Dumazet <edumazet@google.com>
Cc: Florian Westphal <fw@strlen.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/netfilter/nf_conntrack_reasm.c