============================================
WARNING: possible recursive locking detected
5.16.0-rc8-syzkaller #0 Not tainted
--------------------------------------------
kworker/1:65/20880 is trying to acquire lock:
ffff88802a7d53b8 (&br->multicast_lock){+.-.}-{2:2}, at: spin_lock include/linux/spinlock.h:349 [inline]
ffff88802a7d53b8 (&br->multicast_lock){+.-.}-{2:2}, at: br_ip6_multicast_query net/bridge/br_multicast.c:3341 [inline]
ffff88802a7d53b8 (&br->multicast_lock){+.-.}-{2:2}, at: br_multicast_ipv6_rcv net/bridge/br_multicast.c:3737 [inline]
ffff88802a7d53b8 (&br->multicast_lock){+.-.}-{2:2}, at: br_multicast_rcv+0x16dc/0x6230 net/bridge/br_multicast.c:3792
but task is already holding lock:
ffff888050bf13b8 (&br->multicast_lock){+.-.}-{2:2}, at: spin_lock include/linux/spinlock.h:349 [inline]
ffff888050bf13b8 (&br->multicast_lock){+.-.}-{2:2}, at: br_multicast_port_query_expired+0x61/0x360 net/bridge/br_multicast.c:1742
other info that might help us debug this:
Possible unsafe locking scenario:
CPU0
----
lock(&br->multicast_lock);
lock(&br->multicast_lock);
*** DEADLOCK ***
May be due to missing lock nesting notation
10 locks held by kworker/1:65/20880:
#0: ffff888010c64d38 ((wq_completion)events){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline]
#0: ffff888010c64d38 ((wq_completion)events){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline]
#0: ffff888010c64d38 ((wq_completion)events){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1198 [inline]
#0: ffff888010c64d38 ((wq_completion)events){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:635 [inline]
#0: ffff888010c64d38 ((wq_completion)events){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:662 [inline]
#0: ffff888010c64d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x896/0x1660 kernel/workqueue.c:2269
#1: ffffc90000dc0d70 ((&pmctx->ip6_own_query.timer)){+.-.}-{0:0}, at: lockdep_copy_map include/linux/lockdep.h:35 [inline]
#1: ffffc90000dc0d70 ((&pmctx->ip6_own_query.timer)){+.-.}-{0:0}, at: call_timer_fn+0xd5/0x6b0 kernel/time/timer.c:1411
#2: ffff888050bf13b8 (&br->multicast_lock){+.-.}-{2:2}, at: spin_lock include/linux/spinlock.h:349 [inline]
#2: ffff888050bf13b8 (&br->multicast_lock){+.-.}-{2:2}, at: br_multicast_port_query_expired+0x61/0x360 net/bridge/br_multicast.c:1742
#3: ffffffff8bb83d40 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x1e3/0x3640 net/core/dev.c:4040
#4: ffffffff8bb83da0 (rcu_read_lock){....}-{1:2}, at: is_netpoll_tx_blocked include/net/bonding.h:109 [inline]
#4: ffffffff8bb83da0 (rcu_read_lock){....}-{1:2}, at: bond_start_xmit+0x88/0x1220 drivers/net/bonding/bond_main.c:5132
#5: ffffffff8bb83d40 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x1e3/0x3640 net/core/dev.c:4040
#6: ffffffff8bb83da0 (rcu_read_lock){....}-{1:2}, at: is_netpoll_tx_blocked include/net/bonding.h:109 [inline]
#6: ffffffff8bb83da0 (rcu_read_lock){....}-{1:2}, at: bond_start_xmit+0x88/0x1220 drivers/net/bonding/bond_main.c:5132
#7: ffffffff8bb83d40 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x1e3/0x3640 net/core/dev.c:4040
#8: ffffffff8bb83d40 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x1e3/0x3640 net/core/dev.c:4040
#9: ffffffff8bb83da0 (rcu_read_lock){....}-{1:2}, at: br_dev_xmit+0x0/0x16c0 net/bridge/br_device.c:309
stack backtrace:
CPU: 1 PID: 20880 Comm: kworker/1:65 Not tainted 5.16.0-rc8-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: events free_work
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106
print_deadlock_bug kernel/locking/lockdep.c:2956 [inline]
check_deadlock kernel/locking/lockdep.c:2999 [inline]
validate_chain kernel/locking/lockdep.c:3788 [inline]
__lock_acquire.cold+0x149/0x3ab kernel/locking/lockdep.c:5027
lock_acquire kernel/locking/lockdep.c:5637 [inline]
lock_acquire+0x1ab/0x510 kernel/locking/lockdep.c:5602
__raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline]
_raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:154
spin_lock include/linux/spinlock.h:349 [inline]
br_ip6_multicast_query net/bridge/br_multicast.c:3341 [inline]
br_multicast_ipv6_rcv net/bridge/br_multicast.c:3737 [inline]
br_multicast_rcv+0x16dc/0x6230 net/bridge/br_multicast.c:3792
br_dev_xmit+0x6f6/0x16c0 net/bridge/br_device.c:89
__netdev_start_xmit include/linux/netdevice.h:4682 [inline]
netdev_start_xmit include/linux/netdevice.h:4696 [inline]
xmit_one net/core/dev.c:3473 [inline]
dev_hard_start_xmit+0x1eb/0x920 net/core/dev.c:3489
__dev_queue_xmit+0x2983/0x3640 net/core/dev.c:4116
vlan_dev_hard_start_xmit+0x1b3/0x670 net/8021q/vlan_dev.c:124
__netdev_start_xmit include/linux/netdevice.h:4682 [inline]
netdev_start_xmit include/linux/netdevice.h:4696 [inline]
xmit_one net/core/dev.c:3473 [inline]
dev_hard_start_xmit+0x1eb/0x920 net/core/dev.c:3489
__dev_queue_xmit+0x2983/0x3640 net/core/dev.c:4116
bond_dev_queue_xmit+0xc3/0x170 drivers/net/bonding/bond_main.c:306
bond_do_alb_xmit+0x5c1/0x8a0 drivers/net/bonding/bond_alb.c:1325
__bond_start_xmit drivers/net/bonding/bond_main.c:5113 [inline]
bond_start_xmit+0xaad/0x1220 drivers/net/bonding/bond_main.c:5137
__netdev_start_xmit include/linux/netdevice.h:4682 [inline]
netdev_start_xmit include/linux/netdevice.h:4696 [inline]
xmit_one net/core/dev.c:3473 [inline]
dev_hard_start_xmit+0x1eb/0x920 net/core/dev.c:3489
__dev_queue_xmit+0x2983/0x3640 net/core/dev.c:4116
bond_dev_queue_xmit+0xc3/0x170 drivers/net/bonding/bond_main.c:306
bond_3ad_xor_xmit drivers/net/bonding/bond_main.c:4875 [inline]
__bond_start_xmit drivers/net/bonding/bond_main.c:5109 [inline]
bond_start_xmit+0xb01/0x1220 drivers/net/bonding/bond_main.c:5137
__netdev_start_xmit include/linux/netdevice.h:4682 [inline]
netdev_start_xmit include/linux/netdevice.h:4696 [inline]
xmit_one net/core/dev.c:3473 [inline]
dev_hard_start_xmit+0x1eb/0x920 net/core/dev.c:3489
__dev_queue_xmit+0x2983/0x3640 net/core/dev.c:4116
br_dev_queue_push_xmit+0x25a/0x740 net/bridge/br_forward.c:53
NF_HOOK include/linux/netfilter.h:307 [inline]
__br_multicast_send_query+0x118d/0x3aa0 net/bridge/br_multicast.c:1646
br_multicast_send_query+0x266/0x4b0 net/bridge/br_multicast.c:1725
br_multicast_port_query_expired+0x2c3/0x360 net/bridge/br_multicast.c:1750
call_timer_fn+0x1a5/0x6b0 kernel/time/timer.c:1421
expire_timers kernel/time/timer.c:1466 [inline]
__run_timers.part.0+0x67c/0xa30 kernel/time/timer.c:1734
__run_timers kernel/time/timer.c:1715 [inline]
run_timer_softirq+0xb3/0x1d0 kernel/time/timer.c:1747
__do_softirq+0x29b/0x9c2 kernel/softirq.c:558
invoke_softirq kernel/softirq.c:432 [inline]
__irq_exit_rcu+0x123/0x180 kernel/softirq.c:637
irq_exit_rcu+0x5/0x20 kernel/softirq.c:649
sysvec_apic_timer_interrupt+0x93/0xc0 arch/x86/kernel/apic/apic.c:1097
asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:lock_acquire+0x1ef/0x510 kernel/locking/lockdep.c:5605
Code: c6 a5 7e 83 f8 01 0f 85 b4 02 00 00 9c 58 f6 c4 02 0f 85 9f 02 00 00 48 83 7c 24 08 00 74 01 fb 48 b8 00 00 00 00 00 fc ff df <48> 01 c3 48 c7 03 00 00 00 00 48 c7 43 08 00 00 00 00 48 8b 84 24
RSP: 0018:ffffc9000509fc30 EFLAGS: 00000206
RAX: dffffc0000000000 RBX: 1ffff92000a13f88 RCX: 00000000000084d9
RDX: 1ffff1100f7a44eb RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000001 R08: 0000000000000000 R09: ffffffff8ff9ba17
R10: fffffbfff1ff3742 R11: 0000000000000001 R12: 0000000000000000
R13: 0000000000000000 R14: ffff888010c64d38 R15: 0000000000000000
process_one_work+0x8f7/0x1660 kernel/workqueue.c:2273
worker_thread+0x65d/0x1130 kernel/workqueue.c:2445
kthread+0x405/0x4f0 kernel/kthread.c:327
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
----------------
Code disassembly (best guess), 1 bytes skipped:
0: a5 movsl %ds:(%rsi),%es:(%rdi)
1: 7e 83 jle 0xffffff86
3: f8 clc
4: 01 0f add %ecx,(%rdi)
6: 85 b4 02 00 00 9c 58 test %esi,0x589c0000(%rdx,%rax,1)
d: f6 c4 02 test $0x2,%ah
10: 0f 85 9f 02 00 00 jne 0x2b5
16: 48 83 7c 24 08 00 cmpq $0x0,0x8(%rsp)
1c: 74 01 je 0x1f
1e: fb sti
1f: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax
26: fc ff df
* 29: 48 01 c3 add %rax,%rbx <-- trapping instruction
2c: 48 c7 03 00 00 00 00 movq $0x0,(%rbx)
33: 48 c7 43 08 00 00 00 movq $0x0,0x8(%rbx)
3a: 00
3b: 48 rex.W
3c: 8b .byte 0x8b
3d: 84 .byte 0x84
3e: 24 .byte 0x24