]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: xt_cgroup: shrink size of v2 path
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 4 Sep 2018 10:07:55 +0000 (12:07 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 17 Sep 2018 14:11:03 +0000 (16:11 +0200)
commite929f6759aeafc985799e2234e14c0a48baeb772
tree2c0f3f080856e140599b8bee959019f3e6a113b9
parentf83c431f84e7e5c33d3a3e8c488f43fabbb2da66
netfilter: xt_cgroup: shrink size of v2 path

cgroup v2 path field is PATH_MAX which is too large, this is placing too
much pressure on memory allocation for people with many rules doing
cgroup v1 classid matching, side effects of this are bug reports like:

https://bugzilla.kernel.org/show_bug.cgi?id=200639

This patch registers a new revision that shrinks the cgroup path to 512
bytes, which is the same approach we follow in similar extensions that
have a path field.

Cc: Tejun Heo <tj@kernel.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Acked-by: Tejun Heo <tj@kernel.org>
include/uapi/linux/netfilter/xt_cgroup.h
net/netfilter/xt_cgroup.c