]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit928e7ab4db8ae8fdeab056531c4cf6c5aecf5510
tree08999defc404d53bfefe492ebb406ece21f87f28
parent3a0caf56b3fc6a809f6f0e2a64b7c5faa4a21b3b
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