Commit 520a7325 authored by Tetsuo Handa's avatar Tetsuo Handa Committed by Jialin Zhang
Browse files

netfilter: nf_tables: fix percpu memory leak at nf_tables_addchain()

stable inclusion
from stable-v5.10.146
commit b043a525a3f5520abb676a7cd8f6328fdf959e88
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I6D0VX

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



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

[ Upstream commit 9a4d6dd5 ]

It seems to me that percpu memory for chain stats started leaking since
commit 3bc158f8 ("netfilter: nf_tables: map basechain priority to
hardware priority") when nft_chain_offload_priority() returned an error.

Signed-off-by: default avatarTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Fixes: 3bc158f8 ("netfilter: nf_tables: map basechain priority to hardware priority")
Signed-off-by: default avatarFlorian Westphal <fw@strlen.de>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarJialin Zhang <zhangjialin11@huawei.com>
Reviewed-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent fdbfe1d2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment