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>
pull/1317/head
Pablo Neira Ayuso 2025-08-07 12:02:42 +02:00
parent f54186df80
commit 1dee968d22
1 changed files with 1 additions and 1 deletions

View File

@ -217,7 +217,7 @@ static int nft_socket_init(const struct nft_ctx *ctx,
level += err; level += err;
/* Implies a giant cgroup tree */ /* Implies a giant cgroup tree */
if (WARN_ON_ONCE(level > 255)) if (level > 255)
return -EOPNOTSUPP; return -EOPNOTSUPP;
priv->level = level; priv->level = level;