============================================ WARNING: possible recursive locking detected syzkaller #0 Not tainted -------------------------------------------- modprobe/9539 is trying to acquire lock: ffff888026a41070 (&hsr->seqnr_lock){+.-.}-{3:3}, at: spin_lock_bh include/linux/spinlock.h:353 [inline] ffff888026a41070 (&hsr->seqnr_lock){+.-.}-{3:3}, at: hsr_dev_xmit+0x237/0x360 net/hsr/hsr_device.c:235 but task is already holding lock: ffff888026a41070 (&hsr->seqnr_lock){+.-.}-{3:3}, at: spin_lock_bh include/linux/spinlock.h:353 [inline] ffff888026a41070 (&hsr->seqnr_lock){+.-.}-{3:3}, at: send_prp_supervision_frame+0x1fb/0x8b0 net/hsr/hsr_device.c:401 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(&hsr->seqnr_lock); lock(&hsr->seqnr_lock); *** DEADLOCK *** May be due to missing lock nesting notation locks held by modprobe/9539: 12, last CPU#0: #0: ffff88807903c080 (&mm->mmap_lock){++++}-{4:4}, at: mmap_write_lock_killable include/linux/mmap_lock.h:562 [inline] #0: ffff88807903c080 (&mm->mmap_lock){++++}-{4:4}, at: vm_mmap_pgoff+0x1dd/0x4e0 mm/util.c:579 #1: ffffc90000007cc0 ((&hsr->announce_timer)){+.-.}-{0:0}, at: call_timer_fn+0xd5/0x5f0 kernel/time/timer.c:1745 #2: ffffffff8fd5c8e0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:309 [inline] #2: ffffffff8fd5c8e0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #2: ffffffff8fd5c8e0 (rcu_read_lock){....}-{1:3}, at: hsr_announce+0x89/0x370 net/hsr/hsr_device.c:446 #3: ffff888026a41070 (&hsr->seqnr_lock){+.-.}-{3:3}, at: spin_lock_bh include/linux/spinlock.h:353 [inline] #3: ffff888026a41070 (&hsr->seqnr_lock){+.-.}-{3:3}, at: send_prp_supervision_frame+0x1fb/0x8b0 net/hsr/hsr_device.c:401 #4: ffffffff8fd5c8e0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:309 [inline] #4: ffffffff8fd5c8e0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #4: ffffffff8fd5c8e0 (rcu_read_lock){....}-{1:3}, at: hsr_forward_skb+0xb9/0x2b70 net/hsr/hsr_forward.c:772 #5: ffffffff8fd5c940 (rcu_read_lock_bh){....}-{1:3}, at: local_bh_disable include/linux/bottom_half.h:20 [inline] #5: ffffffff8fd5c940 (rcu_read_lock_bh){....}-{1:3}, at: rcu_read_lock_bh include/linux/rcupdate.h:902 [inline] #5: ffffffff8fd5c940 (rcu_read_lock_bh){....}-{1:3}, at: __dev_queue_xmit+0x29b/0x3920 net/core/dev.c:4872 #6: ffff888026682228 (dev->qdisc_tx_busylock ?: &qdisc_tx_busylock#4){+...}-{3:3}, at: spin_trylock include/linux/spinlock.h:359 [inline] #6: ffff888026682228 (dev->qdisc_tx_busylock ?: &qdisc_tx_busylock#4){+...}-{3:3}, at: qdisc_run_begin include/net/sch_generic.h:206 [inline] #6: ffff888026682228 (dev->qdisc_tx_busylock ?: &qdisc_tx_busylock#4){+...}-{3:3}, at: __dev_xmit_skb net/core/dev.c:4264 [inline] #6: ffff888026682228 (dev->qdisc_tx_busylock ?: &qdisc_tx_busylock#4){+...}-{3:3}, at: __dev_queue_xmit+0x114e/0x3920 net/core/dev.c:4916 #7: ffffffff8fd5c8e0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:309 [inline] #7: ffffffff8fd5c8e0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #7: ffffffff8fd5c8e0 (rcu_read_lock){....}-{1:3}, at: ip6_output+0x11e/0x540 net/ipv6/ip6_output.c:236 #8: ffffffff8fd5c8e0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:309 [inline] #8: ffffffff8fd5c8e0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #8: ffffffff8fd5c8e0 (rcu_read_lock){....}-{1:3}, at: ndisc_send_skb+0x203/0x1650 net/ipv6/ndisc.c:483 #9: ffffffff8fd5c8e0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:309 [inline] #9: ffffffff8fd5c8e0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #9: ffffffff8fd5c8e0 (rcu_read_lock){....}-{1:3}, at: ip6_output+0x11e/0x540 net/ipv6/ip6_output.c:236 #10: ffffffff8fd5c940 (rcu_read_lock_bh){....}-{1:3}, at: local_bh_disable include/linux/bottom_half.h:20 [inline] #10: ffffffff8fd5c940 (rcu_read_lock_bh){....}-{1:3}, at: rcu_read_lock_bh include/linux/rcupdate.h:902 [inline] #10: ffffffff8fd5c940 (rcu_read_lock_bh){....}-{1:3}, at: __dev_queue_xmit+0x29b/0x3920 net/core/dev.c:4872 #11: ffffffff8fd5c8e0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:309 [inline] #11: ffffffff8fd5c8e0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #11: ffffffff8fd5c8e0 (rcu_read_lock){....}-{1:3}, at: hsr_dev_xmit+0x2d/0x360 net/hsr/hsr_device.c:229 stack backtrace: CPU: 0 UID: 0 PID: 9539 Comm: modprobe Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_deadlock_bug+0x27a/0x290 kernel/locking/lockdep.c:3085 check_deadlock kernel/locking/lockdep.c:3137 [inline] validate_chain kernel/locking/lockdep.c:3939 [inline] __lock_acquire+0x25db/0x2de0 kernel/locking/lockdep.c:5288 lock_acquire+0x115/0x350 kernel/locking/lockdep.c:5942 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:182 [inline] _raw_spin_lock_bh+0x36/0x50 kernel/locking/spinlock.c:205 spin_lock_bh include/linux/spinlock.h:353 [inline] hsr_dev_xmit+0x237/0x360 net/hsr/hsr_device.c:235 __netdev_start_xmit include/linux/netdevice.h:5432 [inline] netdev_start_xmit include/linux/netdevice.h:5441 [inline] xmit_one net/core/dev.c:3953 [inline] dev_hard_start_xmit+0x2cd/0x830 net/core/dev.c:3969 __dev_queue_xmit+0x14d1/0x3920 net/core/dev.c:4958 NF_HOOK_COND include/linux/netfilter.h:314 [inline] ip6_output+0x337/0x540 net/ipv6/ip6_output.c:248 dst_output include/net/dst.h:472 [inline] NF_HOOK include/linux/netfilter.h:325 [inline] ndisc_send_skb+0xcb2/0x1650 net/ipv6/ndisc.c:513 ndisc_send_ns net/ipv6/ndisc.c:672 [inline] ndisc_solicit+0x374/0x670 net/ipv6/ndisc.c:763 neigh_probe net/core/neighbour.c:1093 [inline] __neigh_event_send+0xf0c/0x1510 net/core/neighbour.c:1273 neigh_event_send_probe include/net/neighbour.h:480 [inline] neigh_event_send include/net/neighbour.h:486 [inline] neigh_resolve_output+0x1a1/0x720 net/core/neighbour.c:1600 NF_HOOK_COND include/linux/netfilter.h:314 [inline] ip6_output+0x337/0x540 net/ipv6/ip6_output.c:248 ip6tunnel_xmit+0x200/0x620 include/net/ip6_tunnel.h:174 ip6_tnl_xmit+0x2034/0x27e0 net/ipv6/ip6_tunnel.c:1285 __gre6_xmit+0xa5c/0xd80 net/ipv6/ip6_gre.c:787 ip6gre_xmit_other net/ipv6/ip6_gre.c:873 [inline] ip6gre_tunnel_xmit+0xa0d/0xf70 net/ipv6/ip6_gre.c:904 __netdev_start_xmit include/linux/netdevice.h:5432 [inline] netdev_start_xmit include/linux/netdevice.h:5441 [inline] xmit_one net/core/dev.c:3953 [inline] dev_hard_start_xmit+0x2cd/0x830 net/core/dev.c:3969 sch_direct_xmit+0x257/0x4c0 net/sched/sch_generic.c:372 __dev_xmit_skb net/core/dev.c:4277 [inline] __dev_queue_xmit+0x179a/0x3920 net/core/dev.c:4916 dev_queue_xmit include/linux/netdevice.h:3464 [inline] hsr_xmit net/hsr/hsr_forward.c:440 [inline] hsr_forward_do net/hsr/hsr_forward.c:603 [inline] hsr_forward_skb+0x1701/0x2b70 net/hsr/hsr_forward.c:777 send_prp_supervision_frame+0x49a/0x8b0 net/hsr/hsr_device.c:432 hsr_announce+0x1db/0x370 net/hsr/hsr_device.c:448 call_timer_fn+0x18d/0x5f0 kernel/time/timer.c:1748 expire_timers kernel/time/timer.c:1799 [inline] __run_timers kernel/time/timer.c:2374 [inline] __run_timer_base+0x652/0x8b0 kernel/time/timer.c:2386 run_timer_base kernel/time/timer.c:2395 [inline] run_timer_softirq+0xb7/0x170 kernel/time/timer.c:2405 handle_softirqs+0x226/0x860 kernel/softirq.c:645 __do_softirq kernel/softirq.c:679 [inline] invoke_softirq kernel/softirq.c:519 [inline] __irq_exit_rcu+0xcb/0x220 kernel/softirq.c:758 irq_exit_rcu+0x9/0x30 kernel/softirq.c:775 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1062 [inline] sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1062 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674 RIP: 0010:__might_sleep+0x9/0xf0 kernel/sched/core.c:9180 Code: ff ff 48 89 df e8 c7 40 a2 00 e9 2f ff ff ff 66 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 55 41 57 41 56 <41> 55 41 54 53 50 49 bf 00 00 00 00 00 fc ff df 65 48 8b 1d 77 5f RSP: 0018:ffffc900036c70b8 EFLAGS: 00000286 RAX: ffffffff82286f08 RBX: ffff88807befe110 RCX: ffff8880301a9f40 RDX: 0000000000000000 RSI: 0000000000000625 RDI: ffffffff8c0d1da0 RBP: ffffc900036c7250 R08: ffff8880301a9f40 R09: 0000000000000005 R10: 0000000000000004 R11: 0000000000000000 R12: 1ffff1100f7dfc21 R13: 0000000000000021 R14: dffffc0000000000 R15: ffff88807befe108 down_read+0x26/0x330 kernel/locking/rwsem.c:1573 anon_vma_lock_read mm/internal.h:310 [inline] validate_mm+0x1f2/0x4f0 mm/vma.c:724 __split_vma+0x918/0xa60 mm/vma.c:614 vms_gather_munmap_vmas+0x4e3/0x1370 mm/vma.c:1528 __mmap_setup mm/vma.c:2561 [inline] __mmap_region mm/vma.c:2884 [inline] mmap_region+0x925/0x25b0 mm/vma.c:2989 do_mmap+0xe0a/0x1300 mm/mmap.c:573 vm_mmap_pgoff+0x272/0x4e0 mm/util.c:581 ksys_mmap_pgoff+0x4dc/0x760 mm/mmap.c:619 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f59e9a4e242 Code: 08 00 04 00 00 eb e2 90 41 f7 c1 ff 0f 00 00 75 27 55 89 cd 53 48 89 fb 48 85 ff 74 33 41 89 ea 48 89 df b8 09 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 5e 5b 5d c3 0f 1f 00 c7 05 46 40 01 00 16 00 RSP: 002b:00007ffffce2f828 EFLAGS: 00000206 ORIG_RAX: 0000000000000009 RAX: ffffffffffffffda RBX: 00007f59e96bc000 RCX: 00007f59e9a4e242 RDX: 0000000000000005 RSI: 0000000000037000 RDI: 00007f59e96bc000 RBP: 0000000000000812 R08: 0000000000000000 R09: 0000000000003000 R10: 0000000000000812 R11: 0000000000000206 R12: 00007ffffce2f878 R13: 00007f59e97256b0 R14: 00007ffffce2fc60 R15: 00000fffff9c5f08 ---------------- Code disassembly (best guess), 2 bytes skipped: 0: 48 89 df mov %rbx,%rdi 3: e8 c7 40 a2 00 call 0xa240cf 8: e9 2f ff ff ff jmp 0xffffff3c d: 66 90 xchg %ax,%ax f: 90 nop 10: 90 nop 11: 90 nop 12: 90 nop 13: 90 nop 14: 90 nop 15: 90 nop 16: 90 nop 17: 90 nop 18: 90 nop 19: 90 nop 1a: 90 nop 1b: 90 nop 1c: 90 nop 1d: 90 nop 1e: 90 nop 1f: f3 0f 1e fa endbr64 23: 55 push %rbp 24: 41 57 push %r15 26: 41 56 push %r14 * 28: 41 55 push %r13 <-- trapping instruction 2a: 41 54 push %r12 2c: 53 push %rbx 2d: 50 push %rax 2e: 49 bf 00 00 00 00 00 movabs $0xdffffc0000000000,%r15 35: fc ff df 38: 65 gs 39: 48 rex.W 3a: 8b .byte 0x8b 3b: 1d .byte 0x1d 3c: 77 5f ja 0x9d