netfilter: nfnetlink: skip error delivery on batch in case of ENOMEM
stable inclusion from stable-v5.10.185 commit 1200af82cf0bbf28a608905c9e9be7bf37c00c98 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I8L5XP Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=1200af82cf0bbf28a608905c9e9be7bf37c00c98 -------------------------------- [ Upstream commit a1a64a15 ] If caller reports ENOMEM, then stop iterating over the batch and send a single netlink message to userspace to report OOM. Fixes: cbb8125e ("netfilter: nfnetlink: deliver netlink errors on batch completion") Signed-off-by:Pablo Neira Ayuso <pablo@netfilter.org> Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
sanglipeng <sanglipeng1@jd.com>
Loading
Please sign in to comment