============================================ WARNING: possible recursive locking detected 6.10.0-rc6-syzkaller-00223-gc6653f49e4fd #0 Not tainted -------------------------------------------- syz-executor/13003 is trying to acquire lock: ffff88806046ae00 (&hsr->seqnr_lock){+.-.}-{2:2}, at: spin_lock_bh include/linux/spinlock.h:356 [inline] ffff88806046ae00 (&hsr->seqnr_lock){+.-.}-{2:2}, at: hsr_dev_xmit+0x174/0x220 net/hsr/hsr_device.c:228 but task is already holding lock: ffff88801cf7ee00 (&hsr->seqnr_lock){+.-.}-{2:2}, at: spin_lock_bh include/linux/spinlock.h:356 [inline] ffff88801cf7ee00 (&hsr->seqnr_lock){+.-.}-{2:2}, at: send_hsr_supervision_frame+0x1dc/0xa60 net/hsr/hsr_device.c:310 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 7 locks held by syz-executor/13003: #0: ffffc90000007cb0 ((&hsr->announce_timer)){+.-.}-{0:0}, at: call_timer_fn+0x11a/0x610 kernel/time/timer.c:1789 #1: ffffffff8dbb58e0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:329 [inline] #1: ffffffff8dbb58e0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:781 [inline] #1: ffffffff8dbb58e0 (rcu_read_lock){....}-{1:2}, at: hsr_announce+0x90/0x380 net/hsr/hsr_device.c:397 #2: ffff88801cf7ee00 (&hsr->seqnr_lock){+.-.}-{2:2}, at: spin_lock_bh include/linux/spinlock.h:356 [inline] #2: ffff88801cf7ee00 (&hsr->seqnr_lock){+.-.}-{2:2}, at: send_hsr_supervision_frame+0x1dc/0xa60 net/hsr/hsr_device.c:310 #3: ffffffff8dbb58e0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:329 [inline] #3: ffffffff8dbb58e0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:781 [inline] #3: ffffffff8dbb58e0 (rcu_read_lock){....}-{1:2}, at: hsr_forward_skb+0xb4/0x2210 net/hsr/hsr_forward.c:681 #4: ffffffff8dbb5880 (rcu_read_lock_bh){....}-{1:2}, at: local_bh_disable include/linux/bottom_half.h:20 [inline] #4: ffffffff8dbb5880 (rcu_read_lock_bh){....}-{1:2}, at: rcu_read_lock_bh include/linux/rcupdate.h:833 [inline] #4: ffffffff8dbb5880 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x244/0x4130 net/core/dev.c:4318 #5: ffffffff8dbb58e0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:329 [inline] #5: ffffffff8dbb58e0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:781 [inline] #5: ffffffff8dbb58e0 (rcu_read_lock){....}-{1:2}, at: br_dev_xmit+0x1a2/0x1890 net/bridge/br_device.c:50 #6: ffffffff8dbb5880 (rcu_read_lock_bh){....}-{1:2}, at: local_bh_disable include/linux/bottom_half.h:20 [inline] #6: ffffffff8dbb5880 (rcu_read_lock_bh){....}-{1:2}, at: rcu_read_lock_bh include/linux/rcupdate.h:833 [inline] #6: ffffffff8dbb5880 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x244/0x4130 net/core/dev.c:4318 stack backtrace: CPU: 0 PID: 13003 Comm: syz-executor Not tainted 6.10.0-rc6-syzkaller-00223-gc6653f49e4fd #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:114 check_deadlock kernel/locking/lockdep.c:3062 [inline] validate_chain kernel/locking/lockdep.c:3856 [inline] __lock_acquire+0x20e6/0x3b30 kernel/locking/lockdep.c:5137 lock_acquire kernel/locking/lockdep.c:5754 [inline] lock_acquire+0x1b1/0x560 kernel/locking/lockdep.c:5719 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:126 [inline] _raw_spin_lock_bh+0x33/0x40 kernel/locking/spinlock.c:178 spin_lock_bh include/linux/spinlock.h:356 [inline] hsr_dev_xmit+0x174/0x220 net/hsr/hsr_device.c:228 __netdev_start_xmit include/linux/netdevice.h:4882 [inline] netdev_start_xmit include/linux/netdevice.h:4896 [inline] xmit_one net/core/dev.c:3578 [inline] dev_hard_start_xmit+0x146/0x790 net/core/dev.c:3594 __dev_queue_xmit+0x7ba/0x4130 net/core/dev.c:4393 dev_queue_xmit include/linux/netdevice.h:3095 [inline] br_dev_queue_push_xmit+0x272/0x870 net/bridge/br_forward.c:53 NF_HOOK include/linux/netfilter.h:314 [inline] NF_HOOK include/linux/netfilter.h:308 [inline] br_forward_finish+0xf5/0x130 net/bridge/br_forward.c:66 NF_HOOK include/linux/netfilter.h:314 [inline] NF_HOOK include/linux/netfilter.h:308 [inline] __br_forward+0x1e5/0x5b0 net/bridge/br_forward.c:115 deliver_clone+0x5b/0xa0 net/bridge/br_forward.c:131 maybe_deliver+0x31a/0x3e0 net/bridge/br_forward.c:190 br_flood+0x17e/0x5c0 net/bridge/br_forward.c:236 br_dev_xmit+0xf7d/0x1890 net/bridge/br_device.c:106 __netdev_start_xmit include/linux/netdevice.h:4882 [inline] netdev_start_xmit include/linux/netdevice.h:4896 [inline] xmit_one net/core/dev.c:3578 [inline] dev_hard_start_xmit+0x146/0x790 net/core/dev.c:3594 __dev_queue_xmit+0x7ba/0x4130 net/core/dev.c:4393 dev_queue_xmit include/linux/netdevice.h:3095 [inline] hsr_xmit net/hsr/hsr_forward.c:389 [inline] hsr_forward_do net/hsr/hsr_forward.c:529 [inline] hsr_forward_skb+0xc7c/0x2210 net/hsr/hsr_forward.c:686 send_hsr_supervision_frame+0x500/0xa60 net/hsr/hsr_device.c:343 hsr_announce+0x119/0x380 net/hsr/hsr_device.c:399 call_timer_fn+0x1a3/0x610 kernel/time/timer.c:1792 expire_timers kernel/time/timer.c:1843 [inline] __run_timers+0x74b/0xaf0 kernel/time/timer.c:2417 __run_timer_base kernel/time/timer.c:2428 [inline] __run_timer_base kernel/time/timer.c:2421 [inline] run_timer_base+0x111/0x190 kernel/time/timer.c:2437 run_timer_softirq+0x1a/0x40 kernel/time/timer.c:2447 handle_softirqs+0x219/0x8f0 kernel/softirq.c:554 __do_softirq kernel/softirq.c:588 [inline] invoke_softirq kernel/softirq.c:428 [inline] __irq_exit_rcu kernel/softirq.c:637 [inline] irq_exit_rcu+0xbb/0x120 kernel/softirq.c:649 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1043 [inline] sysvec_apic_timer_interrupt+0x95/0xb0 arch/x86/kernel/apic/apic.c:1043 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 RIP: 0010:unwind_done arch/x86/include/asm/unwind.h:50 [inline] RIP: 0010:unwind_get_return_address+0x13/0xe0 arch/x86/kernel/unwind_orc.c:366 Code: 00 00 00 00 00 66 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 41 54 55 53 48 89 fb e8 70 5d 52 00 48 89 da <48> b8 00 00 00 00 00 fc ff df 48 c1 ea 03 0f b6 04 02 84 c0 74 08 RSP: 0018:ffffc90002f9f518 EFLAGS: 00000293 RAX: 0000000000000000 RBX: ffffc90002f9f540 RCX: ffffffff81342a6f RDX: ffffc90002f9f540 RSI: ffffffff813cd040 RDI: ffffc90002f9f540 RBP: ffffc90002f9f5d0 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: ffffc90002f9f540 R13: ffffffff817acd40 R14: ffffc90002f9f600 R15: ffff888022181e00 arch_stack_walk+0xc1/0x170 arch/x86/kernel/stacktrace.c:26 stack_trace_save+0x95/0xd0 kernel/stacktrace.c:122 kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 kasan_save_track+0x14/0x30 mm/kasan/common.c:68 kasan_save_free_info+0x3b/0x60 mm/kasan/generic.c:579 poison_slab_object+0xf7/0x160 mm/kasan/common.c:240 __kasan_slab_free+0x32/0x50 mm/kasan/common.c:256 kasan_slab_free include/linux/kasan.h:184 [inline] slab_free_hook mm/slub.c:2196 [inline] slab_free mm/slub.c:4438 [inline] kfree+0x12a/0x3b0 mm/slub.c:4559 kvfree+0x47/0x50 mm/util.c:680 xt_free_table_info+0xf1/0x220 net/netfilter/x_tables.c:1209 __do_replace+0x758/0x9c0 net/ipv4/netfilter/arp_tables.c:933 do_replace net/ipv6/netfilter/ip6_tables.c:1158 [inline] do_ip6t_set_ctl+0x94b/0xc40 net/ipv6/netfilter/ip6_tables.c:1644 nf_setsockopt+0x8d/0xf0 net/netfilter/nf_sockopt.c:101 ipv6_setsockopt+0x133/0x1a0 net/ipv6/ipv6_sockglue.c:999 tcp_setsockopt+0xa7/0x100 net/ipv4/tcp.c:3765 do_sock_setsockopt+0x225/0x480 net/socket.c:2312 __sys_setsockopt+0x1a4/0x270 net/socket.c:2335 __do_sys_setsockopt net/socket.c:2344 [inline] __se_sys_setsockopt net/socket.c:2341 [inline] __x64_sys_setsockopt+0xbd/0x160 net/socket.c:2341 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f796e3779ca Code: ff ff ff c3 0f 1f 40 00 48 c7 c2 a8 ff ff ff f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b7 0f 1f 00 49 89 ca b8 36 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 06 c3 0f 1f 44 00 00 48 c7 c2 a8 ff ff ff f7 RSP: 002b:00007fff11770fc8 EFLAGS: 00000202 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 00007fff11771050 RCX: 00007f796e3779ca RDX: 0000000000000040 RSI: 0000000000000029 RDI: 0000000000000003 RBP: 0000000000000003 R08: 00000000000003b8 R09: 0079746972756365 R10: 00007f796e4cfce0 R11: 0000000000000202 R12: 00007f796e4cfc80 R13: 00007fff11770fec R14: 0000000000000000 R15: 00007f796e4d1e40 ---------------- Code disassembly (best guess): 0: 00 00 add %al,(%rax) 2: 00 00 add %al,(%rax) 4: 00 66 90 add %ah,-0x70(%rsi) 7: 90 nop 8: 90 nop 9: 90 nop a: 90 nop b: 90 nop c: 90 nop d: 90 nop e: 90 nop 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: f3 0f 1e fa endbr64 1b: 41 54 push %r12 1d: 55 push %rbp 1e: 53 push %rbx 1f: 48 89 fb mov %rdi,%rbx 22: e8 70 5d 52 00 call 0x525d97 27: 48 89 da mov %rbx,%rdx * 2a: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax <-- trapping instruction 31: fc ff df 34: 48 c1 ea 03 shr $0x3,%rdx 38: 0f b6 04 02 movzbl (%rdx,%rax,1),%eax 3c: 84 c0 test %al,%al 3e: 74 08 je 0x48