]> git.itanic.dy.fi Git - linux-stable/commit
netfilter: nf_tables: fix out of memory error handling
authorFlorian Westphal <fw@strlen.de>
Tue, 22 Aug 2023 17:49:52 +0000 (19:49 +0200)
committerFlorian Westphal <fw@strlen.de>
Wed, 23 Aug 2023 14:12:10 +0000 (16:12 +0200)
commit5e1be4cdc98c989d5387ce94ff15b5ad06a5b681
tree94bfbb8fe3b4d34184c8456968bb166c8496b38d
parent8357bc946a2abc2a10ca40e5a2105d2b4c57515e
netfilter: nf_tables: fix out of memory error handling

Several instances of pipapo_resize() don't propagate allocation failures,
this causes a crash when fault injection is enabled for gfp_kernel slabs.

Fixes: 3c4287f62044 ("nf_tables: Add set type for arbitrary concatenation of ranges")
Signed-off-by: Florian Westphal <fw@strlen.de>
Reviewed-by: Stefano Brivio <sbrivio@redhat.com>
net/netfilter/nft_set_pipapo.c