syzbot


KCSAN: data-race in bond_3ad_get_active_agg_info / bond_3ad_state_machine_handler

Status: auto-closed as invalid on 2021/03/02 22:58
Subsystems: net
[Documentation on labels]
First crash: 1200d, last: 1200d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in bond_3ad_get_active_agg_info / bond_3ad_state_machine_handler (2) net 1 251d 248d 0/26 auto-obsoleted due to no activity on 2023/10/31 13:09

Sample crash report:
==================================================================
BUG: KCSAN: data-race in bond_3ad_get_active_agg_info / bond_3ad_state_machine_handler

write to 0xffff88801b2d1cb0 of 8 bytes by task 296 on cpu 0:
 ad_port_selection_logic drivers/net/bonding/bond_3ad.c:1485 [inline]
 bond_3ad_state_machine_handler+0xa30/0x2750 drivers/net/bonding/bond_3ad.c:2327
 process_one_work+0x3e1/0x950 kernel/workqueue.c:2275
 worker_thread+0x64a/0xaa0 kernel/workqueue.c:2421
 kthread+0x1fd/0x220 kernel/kthread.c:292
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296

read to 0xffff88801b2d1cb0 of 8 bytes by task 23932 on cpu 1:
 __bond_3ad_get_active_agg_info drivers/net/bonding/bond_3ad.c:2616 [inline]
 bond_3ad_get_active_agg_info+0x8f/0x230 drivers/net/bonding/bond_3ad.c:2639
 bond_update_slave_arr+0xd4/0x6d0 drivers/net/bonding/bond_main.c:4348
 bond_open+0x687/0x6c0 drivers/net/bonding/bond_main.c:3649
 __dev_open+0x26c/0x390 net/core/dev.c:1528
 __dev_change_flags+0x14f/0x400 net/core/dev.c:8478
 dev_change_flags+0x55/0xc0 net/core/dev.c:8549
 do_setlink+0x741/0x21d0 net/core/rtnetlink.c:2708
 __rtnl_newlink net/core/rtnetlink.c:3376 [inline]
 rtnl_newlink+0xe58/0x12f0 net/core/rtnetlink.c:3491
 rtnetlink_rcv_msg+0x723/0x7c0 net/core/rtnetlink.c:5553
 netlink_rcv_skb+0x13e/0x240 net/netlink/af_netlink.c:2494
 rtnetlink_rcv+0x18/0x20 net/core/rtnetlink.c:5571
 netlink_unicast_kernel net/netlink/af_netlink.c:1304 [inline]
 netlink_unicast+0x5df/0x6b0 net/netlink/af_netlink.c:1330
 netlink_sendmsg+0x6f8/0x7c0 net/netlink/af_netlink.c:1919
 sock_sendmsg_nosec net/socket.c:652 [inline]
 sock_sendmsg net/socket.c:672 [inline]
 ____sys_sendmsg+0x352/0x4c0 net/socket.c:2345
 ___sys_sendmsg net/socket.c:2399 [inline]
 __sys_sendmsg+0x1ed/0x270 net/socket.c:2432
 __do_sys_sendmsg net/socket.c:2441 [inline]
 __se_sys_sendmsg net/socket.c:2439 [inline]
 __x64_sys_sendmsg+0x42/0x50 net/socket.c:2439
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 23932 Comm: syz-executor.1 Not tainted 5.11.0-rc5-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/01/26 22:58 upstream 13391c60da33 55a7d4df .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in bond_3ad_get_active_agg_info / bond_3ad_state_machine_handler
* Struck through repros no longer work on HEAD.