Skip to content

Commit b4af082

Browse files
committed
netfilter: nft_socket: remove WARN_ON_ONCE with huge level value
JIRA: https://issues.redhat.com/browse/RHEL-115582 Upstream Status: commit 1dee968 commit 1dee968 Author: Pablo Neira Ayuso <pablo@netfilter.org> Date: Thu Aug 7 12:02:42 2025 +0200 netfilter: nft_socket: remove WARN_ON_ONCE with huge level value syzbot managed to reach this WARN_ON_ONCE by passing a huge level value, remove it. WARNING: CPU: 0 PID: 5853 at net/netfilter/nft_socket.c:220 nft_socket_init+0x2f4/0x3d0 net/netfilter/nft_socket.c:220 Reported-by: syzbot+a225fea35d7baf8dbdc3@syzkaller.appspotmail.com Acked-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> Signed-off-by: Florian Westphal <fwestpha@redhat.com>
1 parent 0738534 commit b4af082

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
@@ -217,7 +217,7 @@ static int nft_socket_init(const struct nft_ctx *ctx,
217217

218218
level += err;
219219
/* Implies a giant cgroup tree */
220-
if (WARN_ON_ONCE(level > 255))
220+
if (level > 255)
221221
return -EOPNOTSUPP;
222222

223223
priv->level = level;

0 commit comments

Comments
 (0)