syzbot


KCSAN: data-race in batadv_iv_ogm_schedule / batadv_update_min_mtu (5)

Status: auto-obsoleted due to no activity on 2025/04/21 22:04
Subsystems: batman
[Documentation on labels]
First crash: 174d, last: 142d
Similar bugs (5)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in batadv_iv_ogm_schedule / batadv_update_min_mtu (2) batman 6 1 470d 470d 0/29 auto-obsoleted due to no activity on 2024/05/08 07:06
upstream KCSAN: data-race in batadv_iv_ogm_schedule / batadv_update_min_mtu batman 6 1 1764d 1764d 0/29 auto-closed as invalid on 2020/10/22 07:32
upstream KCSAN: data-race in batadv_iv_ogm_schedule / batadv_update_min_mtu (4) batman 6 1 257d 257d 0/29 auto-obsoleted due to no activity on 2024/12/28 09:36
upstream KCSAN: data-race in batadv_iv_ogm_schedule / batadv_update_min_mtu (3) batman 6 3 303d 324d 0/29 auto-obsoleted due to no activity on 2024/10/22 14:26
upstream KCSAN: data-race in batadv_iv_ogm_schedule / batadv_update_min_mtu (6) batman 6 1 60d 43d 0/29 auto-obsoleted due to no activity on 2025/07/13 01:39

Sample crash report:
batman_adv: It is strongly recommended to keep mac addresses unique to avoid problems!
batman_adv: The newly added mac address (aa:aa:aa:aa:aa:3f) already exists on: batadv_slave_1
batman_adv: It is strongly recommended to keep mac addresses unique to avoid problems!
batman_adv: The newly added mac address (aa:aa:aa:aa:aa:3f) already exists on: batadv_slave_1
batman_adv: It is strongly recommended to keep mac addresses unique to avoid problems!
batman_adv: batadv0: Interface activated: batadv_slave_1
==================================================================
BUG: KCSAN: data-race in batadv_iv_ogm_schedule / batadv_update_min_mtu

write to 0xffff888115bf8410 of 1 bytes by task 11 on cpu 1:
 batadv_iv_ogm_schedule_buff net/batman-adv/bat_iv_ogm.c:803 [inline]
 batadv_iv_ogm_schedule+0xaa/0x790 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:3236 [inline]
 process_scheduled_works+0x4db/0xa20 kernel/workqueue.c:3317
 worker_thread+0x51d/0x6f0 kernel/workqueue.c:3398
 kthread+0x4ae/0x520 kernel/kthread.c:464
 ret_from_fork+0x4b/0x60 arch/x86/kernel/process.c:148
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244

read to 0xffff888115bf8410 of 1 bytes by task 3307 on cpu 0:
 batadv_hardif_min_mtu net/batman-adv/hard-interface.c:589 [inline]
 batadv_update_min_mtu+0x4b/0x180 net/batman-adv/hard-interface.c:638
 batadv_hardif_activate_interface+0x1f7/0x330 net/batman-adv/hard-interface.c:678
 batadv_hard_if_event+0x483/0xfb0 net/batman-adv/hard-interface.c:977
 notifier_call_chain kernel/notifier.c:85 [inline]
 raw_notifier_call_chain+0x6f/0x1d0 kernel/notifier.c:453
 call_netdevice_notifiers_info+0xae/0x100 net/core/dev.c:2212
 __dev_notify_flags+0xff/0x1a0
 dev_change_flags+0xab/0xd0 net/core/dev.c:9337
 do_setlink+0x7a1/0x2370 net/core/rtnetlink.c:3118
 rtnl_changelink net/core/rtnetlink.c:3733 [inline]
 __rtnl_newlink net/core/rtnetlink.c:3885 [inline]
 rtnl_newlink+0xde9/0x1250 net/core/rtnetlink.c:4022
 rtnetlink_rcv_msg+0x651/0x710 net/core/rtnetlink.c:6912
 netlink_rcv_skb+0x12c/0x230 net/netlink/af_netlink.c:2543
 rtnetlink_rcv+0x1c/0x30 net/core/rtnetlink.c:6939
 netlink_unicast_kernel net/netlink/af_netlink.c:1322 [inline]
 netlink_unicast+0x599/0x670 net/netlink/af_netlink.c:1348
 netlink_sendmsg+0x5cc/0x6e0 net/netlink/af_netlink.c:1892
 sock_sendmsg_nosec net/socket.c:718 [inline]
 __sock_sendmsg+0x140/0x180 net/socket.c:733
 __sys_sendto+0x1a8/0x230 net/socket.c:2187
 __do_sys_sendto net/socket.c:2194 [inline]
 __se_sys_sendto net/socket.c:2190 [inline]
 __x64_sys_sendto+0x78/0x90 net/socket.c:2190
 x64_sys_call+0x29fa/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:45
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x04 -> 0x03

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 3307 Comm: syz-executor Not tainted 6.14.0-rc4-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024
==================================================================
netdevsim netdevsim2 netdevsim0: set [1, 0] type 2 family 0 port 6081 - 0
netdevsim netdevsim2 netdevsim1: set [1, 0] type 2 family 0 port 6081 - 0
netdevsim netdevsim2 netdevsim2: set [1, 0] type 2 family 0 port 6081 - 0
netdevsim netdevsim2 netdevsim3: set [1, 0] type 2 family 0 port 6081 - 0

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/02/24 22:04 upstream d082ecbc71e9 d34966d1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in batadv_iv_ogm_schedule / batadv_update_min_mtu
2025/01/24 07:28 upstream d0d106a2bd21 521b0ce3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in batadv_iv_ogm_schedule / batadv_update_min_mtu
* Struck through repros no longer work on HEAD.