syzbot


KCSAN: data-race in ipip_tunnel_xmit / ipip_tunnel_xmit (4)

Status: auto-closed as invalid on 2022/04/13 23:14
Subsystems: net
[Documentation on labels]
First crash: 778d, last: 775d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in ipip_tunnel_xmit / ipip_tunnel_xmit net 36 1421d 1644d 0/26 auto-closed as invalid on 2020/07/07 06:22
upstream KCSAN: data-race in ipip_tunnel_xmit / ipip_tunnel_xmit (2) net 3 1343d 1385d 0/26 auto-closed as invalid on 2020/09/23 05:35
upstream KCSAN: data-race in ipip_tunnel_xmit / ipip_tunnel_xmit (5) net 1 653d 653d 0/26 auto-closed as invalid on 2022/08/14 03:33
upstream KCSAN: data-race in ipip_tunnel_xmit / ipip_tunnel_xmit (3) net 1 841d 841d 0/26 auto-closed as invalid on 2022/02/07 05:08

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

read to 0xffff88813177f158 of 8 bytes by task 10063 on cpu 1:
 ipip_tunnel_xmit+0x1a4/0x2d0 net/ipv4/ipip.c:313
 __netdev_start_xmit include/linux/netdevice.h:4683 [inline]
 netdev_start_xmit include/linux/netdevice.h:4697 [inline]
 xmit_one+0x105/0x2f0 net/core/dev.c:3473
 dev_hard_start_xmit net/core/dev.c:3489 [inline]
 __dev_queue_xmit+0x86d/0xfa0 net/core/dev.c:4116
 dev_queue_xmit+0x13/0x20 net/core/dev.c:4149
 __bpf_tx_skb net/core/filter.c:2113 [inline]
 __bpf_redirect_no_mac net/core/filter.c:2138 [inline]
 __bpf_redirect+0x5a9/0x850 net/core/filter.c:2161
 ____bpf_clone_redirect net/core/filter.c:2428 [inline]
 bpf_clone_redirect+0x168/0x1c0 net/core/filter.c:2400
 ___bpf_prog_run+0xc87/0x30c0 kernel/bpf/core.c:1558
 __bpf_prog_run512+0x70/0xa0 kernel/bpf/core.c:1787
 bpf_dispatcher_nop_func include/linux/bpf.h:784 [inline]
 __bpf_prog_run include/linux/filter.h:626 [inline]
 bpf_prog_run include/linux/filter.h:633 [inline]
 bpf_test_run+0x18b/0x400 net/bpf/test_run.c:120
 bpf_prog_test_run_skb+0x73d/0xed0 net/bpf/test_run.c:666
 bpf_prog_test_run kernel/bpf/syscall.c:3353 [inline]
 __sys_bpf+0x3caa/0xa3c0 kernel/bpf/syscall.c:4655
 __do_sys_bpf kernel/bpf/syscall.c:4741 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:4739 [inline]
 __x64_sys_bpf+0x3f/0x50 kernel/bpf/syscall.c:4739
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

write to 0xffff88813177f158 of 8 bytes by task 10064 on cpu 0:
 ipip_tunnel_xmit+0x1b6/0x2d0 net/ipv4/ipip.c:313
 __netdev_start_xmit include/linux/netdevice.h:4683 [inline]
 netdev_start_xmit include/linux/netdevice.h:4697 [inline]
 xmit_one+0x105/0x2f0 net/core/dev.c:3473
 dev_hard_start_xmit net/core/dev.c:3489 [inline]
 __dev_queue_xmit+0x86d/0xfa0 net/core/dev.c:4116
 dev_queue_xmit+0x13/0x20 net/core/dev.c:4149
 __bpf_tx_skb net/core/filter.c:2113 [inline]
 __bpf_redirect_no_mac net/core/filter.c:2138 [inline]
 __bpf_redirect+0x5a9/0x850 net/core/filter.c:2161
 ____bpf_clone_redirect net/core/filter.c:2428 [inline]
 bpf_clone_redirect+0x168/0x1c0 net/core/filter.c:2400
 ___bpf_prog_run+0xc87/0x30c0 kernel/bpf/core.c:1558
 __bpf_prog_run512+0x70/0xa0 kernel/bpf/core.c:1787
 bpf_dispatcher_nop_func include/linux/bpf.h:784 [inline]
 __bpf_prog_run include/linux/filter.h:626 [inline]
 bpf_prog_run include/linux/filter.h:633 [inline]
 bpf_test_run+0x18b/0x400 net/bpf/test_run.c:120
 bpf_prog_test_run_skb+0x73d/0xed0 net/bpf/test_run.c:666
 bpf_prog_test_run kernel/bpf/syscall.c:3353 [inline]
 __sys_bpf+0x3caa/0xa3c0 kernel/bpf/syscall.c:4655
 __do_sys_bpf kernel/bpf/syscall.c:4741 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:4739 [inline]
 __x64_sys_bpf+0x3f/0x50 kernel/bpf/syscall.c:4739
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x0000000000001b4d -> 0x0000000000001b53

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 10064 Comm: syz-executor.5 Not tainted 5.17.0-rc7-syzkaller-00064-g330f4c53d3c2-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/03/09 23:04 upstream 330f4c53d3c2 9e8eaa75 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in ipip_tunnel_xmit / ipip_tunnel_xmit
2022/03/07 08:48 upstream ffb217a13a2e 7bdd8b2c .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in ipip_tunnel_xmit / ipip_tunnel_xmit
* Struck through repros no longer work on HEAD.