]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
netfilter: nf_tables: Modify nla_memdup's flag to GFP_KERNEL_ACCOUNT
authorChen Aotian <chenaotian2@163.com>
Thu, 6 Apr 2023 04:01:51 +0000 (12:01 +0800)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 16 Jun 2023 12:57:52 +0000 (14:57 +0200)
commit7293a324e154d953d3b0463695095d486d032642
tree6e4de8a6ac8125763a39a7b4442090504b6a35b3
parent109a8ea25bdede62753526b6600618416915e892
netfilter: nf_tables: Modify nla_memdup's flag to GFP_KERNEL_ACCOUNT

BugLink: https://bugs.launchpad.net/bugs/2023929
[ Upstream commit af0acf22aea359e04412237d68787401f96bb583 ]

For memory alloc that store user data from nla[NFTA_OBJ_USERDATA],
use GFP_KERNEL_ACCOUNT is more suitable.

Fixes: 33758c891479 ("memcg: enable accounting for nft objects")
Signed-off-by: Chen Aotian <chenaotian2@163.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
net/netfilter/nf_tables_api.c