]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: xtables: avoid BUG_ON
authorFlorian Westphal <fw@strlen.de>
Tue, 4 Sep 2018 14:01:57 +0000 (16:01 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 17 Sep 2018 14:11:12 +0000 (16:11 +0200)
commitf45c31c353d8cfa0044365a0c24c014bd076c4dc
treebd63a56577665026aa8f24458f734dcced723ace
parent5c0b9a80a01319731d51f1b2f2028752e2945f11
netfilter: xtables: avoid BUG_ON

I see no reason for them, label or timer cannot be NULL, and if they
were, we'll crash with null deref anyway.

For skb_header_pointer failure, just set hotdrop to true and toss
such packet.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/ipv6/netfilter/ip6t_ipv6header.c
net/ipv6/netfilter/ip6t_rt.c
net/netfilter/xt_IDLETIMER.c
net/netfilter/xt_SECMARK.c