]> 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)
commit3cc5405cab05095d9937e8874ccb8971cd7b834a
tree08999defc404d53bfefe492ebb406ece21f87f28
parentd1dda797fdea2014f38e745e6017ff634495d149
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