syzbot


KCSAN: data-race in cleanup_net / netif_set_real_num_tx_queues

Status: auto-obsoleted due to no activity on 2025/03/27 08:44
Subsystems: net
[Documentation on labels]
First crash: 204d, last: 204d

Sample crash report:
bond0: (slave bond_slave_0): Enslaving as an active interface with an up link
bond0: (slave bond_slave_1): Enslaving as an active interface with an up link
team0: Port device team_slave_0 added
team0: Port device team_slave_1 added
==================================================================
BUG: KCSAN: data-race in cleanup_net / netif_set_real_num_tx_queues

write to 0xffffffff88c82810 of 8 bytes by task 11 on cpu 1:
 cleanup_net+0x68/0x890 net/core/net_namespace.c:601
 process_one_work kernel/workqueue.c:3236 [inline]
 process_scheduled_works+0x483/0x9a0 kernel/workqueue.c:3317
 worker_thread+0x51d/0x6f0 kernel/workqueue.c:3398
 kthread+0x4ae/0x520 kernel/kthread.c:464
 ret_from_fork+0x4b/0x60 arch/x86/kernel/process.c:148
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244

read to 0xffffffff88c82810 of 8 bytes by task 11947 on cpu 0:
 from_cleanup_net net/core/dev.c:10257 [inline]
 synchronize_net net/core/dev.c:11683 [inline]
 netif_set_real_num_tx_queues+0x2cb/0x450 net/core/dev.c:3104
 veth_init_queues drivers/net/veth.c:1756 [inline]
 veth_newlink+0x5b7/0x6e0 drivers/net/veth.c:1862
 rtnl_newlink_create+0x1b7/0x5d0 net/core/rtnetlink.c:3795
 __rtnl_newlink net/core/rtnetlink.c:3906 [inline]
 rtnl_newlink+0xe9f/0x1250 net/core/rtnetlink.c:4021
 rtnetlink_rcv_msg+0x651/0x710 net/core/rtnetlink.c:6911
 netlink_rcv_skb+0x12c/0x230 net/netlink/af_netlink.c:2543
 rtnetlink_rcv+0x1c/0x30 net/core/rtnetlink.c:6938
 netlink_unicast_kernel net/netlink/af_netlink.c:1322 [inline]
 netlink_unicast+0x599/0x670 net/netlink/af_netlink.c:1348
 netlink_sendmsg+0x5cc/0x6e0 net/netlink/af_netlink.c:1892
 sock_sendmsg_nosec net/socket.c:713 [inline]
 __sock_sendmsg+0x140/0x180 net/socket.c:728
 __sys_sendto+0x1a8/0x230 net/socket.c:2182
 __do_sys_sendto net/socket.c:2189 [inline]
 __se_sys_sendto net/socket.c:2185 [inline]
 __x64_sys_sendto+0x78/0x90 net/socket.c:2185
 x64_sys_call+0x29fa/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:45
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x0000000000000000 -> 0xffff8881001cb180

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 11947 Comm: syz-executor Not tainted 6.13.0-syzkaller-09383-gebbb8be421ee #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/01/30 08:41 upstream ebbb8be421ee afe4eff5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in cleanup_net / netif_set_real_num_tx_queues
* Struck through repros no longer work on HEAD.