Skip to content

Commit b752988

Browse files
committed
netfilter: nft_socket: remove WARN_ON_ONCE on maximum cgroup level
cgroup maximum depth is INT_MAX by default, there is a cgroup toggle to restrict this maximum depth to a more reasonable value not to harm performance. Remove unnecessary WARN_ON_ONCE which is reachable from userspace. Fixes: 7f3287d ("netfilter: nft_socket: make cgroupsv2 matching work with namespaces") Reported-by: [email protected] Signed-off-by: Pablo Neira Ayuso <[email protected]>
1 parent 04317f4 commit b752988

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/netfilter/nft_socket.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ static noinline int nft_socket_cgroup_subtree_level(void)
6868

6969
cgroup_put(cgrp);
7070

71-
if (WARN_ON_ONCE(level > 255))
71+
if (level > 255)
7272
return -ERANGE;
7373

7474
if (WARN_ON_ONCE(level < 0))

0 commit comments

Comments
 (0)