]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ipv4: use WARN_ON_ONCE() in ip_rt_bug()
authorEric Dumazet <edumazet@google.com>
Tue, 19 May 2026 19:32:48 +0000 (19:32 +0000)
committerJakub Kicinski <kuba@kernel.org>
Thu, 21 May 2026 02:00:36 +0000 (19:00 -0700)
commite4bdef4d320b2fe73b8ebfc0cc0507fa9dc4a3b7
treefd8393dd46e81bd014cf7cb498695480397c77d7
parent7eb72c1e3984150c45f77aa4299f7c2598a68e9b
ipv4: use WARN_ON_ONCE() in ip_rt_bug()

It turns out ip_rt_bug() can be called more than expected.

syzbot will still panic (because of panic_on_warn=1), but non debug
kernels will no longer die while repeating stack traces on the console.

Fixes: c378a9c019cf ("ipv4: Give backtrace in ip_rt_bug().")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Reviewed-by: Jiayuan Chen <jiayuan.chen@linux.dev>
Link: https://patch.msgid.link/20260519193248.4018872-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv4/route.c