Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

net: Add net_cookie to Dead loop messages

Network devices can have the same name within different network namespaces.
To help distinguish these devices, add the net_cookie value which can be
used to identify the netns.

Signed-off-by: Chris J Arges <carges@cloudflare.com>
Link: https://patch.msgid.link/20260408191056.1036330-1-carges@cloudflare.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Chris J Arges and committed by
Jakub Kicinski
b258cba1 cea470a6

+5 -4
+3 -2
net/core/dev.c
··· 4894 4894 } else { 4895 4895 /* Recursion is detected! It is possible unfortunately. */ 4896 4896 recursion_alert: 4897 - net_crit_ratelimited("Dead loop on virtual device %s, fix it urgently!\n", 4898 - dev->name); 4897 + net_crit_ratelimited("Dead loop on virtual device %s (net %llu), fix it urgently!\n", 4898 + dev->name, dev_net(dev)->net_cookie); 4899 + 4899 4900 rc = -ENETDOWN; 4900 4901 } 4901 4902
+2 -2
net/ipv4/ip_tunnel_core.c
··· 60 60 61 61 if (unlikely(dev_recursion_level() > IP_TUNNEL_RECURSION_LIMIT)) { 62 62 if (dev) { 63 - net_crit_ratelimited("Dead loop on virtual device %s, fix it urgently!\n", 64 - dev->name); 63 + net_crit_ratelimited("Dead loop on virtual device %s (net %llu), fix it urgently!\n", 64 + dev->name, dev_net(dev)->net_cookie); 65 65 DEV_STATS_INC(dev, tx_errors); 66 66 } 67 67 ip_rt_put(rt);