Commit c05b7456 authored by Florian Westphal's avatar Florian Westphal Committed by sanglipeng
Browse files

netfilter: nf_tables: fix out of memory error handling

stable inclusion
from stable-v5.10.193
commit d64cdb9cb6291aca0543f7da84269bda9da325c7
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I9399M

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=d64cdb9cb6291aca0543f7da84269bda9da325c7



--------------------------------

[ Upstream commit 5e1be4cd ]

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

Fixes: 3c4287f6 ("nf_tables: Add set type for arbitrary concatenation of ranges")
Signed-off-by: default avatarFlorian Westphal <fw@strlen.de>
Reviewed-by: default avatarStefano Brivio <sbrivio@redhat.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent 5573af99
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment