syzbot


KCSAN: data-race in br_handle_frame_finish / br_set_state

Status: auto-obsoleted due to no activity on 2023/06/03 17:45
Subsystems: bridge
[Documentation on labels]
First crash: 693d, last: 693d

Sample crash report:
==================================================================
BUG: KCSAN: data-race in br_handle_frame_finish / br_set_state

write to 0xffff88813c046c41 of 1 bytes by task 14168 on cpu 0:
 br_set_state+0xdb/0x360 net/bridge/br_stp.c:45
 br_set_port_state net/bridge/br_netlink.c:917 [inline]
 br_setport+0xbdf/0xc10 net/bridge/br_netlink.c:1008
 br_port_slave_changelink+0x94/0xb0 net/bridge/br_netlink.c:1200
 __rtnl_newlink net/core/rtnetlink.c:3619 [inline]
 rtnl_newlink+0xeb6/0x15a0 net/core/rtnetlink.c:3673
 rtnetlink_rcv_msg+0x807/0x8c0 net/core/rtnetlink.c:6395
 netlink_rcv_skb+0x126/0x220 net/netlink/af_netlink.c:2546
 rtnetlink_rcv+0x1c/0x20 net/core/rtnetlink.c:6413
 netlink_unicast_kernel net/netlink/af_netlink.c:1339 [inline]
 netlink_unicast+0x56f/0x640 net/netlink/af_netlink.c:1365
 netlink_sendmsg+0x665/0x770 net/netlink/af_netlink.c:1913
 sock_sendmsg_nosec net/socket.c:724 [inline]
 sock_sendmsg net/socket.c:747 [inline]
 ____sys_sendmsg+0x375/0x4c0 net/socket.c:2503
 ___sys_sendmsg net/socket.c:2557 [inline]
 __sys_sendmsg+0x1e3/0x270 net/socket.c:2586
 __do_sys_sendmsg net/socket.c:2595 [inline]
 __se_sys_sendmsg net/socket.c:2593 [inline]
 __x64_sys_sendmsg+0x46/0x50 net/socket.c:2593
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff88813c046c41 of 1 bytes by interrupt on cpu 1:
 br_handle_frame_finish+0xc8/0xef0 net/bridge/br_input.c:96
 br_nf_hook_thresh+0x1ed/0x220
 br_nf_pre_routing_finish_ipv6+0x50f/0x540
 NF_HOOK include/linux/netfilter.h:303 [inline]
 br_nf_pre_routing_ipv6+0x1e3/0x2a0 net/bridge/br_netfilter_ipv6.c:178
 br_nf_pre_routing+0x526/0xba0 net/bridge/br_netfilter_hooks.c:508
 nf_hook_entry_hookfn include/linux/netfilter.h:143 [inline]
 nf_hook_bridge_pre net/bridge/br_input.c:272 [inline]
 br_handle_frame+0x4c7/0x8e0 net/bridge/br_input.c:416
 __netif_receive_skb_core+0x9e8/0x1e80 net/core/dev.c:5385
 __netif_receive_skb_one_core net/core/dev.c:5489 [inline]
 __netif_receive_skb+0x57/0x1b0 net/core/dev.c:5605
 process_backlog+0x21f/0x380 net/core/dev.c:5933
 __napi_poll+0x60/0x3b0 net/core/dev.c:6496
 napi_poll net/core/dev.c:6563 [inline]
 net_rx_action+0x32b/0x750 net/core/dev.c:6696
 __do_softirq+0xc1/0x265 kernel/softirq.c:571
 do_softirq+0x7e/0xb0 kernel/softirq.c:472
 __local_bh_enable_ip+0x64/0x70 kernel/softirq.c:396
 local_bh_enable+0x1f/0x20 include/linux/bottom_half.h:33
 rcu_read_unlock_bh include/linux/rcupdate.h:843 [inline]
 __dev_queue_xmit+0xabb/0x1d10 net/core/dev.c:4271
 dev_queue_xmit include/linux/netdevice.h:3085 [inline]
 neigh_hh_output include/net/neighbour.h:528 [inline]
 neigh_output include/net/neighbour.h:542 [inline]
 ip6_finish_output2+0x994/0xc50 net/ipv6/ip6_output.c:134
 __ip6_finish_output net/ipv6/ip6_output.c:195 [inline]
 ip6_finish_output+0x3a0/0x4f0 net/ipv6/ip6_output.c:206
 NF_HOOK_COND include/linux/netfilter.h:292 [inline]
 ip6_output+0xeb/0x220 net/ipv6/ip6_output.c:227
 dst_output include/net/dst.h:458 [inline]
 NF_HOOK include/linux/netfilter.h:303 [inline]
 ip6_xmit+0x8da/0xb70 net/ipv6/ip6_output.c:343
 inet6_csk_xmit+0x1cf/0x210 net/ipv6/inet6_connection_sock.c:135
 __tcp_transmit_skb+0x1194/0x16e0 net/ipv4/tcp_output.c:1399
 tcp_transmit_skb net/ipv4/tcp_output.c:1417 [inline]
 tcp_write_xmit+0x13ff/0x2fd0 net/ipv4/tcp_output.c:2693
 __tcp_push_pending_frames+0x6a/0x1a0 net/ipv4/tcp_output.c:2877
 tcp_push+0x320/0x330 net/ipv4/tcp.c:731
 mptcp_push_release net/mptcp/protocol.c:1507 [inline]
 __mptcp_push_pending+0x483/0x4b0 net/mptcp/protocol.c:1597
 mptcp_sendmsg+0xa21/0xbc0 net/mptcp/protocol.c:1841
 inet6_sendmsg+0x63/0x80 net/ipv6/af_inet6.c:651
 sock_sendmsg_nosec net/socket.c:724 [inline]
 sock_sendmsg net/socket.c:747 [inline]
 kernel_sendmsg+0x9b/0xf0 net/socket.c:767
 sock_no_sendpage+0x95/0xc0 net/core/sock.c:3230
 inet_sendpage+0xa1/0xc0 net/ipv4/af_inet.c:843
 kernel_sendpage+0x192/0x320 net/socket.c:3582
 sock_sendpage+0x5e/0xa0 net/socket.c:1082
 pipe_to_sendpage+0x12e/0x160 fs/splice.c:455
 splice_from_pipe_feed fs/splice.c:509 [inline]
 __splice_from_pipe+0x200/0x4a0 fs/splice.c:653
 splice_from_pipe fs/splice.c:688 [inline]
 generic_splice_sendpage+0x9a/0xd0 fs/splice.c:836
 do_splice_from fs/splice.c:857 [inline]
 direct_splice_actor+0x84/0xa0 fs/splice.c:1023
 splice_direct_to_actor+0x2ee/0x5f0 fs/splice.c:978
 do_splice_direct+0x104/0x180 fs/splice.c:1066
 do_sendfile+0x3b8/0x950 fs/read_write.c:1254
 __do_sys_sendfile64 fs/read_write.c:1322 [inline]
 __se_sys_sendfile64 fs/read_write.c:1308 [inline]
 __x64_sys_sendfile64+0x110/0x150 fs/read_write.c:1308
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x03 -> 0x00

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 14161 Comm: syz-executor.3 Not tainted 6.3.0-syzkaller-11025-g89d77f71f493 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/04/29 17:34 upstream 89d77f71f493 62df2017 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in br_handle_frame_finish / br_set_state
* Struck through repros no longer work on HEAD.