============================================
WARNING: possible recursive locking detected
6.5.0-rc3-syzkaller-00164-ge739718444f7 #0 Not tainted
--------------------------------------------
syz-executor.1/25224 is trying to acquire lock:
ffff8880357b1330 (&br->multicast_lock){+.-.}-{2:2}, at: spin_lock include/linux/spinlock.h:351 [inline]
ffff8880357b1330 (&br->multicast_lock){+.-.}-{2:2}, at: br_ip6_multicast_query net/bridge/br_multicast.c:3518 [inline]
ffff8880357b1330 (&br->multicast_lock){+.-.}-{2:2}, at: br_multicast_ipv6_rcv net/bridge/br_multicast.c:3914 [inline]
ffff8880357b1330 (&br->multicast_lock){+.-.}-{2:2}, at: br_multicast_rcv+0x21b6/0x6730 net/bridge/br_multicast.c:3969
but task is already holding lock:
ffff88804622d330 (&br->multicast_lock){+.-.}-{2:2}, at: spin_lock include/linux/spinlock.h:351 [inline]
ffff88804622d330 (&br->multicast_lock){+.-.}-{2:2}, at: br_multicast_port_query_expired+0x61/0x350 net/bridge/br_multicast.c:1900
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
5 locks held by syz-executor.1/25224:
#0: ffffc900001e0ce0 ((&pmctx->ip6_own_query.timer)){+.-.}-{0:0}, at: lockdep_copy_map include/linux/lockdep.h:31 [inline]
#0: ffffc900001e0ce0 ((&pmctx->ip6_own_query.timer)){+.-.}-{0:0}, at: call_timer_fn+0xd5/0x580 kernel/time/timer.c:1690
#1: ffff88804622d330 (&br->multicast_lock){+.-.}-{2:2}, at: spin_lock include/linux/spinlock.h:351 [inline]
#1: ffff88804622d330 (&br->multicast_lock){+.-.}-{2:2}, at: br_multicast_port_query_expired+0x61/0x350 net/bridge/br_multicast.c:1900
#2: ffffffff8c9a6520 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x257/0x3f20 net/core/dev.c:4120
#3: ffffffff8c9a6520 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x257/0x3f20 net/core/dev.c:4120
#4: ffffffff8c9a6580 (rcu_read_lock){....}-{1:2}, at: arch_static_branch arch/x86/include/asm/jump_label.h:27 [inline]
#4: ffffffff8c9a6580 (rcu_read_lock){....}-{1:2}, at: br_tc_skb_miss_set net/bridge/br_private.h:763 [inline]
#4: ffffffff8c9a6580 (rcu_read_lock){....}-{1:2}, at: br_dev_xmit+0xf0/0x1970 net/bridge/br_device.c:42
stack backtrace:
CPU: 1 PID: 25224 Comm: syz-executor.1 Not tainted 6.5.0-rc3-syzkaller-00164-ge739718444f7 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xd9/0x1b0 lib/dump_stack.c:106
check_deadlock kernel/locking/lockdep.c:3070 [inline]
validate_chain kernel/locking/lockdep.c:3863 [inline]
__lock_acquire+0x2971/0x5de0 kernel/locking/lockdep.c:5144
lock_acquire kernel/locking/lockdep.c:5761 [inline]
lock_acquire+0x1ae/0x510 kernel/locking/lockdep.c:5726
__raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline]
_raw_spin_lock+0x2e/0x40 kernel/locking/spinlock.c:154
spin_lock include/linux/spinlock.h:351 [inline]
br_ip6_multicast_query net/bridge/br_multicast.c:3518 [inline]
br_multicast_ipv6_rcv net/bridge/br_multicast.c:3914 [inline]
br_multicast_rcv+0x21b6/0x6730 net/bridge/br_multicast.c:3969
br_dev_xmit+0x786/0x1970 net/bridge/br_device.c:90
__netdev_start_xmit include/linux/netdevice.h:4910 [inline]
netdev_start_xmit include/linux/netdevice.h:4924 [inline]
xmit_one net/core/dev.c:3537 [inline]
dev_hard_start_xmit+0x13d/0x6c0 net/core/dev.c:3553
__dev_queue_xmit+0xa55/0x3f20 net/core/dev.c:4203
dev_queue_xmit include/linux/netdevice.h:3088 [inline]
vlan_dev_hard_start_xmit+0x3af/0x5c0 net/8021q/vlan_dev.c:125
__netdev_start_xmit include/linux/netdevice.h:4910 [inline]
netdev_start_xmit include/linux/netdevice.h:4924 [inline]
xmit_one net/core/dev.c:3537 [inline]
dev_hard_start_xmit+0x13d/0x6c0 net/core/dev.c:3553
__dev_queue_xmit+0xa55/0x3f20 net/core/dev.c:4203
dev_queue_xmit include/linux/netdevice.h:3088 [inline]
br_dev_queue_push_xmit+0x26e/0x7b0 net/bridge/br_forward.c:53
NF_HOOK include/linux/netfilter.h:303 [inline]
__br_multicast_send_query+0x238b/0x4110 net/bridge/br_multicast.c:1804
br_multicast_send_query+0x2ce/0x540 net/bridge/br_multicast.c:1883
br_multicast_port_query_expired+0x288/0x350 net/bridge/br_multicast.c:1908
call_timer_fn+0x1a0/0x580 kernel/time/timer.c:1700
expire_timers kernel/time/timer.c:1751 [inline]
__run_timers+0x764/0xb10 kernel/time/timer.c:2022
run_timer_softirq+0x58/0xd0 kernel/time/timer.c:2035
__do_softirq+0x218/0x965 kernel/softirq.c:553
invoke_softirq kernel/softirq.c:427 [inline]
__irq_exit_rcu kernel/softirq.c:632 [inline]
irq_exit_rcu+0xb7/0x120 kernel/softirq.c:644
sysvec_apic_timer_interrupt+0x93/0xc0 arch/x86/kernel/apic/apic.c:1109
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645
RIP: 0010:kasan_get_alloc_meta mm/kasan/generic.c:434 [inline]
RIP: 0010:kasan_save_alloc_info+0x11/0x30 mm/kasan/generic.c:509
Code: 00 00 e9 62 fb ff ff 66 90 66 0f 1f 00 31 f6 e9 55 fb ff ff 0f 1f 44 00 00 66 0f 1f 00 48 89 f8 48 89 f7 48 63 80 bc 00 00 00 <85> c0 74 0c 48 01 c7 74 07 89 d6 e9 4f db ff ff c3 66 66 2e 0f 1f
RSP: 0018:ffffc9000bd17c30 EFLAGS: 00000246
RAX: 0000000000000058 RBX: ffff888043d0f690 RCX: 0000000000000000
RDX: 0000000000000dc0 RSI: ffff888043d0f690 RDI: ffff888043d0f690
RBP: 0000000000000001 R08: 0000000000000006 R09: 0000000000000002
R10: ffffed10087a1ed2 R11: 0000000000000000 R12: ffff888014675280
R13: 0000000000000dc0 R14: 0000000000000dc0 R15: 0000000000000001
__kasan_slab_alloc+0x81/0x90 mm/kasan/common.c:328
kasan_slab_alloc include/linux/kasan.h:186 [inline]
slab_post_alloc_hook mm/slab.h:762 [inline]
slab_alloc_node mm/slub.c:3470 [inline]
slab_alloc mm/slub.c:3478 [inline]
__kmem_cache_alloc_lru mm/slub.c:3485 [inline]
kmem_cache_alloc+0x172/0x3b0 mm/slub.c:3494
kmem_cache_zalloc include/linux/slab.h:693 [inline]
lsm_file_alloc security/security.c:611 [inline]
security_file_alloc+0x41/0x250 security/security.c:2564
init_file+0xb9/0x2d0 fs/file_table.c:161
alloc_empty_file+0x91/0x1d0 fs/file_table.c:210
alloc_file+0x5e/0x7f0 fs/file_table.c:293
alloc_file_pseudo+0x174/0x240 fs/file_table.c:336
sock_alloc_file+0x50/0x1d0 net/socket.c:466
sock_map_fd net/socket.c:491 [inline]
__sys_socket+0x1b0/0x250 net/socket.c:1660
__do_sys_socket net/socket.c:1665 [inline]
__se_sys_socket net/socket.c:1663 [inline]
__x64_sys_socket+0x72/0xb0 net/socket.c:1663
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fb16467cae9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fb1653590c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000029
RAX: ffffffffffffffda RBX: 00007fb16479bf80 RCX: 00007fb16467cae9
RDX: 0000000000000300 RSI: 0000000000000002 RDI: 0000000000000011
RBP: 00007fb1646c847a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007fb16479bf80 R15: 00007fff28cd3318
----------------
Code disassembly (best guess):
0: 00 00 add %al,(%rax)
2: e9 62 fb ff ff jmp 0xfffffb69
7: 66 90 xchg %ax,%ax
9: 66 0f 1f 00 nopw (%rax)
d: 31 f6 xor %esi,%esi
f: e9 55 fb ff ff jmp 0xfffffb69
14: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
19: 66 0f 1f 00 nopw (%rax)
1d: 48 89 f8 mov %rdi,%rax
20: 48 89 f7 mov %rsi,%rdi
23: 48 63 80 bc 00 00 00 movslq 0xbc(%rax),%rax
* 2a: 85 c0 test %eax,%eax <-- trapping instruction
2c: 74 0c je 0x3a
2e: 48 01 c7 add %rax,%rdi
31: 74 07 je 0x3a
33: 89 d6 mov %edx,%esi
35: e9 4f db ff ff jmp 0xffffdb89
3a: c3 ret
3b: 66 data16
3c: 66 data16
3d: 2e cs
3e: 0f .byte 0xf
3f: 1f (bad)