KCSAN: data-race in bond_compute_features / is_eth_port_of_netdev_filter

4 views
Skip to first unread message

syzbot

unread,
Dec 11, 2020, 6:33:13 AM12/11/20
to syzkaller-upst...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: fa02fcd9 Merge tag 'media/v5.10-2' of git://git.kernel.org..
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=16d69df1500000
kernel config: https://syzkaller.appspot.com/x/.config?x=9b9b19d1bde60f8d
dashboard link: https://syzkaller.appspot.com/bug?extid=bddb6b027fabc7d868b8
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project.git 913f6005669cfb590c99865a90bc51ed0983d09d)
CC: [an...@greyhouse.net da...@davemloft.net j.vos...@gmail.com ku...@kernel.org linux-...@vger.kernel.org net...@vger.kernel.org vfa...@gmail.com]

Unfortunately, I don't have any reproducer for this issue yet.

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+bddb6b...@syzkaller.appspotmail.com

==================================================================
BUG: KCSAN: data-race in bond_compute_features / is_eth_port_of_netdev_filter

write to 0xffff88810fc7e22c of 4 bytes by task 2991 on cpu 1:
bond_compute_features+0x405/0x440 drivers/net/bonding/bond_main.c:1304
__bond_release_one+0x759/0xb90 drivers/net/bonding/bond_main.c:2140
bond_slave_netdev_event drivers/net/bonding/bond_main.c:3309 [inline]
bond_netdev_event+0x2b3/0x670 drivers/net/bonding/bond_main.c:3420
notifier_call_chain kernel/notifier.c:83 [inline]
raw_notifier_call_chain+0x53/0xb0 kernel/notifier.c:410
call_netdevice_notifiers_info net/core/dev.c:2035 [inline]
call_netdevice_notifiers_extack net/core/dev.c:2047 [inline]
call_netdevice_notifiers net/core/dev.c:2061 [inline]
rollback_registered_many+0x876/0xe40 net/core/dev.c:9422
unregister_netdevice_many net/core/dev.c:10626 [inline]
default_device_exit_batch+0x250/0x3d0 net/core/dev.c:11109
ops_exit_list net/core/net_namespace.c:190 [inline]
cleanup_net+0x4cc/0x8a0 net/core/net_namespace.c:604
process_one_work+0x3e1/0x950 kernel/workqueue.c:2272
worker_thread+0x635/0xb90 kernel/workqueue.c:2418
kthread+0x1fd/0x220 kernel/kthread.c:292
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296

read to 0xffff88810fc7e22c of 4 bytes by task 9430 on cpu 0:
is_vlan_dev include/linux/if_vlan.h:74 [inline]
rdma_vlan_dev_real_dev include/rdma/ib_addr.h:266 [inline]
is_eth_port_of_netdev_filter+0x29/0x1a0 drivers/infiniband/core/roce_gid_mgmt.c:157
ib_enum_roce_netdev+0x292/0x310 drivers/infiniband/core/device.c:2263
ib_enum_all_roce_netdevs+0x94/0x100 drivers/infiniband/core/device.c:2292
netdevice_event_work_handler+0x63/0x200 drivers/infiniband/core/roce_gid_mgmt.c:626
process_one_work+0x3e1/0x950 kernel/workqueue.c:2272
worker_thread+0x635/0xb90 kernel/workqueue.c:2418
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: 9430 Comm: kworker/u4:2 Not tainted 5.10.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
==================================================================


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

syzbot

unread,
Dec 30, 2020, 6:22:17 PM12/30/20
to syzkaller-upst...@googlegroups.com
Auto-closing this bug as obsolete.
Crashes did not happen for a while, no reproducer and no activity.
Reply all
Reply to author
Forward
0 new messages