[prev in list] [next in list] [prev in thread] [next in thread]
List: openvz-devel
Subject: [Devel] [PATCH 07/14] netfilter/x_tables: account entry offsets allocations
From: Alexander Mikhalitsyn <alexander.mikhalitsyn () virtuozzo ! com>
Date: 2021-04-30 12:45:35
Message-ID: 20210430124542.464867-8-alexander.mikhalitsyn () virtuozzo ! com
[Download RAW message or body]
From: Andrey Ryabinin <aryabinin@virtuozzo.com>
Entry offsets may consume a lot of kernel memory. So let's account
them.
https://jira.sw.ru/browse/PSBM-54407
Signed-off-by: Andrey Ryabinin <aryabinin@virtuozzo.com>
(cherry picked from commit 56c0d7d5cc4b97e913061f6cf6109adbba547c94)
VZ 8 rebase part https://jira.sw.ru/browse/PSBM-127783
Signed-off-by: Alexander Mikhalitsyn <alexander.mikhalitsyn@virtuozzo.com>
---
net/netfilter/x_tables.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/netfilter/x_tables.c b/net/netfilter/x_tables.c
index d8afdd42fcac..4a95c2121893 100644
--- a/net/netfilter/x_tables.c
+++ b/net/netfilter/x_tables.c
@@ -983,7 +983,7 @@ unsigned int *xt_alloc_entry_offsets(unsigned int size)
if (size > XT_MAX_TABLE_SIZE / sizeof(unsigned int))
return NULL;
- return kvmalloc_array(size, sizeof(unsigned int), GFP_KERNEL | __GFP_ZERO);
+ return kvmalloc_array(size, sizeof(unsigned int), GFP_KERNEL_ACCOUNT | __GFP_ZERO);
}
EXPORT_SYMBOL(xt_alloc_entry_offsets);
--
2.28.0
_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic