syzbot


KCSAN: data-race in __dev_change_flags / is_upper_ndev_bond_master_filter (6)

Status: auto-closed as invalid on 2022/05/30 09:44
Subsystems: net
[Documentation on labels]
First crash: 839d, last: 821d
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 (7) net 5 692d 748d 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 net 1 1471d 1471d 0/27 auto-closed as invalid on 2020/08/18 04:32
upstream KCSAN: data-race in __dev_change_flags / is_upper_ndev_bond_master_filter (4) net 1 1203d 1203d 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 630d 630d 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 1280d 1321d 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 1381d 1381d 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 888d 977d 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 11d 20d 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

read-write to 0xffff88814e4480c0 of 4 bytes by task 31535 on cpu 1:
 __dev_change_flags+0x9e/0x3f0 net/core/dev.c:8407
 rtnl_configure_link net/core/rtnetlink.c:3152 [inline]
 __rtnl_newlink net/core/rtnetlink.c:3491 [inline]
 rtnl_newlink+0x11d8/0x1580 net/core/rtnetlink.c:3531
 rtnetlink_rcv_msg+0x74f/0x7e0 net/core/rtnetlink.c:5993
 netlink_rcv_skb+0x13e/0x240 net/netlink/af_netlink.c:2503
 rtnetlink_rcv+0x18/0x20 net/core/rtnetlink.c:6011
 netlink_unicast_kernel net/netlink/af_netlink.c:1319 [inline]
 netlink_unicast+0x58a/0x660 net/netlink/af_netlink.c:1345
 netlink_sendmsg+0x661/0x750 net/netlink/af_netlink.c:1921
 sock_sendmsg_nosec net/socket.c:705 [inline]
 sock_sendmsg net/socket.c:725 [inline]
 ____sys_sendmsg+0x38f/0x500 net/socket.c:2413
 ___sys_sendmsg net/socket.c:2467 [inline]
 __sys_sendmsg+0x195/0x230 net/socket.c:2496
 __do_sys_sendmsg net/socket.c:2505 [inline]
 __se_sys_sendmsg net/socket.c:2503 [inline]
 __x64_sys_sendmsg+0x42/0x50 net/socket.c:2503
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff88814e4480c0 of 4 bytes by task 2368 on cpu 0:
 netif_is_bond_master include/linux/netdevice.h:4946 [inline]
 is_upper_ndev_bond_master_filter+0x27/0xb0 drivers/infiniband/core/roce_gid_mgmt.c:275
 ib_enum_roce_netdev+0x12e/0x1e0 drivers/infiniband/core/device.c:2302
 ib_enum_all_roce_netdevs+0xa4/0x110 drivers/infiniband/core/device.c:2331
 netdevice_event_work_handler+0x157/0x3c0 drivers/infiniband/core/roce_gid_mgmt.c:627
 process_one_work+0x3d3/0x720 kernel/workqueue.c:2289
 worker_thread+0x618/0xa70 kernel/workqueue.c:2436
 kthread+0x1a9/0x1e0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30

value changed: 0x00001002 -> 0x00000102

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 2368 Comm: kworker/u4:30 Not tainted 5.18.0-rc3-syzkaller-00250-g42740a2ff5d3-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: gid-cache-wq netdevice_event_work_handler
==================================================================

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/04/25 09:43 upstream 42740a2ff5d3 131df97d .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __dev_change_flags / is_upper_ndev_bond_master_filter
2022/04/14 14:23 upstream a19944809fe9 b17b2923 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __dev_change_flags / is_upper_ndev_bond_master_filter
2022/04/13 08:38 upstream a19944809fe9 faabdb86 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __dev_change_flags / is_upper_ndev_bond_master_filter
2022/04/07 01:32 upstream 3e732ebf7316 97582466 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __dev_change_flags / is_upper_ndev_bond_master_filter
* Struck through repros no longer work on HEAD.