ci starts bisection 2023-03-13 02:06:51.104429718 +0000 UTC m=+242045.563681352
bisecting fixing commit since 60d86034b14eed902b3f2bea97d0c237cf2f9499
building syzkaller on 96166539c4c242fccd41c7316b7080377dca428b
ensuring issue is reproducible on original commit 60d86034b14eed902b3f2bea97d0c237cf2f9499
testing commit 60d86034b14eed902b3f2bea97d0c237cf2f9499 gcc
compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2
kernel signature: 0d585a3e21d16e8524a9376045c21b3ef5ee40a844c00f914e3859fd2f5e28d3
all runs: crashed: possible deadlock in br_multicast_rcv
testing current HEAD 95b744508d4d5135ae2a096ff3f0ee882bcc52b3
testing commit 95b744508d4d5135ae2a096ff3f0ee882bcc52b3 gcc
compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2
kernel signature: 30a66f4960460e0b8969d9691c304c47a377f70df13d4f133cb29c3d11d6f6bd
all runs: crashed: possible deadlock in br_multicast_rcv
revisions tested: 2, total time: 26m13.165740691s (build: 18m51.208057749s, test: 6m30.015849999s)
the crash still happens on HEAD
commit msg: qede: remove linux/version.h and linux/compiler.h
crash: possible deadlock in br_multicast_rcv
============================================
WARNING: possible recursive locking detected
6.3.0-rc1-syzkaller #0 Not tainted
--------------------------------------------
syz-executor.0/5841 is trying to acquire lock:
ffff888072b55338 (&br->multicast_lock){+.-.}-{2:2}, at: spin_lock include/linux/spinlock.h:350 [inline]
ffff888072b55338 (&br->multicast_lock){+.-.}-{2:2}, at: br_ip4_multicast_query net/bridge/br_multicast.c:3435 [inline]
ffff888072b55338 (&br->multicast_lock){+.-.}-{2:2}, at: br_multicast_ipv4_rcv net/bridge/br_multicast.c:3849 [inline]
ffff888072b55338 (&br->multicast_lock){+.-.}-{2:2}, at: br_multicast_rcv+0xaa4/0x5e40 net/bridge/br_multicast.c:3965
but task is already holding lock:
ffff888072b51338 (&br->multicast_lock){+.-.}-{2:2}, at: spin_lock include/linux/spinlock.h:350 [inline]
ffff888072b51338 (&br->multicast_lock){+.-.}-{2:2}, at: br_multicast_port_query_expired+0x5d/0x2c0 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
6 locks held by syz-executor.0/5841:
#0: ffffffff8d022f88 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:75 [inline]
#0: ffffffff8d022f88 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x2e6/0x9f0 net/core/rtnetlink.c:6171
#1: ffffc900001e0d60 ((&pmctx->ip4_own_query.timer)){+.-.}-{0:0}, at: lockdep_copy_map include/linux/lockdep.h:31 [inline]
#1: ffffc900001e0d60 ((&pmctx->ip4_own_query.timer)){+.-.}-{0:0}, at: call_timer_fn+0xce/0x5d0 kernel/time/timer.c:1690
#2: ffff888072b51338 (&br->multicast_lock){+.-.}-{2:2}, at: spin_lock include/linux/spinlock.h:350 [inline]
#2: ffff888072b51338 (&br->multicast_lock){+.-.}-{2:2}, at: br_multicast_port_query_expired+0x5d/0x2c0 net/bridge/br_multicast.c:1900
#3: ffffffff8b78d560 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x206/0x3300 net/core/dev.c:4161
#4: ffffffff8b78d560 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x206/0x3300 net/core/dev.c:4161
#5: ffffffff8b78d5c0 (rcu_read_lock){....}-{1:2}, at: br_dev_xmit+0x4/0x1260 net/bridge/br_device.c:29
stack backtrace:
CPU: 1 PID: 5841 Comm: syz-executor.0 Not tainted 6.3.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x64/0xb0 lib/dump_stack.c:106
print_deadlock_bug kernel/locking/lockdep.c:2991 [inline]
check_deadlock kernel/locking/lockdep.c:3034 [inline]
validate_chain kernel/locking/lockdep.c:3819 [inline]
__lock_acquire+0x1362/0x5d40 kernel/locking/lockdep.c:5056
lock_acquire kernel/locking/lockdep.c:5669 [inline]
lock_acquire+0x1e3/0x670 kernel/locking/lockdep.c:5634
__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_ip4_multicast_query net/bridge/br_multicast.c:3435 [inline]
br_multicast_ipv4_rcv net/bridge/br_multicast.c:3849 [inline]
br_multicast_rcv+0xaa4/0x5e40 net/bridge/br_multicast.c:3965
br_dev_xmit+0x60b/0x1260 net/bridge/br_device.c:89
__netdev_start_xmit include/linux/netdevice.h:4877 [inline]
netdev_start_xmit include/linux/netdevice.h:4891 [inline]
xmit_one net/core/dev.c:3578 [inline]
dev_hard_start_xmit+0x175/0x780 net/core/dev.c:3594
__dev_queue_xmit+0x24be/0x3300 net/core/dev.c:4244
dev_queue_xmit include/linux/netdevice.h:3052 [inline]
vlan_dev_hard_start_xmit+0x178/0x550 net/8021q/vlan_dev.c:124
__netdev_start_xmit include/linux/netdevice.h:4877 [inline]
netdev_start_xmit include/linux/netdevice.h:4891 [inline]
xmit_one net/core/dev.c:3578 [inline]
dev_hard_start_xmit+0x175/0x780 net/core/dev.c:3594
__dev_queue_xmit+0x24be/0x3300 net/core/dev.c:4244
dev_queue_xmit include/linux/netdevice.h:3052 [inline]
br_dev_queue_push_xmit+0x1df/0x660 net/bridge/br_forward.c:53
NF_HOOK include/linux/netfilter.h:302 [inline]
__br_multicast_send_query+0x23cb/0x43c0 net/bridge/br_multicast.c:1804
br_multicast_send_query+0x1ef/0x3e0 net/bridge/br_multicast.c:1883
br_multicast_port_query_expired+0x22b/0x2c0 net/bridge/br_multicast.c:1908
call_timer_fn+0x19b/0x5d0 kernel/time/timer.c:1700
expire_timers+0x259/0x4f0 kernel/time/timer.c:1751
__run_timers kernel/time/timer.c:2022 [inline]
__run_timers kernel/time/timer.c:1995 [inline]
run_timer_softirq+0x296/0x790 kernel/time/timer.c:2035
__do_softirq+0x2e3/0xae3 kernel/softirq.c:571
invoke_softirq kernel/softirq.c:445 [inline]
__irq_exit_rcu+0x114/0x190 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:645
RIP: 0010:kasan_quarantine_reduce+0x4/0x220 mm/kasan/quarantine.c:248
Code: ff 4c 89 b0 40 a7 c7 90 48 89 6a 08 48 89 5a 10 44 88 62 18 e9 67 ff ff ff 66 66 2e 0f 1f 84 00 00 00 00 00 66 90 66 0f 1f 00 <55> 48 83 ec 20 48 8b 15 20 7e 0a 0f 48 8b 05 11 7e 0a 0f 48 c7 04
RSP: 0018:ffffc9000498f310 EFLAGS: 00000206
RAX: 0000000000000010 RBX: ffff88807d7289c0 RCX: 0000000000000001
RDX: 0000000000000400 RSI: ffff88807d7289c0 RDI: ffff888011441500
RBP: 0000000000000001 R08: ffff88807d7289c0 R09: ffffffff8d65c997
R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000dc0
R13: ffff888011441500 R14: 0000000000000020 R15: 0000000000000000
__kasan_slab_alloc+0x63/0x90 mm/kasan/common.c:305
kasan_slab_alloc include/linux/kasan.h:186 [inline]
slab_post_alloc_hook mm/slab.h:769 [inline]
slab_alloc_node mm/slub.c:3452 [inline]
__kmem_cache_alloc_node+0x17c/0x320 mm/slub.c:3491
kmalloc_trace+0x26/0x60 mm/slab_common.c:1061
kmalloc include/linux/slab.h:580 [inline]
kzalloc include/linux/slab.h:720 [inline]
mrp_init_port net/802/mrp.c:834 [inline]
mrp_init_applicant+0x3a5/0x520 net/802/mrp.c:862
register_vlan_dev+0x15e/0x720 net/8021q/vlan.c:170
vlan_newlink+0x3b2/0x630 net/8021q/vlan_netlink.c:191
rtnl_newlink_create net/core/rtnetlink.c:3440 [inline]
__rtnl_newlink+0xdbc/0x1520 net/core/rtnetlink.c:3657
rtnl_newlink+0x5e/0x90 net/core/rtnetlink.c:3670
rtnetlink_rcv_msg+0x331/0x9f0 net/core/rtnetlink.c:6174
netlink_rcv_skb+0x12a/0x390 net/netlink/af_netlink.c:2572
netlink_unicast_kernel net/netlink/af_netlink.c:1339 [inline]
netlink_unicast+0x437/0x710 net/netlink/af_netlink.c:1365
netlink_sendmsg+0x790/0xc50 net/netlink/af_netlink.c:1942
sock_sendmsg_nosec net/socket.c:724 [inline]
sock_sendmsg+0xc0/0x150 net/socket.c:747
____sys_sendmsg+0x5ff/0x8f0 net/socket.c:2501
___sys_sendmsg+0xdb/0x160 net/socket.c:2555
__sys_sendmsg+0xc7/0x160 net/socket.c:2584
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:0x7fc013a8c0c9
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:00007fc014774168 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007fc013babf80 RCX: 00007fc013a8c0c9
RDX: 0000000000000000 RSI: 0000000020000080 RDI: 0000000000000005
RBP: 00007fc013ae7ae9 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffcd5dee62f R14: 00007fc014774300 R15: 0000000000022000
----------------
Code disassembly (best guess), 1 bytes skipped:
0: 4c 89 b0 40 a7 c7 90 mov %r14,-0x6f3858c0(%rax)
7: 48 89 6a 08 mov %rbp,0x8(%rdx)
b: 48 89 5a 10 mov %rbx,0x10(%rdx)
f: 44 88 62 18 mov %r12b,0x18(%rdx)
13: e9 67 ff ff ff jmpq 0xffffff7f
18: 66 66 2e 0f 1f 84 00 data16 nopw %cs:0x0(%rax,%rax,1)
1f: 00 00 00 00
23: 66 90 xchg %ax,%ax
25: 66 0f 1f 00 nopw (%rax)
* 29: 55 push %rbp <-- trapping instruction
2a: 48 83 ec 20 sub $0x20,%rsp
2e: 48 8b 15 20 7e 0a 0f mov 0xf0a7e20(%rip),%rdx # 0xf0a7e55
35: 48 8b 05 11 7e 0a 0f mov 0xf0a7e11(%rip),%rax # 0xf0a7e4d
3c: 48 rex.W
3d: c7 .byte 0xc7
3e: 04 .byte 0x4