syzbot


KCSAN: data-race in batadv_hardif_activate_interface / batadv_mcast_mla_update

Status: auto-obsoleted due to no activity on 2024/05/14 09:11
Subsystems: batman
[Documentation on labels]
First crash: 305d, last: 294d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in batadv_hardif_activate_interface / batadv_mcast_mla_update (2) batman 2 126d 140d 0/28 auto-obsoleted due to no activity on 2024/10/29 19:46

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

write to 0xffff888137239810 of 1 bytes by task 26302 on cpu 1:
 batadv_hardif_activate_interface+0x99/0x330 net/batman-adv/hard-interface.c:666
 batadv_hard_if_event+0x47a/0x1000 net/batman-adv/hard-interface.c:977
 notifier_call_chain kernel/notifier.c:93 [inline]
 raw_notifier_call_chain+0x6f/0x1d0 kernel/notifier.c:461
 call_netdevice_notifiers_info+0xae/0x100 net/core/dev.c:1950
 __dev_notify_flags+0xff/0x1a0
 dev_change_flags+0xab/0xd0 net/core/dev.c:8763
 do_setlink+0x841/0x2480 net/core/rtnetlink.c:2884
 __rtnl_newlink net/core/rtnetlink.c:3680 [inline]
 rtnl_newlink+0x11a1/0x1690 net/core/rtnetlink.c:3727
 rtnetlink_rcv_msg+0x82e/0x8e0 net/core/rtnetlink.c:6595
 netlink_rcv_skb+0x12c/0x230 net/netlink/af_netlink.c:2559
 rtnetlink_rcv+0x1c/0x30 net/core/rtnetlink.c:6613
 netlink_unicast_kernel net/netlink/af_netlink.c:1335 [inline]
 netlink_unicast+0x58d/0x660 net/netlink/af_netlink.c:1361
 netlink_sendmsg+0x5d3/0x6e0 net/netlink/af_netlink.c:1905
 sock_sendmsg_nosec net/socket.c:730 [inline]
 __sock_sendmsg+0x140/0x180 net/socket.c:745
 __sys_sendto+0x1e5/0x260 net/socket.c:2191
 __do_sys_sendto net/socket.c:2203 [inline]
 __se_sys_sendto net/socket.c:2199 [inline]
 __x64_sys_sendto+0x78/0x90 net/socket.c:2199
 do_syscall_64+0xd3/0x1d0
 entry_SYSCALL_64_after_hwframe+0x72/0x7a

read to 0xffff888137239810 of 1 bytes by task 3192 on cpu 0:
 batadv_mcast_mla_forw_flags_get net/batman-adv/multicast.c:253 [inline]
 batadv_mcast_mla_flags_get net/batman-adv/multicast.c:290 [inline]
 __batadv_mcast_mla_update net/batman-adv/multicast.c:910 [inline]
 batadv_mcast_mla_update+0x21b/0x1700 net/batman-adv/multicast.c:949
 process_one_work kernel/workqueue.c:3254 [inline]
 process_scheduled_works+0x465/0x990 kernel/workqueue.c:3335
 worker_thread+0x526/0x730 kernel/workqueue.c:3416
 kthread+0x1d1/0x210 kernel/kthread.c:388
 ret_from_fork+0x4b/0x60 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:243

value changed: 0x02 -> 0x04

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 3192 Comm: kworker/u8:7 Tainted: G        W          6.9.0-rc3-syzkaller-00011-g20cb38a7af88 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
Workqueue: bat_events batadv_mcast_mla_update
==================================================================

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/04/09 09:06 upstream 20cb38a7af88 f3234354 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in batadv_hardif_activate_interface / batadv_mcast_mla_update
2024/03/30 08:35 upstream 4535e1a4174c 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in batadv_hardif_activate_interface / batadv_mcast_mla_update
2024/03/29 12:56 upstream 317c7bc0ef03 c52bcb23 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in batadv_hardif_activate_interface / batadv_mcast_mla_update
* Struck through repros no longer work on HEAD.