syzbot


KCSAN: data-race in __bond_release_one / l3mdev_master_ifindex_rcu

Status: auto-obsoleted due to no activity on 2025/05/11 11:51
Subsystems: net
[Documentation on labels]
First crash: 160d, last: 160d

Sample crash report:
bridge_slave_1: left promiscuous mode
bridge0: port 2(bridge_slave_1) entered disabled state
bond0: (slave bond_slave_0): Releasing backup interface
bond0: (slave bond_slave_1): Releasing backup interface
==================================================================
BUG: KCSAN: data-race in __bond_release_one / l3mdev_master_ifindex_rcu

read to 0xffff8881208e9000 of 8 bytes by task 21247 on cpu 0:
 netif_is_l3_master include/linux/netdevice.h:5322 [inline]
 l3mdev_master_ifindex_rcu+0x1e/0xc0 net/l3mdev/l3mdev.c:117
 ipv6_dev_get_saddr+0x1ad/0x450 net/ipv6/addrconf.c:1884
 ip6_route_get_saddr include/net/ip6_route.h:147 [inline]
 ip6_dst_lookup_tail+0x418/0xa60 net/ipv6/ip6_output.c:1133
 ip6_dst_lookup_flow+0x48/0xc0 net/ipv6/ip6_output.c:1259
 tcp_v6_connect+0x68f/0xc60 net/ipv6/tcp_ipv6.c:277
 __inet_stream_connect+0x162/0x790 net/ipv4/af_inet.c:677
 inet_stream_connect+0x48/0x70 net/ipv4/af_inet.c:748
 __sys_connect_file net/socket.c:2045 [inline]
 __sys_connect+0x18f/0x1b0 net/socket.c:2064
 __do_sys_connect net/socket.c:2070 [inline]
 __se_sys_connect net/socket.c:2067 [inline]
 __x64_sys_connect+0x41/0x50 net/socket.c:2067
 x64_sys_call+0x22a7/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:43
 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

read-write to 0xffff8881208e9000 of 8 bytes by task 21242 on cpu 1:
 __bond_release_one+0x7dd/0x9b0 drivers/net/bonding/bond_main.c:2640
 bond_release+0x21/0x30 drivers/net/bonding/bond_main.c:2668
 do_set_master net/core/rtnetlink.c:2912 [inline]
 do_setlink+0x94e/0x2370 net/core/rtnetlink.c:3125
 rtnl_group_changelink net/core/rtnetlink.c:3747 [inline]
 __rtnl_newlink net/core/rtnetlink.c:3894 [inline]
 rtnl_newlink+0xcf9/0x1250 net/core/rtnetlink.c:4022
 rtnetlink_rcv_msg+0x651/0x710 net/core/rtnetlink.c:6912
 netlink_rcv_skb+0x12c/0x230 net/netlink/af_netlink.c:2533
 rtnetlink_rcv+0x1c/0x30 net/core/rtnetlink.c:6939
 netlink_unicast_kernel net/netlink/af_netlink.c:1312 [inline]
 netlink_unicast+0x599/0x670 net/netlink/af_netlink.c:1338
 netlink_sendmsg+0x5cc/0x6e0 net/netlink/af_netlink.c:1882
 sock_sendmsg_nosec net/socket.c:718 [inline]
 __sock_sendmsg+0x140/0x180 net/socket.c:733
 ____sys_sendmsg+0x326/0x4b0 net/socket.c:2573
 ___sys_sendmsg net/socket.c:2627 [inline]
 __sys_sendmsg+0x19d/0x230 net/socket.c:2659
 __do_sys_sendmsg net/socket.c:2664 [inline]
 __se_sys_sendmsg net/socket.c:2662 [inline]
 __x64_sys_sendmsg+0x46/0x50 net/socket.c:2662
 x64_sys_call+0x2734/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:47
 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

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 21242 Comm: syz.8.6423 Tainted: G        W          6.14.0-rc6-syzkaller-00244-g31d7109a19f6 #0
Tainted: [W]=WARN
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
==================================================================
team0: Port device team_slave_0 removed
team0: Port device team_slave_1 removed

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/03/16 11:43 upstream 31d7109a19f6 e2826670 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __bond_release_one / l3mdev_master_ifindex_rcu
* Struck through repros no longer work on HEAD.