Commit 4adff1bf authored by Pablo Neira Ayuso's avatar Pablo Neira Ayuso Committed by sanglipeng
Browse files

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: default avatarPablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent d5f1daeb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment