============================================ WARNING: possible recursive locking detected 6.1.0-syzkaller-13031-g77856d911a8c #0 Not tainted -------------------------------------------- syz-executor.4/14590 is trying to acquire lock: ffff88804bf29338 (&br->multicast_lock){+.-.}-{2:2}, at: spin_lock include/linux/spinlock.h:350 [inline] ffff88804bf29338 (&br->multicast_lock){+.-.}-{2:2}, at: br_ip6_multicast_query net/bridge/br_multicast.c:3351 [inline] ffff88804bf29338 (&br->multicast_lock){+.-.}-{2:2}, at: br_multicast_ipv6_rcv net/bridge/br_multicast.c:3747 [inline] ffff88804bf29338 (&br->multicast_lock){+.-.}-{2:2}, at: br_multicast_rcv+0x2019/0x6830 net/bridge/br_multicast.c:3802 but task is already holding lock: ffff88807d1b5338 (&br->multicast_lock){+.-.}-{2:2}, at: spin_lock include/linux/spinlock.h:350 [inline] ffff88807d1b5338 (&br->multicast_lock){+.-.}-{2:2}, at: br_multicast_port_query_expired+0x61/0x360 net/bridge/br_multicast.c:1752 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 8 locks held by syz-executor.4/14590: #0: ffffffff8deb04a8 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:75 [inline] #0: ffffffff8deb04a8 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x3e9/0xca0 net/core/rtnetlink.c:6138 #1: ffffffff8c57c2c0 (console_lock){+.+.}-{0:0}, at: vprintk+0x84/0xa0 kernel/printk/printk_safe.c:50 #2: ffffffff8c57c6a8 (console_srcu){....}-{0:0}, at: cpumask_check include/linux/cpumask.h:117 [inline] #2: ffffffff8c57c6a8 (console_srcu){....}-{0:0}, at: cpumask_test_cpu include/linux/cpumask.h:444 [inline] #2: ffffffff8c57c6a8 (console_srcu){....}-{0:0}, at: cpu_online include/linux/cpumask.h:1030 [inline] #2: ffffffff8c57c6a8 (console_srcu){....}-{0:0}, at: console_is_usable kernel/printk/printk.c:2732 [inline] #2: ffffffff8c57c6a8 (console_srcu){....}-{0:0}, at: console_flush_all+0x9a/0x6e0 kernel/printk/printk.c:2877 #3: ffffc90000007d60 ((&pmctx->ip6_own_query.timer)){+.-.}-{0:0}, at: lockdep_copy_map include/linux/lockdep.h:31 [inline] #3: ffffc90000007d60 ((&pmctx->ip6_own_query.timer)){+.-.}-{0:0}, at: call_timer_fn+0xd4/0x7c0 kernel/time/timer.c:1690 #4: ffff88807d1b5338 (&br->multicast_lock){+.-.}-{2:2}, at: spin_lock include/linux/spinlock.h:350 [inline] #4: ffff88807d1b5338 (&br->multicast_lock){+.-.}-{2:2}, at: br_multicast_port_query_expired+0x61/0x360 net/bridge/br_multicast.c:1752 #5: ffffffff8c58e6a0 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x237/0x3ba0 net/core/dev.c:4166 #6: ffffffff8c58e6a0 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x237/0x3ba0 net/core/dev.c:4166 #7: ffffffff8c58e700 (rcu_read_lock){....}-{1:2}, at: br_dev_xmit+0x4/0x1620 net/bridge/br_device.c:29 stack backtrace: CPU: 0 PID: 14590 Comm: syz-executor.4 Not tainted 6.1.0-syzkaller-13031-g77856d911a8c #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd1/0x138 lib/dump_stack.c:106 print_deadlock_bug kernel/locking/lockdep.c:2990 [inline] check_deadlock kernel/locking/lockdep.c:3033 [inline] validate_chain kernel/locking/lockdep.c:3818 [inline] __lock_acquire.cold+0x116/0x3a7 kernel/locking/lockdep.c:5055 lock_acquire kernel/locking/lockdep.c:5668 [inline] lock_acquire+0x1e3/0x630 kernel/locking/lockdep.c:5633 __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:350 [inline] br_ip6_multicast_query net/bridge/br_multicast.c:3351 [inline] br_multicast_ipv6_rcv net/bridge/br_multicast.c:3747 [inline] br_multicast_rcv+0x2019/0x6830 net/bridge/br_multicast.c:3802 br_dev_xmit+0x726/0x1620 net/bridge/br_device.c:89 __netdev_start_xmit include/linux/netdevice.h:4865 [inline] netdev_start_xmit include/linux/netdevice.h:4879 [inline] xmit_one net/core/dev.c:3583 [inline] dev_hard_start_xmit+0x1c2/0x990 net/core/dev.c:3599 __dev_queue_xmit+0x2cdf/0x3ba0 net/core/dev.c:4249 dev_queue_xmit include/linux/netdevice.h:3035 [inline] vlan_dev_hard_start_xmit+0x1bc/0x5c0 net/8021q/vlan_dev.c:124 __netdev_start_xmit include/linux/netdevice.h:4865 [inline] netdev_start_xmit include/linux/netdevice.h:4879 [inline] xmit_one net/core/dev.c:3583 [inline] dev_hard_start_xmit+0x1c2/0x990 net/core/dev.c:3599 __dev_queue_xmit+0x2cdf/0x3ba0 net/core/dev.c:4249 dev_queue_xmit include/linux/netdevice.h:3035 [inline] br_dev_queue_push_xmit+0x26e/0x740 net/bridge/br_forward.c:53 NF_HOOK include/linux/netfilter.h:302 [inline] __br_multicast_send_query+0x11c6/0x3b70 net/bridge/br_multicast.c:1656 br_multicast_send_query+0x266/0x4b0 net/bridge/br_multicast.c:1735 br_multicast_port_query_expired+0x2c3/0x360 net/bridge/br_multicast.c:1760 call_timer_fn+0x1da/0x7c0 kernel/time/timer.c:1700 expire_timers+0x2c6/0x5c0 kernel/time/timer.c:1751 __run_timers kernel/time/timer.c:2022 [inline] __run_timers kernel/time/timer.c:1995 [inline] run_timer_softirq+0x326/0x910 kernel/time/timer.c:2035 __do_softirq+0x1fb/0xadc kernel/softirq.c:571 invoke_softirq kernel/softirq.c:445 [inline] __irq_exit_rcu+0x123/0x180 kernel/softirq.c:650 irq_exit_rcu+0x9/0x20 kernel/softirq.c:662 sysvec_apic_timer_interrupt+0x97/0xc0 arch/x86/kernel/apic/apic.c:1107 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:649 RIP: 0010:__sanitizer_cov_trace_pc+0x0/0x70 kernel/kcov.c:200 Code: 46 20 8a 02 66 0f 1f 44 00 00 f3 0f 1e fa 48 8b be a8 01 00 00 e8 b0 ff ff ff 31 c0 c3 66 66 2e 0f 1f 84 00 00 00 00 00 66 90 0f 1e fa 65 8b 05 ed 39 83 7e 89 c1 48 8b 34 24 81 e1 00 01 00 RSP: 0018:ffffc90003666b90 EFLAGS: 00000246 RAX: 0000000000040000 RBX: 0000000000000000 RCX: ffffc9000ddb3000 RDX: 0000000000040000 RSI: ffffffff81653a0a RDI: 0000000000000007 RBP: ffffc90003666d98 R08: 0000000000000007 R09: 0000000000000000 R10: 0000000000000200 R11: 0000000000000000 R12: 0000000000000001 R13: ffffffff919abf20 R14: 0000000000000200 R15: 0000000000000000 console_emit_next_record.constprop.0+0x550/0x890 arch/x86/include/asm/irqflags.h:45 console_flush_all+0x547/0x6e0 kernel/printk/printk.c:2887 console_unlock+0xb8/0x1f0 kernel/printk/printk.c:2964 vprintk_emit+0x1bd/0x600 kernel/printk/printk.c:2357 vprintk+0x84/0xa0 kernel/printk/printk_safe.c:50 _printk+0xbe/0xf1 kernel/printk/printk.c:2378 __dev_set_promiscuity.cold+0x55/0x35a net/core/dev.c:8322 dev_set_promiscuity+0x53/0x150 net/core/dev.c:8361 vlan_dev_open+0x56c/0x970 net/8021q/vlan_dev.c:281 __dev_open+0x297/0x4d0 net/core/dev.c:1417 __dev_change_flags+0x587/0x750 net/core/dev.c:8530 dev_change_flags+0x97/0x170 net/core/dev.c:8602 do_setlink+0x9f1/0x3bb0 net/core/rtnetlink.c:2827 rtnl_group_changelink net/core/rtnetlink.c:3344 [inline] __rtnl_newlink+0xb90/0x1840 net/core/rtnetlink.c:3600 rtnl_newlink+0x68/0xa0 net/core/rtnetlink.c:3637 rtnetlink_rcv_msg+0x43e/0xca0 net/core/rtnetlink.c:6141 netlink_rcv_skb+0x165/0x440 net/netlink/af_netlink.c:2564 netlink_unicast_kernel net/netlink/af_netlink.c:1330 [inline] netlink_unicast+0x547/0x7f0 net/netlink/af_netlink.c:1356 netlink_sendmsg+0x91b/0xe10 net/netlink/af_netlink.c:1932 sock_sendmsg_nosec net/socket.c:714 [inline] sock_sendmsg+0xd3/0x120 net/socket.c:734 ____sys_sendmsg+0x712/0x8c0 net/socket.c:2476 ___sys_sendmsg+0x110/0x1b0 net/socket.c:2530 __sys_sendmsg+0xf7/0x1c0 net/socket.c:2559 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fc3c608c0d9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fc3c6e05168 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007fc3c61ac050 RCX: 00007fc3c608c0d9 RDX: 0000000000000000 RSI: 0000000020000100 RDI: 0000000000000004 RBP: 00007fc3c60e7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe4ca0f0ff R14: 00007fc3c6e05300 R15: 0000000000022000 ---------------- Code disassembly (best guess): 0: 46 20 8a 02 66 0f 1f rex.RX and %r9b,0x1f0f6602(%rdx) 7: 44 00 00 add %r8b,(%rax) a: f3 0f 1e fa endbr64 e: 48 8b be a8 01 00 00 mov 0x1a8(%rsi),%rdi 15: e8 b0 ff ff ff callq 0xffffffca 1a: 31 c0 xor %eax,%eax 1c: c3 retq 1d: 66 66 2e 0f 1f 84 00 data16 nopw %cs:0x0(%rax,%rax,1) 24: 00 00 00 00 28: 66 90 xchg %ax,%ax * 2a: f3 0f 1e fa endbr64 <-- trapping instruction 2e: 65 8b 05 ed 39 83 7e mov %gs:0x7e8339ed(%rip),%eax # 0x7e833a22 35: 89 c1 mov %eax,%ecx 37: 48 8b 34 24 mov (%rsp),%rsi 3b: 81 .byte 0x81 3c: e1 00 loope 0x3e 3e: 01 00 add %eax,(%rax)