syzbot


possible deadlock in team_device_event (3)

Status: upstream: reported C repro on 2024/05/09 16:54
Subsystems: net
[Documentation on labels]
Reported-by: syzbot+b668da2bc4cb9670bf58@syzkaller.appspotmail.com
First crash: 229d, last: 6h14m
Discussions (5)
Title Replies (including bot) Last reply
[PATCH net,v2] team: fix possible deadlock in team_port_change_check 7 (7) 2024/08/03 11:51
[syzbot] [net?] possible deadlock in team_device_event (3) 0 (10) 2024/08/02 14:20
[PATCH net] team: fix possible deadlock in team_port_change_check 4 (4) 2024/08/02 00:49
[PATCH net,v2] rtnetlink: fix possible deadlock in team_port_change_check 5 (5) 2024/08/01 14:31
[PATCH net] rtnetlink: fix possible deadlock in team_port_change_check 3 (3) 2024/07/31 01:37
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream possible deadlock in team_device_event net 30 1571d 1638d 0/28 auto-closed as invalid on 2020/12/31 13:59
upstream possible deadlock in team_device_event (2) net 8 1118d 1354d 0/28 auto-closed as invalid on 2022/03/29 04:55
Last patch testing requests (8)
Created Duration User Patch Repo Result
2024/08/02 14:20 24m aha310510@gmail.com patch upstream OK log
2024/08/01 09:57 23m aha310510@gmail.com patch upstream OK log
2024/07/31 14:16 26m aha310510@gmail.com patch upstream OK log
2024/07/31 13:20 18m aha310510@gmail.com patch upstream report log
2024/07/31 12:18 21m aha310510@gmail.com patch upstream report log
2024/07/30 12:41 25m aha310510@gmail.com patch upstream OK log
2024/07/30 12:02 22m aha310510@gmail.com patch upstream report log
2024/07/30 11:23 20m aha310510@gmail.com upstream report log

Sample crash report:
netlink: 'syz-executor855': attribute type 10 has an invalid length.
veth0_vlan: left promiscuous mode
veth0_vlan: entered promiscuous mode
============================================
WARNING: possible recursive locking detected
6.13.0-rc1-syzkaller-00337-g7503345ac5f5 #0 Not tainted
--------------------------------------------
syz-executor855/5927 is trying to acquire lock:
ffff888032c84e00 (team->team_lock_key){+.+.}-{4:4}, at: team_port_change_check drivers/net/team/team_core.c:2949 [inline]
ffff888032c84e00 (team->team_lock_key){+.+.}-{4:4}, at: team_device_event+0x2c7/0x770 drivers/net/team/team_core.c:2972

but task is already holding lock:
ffff888032c84e00 (team->team_lock_key){+.+.}-{4:4}, at: team_add_slave+0x9c/0x20e0 drivers/net/team/team_core.c:1974

other info that might help us debug this:
 Possible unsafe locking scenario:

       CPU0
       ----
  lock(team->team_lock_key);
  lock(team->team_lock_key);

 *** DEADLOCK ***

 May be due to missing lock nesting notation

2 locks held by syz-executor855/5927:
 #0: ffffffff8feda348 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_lock net/core/rtnetlink.c:79 [inline]
 #0: ffffffff8feda348 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_nets_lock net/core/rtnetlink.c:326 [inline]
 #0: ffffffff8feda348 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_newlink+0x5e4/0x1ce0 net/core/rtnetlink.c:4008
 #1: ffff888032c84e00 (team->team_lock_key){+.+.}-{4:4}, at: team_add_slave+0x9c/0x20e0 drivers/net/team/team_core.c:1974

stack backtrace:
CPU: 0 UID: 0 PID: 5927 Comm: syz-executor855 Not tainted 6.13.0-rc1-syzkaller-00337-g7503345ac5f5 #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:94 [inline]
 dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120
 print_deadlock_bug+0x2e3/0x410 kernel/locking/lockdep.c:3037
 check_deadlock kernel/locking/lockdep.c:3089 [inline]
 validate_chain kernel/locking/lockdep.c:3891 [inline]
 __lock_acquire+0x2117/0x3c40 kernel/locking/lockdep.c:5226
 lock_acquire.part.0+0x11b/0x380 kernel/locking/lockdep.c:5849
 __mutex_lock_common kernel/locking/mutex.c:585 [inline]
 __mutex_lock+0x19b/0xa60 kernel/locking/mutex.c:735
 team_port_change_check drivers/net/team/team_core.c:2949 [inline]
 team_device_event+0x2c7/0x770 drivers/net/team/team_core.c:2972
 notifier_call_chain+0xb7/0x410 kernel/notifier.c:85
 call_netdevice_notifiers_info+0xbe/0x140 net/core/dev.c:1996
 call_netdevice_notifiers_extack net/core/dev.c:2034 [inline]
 call_netdevice_notifiers net/core/dev.c:2048 [inline]
 __dev_notify_flags+0x12d/0x2e0 net/core/dev.c:8988
 dev_change_flags+0x10c/0x160 net/core/dev.c:9026
 vlan_device_event+0xdfc/0x2120 net/8021q/vlan.c:468
 notifier_call_chain+0xb7/0x410 kernel/notifier.c:85
 call_netdevice_notifiers_info+0xbe/0x140 net/core/dev.c:1996
 call_netdevice_notifiers_extack net/core/dev.c:2034 [inline]
 call_netdevice_notifiers net/core/dev.c:2048 [inline]
 dev_open net/core/dev.c:1517 [inline]
 dev_open+0x144/0x160 net/core/dev.c:1505
 team_port_add drivers/net/team/team_core.c:1216 [inline]
 team_add_slave+0xacd/0x20e0 drivers/net/team/team_core.c:1975
 do_set_master+0x1bc/0x230 net/core/rtnetlink.c:2917
 do_setlink.constprop.0+0xb60/0x3f70 net/core/rtnetlink.c:3116
 rtnl_changelink net/core/rtnetlink.c:3723 [inline]
 __rtnl_newlink net/core/rtnetlink.c:3874 [inline]
 rtnl_newlink+0x12ce/0x1ce0 net/core/rtnetlink.c:4009
 rtnetlink_rcv_msg+0x95b/0xea0 net/core/rtnetlink.c:6919
 netlink_rcv_skb+0x16b/0x440 net/netlink/af_netlink.c:2542
 netlink_unicast_kernel net/netlink/af_netlink.c:1321 [inline]
 netlink_unicast+0x53c/0x7f0 net/netlink/af_netlink.c:1347
 netlink_sendmsg+0x8b8/0xd70 net/netlink/af_netlink.c:1891
 sock_sendmsg_nosec net/socket.c:711 [inline]
 __sock_sendmsg net/socket.c:726 [inline]
 ____sys_sendmsg+0xaaf/0xc90 net/socket.c:2583
 ___sys_sendmsg+0x135/0x1e0 net/socket.c:2637
 __sys_sendmsg+0x16e/0x220 net/socket.c:2669
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f7b6cca0e49
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 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:00007fffd648e828 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f7b6ccee4c5 RCX: 00007f7b6cca0e49
RDX: 0000000000000000 RSI: 0000000020000600 RDI: 0000000000000004
RBP: 00007f7b6ccee4a3 R08: 0000000000000001 R09: 0000000000000001
R10: 0000000000000001 R11: 0000000000000246 R12: 00007f7b6ccee428
R13: 00007f7b6ccee004 R14: 00007fffd648e84c R15: 0000000000000003
 </TASK>

Crashes (138):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/12/08 02:57 upstream 7503345ac5f5 9ac0fdc6 .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream possible deadlock in team_device_event
2024/11/21 19:43 upstream 43fb83c17ba2 4b25d554 .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream possible deadlock in team_device_event
2024/07/26 18:35 upstream 1722389b0d86 7b1976c4 .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream possible deadlock in team_device_event
2024/12/20 09:22 upstream 8faabc041a00 1d58202c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root possible deadlock in team_device_event
2024/12/16 19:16 upstream 78d4f34e2115 f93b2b55 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root possible deadlock in team_device_event
2024/12/16 02:06 upstream dccbe2047a5b 7cbfbb3a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root possible deadlock in team_device_event
2024/12/14 04:53 upstream f932fb9b4074 7cbfbb3a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root possible deadlock in team_device_event
2024/07/24 22:32 upstream 786c8248dbd3 b24754ac .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root possible deadlock in team_device_event
2024/05/05 16:52 upstream 7367539ad4b0 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root possible deadlock in team_device_event
2024/12/20 18:50 upstream 8faabc041a00 49cfeac8 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream possible deadlock in team_device_event
2024/12/20 12:20 upstream 8faabc041a00 49cfeac8 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream possible deadlock in team_device_event
2024/12/20 08:01 upstream 8faabc041a00 c87fa8a3 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream possible deadlock in team_device_event
2024/12/20 03:59 upstream 8faabc041a00 c87fa8a3 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream possible deadlock in team_device_event
2024/12/19 07:02 upstream c061cf420ded 1432fc84 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream possible deadlock in team_device_event
2024/12/19 03:12 upstream c061cf420ded 1432fc84 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream possible deadlock in team_device_event
2024/12/18 20:06 upstream aef25be35d23 1432fc84 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream possible deadlock in team_device_event
2024/12/18 16:16 upstream aef25be35d23 1432fc84 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream possible deadlock in team_device_event
2024/12/18 12:12 upstream aef25be35d23 a0626d3a .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream possible deadlock in team_device_event
2024/12/18 11:25 upstream aef25be35d23 a0626d3a .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream possible deadlock in team_device_event
2024/12/18 07:08 upstream aef25be35d23 a0626d3a .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream possible deadlock in team_device_event
2024/12/18 05:03 upstream 59dbb9d81adf a0626d3a .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream possible deadlock in team_device_event
2024/12/17 19:13 upstream 59dbb9d81adf a0626d3a .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream possible deadlock in team_device_event
2024/12/17 13:07 upstream f44d154d6e3d bc1a1b50 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream possible deadlock in team_device_event
2024/12/17 11:43 upstream f44d154d6e3d bc1a1b50 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream possible deadlock in team_device_event
2024/12/17 09:36 upstream f44d154d6e3d f93b2b55 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream possible deadlock in team_device_event
2024/12/17 07:29 upstream f44d154d6e3d f93b2b55 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream possible deadlock in team_device_event
2024/12/17 05:18 upstream f44d154d6e3d f93b2b55 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream possible deadlock in team_device_event
2024/12/17 04:04 upstream f44d154d6e3d f93b2b55 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream possible deadlock in team_device_event
2024/12/17 00:38 upstream f44d154d6e3d f93b2b55 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream possible deadlock in team_device_event
2024/12/16 21:38 upstream 78d4f34e2115 eec85da6 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream possible deadlock in team_device_event
2024/12/16 20:32 upstream 78d4f34e2115 eec85da6 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream possible deadlock in team_device_event
2024/12/16 18:44 upstream 78d4f34e2115 eec85da6 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream possible deadlock in team_device_event
2024/12/16 17:14 upstream 78d4f34e2115 eec85da6 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream possible deadlock in team_device_event
2024/12/16 14:00 upstream 78d4f34e2115 eec85da6 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream possible deadlock in team_device_event
2024/12/16 05:18 upstream dccbe2047a5b 7cbfbb3a .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream possible deadlock in team_device_event
2024/12/16 03:47 upstream dccbe2047a5b 7cbfbb3a .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream possible deadlock in team_device_event
2024/12/15 22:57 upstream 2d8308bf5b67 7cbfbb3a .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream possible deadlock in team_device_event
2024/12/15 21:11 upstream 2d8308bf5b67 7cbfbb3a .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream possible deadlock in team_device_event
2024/12/15 18:48 upstream 2d8308bf5b67 7cbfbb3a .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream possible deadlock in team_device_event
2024/12/15 17:45 upstream 2d8308bf5b67 7cbfbb3a .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream possible deadlock in team_device_event
2024/12/15 14:19 upstream 2d8308bf5b67 7cbfbb3a .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream possible deadlock in team_device_event
2024/12/15 10:55 upstream 2d8308bf5b67 7cbfbb3a .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream possible deadlock in team_device_event
2024/12/15 05:40 upstream a0e3919a2df2 7cbfbb3a .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream possible deadlock in team_device_event
2024/12/15 01:19 upstream a0e3919a2df2 7cbfbb3a .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream possible deadlock in team_device_event
2024/12/15 00:01 upstream a0e3919a2df2 7cbfbb3a .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream possible deadlock in team_device_event
2024/12/14 21:26 upstream a0e3919a2df2 7cbfbb3a .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream possible deadlock in team_device_event
2024/12/14 20:23 upstream a446e965a188 7cbfbb3a .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream possible deadlock in team_device_event
2024/12/14 18:40 upstream a446e965a188 7cbfbb3a .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream possible deadlock in team_device_event
2024/12/14 00:39 upstream 243f750a2df0 7cbfbb3a .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream possible deadlock in team_device_event
2024/12/21 08:56 upstream e9b8ffafd20a d7f584ee .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 possible deadlock in team_device_event
2024/12/21 06:54 upstream e9b8ffafd20a d7f584ee .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 possible deadlock in team_device_event
2024/12/20 07:00 upstream 8faabc041a00 c87fa8a3 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 possible deadlock in team_device_event
2024/12/14 14:24 upstream a446e965a188 7cbfbb3a .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 possible deadlock in team_device_event
* Struck through repros no longer work on HEAD.