syzbot


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

Status: auto-closed as invalid on 2021/02/25 18:39
Subsystems: net
[Documentation on labels]
Reported-by: syzbot+8ae4d5d8d810bc348766@syzkaller.appspotmail.com
First crash: 1328d, last: 1275d
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 816d 835d 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 688d 743d 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 1467d 1467d 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 1199d 1199d 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 626d 626d 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 (2) net 1 1377d 1377d 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 884d 972d 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 7d02h 15d 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 0xffff888030ef9228 of 4 bytes by task 2288 on cpu 1:
 __dev_change_flags+0x9e/0x400 net/core/dev.c:8452
 rtnl_configure_link+0xc2/0x150 net/core/rtnetlink.c:3125
 __rtnl_newlink net/core/rtnetlink.c:3451 [inline]
 rtnl_newlink+0xe9f/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

read to 0xffff888030ef9228 of 4 bytes by task 1966 on cpu 0:
 netif_is_bond_master include/linux/netdevice.h:4929 [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:2287
 ib_enum_all_roce_netdevs+0x94/0x100 drivers/infiniband/core/device.c:2316
 netdevice_event_work_handler+0x63/0x200 drivers/infiniband/core/roce_gid_mgmt.c:626
 process_one_work+0x3e1/0x950 kernel/workqueue.c:2275
 worker_thread+0x635/0xb90 kernel/workqueue.c:2421
 kthread+0x1fd/0x220 kernel/kthread.c:292
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 1966 Comm: kworker/u4:3 Not tainted 5.11.0-rc4-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 (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/01/21 18:38 upstream 9791581c049c d4f4eca5 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __dev_change_flags / is_upper_ndev_bond_master_filter
2021/01/03 17:17 upstream 3516bd729358 79264ae3 .config console log report info ci2-upstream-kcsan-gce
2020/12/31 12:09 upstream f6e1ea196492 5cc121d6 .config console log report info ci2-upstream-kcsan-gce
2020/11/29 10:31 upstream 67f34fa8893e a0092f9d .config console log report info ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.