netfilter: nf_tables: use WARN_ON_ONCE instead of BUG_ON in nft_do_chain()
authorTaehee Yoo <ap420073@gmail.com>
Mon, 11 Jun 2018 13:16:33 +0000 (22:16 +0900)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 12 Jun 2018 17:30:11 +0000 (19:30 +0200)
commitadc972c5b88829d38ede08b1069718661c7330ae
tree08999defc404d53bfefe492ebb406ece21f87f28
parent0a2cf5ee432c2e8718af3553a56a3760d767b736
netfilter: nf_tables: use WARN_ON_ONCE instead of BUG_ON in nft_do_chain()

When depth of chain is bigger than NFT_JUMP_STACK_SIZE, the nft_do_chain
crashes. But there is no need to crash hard here.

Suggested-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Taehee Yoo <ap420073@gmail.com>
Acked-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_core.c