netfilter: ipv6: fix oops when defragmenting locally generated fragments
authorFlorian Westphal <fw@strlen.de>
Tue, 23 Oct 2018 14:47:16 +0000 (16:47 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 25 Oct 2018 08:18:26 +0000 (10:18 +0200)
commit61792b677415b77c8db04991c22966bb8de7603e
treeff2ec151d3ef0aaf56c8741b9bad993fde2aff6a
parent4f3ebb04d05fe36f74ef17c6ee06559626d47964
netfilter: ipv6: fix oops when defragmenting locally generated fragments

Unlike ipv4 and normal ipv6 defrag, netfilter ipv6 defragmentation did
not save/restore skb->dst.

This causes oops when handling locally generated ipv6 fragments, as
output path needs a valid dst.

Reported-by: Maciej Żenczykowski <zenczykowski@gmail.com>
Fixes: 84379c9afe01 ("netfilter: ipv6: nf_defrag: drop skb dst before queueing")
Signed-off-by: Florian Westphal <fw@strlen.de>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/ipv6/netfilter/nf_conntrack_reasm.c