syzbot


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

Status: auto-closed as invalid on 2022/10/01 13:37
Subsystems: net
[Documentation on labels]
First crash: 1078d, last: 1056d
Similar bugs (5)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in vti_tunnel_xmit / vti_tunnel_xmit (4) net 6 13 1237d 1338d 0/29 auto-closed as invalid on 2022/04/03 16:50
upstream KCSAN: data-race in vti_tunnel_xmit / vti_tunnel_xmit (3) net 6 1 1577d 1577d 0/29 auto-closed as invalid on 2021/04/28 06:20
upstream KCSAN: data-race in vti_tunnel_xmit / vti_tunnel_xmit (5) net 6 3 1151d 1155d 0/29 auto-closed as invalid on 2022/06/28 11:15
upstream KCSAN: data-race in vti_tunnel_xmit / vti_tunnel_xmit net 6 75 1686d 1872d 0/29 auto-closed as invalid on 2021/01/09 17:46
upstream KCSAN: data-race in vti_tunnel_xmit / vti_tunnel_xmit (2) net 6 2 1614d 1629d 0/29 auto-closed as invalid on 2021/03/22 06:37

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

read-write to 0xffff888136d771b8 of 8 bytes by task 24045 on cpu 0:
 vti_xmit net/ipv4/ip_vti.c:224 [inline]
 vti_tunnel_xmit+0x7b1/0xad0 net/ipv4/ip_vti.c:304
 __netdev_start_xmit include/linux/netdevice.h:4819 [inline]
 netdev_start_xmit include/linux/netdevice.h:4833 [inline]
 xmit_one+0xc0/0x2a0 net/core/dev.c:3590
 dev_hard_start_xmit+0x72/0x120 net/core/dev.c:3606
 __dev_queue_xmit+0x84c/0xfe0 net/core/dev.c:4256
 dev_queue_xmit include/linux/netdevice.h:3008 [inline]
 __bpf_tx_skb net/core/filter.c:2115 [inline]
 __bpf_redirect_no_mac net/core/filter.c:2140 [inline]
 __bpf_redirect+0x55a/0x820 net/core/filter.c:2163
 ____bpf_clone_redirect net/core/filter.c:2430 [inline]
 bpf_clone_redirect+0x168/0x1c0 net/core/filter.c:2402
 ___bpf_prog_run+0x278/0x2da0 kernel/bpf/core.c:1813
 __bpf_prog_run512+0x70/0xa0 kernel/bpf/core.c:2038
 bpf_dispatcher_nop_func include/linux/bpf.h:903 [inline]
 __bpf_prog_run include/linux/filter.h:594 [inline]
 bpf_prog_run include/linux/filter.h:601 [inline]
 bpf_test_run+0x1eb/0x410 net/bpf/test_run.c:402
 bpf_prog_test_run_skb+0x76b/0x9f0 net/bpf/test_run.c:1141
 bpf_prog_test_run+0x22a/0x250 kernel/bpf/syscall.c:3620
 __sys_bpf+0x386/0x620 kernel/bpf/syscall.c:4971
 __do_sys_bpf kernel/bpf/syscall.c:5057 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:5055 [inline]
 __x64_sys_bpf+0x3f/0x50 kernel/bpf/syscall.c:5055
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read-write to 0xffff888136d771b8 of 8 bytes by task 24028 on cpu 1:
 vti_xmit net/ipv4/ip_vti.c:224 [inline]
 vti_tunnel_xmit+0x7b1/0xad0 net/ipv4/ip_vti.c:304
 __netdev_start_xmit include/linux/netdevice.h:4819 [inline]
 netdev_start_xmit include/linux/netdevice.h:4833 [inline]
 xmit_one+0xc0/0x2a0 net/core/dev.c:3590
 dev_hard_start_xmit+0x72/0x120 net/core/dev.c:3606
 __dev_queue_xmit+0x84c/0xfe0 net/core/dev.c:4256
 dev_queue_xmit include/linux/netdevice.h:3008 [inline]
 __bpf_tx_skb net/core/filter.c:2115 [inline]
 __bpf_redirect_no_mac net/core/filter.c:2140 [inline]
 __bpf_redirect+0x55a/0x820 net/core/filter.c:2163
 ____bpf_clone_redirect net/core/filter.c:2430 [inline]
 bpf_clone_redirect+0x168/0x1c0 net/core/filter.c:2402
 ___bpf_prog_run+0x278/0x2da0 kernel/bpf/core.c:1813
 __bpf_prog_run512+0x70/0xa0 kernel/bpf/core.c:2038
 bpf_dispatcher_nop_func include/linux/bpf.h:903 [inline]
 __bpf_prog_run include/linux/filter.h:594 [inline]
 bpf_prog_run include/linux/filter.h:601 [inline]
 bpf_test_run+0x1eb/0x410 net/bpf/test_run.c:402
 bpf_prog_test_run_skb+0x76b/0x9f0 net/bpf/test_run.c:1141
 bpf_prog_test_run+0x22a/0x250 kernel/bpf/syscall.c:3620
 __sys_bpf+0x386/0x620 kernel/bpf/syscall.c:4971
 __do_sys_bpf kernel/bpf/syscall.c:5057 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:5055 [inline]
 __x64_sys_bpf+0x3f/0x50 kernel/bpf/syscall.c:5055
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x000000000000af74 -> 0x000000000000af76

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 24028 Comm: syz-executor.4 Not tainted 6.0.0-rc2-syzkaller-00248-ge022620b5d05-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022
==================================================================

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/08/27 13:32 upstream e022620b5d05 07177916 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in vti_tunnel_xmit / vti_tunnel_xmit
2022/08/25 05:21 upstream c40e8341e3b3 514514f6 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in vti_tunnel_xmit / vti_tunnel_xmit
2022/08/24 15:57 upstream c40e8341e3b3 514514f6 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in vti_tunnel_xmit / vti_tunnel_xmit
2022/08/05 00:14 upstream b44f2fd87919 1c9013ac .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in vti_tunnel_xmit / vti_tunnel_xmit
* Struck through repros no longer work on HEAD.