syzbot


KCSAN: data-race in __dev_change_flags / is_upper_ndev_bond_master_filter

Status: auto-closed as invalid on 2020/08/18 04:32
Subsystems: net
[Documentation on labels]
First crash: 1463d, last: 1463d
Similar bugs (8)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __dev_change_flags / is_upper_ndev_bond_master_filter (6) net 4 813d 831d 0/27 auto-closed as invalid on 2022/05/30 09:44
upstream KCSAN: data-race in __dev_change_flags / is_upper_ndev_bond_master_filter (7) net 5 684d 740d 0/27 auto-closed as invalid on 2022/10/06 05:34
upstream KCSAN: data-race in __dev_change_flags / is_upper_ndev_bond_master_filter (4) net 1 1195d 1195d 0/27 auto-closed as invalid on 2021/05/12 19:57
upstream KCSAN: data-race in __dev_change_flags / is_upper_ndev_bond_master_filter (8) net 1 622d 622d 0/27 auto-obsoleted due to no activity on 2022/12/07 07:34
upstream KCSAN: data-race in __dev_change_flags / is_upper_ndev_bond_master_filter (3) net 4 1271d 1313d 0/27 auto-closed as invalid on 2021/02/25 18:39
upstream KCSAN: data-race in __dev_change_flags / is_upper_ndev_bond_master_filter (2) net 1 1373d 1373d 0/27 auto-closed as invalid on 2020/11/15 22:09
upstream KCSAN: data-race in __dev_change_flags / is_upper_ndev_bond_master_filter (5) net 16 880d 969d 0/27 auto-closed as invalid on 2022/03/24 08:25
upstream KCSAN: data-race in __dev_change_flags / is_upper_ndev_bond_master_filter (9) net 63 3d09h 12d 0/27 upstream: reported on 2024/07/04 15:07

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __dev_change_flags / is_upper_ndev_bond_master_filter

write to 0xffff8880824ca228 of 4 bytes by task 2877 on cpu 1:
 __dev_change_flags+0xa1/0x3f0 net/core/dev.c:8252
 rtnl_configure_link+0xc2/0x150 net/core/rtnetlink.c:3021
 __rtnl_newlink net/core/rtnetlink.c:3357 [inline]
 rtnl_newlink+0xeba/0x1320 net/core/rtnetlink.c:3397
 rtnetlink_rcv_msg+0x71b/0x7b0 net/core/rtnetlink.c:5460
 netlink_rcv_skb+0x13e/0x240 net/netlink/af_netlink.c:2469
 rtnetlink_rcv+0x18/0x20 net/core/rtnetlink.c:5478
 netlink_unicast_kernel net/netlink/af_netlink.c:1303 [inline]
 netlink_unicast+0x5e2/0x6b0 net/netlink/af_netlink.c:1329
 netlink_sendmsg+0x6d8/0x7a0 net/netlink/af_netlink.c:1918
 sock_sendmsg_nosec net/socket.c:652 [inline]
 sock_sendmsg net/socket.c:672 [inline]
 ____sys_sendmsg+0x360/0x4d0 net/socket.c:2352
 ___sys_sendmsg net/socket.c:2406 [inline]
 __sys_sendmsg+0x1df/0x260 net/socket.c:2439
 __do_sys_sendmsg net/socket.c:2448 [inline]
 __se_sys_sendmsg net/socket.c:2446 [inline]
 __x64_sys_sendmsg+0x42/0x50 net/socket.c:2446
 do_syscall_64+0x51/0xb0 arch/x86/entry/common.c:384
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff8880824ca228 of 4 bytes by task 27144 on cpu 0:
 netif_is_bond_master include/linux/netdevice.h:4774 [inline]
 is_upper_ndev_bond_master_filter+0x27/0xb0 drivers/infiniband/core/roce_gid_mgmt.c:274
 ib_enum_roce_netdev+0x292/0x310 drivers/infiniband/core/device.c:2284
 ib_enum_all_roce_netdevs+0x94/0x100 drivers/infiniband/core/device.c:2313
 netdevice_event_work_handler+0x63/0x200 drivers/infiniband/core/roce_gid_mgmt.c:623
 process_one_work+0x3e1/0x9a0 kernel/workqueue.c:2269
 worker_thread+0x665/0xbe0 kernel/workqueue.c:2415
 kthread+0x20d/0x230 kernel/kthread.c:291
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:293

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 27144 Comm: kworker/u4:6 Not tainted 5.8.0-rc5-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: gid-cache-wq netdevice_event_work_handler
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/07/14 04:29 upstream 0dc589da873b ce4c95b3 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.