OSDN Git Service

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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 11 Jul 2018 14:03:47 +0000 (16:03 +0200)
commit753465123663c7c96b515befe4a199a2104582d3
treecebe6048d2da1c2bf03163590148cbf83cc3efab
parent1e40d09a5575f6a2db841473baf329dc17bbe3ff
netfilter: nf_tables: use WARN_ON_ONCE instead of BUG_ON in nft_do_chain()

commit adc972c5b88829d38ede08b1069718661c7330ae upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/netfilter/nf_tables_core.c