syzbot


KCSAN: data-race in xfrm_lookup_with_ifid / xfrm_lookup_with_ifid (6)

Status: auto-obsoleted due to no activity on 2023/06/09 19:15
Subsystems: net
[Documentation on labels]
Reported-by: syzbot+309b956f6ae6d848a475@syzkaller.appspotmail.com
First crash: 539d, last: 355d
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in xfrm_lookup_with_ifid / xfrm_lookup_with_ifid (4) net 2 668d 672d 0/26 auto-closed as invalid on 2022/07/31 19:25
upstream KCSAN: data-race in xfrm_lookup_with_ifid / xfrm_lookup_with_ifid net 2 862d 866d 0/26 auto-closed as invalid on 2022/01/18 18:58
upstream KCSAN: data-race in xfrm_lookup_with_ifid / xfrm_lookup_with_ifid (2) net 1 811d 811d 0/26 auto-closed as invalid on 2022/03/11 07:39
upstream KCSAN: data-race in xfrm_lookup_with_ifid / xfrm_lookup_with_ifid (7) net 1 204d 203d 25/26 fixed on 2023/12/21 01:43
upstream KCSAN: data-race in xfrm_lookup_with_ifid / xfrm_lookup_with_ifid (5) net 1 616d 616d 0/26 auto-closed as invalid on 2022/09/21 19:30
upstream KCSAN: data-race in xfrm_lookup_with_ifid / xfrm_lookup_with_ifid (3) net 1 723d 723d 0/26 auto-closed as invalid on 2022/06/07 04:28

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

write to 0xffff888178040d08 of 8 bytes by task 17440 on cpu 0:
 xfrm_lookup_with_ifid+0xce7/0x12d0 net/xfrm/xfrm_policy.c:3216
 xfrm_lookup net/xfrm/xfrm_policy.c:3268 [inline]
 xfrm_lookup_route+0x3b/0x100 net/xfrm/xfrm_policy.c:3279
 ip6_dst_lookup_flow+0x98/0xc0 net/ipv6/ip6_output.c:1246
 send6+0x23c/0x3a0 drivers/net/wireguard/socket.c:139
 wg_socket_send_skb_to_peer+0xbd/0x130 drivers/net/wireguard/socket.c:178
 wg_socket_send_buffer_to_peer+0xd6/0x100 drivers/net/wireguard/socket.c:200
 wg_packet_send_handshake_initiation drivers/net/wireguard/send.c:40 [inline]
 wg_packet_handshake_send_worker+0x10c/0x150 drivers/net/wireguard/send.c:51
 process_one_work+0x3e6/0x750 kernel/workqueue.c:2405
 worker_thread+0x5f2/0xa10 kernel/workqueue.c:2552
 kthread+0x1d7/0x210 kernel/kthread.c:379
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308

write to 0xffff888178040d08 of 8 bytes by task 17429 on cpu 1:
 xfrm_lookup_with_ifid+0xce7/0x12d0 net/xfrm/xfrm_policy.c:3216
 xfrm_lookup net/xfrm/xfrm_policy.c:3268 [inline]
 xfrm_lookup_route+0x3b/0x100 net/xfrm/xfrm_policy.c:3279
 ip6_dst_lookup_flow+0x98/0xc0 net/ipv6/ip6_output.c:1246
 send6+0x23c/0x3a0 drivers/net/wireguard/socket.c:139
 wg_socket_send_skb_to_peer+0xbd/0x130 drivers/net/wireguard/socket.c:178
 wg_socket_send_buffer_to_peer+0xd6/0x100 drivers/net/wireguard/socket.c:200
 wg_packet_send_handshake_initiation drivers/net/wireguard/send.c:40 [inline]
 wg_packet_handshake_send_worker+0x10c/0x150 drivers/net/wireguard/send.c:51
 process_one_work+0x3e6/0x750 kernel/workqueue.c:2405
 worker_thread+0x5f2/0xa10 kernel/workqueue.c:2552
 kthread+0x1d7/0x210 kernel/kthread.c:379
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308

value changed: 0x00000000645555c4 -> 0x00000000645555c6

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 17429 Comm: kworker/u4:8 Not tainted 6.3.0-syzkaller-13164-g78b421b6a7c6 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023
Workqueue: wg-kex-wg1 wg_packet_handshake_send_worker
==================================================================

Crashes (12):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/05/05 19:15 upstream 78b421b6a7c6 de870ca5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in xfrm_lookup_with_ifid / xfrm_lookup_with_ifid
2023/05/02 17:06 upstream 865fdb08197e 52d40fd2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in xfrm_lookup_with_ifid / xfrm_lookup_with_ifid
2023/04/07 19:57 upstream f2afccfefe7b f7ba566d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in xfrm_lookup_with_ifid / xfrm_lookup_with_ifid
2023/03/21 01:04 upstream 7d31677bb7b1 7939252e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in xfrm_lookup_with_ifid / xfrm_lookup_with_ifid
2023/02/22 19:39 upstream 5b7c4cabbb65 9f1e2cb3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in xfrm_lookup_with_ifid / xfrm_lookup_with_ifid
2023/01/21 02:54 upstream edc00350d205 cc0f9968 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in xfrm_lookup_with_ifid / xfrm_lookup_with_ifid
2023/01/03 05:58 upstream 69b41ac87e4a ab32d508 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in xfrm_lookup_with_ifid / xfrm_lookup_with_ifid
2022/12/23 01:34 upstream 0a924817d2ed 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in xfrm_lookup_with_ifid / xfrm_lookup_with_ifid
2022/12/21 16:23 upstream b6bb9676f216 4067838e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in xfrm_lookup_with_ifid / xfrm_lookup_with_ifid
2022/11/25 23:48 upstream 08ad43d554ba f4470a7b .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in xfrm_lookup_with_ifid / xfrm_lookup_with_ifid
2022/11/03 23:20 upstream f2f32f8af2b0 6d752409 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in xfrm_lookup_with_ifid / xfrm_lookup_with_ifid
2022/11/03 09:03 upstream 8e5423e991e8 7a2ebf95 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in xfrm_lookup_with_ifid / xfrm_lookup_with_ifid
* Struck through repros no longer work on HEAD.