syzbot


KCSAN: data-race in batadv_tt_local_add / batadv_tt_local_commit_changes_nolock (2)

Status: auto-obsoleted due to no activity on 2024/07/06 18:55
Subsystems: batman
[Documentation on labels]
First crash: 241d, last: 241d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in batadv_tt_local_add / batadv_tt_local_commit_changes_nolock batman 1 1828d 1828d 0/28 auto-closed as invalid on 2020/04/06 19:35
upstream KCSAN: data-race in batadv_tt_local_add / batadv_tt_local_commit_changes_nolock (3) batman 1 125d 125d 0/28 auto-obsoleted due to no activity on 2024/10/30 10:58

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

read to 0xffff888128ee5f98 of 2 bytes by task 16362 on cpu 0:
 batadv_tt_local_set_flags net/batman-adv/translation-table.c:3580 [inline]
 batadv_tt_local_commit_changes_nolock+0xd5/0x550 net/batman-adv/translation-table.c:3653
 batadv_tt_local_commit_changes+0x26/0x40 net/batman-adv/translation-table.c:3677
 batadv_iv_ogm_schedule_buff net/batman-adv/bat_iv_ogm.c:811 [inline]
 batadv_iv_ogm_schedule+0x1e6/0x780 net/batman-adv/bat_iv_ogm.c:868
 batadv_iv_send_outstanding_bat_ogm_packet+0x44c/0x4b0 net/batman-adv/bat_iv_ogm.c:1712
 process_one_work kernel/workqueue.c:3231 [inline]
 process_scheduled_works+0x483/0x9a0 kernel/workqueue.c:3312
 worker_thread+0x526/0x730 kernel/workqueue.c:3393
 kthread+0x1d1/0x210 kernel/kthread.c:389
 ret_from_fork+0x4b/0x60 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244

read-write to 0xffff888128ee5f98 of 2 bytes by task 16370 on cpu 1:
 batadv_tt_local_add+0xcdc/0x1000
 batadv_interface_tx+0x3e8/0xaf0 net/batman-adv/soft-interface.c:249
 __netdev_start_xmit include/linux/netdevice.h:4882 [inline]
 netdev_start_xmit include/linux/netdevice.h:4896 [inline]
 xmit_one net/core/dev.c:3578 [inline]
 dev_hard_start_xmit+0x119/0x3f0 net/core/dev.c:3594
 __dev_queue_xmit+0xf83/0x1e50 net/core/dev.c:4393
 dev_queue_xmit include/linux/netdevice.h:3095 [inline]
 neigh_hh_output include/net/neighbour.h:526 [inline]
 neigh_output include/net/neighbour.h:540 [inline]
 ip6_finish_output2+0xa47/0xd10 net/ipv6/ip6_output.c:137
 ip6_finish_output+0x438/0x540 net/ipv6/ip6_output.c:222
 NF_HOOK_COND include/linux/netfilter.h:303 [inline]
 ip6_output+0xf4/0x220 net/ipv6/ip6_output.c:243
 dst_output include/net/dst.h:450 [inline]
 NF_HOOK include/linux/netfilter.h:314 [inline]
 mld_sendpack+0x41f/0x6d0 net/ipv6/mcast.c:1818
 mld_send_initial_cr+0x12f/0x1e0 net/ipv6/mcast.c:2236
 ipv6_mc_dad_complete+0x5f/0x2c0 net/ipv6/mcast.c:2244
 addrconf_dad_completed+0x4da/0x8a0 net/ipv6/addrconf.c:4339
 addrconf_dad_work+0x891/0xbd0
 process_one_work kernel/workqueue.c:3231 [inline]
 process_scheduled_works+0x483/0x9a0 kernel/workqueue.c:3312
 worker_thread+0x526/0x730 kernel/workqueue.c:3393
 kthread+0x1d1/0x210 kernel/kthread.c:389
 ret_from_fork+0x4b/0x60 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244

value changed: 0x0300 -> 0x0100

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 16370 Comm: kworker/u8:5 Not tainted 6.10.0-rc1-syzkaller-00267-gcc8ed4d0a848 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024
Workqueue: ipv6_addrconf addrconf_dad_work
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/06/01 18:45 upstream cc8ed4d0a848 3113787f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in batadv_tt_local_add / batadv_tt_local_commit_changes_nolock
* Struck through repros no longer work on HEAD.