summaryrefslogtreecommitdiff
path: root/net/core/dev.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2026-02-17 14:56:39 +0300
committerSasha Levin <sashal@kernel.org>2026-03-04 15:20:38 +0300
commit959ea349c7e2d4edf07b6838ca7e59345fe61a08 (patch)
tree6512d64642fd203beb582e4cd2a02bbb180bc8d4 /net/core/dev.c
parent64af43033503458c46023e56d6ae7bb0f824b55f (diff)
downloadlinux-959ea349c7e2d4edf07b6838ca7e59345fe61a08.tar.xz
net: remove WARN_ON_ONCE when accessing forward path array
[ Upstream commit 008e7a7c293b30bc43e4368dac6ea3808b75a572 ] Although unlikely, recent support for IPIP tunnels increases chances of reaching this WARN_ON_ONCE if userspace manages to build a sufficiently long forward path. Remove it. Fixes: ddb94eafab8b ("net: resolve forwarding path from virtual netdevice and HW destination address") Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net/core/dev.c')
-rw-r--r--net/core/dev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/dev.c b/net/core/dev.c
index 1d276a26a360..553317ad6f1b 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -720,7 +720,7 @@ static struct net_device_path *dev_fwd_path(struct net_device_path_stack *stack)
{
int k = stack->num_paths++;
- if (WARN_ON_ONCE(k >= NET_DEVICE_PATH_STACK_MAX))
+ if (k >= NET_DEVICE_PATH_STACK_MAX)
return NULL;
return &stack->path[k];