syzbot


KCSAN: data-race in team_get_stats64 / team_handle_frame

Status: auto-closed as invalid on 2022/01/04 13:52
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 363d, last: 363d

Sample crash report:
IPv6: ADDRCONF(NETDEV_CHANGE): vcan0: link becomes ready
==================================================================
BUG: KCSAN: data-race in team_get_stats64 / team_handle_frame

write to 0xffffe8ffffd483e8 of 8 bytes by interrupt on cpu 1:
 team_handle_frame+0x211/0x280 drivers/net/team/team.c:750
 __netif_receive_skb_core+0xa4b/0x1df0 net/core/dev.c:5356
 __netif_receive_skb_one_core net/core/dev.c:5460 [inline]
 __netif_receive_skb+0x52/0x1b0 net/core/dev.c:5576
 process_backlog+0x23f/0x3e0 net/core/dev.c:6452
 __napi_poll+0x65/0x3f0 net/core/dev.c:7020
 napi_poll net/core/dev.c:7087 [inline]
 net_rx_action+0x29e/0x650 net/core/dev.c:7174
 __do_softirq+0x158/0x2de kernel/softirq.c:558
 run_ksoftirqd+0x1f/0x30 kernel/softirq.c:920
 smpboot_thread_fn+0x308/0x4a0 kernel/smpboot.c:164
 kthread+0x2c7/0x2e0 kernel/kthread.c:327
 ret_from_fork+0x1f/0x30

read to 0xffffe8ffffd483e8 of 8 bytes by task 6230 on cpu 0:
 team_get_stats64+0x163/0x2e0 drivers/net/team/team.c:1854
 dev_get_stats+0x65/0x180 net/core/dev.c:10688
 rtnl_fill_stats+0x45/0x320 net/core/rtnetlink.c:1202
 rtnl_fill_ifinfo+0xebf/0x2560 net/core/rtnetlink.c:1774
 rtmsg_ifinfo_build_skb+0xa8/0x130 net/core/rtnetlink.c:3812
 rtmsg_ifinfo_event net/core/rtnetlink.c:3844 [inline]
 rtmsg_ifinfo+0x58/0xc0 net/core/rtnetlink.c:3853
 netdev_state_change+0x115/0x170 net/core/dev.c:1395
 do_setlink+0x24a/0x2410 net/core/rtnetlink.c:2944
 rtnl_group_changelink net/core/rtnetlink.c:3242 [inline]
 __rtnl_newlink net/core/rtnetlink.c:3396 [inline]
 rtnl_newlink+0xb10/0x13b0 net/core/rtnetlink.c:3506
 rtnetlink_rcv_msg+0x745/0x7e0 net/core/rtnetlink.c:5571
 netlink_rcv_skb+0x14e/0x250 net/netlink/af_netlink.c:2491
 rtnetlink_rcv+0x18/0x20 net/core/rtnetlink.c:5589
 netlink_unicast_kernel net/netlink/af_netlink.c:1319 [inline]
 netlink_unicast+0x5fc/0x6c0 net/netlink/af_netlink.c:1345
 netlink_sendmsg+0x6e1/0x7d0 net/netlink/af_netlink.c:1916
 sock_sendmsg_nosec net/socket.c:704 [inline]
 sock_sendmsg net/socket.c:724 [inline]
 ____sys_sendmsg+0x39a/0x510 net/socket.c:2409
 ___sys_sendmsg net/socket.c:2463 [inline]
 __sys_sendmsg+0x195/0x230 net/socket.c:2492
 __do_sys_sendmsg net/socket.c:2501 [inline]
 __se_sys_sendmsg net/socket.c:2499 [inline]
 __x64_sys_sendmsg+0x42/0x50 net/socket.c:2499
 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

value changed: 0x00000000000000b3 -> 0x00000000000000b4

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 6230 Comm: syz-executor.3 Not tainted 5.16.0-rc3-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================
IPv6: ADDRCONF(NETDEV_CHANGE): vxcan0: link becomes ready
IPv6: ADDRCONF(NETDEV_CHANGE): vxcan1: link becomes ready
syz-executor.3 (6230) used greatest stack depth: 9344 bytes left

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2021/11/30 13:52 upstream d58071a8a76d 80270552 .config log report info KCSAN: data-race in team_get_stats64 / team_handle_frame
* Struck through repros no longer work on HEAD.