syzbot


KCSAN: data-race in __neigh_event_send / ip6_dst_lookup_tail (2)

Status: auto-closed as invalid on 2021/04/24 14:25
Subsystems: net
[Documentation on labels]
First crash: 1132d, last: 1132d
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __neigh_event_send / ip6_dst_lookup_tail (6) net 13 395d 535d 0/26 auto-obsoleted due to no activity on 2023/05/01 12:30
upstream KCSAN: data-race in __neigh_event_send / ip6_dst_lookup_tail (3) net 4 822d 898d 0/26 auto-closed as invalid on 2022/02/28 22:53
upstream KCSAN: data-race in __neigh_event_send / ip6_dst_lookup_tail (4) net 5 732d 730d 0/26 auto-closed as invalid on 2022/05/29 17:16
upstream KCSAN: data-race in __neigh_event_send / ip6_dst_lookup_tail (5) net 2 621d 627d 0/26 auto-closed as invalid on 2022/09/18 05:49
upstream KCSAN: data-race in __neigh_event_send / ip6_dst_lookup_tail net 1 1361d 1361d 0/26 auto-closed as invalid on 2020/09/07 17:18

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __neigh_event_send / ip6_dst_lookup_tail

write to 0xffff888011f74685 of 1 bytes by task 25610 on cpu 1:
 __neigh_event_send+0x40c/0xad0 net/core/neighbour.c:1127
 neigh_event_send include/net/neighbour.h:444 [inline]
 neigh_resolve_output+0x104/0x410 net/core/neighbour.c:1475
 neigh_output include/net/neighbour.h:510 [inline]
 ip6_finish_output2+0x985/0xb20 net/ipv6/ip6_output.c:117
 __ip6_finish_output+0x428/0x480 net/ipv6/ip6_output.c:182
 ip6_finish_output+0x39/0x160 net/ipv6/ip6_output.c:192
 NF_HOOK_COND include/linux/netfilter.h:290 [inline]
 ip6_output+0x10e/0x210 net/ipv6/ip6_output.c:215
 dst_output include/net/dst.h:448 [inline]
 ip6_local_out+0x60/0x80 net/ipv6/output_core.c:179
 ip6tunnel_xmit include/net/ip6_tunnel.h:160 [inline]
 udp_tunnel6_xmit_skb+0x2f9/0x490 net/ipv6/ip6_udp_tunnel.c:109
 send6+0x2ed/0x3b0 drivers/net/wireguard/socket.c:152
 wg_socket_send_skb_to_peer drivers/net/wireguard/socket.c:177 [inline]
 wg_socket_send_buffer_to_peer+0x186/0x210 drivers/net/wireguard/socket.c:199
 wg_packet_send_handshake_initiation drivers/net/wireguard/send.c:40 [inline]
 wg_packet_handshake_send_worker+0xfa/0x140 drivers/net/wireguard/send.c:51
 process_one_work+0x3e1/0x950 kernel/workqueue.c:2275
 worker_thread+0x616/0xa70 kernel/workqueue.c:2421
 kthread+0x20b/0x230 kernel/kthread.c:292
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294

read to 0xffff888011f74685 of 1 bytes by task 25608 on cpu 0:
 ip6_dst_lookup_tail+0x587/0x9b0 net/ipv6/ip6_output.c:1110
 ip6_dst_lookup_flow+0x44/0xc0 net/ipv6/ip6_output.c:1194
 send6+0x236/0x3b0 drivers/net/wireguard/socket.c:139
 wg_socket_send_skb_to_peer drivers/net/wireguard/socket.c:177 [inline]
 wg_socket_send_buffer_to_peer+0x186/0x210 drivers/net/wireguard/socket.c:199
 wg_packet_send_handshake_initiation drivers/net/wireguard/send.c:40 [inline]
 wg_packet_handshake_send_worker+0xfa/0x140 drivers/net/wireguard/send.c:51
 process_one_work+0x3e1/0x950 kernel/workqueue.c:2275
 worker_thread+0x616/0xa70 kernel/workqueue.c:2421
 kthread+0x20b/0x230 kernel/kthread.c:292
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 25608 Comm: kworker/u4:8 Tainted: G        W         5.12.0-rc3-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: wg-kex-wg2 wg_packet_handshake_send_worker
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/03/20 14:16 upstream 1c273e10bc0c e45f5621 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __neigh_event_send / ip6_dst_lookup_tail
* Struck through repros no longer work on HEAD.