syzbot


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

Status: auto-closed as invalid on 2022/03/24 08:25
Subsystems: net
[Documentation on labels]
First crash: 970d, last: 882d
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 814d 833d 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 686d 741d 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 1465d 1465d 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 1197d 1197d 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 624d 624d 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 1273d 1314d 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 1375d 1375d 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 (9) net 63 5d01h 13d 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 0xffff88813557e0c0 of 4 bytes by task 25506 on cpu 0:
 __dev_change_flags+0xa1/0x3f0 net/core/dev.c:8113
 rtnl_configure_link+0xc2/0x150 net/core/rtnetlink.c:3150
 __rtnl_newlink net/core/rtnetlink.c:3489 [inline]
 rtnl_newlink+0xf4d/0x13e0 net/core/rtnetlink.c:3529
 rtnetlink_rcv_msg+0x745/0x7e0 net/core/rtnetlink.c:5594
 netlink_rcv_skb+0x14e/0x250 net/netlink/af_netlink.c:2494
 rtnetlink_rcv+0x18/0x20 net/core/rtnetlink.c:5612
 netlink_unicast_kernel net/netlink/af_netlink.c:1317 [inline]
 netlink_unicast+0x602/0x6d0 net/netlink/af_netlink.c:1343
 netlink_sendmsg+0x728/0x850 net/netlink/af_netlink.c:1919
 sock_sendmsg_nosec net/socket.c:705 [inline]
 sock_sendmsg net/socket.c:725 [inline]
 ____sys_sendmsg+0x39a/0x510 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+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff88813557e0c0 of 4 bytes by task 24535 on cpu 1:
 netif_is_bond_master include/linux/netdevice.h:4851 [inline]
 is_upper_ndev_bond_master_filter+0x27/0xb0 drivers/infiniband/core/roce_gid_mgmt.c:275
 ib_enum_roce_netdev drivers/infiniband/core/device.c:2302 [inline]
 ib_enum_all_roce_netdevs+0x179/0x270 drivers/infiniband/core/device.c:2331
 netdevice_event_work_handler+0x5f/0x360 drivers/infiniband/core/roce_gid_mgmt.c:627
 process_one_work+0x3f6/0x960 kernel/workqueue.c:2307
 worker_thread+0x616/0xa70 kernel/workqueue.c:2454
 kthread+0x1bf/0x1e0 kernel/kthread.c:377
 ret_from_fork+0x1f/0x30

value changed: 0x00001002 -> 0x0000d006

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 24535 Comm: kworker/u4:9 Not tainted 5.17.0-rc4-syzkaller-00054-gf71077a4d84b-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 (16):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/02/17 08:25 upstream f71077a4d84b 2bea8a27 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __dev_change_flags / is_upper_ndev_bond_master_filter
2022/01/19 01:09 upstream 99613159ad74 731a2d23 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __dev_change_flags / is_upper_ndev_bond_master_filter
2022/01/11 00:26 upstream 133d9c53c9dc ddb0ab8c .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __dev_change_flags / is_upper_ndev_bond_master_filter
2022/01/10 06:44 upstream df0cc57e057f 2ca0d385 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __dev_change_flags / is_upper_ndev_bond_master_filter
2022/01/04 11:57 upstream c9e6606c7fe9 7f723fbe .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __dev_change_flags / is_upper_ndev_bond_master_filter
2021/12/27 23:24 upstream a8ad9a2434dc 5140bd58 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __dev_change_flags / is_upper_ndev_bond_master_filter
2021/12/19 07:47 upstream 3f667b5d4053 44068e19 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __dev_change_flags / is_upper_ndev_bond_master_filter
2021/12/07 02:40 upstream f80ef9e49fdf 0230ba3e .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __dev_change_flags / is_upper_ndev_bond_master_filter
2021/12/02 14:46 upstream 58e1100fdc59 61f86278 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __dev_change_flags / is_upper_ndev_bond_master_filter
2021/12/01 11:55 upstream 58e1100fdc59 5fa3eacc .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __dev_change_flags / is_upper_ndev_bond_master_filter
2021/11/29 17:04 upstream d58071a8a76d d0830353 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __dev_change_flags / is_upper_ndev_bond_master_filter
2021/11/28 10:10 upstream 3498e7f2bb41 63eeac02 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __dev_change_flags / is_upper_ndev_bond_master_filter
2021/11/27 14:19 upstream c5c17547b778 63eeac02 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __dev_change_flags / is_upper_ndev_bond_master_filter
2021/11/23 16:59 upstream 136057256686 545ab074 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __dev_change_flags / is_upper_ndev_bond_master_filter
2021/11/21 14:24 upstream 923dcc5eb0c1 4eb20a4e .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __dev_change_flags / is_upper_ndev_bond_master_filter
2021/11/20 13:13 upstream a90af8f15bdc 4eb20a4e .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.