============================================
WARNING: possible recursive locking detected
6.8.0-syzkaller-05204-g237bb5f7f7f5 #0 Not tainted
--------------------------------------------
syz-executor.0/14267 is trying to acquire lock:
ffff88807f0753e0 (&br->multicast_lock){+.-.}-{2:2}, at: spin_lock include/linux/spinlock.h:351 [inline]
ffff88807f0753e0 (&br->multicast_lock){+.-.}-{2:2}, at: br_ip6_multicast_query net/bridge/br_multicast.c:3523 [inline]
ffff88807f0753e0 (&br->multicast_lock){+.-.}-{2:2}, at: br_multicast_ipv6_rcv net/bridge/br_multicast.c:3919 [inline]
ffff88807f0753e0 (&br->multicast_lock){+.-.}-{2:2}, at: br_multicast_rcv+0x30e2/0x8180 net/bridge/br_multicast.c:3974
but task is already holding lock:
ffff88806137d3e0 (&br->multicast_lock){+.-.}-{2:2}, at: spin_lock include/linux/spinlock.h:351 [inline]
ffff88806137d3e0 (&br->multicast_lock){+.-.}-{2:2}, at: br_multicast_port_query_expired+0x64/0x3b0 net/bridge/br_multicast.c:1905
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
6 locks held by syz-executor.0/14267:
#0: ffff8880789c8400 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: inode_lock include/linux/fs.h:793 [inline]
#0: ffff8880789c8400 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: process_measurement+0x44d/0x1f60 security/integrity/ima/ima_main.c:248
#1: ffffc90000007c00 ((&pmctx->ip6_own_query.timer)){+.-.}-{0:0}, at: call_timer_fn+0xc0/0x600 kernel/time/timer.c:1789
#2: ffff88806137d3e0 (&br->multicast_lock){+.-.}-{2:2}, at: spin_lock include/linux/spinlock.h:351 [inline]
#2: ffff88806137d3e0 (&br->multicast_lock){+.-.}-{2:2}, at: br_multicast_port_query_expired+0x64/0x3b0 net/bridge/br_multicast.c:1905
#3: ffffffff8e131980 (rcu_read_lock_bh){....}-{1:2}, at: local_bh_disable include/linux/bottom_half.h:20 [inline]
#3: ffffffff8e131980 (rcu_read_lock_bh){....}-{1:2}, at: rcu_read_lock_bh include/linux/rcupdate.h:802 [inline]
#3: ffffffff8e131980 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x2c4/0x3b10 net/core/dev.c:4260
#4: ffffffff8e131980 (rcu_read_lock_bh){....}-{1:2}, at: local_bh_disable include/linux/bottom_half.h:20 [inline]
#4: ffffffff8e131980 (rcu_read_lock_bh){....}-{1:2}, at: rcu_read_lock_bh include/linux/rcupdate.h:802 [inline]
#4: ffffffff8e131980 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x2c4/0x3b10 net/core/dev.c:4260
#5: ffffffff8e131920 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:298 [inline]
#5: ffffffff8e131920 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:750 [inline]
#5: ffffffff8e131920 (rcu_read_lock){....}-{1:2}, at: br_dev_xmit+0x1b9/0x1a10 net/bridge/br_device.c:44
stack backtrace:
CPU: 0 PID: 14267 Comm: syz-executor.0 Not tainted 6.8.0-syzkaller-05204-g237bb5f7f7f5 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x1e7/0x2e0 lib/dump_stack.c:106
check_deadlock kernel/locking/lockdep.c:3062 [inline]
validate_chain+0x15c1/0x58e0 kernel/locking/lockdep.c:3856
__lock_acquire+0x1346/0x1fd0 kernel/locking/lockdep.c:5137
lock_acquire+0x1e4/0x530 kernel/locking/lockdep.c:5754
__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:3523 [inline]
br_multicast_ipv6_rcv net/bridge/br_multicast.c:3919 [inline]
br_multicast_rcv+0x30e2/0x8180 net/bridge/br_multicast.c:3974
br_dev_xmit+0xb17/0x1a10 net/bridge/br_device.c:90
__netdev_start_xmit include/linux/netdevice.h:4903 [inline]
netdev_start_xmit include/linux/netdevice.h:4917 [inline]
xmit_one net/core/dev.c:3531 [inline]
dev_hard_start_xmit+0x26a/0x790 net/core/dev.c:3547
__dev_queue_xmit+0x19f4/0x3b10 net/core/dev.c:4335
dev_queue_xmit include/linux/netdevice.h:3091 [inline]
vlan_dev_hard_start_xmit+0x36c/0x5f0 net/8021q/vlan_dev.c:125
__netdev_start_xmit include/linux/netdevice.h:4903 [inline]
netdev_start_xmit include/linux/netdevice.h:4917 [inline]
xmit_one net/core/dev.c:3531 [inline]
dev_hard_start_xmit+0x26a/0x790 net/core/dev.c:3547
__dev_queue_xmit+0x19f4/0x3b10 net/core/dev.c:4335
dev_queue_xmit include/linux/netdevice.h:3091 [inline]
br_dev_queue_push_xmit+0x701/0x8d0 net/bridge/br_forward.c:53
NF_HOOK include/linux/netfilter.h:314 [inline]
__br_multicast_send_query+0x2ecb/0x4750 net/bridge/br_multicast.c:1809
br_multicast_send_query+0x4ee/0x6b0 net/bridge/br_multicast.c:1888
br_multicast_port_query_expired+0x2d4/0x3b0 net/bridge/br_multicast.c:1913
call_timer_fn+0x17e/0x600 kernel/time/timer.c:1792
expire_timers kernel/time/timer.c:1843 [inline]
__run_timers kernel/time/timer.c:2408 [inline]
__run_timer_base+0x66a/0x8e0 kernel/time/timer.c:2419
run_timer_base kernel/time/timer.c:2428 [inline]
run_timer_softirq+0xb7/0x170 kernel/time/timer.c:2438
__do_softirq+0x2bc/0x943 kernel/softirq.c:554
invoke_softirq kernel/softirq.c:428 [inline]
__irq_exit_rcu+0xf2/0x1c0 kernel/softirq.c:633
irq_exit_rcu+0x9/0x30 kernel/softirq.c:645
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1043 [inline]
sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1043
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
RIP: 0010:kasan_check_range+0x5/0x290 mm/kasan/generic.c:188
Code: 8d e8 6f 8c e5 ff 90 0f 0b 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 66 0f 1f 00 55 <41> 57 41 56 41 54 53 b0 01 48 85 f6 0f 84 a0 01 00 00 4c 8d 04 37
RSP: 0018:ffffc9000adaef58 EFLAGS: 00000246
RAX: ffffc9000adafd40 RBX: 0000000000000010 RCX: ffffffff8140a31b
RDX: 0000000000000001 RSI: 0000000000000010 RDI: ffffc9000adaf0b0
RBP: ffffc9000adaf0b0 R08: ffffffff8140a00d R09: ffffffff81409f66
R10: 0000000000000003 R11: ffff8880611ebc00 R12: ffffc9000adafd38
R13: dffffc0000000000 R14: 0000000000000000 R15: 1ffff920015b5e0c
__asan_memset+0x23/0x50 mm/kasan/shadow.c:84
unwind_next_frame+0x13ab/0x2a00 arch/x86/kernel/unwind_orc.c:592
arch_stack_walk+0x151/0x1b0 arch/x86/kernel/stacktrace.c:25
stack_trace_save+0x118/0x1d0 kernel/stacktrace.c:122
kasan_save_stack mm/kasan/common.c:47 [inline]
kasan_save_track+0x3f/0x80 mm/kasan/common.c:68
unpoison_slab_object mm/kasan/common.c:312 [inline]
__kasan_slab_alloc+0x66/0x80 mm/kasan/common.c:338
kasan_slab_alloc include/linux/kasan.h:201 [inline]
slab_post_alloc_hook mm/slub.c:3813 [inline]
slab_alloc_node mm/slub.c:3860 [inline]
kmem_cache_alloc+0x172/0x350 mm/slub.c:3867
integrity_inode_get+0x10a/0x580 security/integrity/iint.c:134
process_measurement+0x45a/0x1f60 security/integrity/ima/ima_main.c:251
ima_file_check+0xf2/0x170 security/integrity/ima/ima_main.c:557
do_open fs/namei.c:3645 [inline]
path_openat+0x28b7/0x3240 fs/namei.c:3800
do_filp_open+0x235/0x490 fs/namei.c:3827
do_sys_openat2+0x13e/0x1d0 fs/open.c:1407
do_sys_open fs/open.c:1422 [inline]
__do_sys_openat fs/open.c:1438 [inline]
__se_sys_openat fs/open.c:1433 [inline]
__x64_sys_openat+0x247/0x2a0 fs/open.c:1433
do_syscall_64+0xfb/0x240
entry_SYSCALL_64_after_hwframe+0x6d/0x75
RIP: 0033:0x7f144567dda9
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:00007f14464740c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007f14457abf80 RCX: 00007f144567dda9
RDX: 000000000000275a RSI: 0000000020000080 RDI: ffffffffffffff9c
RBP: 00007f14456ca47a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f14457abf80 R15: 00007fff31a997a8
----------------
Code disassembly (best guess), 1 bytes skipped:
0: e8 6f 8c e5 ff call 0xffe58c74
5: 90 nop
6: 0f 0b ud2
8: 66 2e 0f 1f 84 00 00 cs nopw 0x0(%rax,%rax,1)
f: 00 00 00
12: 66 90 xchg %ax,%ax
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: 90 nop
20: 90 nop
21: 90 nop
22: 90 nop
23: 90 nop
24: 66 0f 1f 00 nopw (%rax)
28: 55 push %rbp
* 29: 41 57 push %r15 <-- trapping instruction
2b: 41 56 push %r14
2d: 41 54 push %r12
2f: 53 push %rbx
30: b0 01 mov $0x1,%al
32: 48 85 f6 test %rsi,%rsi
35: 0f 84 a0 01 00 00 je 0x1db
3b: 4c 8d 04 37 lea (%rdi,%rsi,1),%r8