Skip to content

Commit 9097580

Browse files
committed
netfilter: nft_socket: remove WARN_ON_ONCE with huge level value
JIRA: https://issues.redhat.com/browse/RHEL-115630 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 afcb9a4 commit 9097580

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

217217
level += err;
218218
/* Implies a giant cgroup tree */
219-
if (WARN_ON_ONCE(level > 255))
219+
if (level > 255)
220220
return -EOPNOTSUPP;
221221

222222
priv->level = level;

0 commit comments

Comments
 (0)