+12
−1
+2
−3
Loading
Inspired by yet another syzbot report. IPv6 tunnels call netdev_lockdep_set_classes() for each tunnel type, while IPv4 currently centralizes netdev_lockdep_set_classes() call from ip_tunnel_init(). Make ip_tunnel_init() a macro, so that we have different lockdep classes per tunnel type. Fixes: 0bef5120 ("net: add netdev_lockdep_set_classes() to virtual drivers") Reported-by:<syzbot+1240b33467289f5ab50b@syzkaller.appspotmail.com> Closes: https://lore.kernel.org/netdev/695d439f.050a0220.1c677c.0347.GAE@google.com/T/#u Signed-off-by:
Eric Dumazet <edumazet@google.com> Link: https://patch.msgid.link/20260106172426.1760721-1-edumazet@google.com Signed-off-by:
Jakub Kicinski <kuba@kernel.org>