syzbot


KCSAN: data-race in batadv_tt_local_add / batadv_tt_local_commit_changes_nolock

Status: auto-closed as invalid on 2020/04/06 19:35
Subsystems: batman
[Documentation on labels]
First crash: 1544d, last: 1544d

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

write to 0xffff88809d7f3818 of 2 bytes by task 749 on cpu 0:
 batadv_tt_local_set_flags net/batman-adv/translation-table.c:3864 [inline]
 batadv_tt_local_commit_changes_nolock+0x143/0x530 net/batman-adv/translation-table.c:3935
 batadv_tt_local_commit_changes+0x31/0x50 net/batman-adv/translation-table.c:3959
 batadv_iv_ogm_schedule_buff+0x7a0/0x820 net/batman-adv/bat_iv_ogm.c:807
 batadv_iv_ogm_schedule net/batman-adv/bat_iv_ogm.c:865 [inline]
 batadv_iv_ogm_schedule net/batman-adv/bat_iv_ogm.c:858 [inline]
 batadv_iv_send_outstanding_bat_ogm_packet+0x212/0x510 net/batman-adv/bat_iv_ogm.c:1718
 process_one_work+0x3d4/0x890 kernel/workqueue.c:2264
 worker_thread+0xa0/0x800 kernel/workqueue.c:2410
 kthread+0x1d4/0x200 drivers/block/aoe/aoecmd.c:1253
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:352

read to 0xffff88809d7f3818 of 2 bytes by task 11038 on cpu 1:
 batadv_tt_local_add+0x1d0/0x1200 net/batman-adv/translation-table.c:796
 batadv_interface_tx+0x398/0xbe0 net/batman-adv/soft-interface.c:248
 __netdev_start_xmit include/linux/netdevice.h:4447 [inline]
 netdev_start_xmit include/linux/netdevice.h:4461 [inline]
 xmit_one net/core/dev.c:3420 [inline]
 dev_hard_start_xmit+0xef/0x430 net/core/dev.c:3436
 __dev_queue_xmit+0x14e9/0x1ba0 net/core/dev.c:4013
 dev_queue_xmit+0x21/0x30 net/core/dev.c:4046
 __bpf_tx_skb net/core/filter.c:2060 [inline]
 __bpf_redirect_common net/core/filter.c:2099 [inline]
 __bpf_redirect+0x4b4/0x710 net/core/filter.c:2106
 ____bpf_clone_redirect net/core/filter.c:2139 [inline]
 bpf_clone_redirect+0x1a5/0x1f0 net/core/filter.c:2111
 bpf_prog_fee0760a67cb7804+0x28b/0x1000
 bpf_test_run+0x1c3/0x490 net/bpf/test_run.c:44
 bpf_prog_test_run_skb+0x511/0x8a0 net/bpf/test_run.c:362
 bpf_prog_test_run kernel/bpf/syscall.c:2272 [inline]
 __do_sys_bpf+0xf77/0x3150 kernel/bpf/syscall.c:3048
 __se_sys_bpf kernel/bpf/syscall.c:2989 [inline]
 __x64_sys_bpf+0x4c/0x60 kernel/bpf/syscall.c:2989
 do_syscall_64+0xcc/0x3a0 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 11038 Comm: syz-executor.5 Not tainted 5.5.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/01/27 19:28 https://github.com/google/ktsan.git kcsan 245a43005292 56cd6c9b .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.