[moderation] [can?] KCSAN: data-race in can_can_gw_rcv / can_can_gw_rcv (4)

3 views
Skip to first unread message

syzbot

unread,
Jun 5, 2025, 10:52:32 PM6/5/25
to syzkaller-upst...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: e271ed52b344 Merge tag 'pm-6.16-rc1-3' of git://git.kernel..
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=17c04c0c580000
kernel config: https://syzkaller.appspot.com/x/.config?x=1ab8aeea25dd0be4
dashboard link: https://syzkaller.appspot.com/bug?extid=11f6b0979969b5e96a04
compiler: Debian clang version 20.1.6 (++20250514063057+1e4d39e07757-1~exp1~20250514183223.118), Debian LLD 20.1.6
CC: [linu...@vger.kernel.org linux-...@vger.kernel.org m...@pengutronix.de sock...@hartkopp.net]

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/4d5e70d330bd/disk-e271ed52.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/061178ef182c/vmlinux-e271ed52.xz
kernel image: https://storage.googleapis.com/syzbot-assets/1843cd9a5d1a/bzImage-e271ed52.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+11f6b0...@syzkaller.appspotmail.com

==================================================================
BUG: KCSAN: data-race in can_can_gw_rcv / can_can_gw_rcv

read-write to 0xffff888100151ce0 of 4 bytes by interrupt on cpu 1:
can_can_gw_rcv+0x807/0x820 net/can/gw.c:566
deliver net/can/af_can.c:575 [inline]
can_rcv_filter+0xc7/0x4f0 net/can/af_can.c:602
can_receive+0x163/0x1c0 net/can/af_can.c:666
canfd_rcv+0xed/0x190 net/can/af_can.c:705
__netif_receive_skb_one_core net/core/dev.c:5977 [inline]
__netif_receive_skb+0x120/0x270 net/core/dev.c:6090
process_backlog+0x229/0x420 net/core/dev.c:6442
__napi_poll+0x63/0x3a0 net/core/dev.c:7414
napi_poll net/core/dev.c:7478 [inline]
net_rx_action+0x391/0x830 net/core/dev.c:7605
handle_softirqs+0xb7/0x290 kernel/softirq.c:579
do_softirq+0x5d/0x90 kernel/softirq.c:480
__local_bh_enable_ip+0x70/0x80 kernel/softirq.c:407
__raw_spin_unlock_bh include/linux/spinlock_api_smp.h:167 [inline]
_raw_spin_unlock_bh+0x36/0x40 kernel/locking/spinlock.c:210
spin_unlock_bh include/linux/spinlock.h:396 [inline]
batadv_nc_purge_paths+0x22b/0x270 net/batman-adv/network-coding.c:471
batadv_nc_worker+0x3d8/0xae0 net/batman-adv/network-coding.c:720
process_one_work kernel/workqueue.c:3238 [inline]
process_scheduled_works+0x4cb/0x9d0 kernel/workqueue.c:3321
worker_thread+0x582/0x770 kernel/workqueue.c:3402
kthread+0x486/0x510 kernel/kthread.c:464
ret_from_fork+0xda/0x150 arch/x86/kernel/process.c:148
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245

read-write to 0xffff888100151ce0 of 4 bytes by interrupt on cpu 0:
can_can_gw_rcv+0x807/0x820 net/can/gw.c:566
deliver net/can/af_can.c:575 [inline]
can_rcv_filter+0xc7/0x4f0 net/can/af_can.c:602
can_receive+0x163/0x1c0 net/can/af_can.c:666
canfd_rcv+0xed/0x190 net/can/af_can.c:705
__netif_receive_skb_one_core net/core/dev.c:5977 [inline]
__netif_receive_skb+0x120/0x270 net/core/dev.c:6090
process_backlog+0x229/0x420 net/core/dev.c:6442
__napi_poll+0x63/0x3a0 net/core/dev.c:7414
napi_poll net/core/dev.c:7478 [inline]
net_rx_action+0x391/0x830 net/core/dev.c:7605
handle_softirqs+0xb7/0x290 kernel/softirq.c:579
run_ksoftirqd+0x1c/0x30 kernel/softirq.c:968
smpboot_thread_fn+0x32b/0x530 kernel/smpboot.c:164
kthread+0x486/0x510 kernel/kthread.c:464
ret_from_fork+0xda/0x150 arch/x86/kernel/process.c:148
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245

value changed: 0x003a0bf2 -> 0x003a0bf3

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 14 Comm: ksoftirqd/0 Tainted: G W 6.15.0-syzkaller-12426-ge271ed52b344 #0 PREEMPT(voluntary)
Tainted: [W]=WARN
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
==================================================================
==================================================================
BUG: KCSAN: data-race in can_can_gw_rcv / can_can_gw_rcv

read-write to 0xffff888100151ce0 of 4 bytes by interrupt on cpu 1:
can_can_gw_rcv+0x807/0x820 net/can/gw.c:566
deliver net/can/af_can.c:575 [inline]
can_rcv_filter+0xc7/0x4f0 net/can/af_can.c:602
can_receive+0x163/0x1c0 net/can/af_can.c:666
canfd_rcv+0xed/0x190 net/can/af_can.c:705
__netif_receive_skb_one_core net/core/dev.c:5977 [inline]
__netif_receive_skb+0x120/0x270 net/core/dev.c:6090
process_backlog+0x229/0x420 net/core/dev.c:6442
__napi_poll+0x63/0x3a0 net/core/dev.c:7414
napi_poll net/core/dev.c:7478 [inline]
net_rx_action+0x391/0x830 net/core/dev.c:7605
handle_softirqs+0xb7/0x290 kernel/softirq.c:579
do_softirq+0x5d/0x90 kernel/softirq.c:480
__local_bh_enable_ip+0x70/0x80 kernel/softirq.c:407
local_bh_enable include/linux/bottom_half.h:33 [inline]
rcu_read_unlock_bh include/linux/rcupdate.h:910 [inline]
mod_peer_timer drivers/net/wireguard/timers.c:38 [inline]
wg_timers_any_authenticated_packet_traversal+0xdd/0x100 drivers/net/wireguard/timers.c:215
wg_packet_send_handshake_initiation drivers/net/wireguard/send.c:36 [inline]
wg_packet_handshake_send_worker+0xd8/0x160 drivers/net/wireguard/send.c:51
process_one_work kernel/workqueue.c:3238 [inline]
process_scheduled_works+0x4cb/0x9d0 kernel/workqueue.c:3321
worker_thread+0x582/0x770 kernel/workqueue.c:3402
kthread+0x486/0x510 kernel/kthread.c:464
ret_from_fork+0xda/0x150 arch/x86/kernel/process.c:148
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245

read-write to 0xffff888100151ce0 of 4 bytes by interrupt on cpu 0:
can_can_gw_rcv+0x807/0x820 net/can/gw.c:566
deliver net/can/af_can.c:575 [inline]
can_rcv_filter+0xc7/0x4f0 net/can/af_can.c:602
can_receive+0x163/0x1c0 net/can/af_can.c:666
canfd_rcv+0xed/0x190 net/can/af_can.c:705
__netif_receive_skb_one_core net/core/dev.c:5977 [inline]
__netif_receive_skb+0x120/0x270 net/core/dev.c:6090
process_backlog+0x229/0x420 net/core/dev.c:6442
__napi_poll+0x63/0x3a0 net/core/dev.c:7414
napi_poll net/core/dev.c:7478 [inline]
net_rx_action+0x391/0x830 net/core/dev.c:7605
handle_softirqs+0xb7/0x290 kernel/softirq.c:579
do_softirq+0x5d/0x90 kernel/softirq.c:480
__local_bh_enable_ip+0x70/0x80 kernel/softirq.c:407
__raw_spin_unlock_bh include/linux/spinlock_api_smp.h:167 [inline]
_raw_spin_unlock_bh+0x36/0x40 kernel/locking/spinlock.c:210
spin_unlock_bh include/linux/spinlock.h:396 [inline]
batadv_nc_purge_paths+0x22b/0x270 net/batman-adv/network-coding.c:471
batadv_nc_worker+0x3d8/0xae0 net/batman-adv/network-coding.c:720
process_one_work kernel/workqueue.c:3238 [inline]
process_scheduled_works+0x4cb/0x9d0 kernel/workqueue.c:3321
worker_thread+0x582/0x770 kernel/workqueue.c:3402
kthread+0x486/0x510 kernel/kthread.c:464
ret_from_fork+0xda/0x150 arch/x86/kernel/process.c:148
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245

value changed: 0x003d527c -> 0x003d527d

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 8180 Comm: kworker/u8:61 Tainted: G W 6.15.0-syzkaller-12426-ge271ed52b344 #0 PREEMPT(voluntary)
Tainted: [W]=WARN
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
Workqueue: bat_events batadv_nc_worker
==================================================================
==================================================================
BUG: KCSAN: data-race in can_can_gw_rcv / can_can_gw_rcv

read-write to 0xffff888100151ce0 of 4 bytes by interrupt on cpu 1:
can_can_gw_rcv+0x807/0x820 net/can/gw.c:566
deliver net/can/af_can.c:575 [inline]
can_rcv_filter+0xc7/0x4f0 net/can/af_can.c:602
can_receive+0x163/0x1c0 net/can/af_can.c:666
canfd_rcv+0xed/0x190 net/can/af_can.c:705
__netif_receive_skb_one_core net/core/dev.c:5977 [inline]
__netif_receive_skb+0x120/0x270 net/core/dev.c:6090
process_backlog+0x229/0x420 net/core/dev.c:6442
__napi_poll+0x63/0x3a0 net/core/dev.c:7414
napi_poll net/core/dev.c:7478 [inline]
net_rx_action+0x391/0x830 net/core/dev.c:7605
handle_softirqs+0xb7/0x290 kernel/softirq.c:579
do_softirq+0x5d/0x90 kernel/softirq.c:480
__local_bh_enable_ip+0x70/0x80 kernel/softirq.c:407
local_bh_enable include/linux/bottom_half.h:33 [inline]
update_defense_level+0x589/0x5c0 net/netfilter/ipvs/ip_vs_ctl.c:210
defense_work_handler+0x1f/0x80 net/netfilter/ipvs/ip_vs_ctl.c:235
process_one_work kernel/workqueue.c:3238 [inline]
process_scheduled_works+0x4cb/0x9d0 kernel/workqueue.c:3321
worker_thread+0x582/0x770 kernel/workqueue.c:3402
kthread+0x486/0x510 kernel/kthread.c:464
ret_from_fork+0xda/0x150 arch/x86/kernel/process.c:148
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245

read-write to 0xffff888100151ce0 of 4 bytes by interrupt on cpu 0:
can_can_gw_rcv+0x807/0x820 net/can/gw.c:566
deliver net/can/af_can.c:575 [inline]
can_rcv_filter+0xc7/0x4f0 net/can/af_can.c:602
can_receive+0x163/0x1c0 net/can/af_can.c:666
canfd_rcv+0xed/0x190 net/can/af_can.c:705
__netif_receive_skb_one_core net/core/dev.c:5977 [inline]
__netif_receive_skb+0x120/0x270 net/core/dev.c:6090
process_backlog+0x229/0x420 net/core/dev.c:6442
__napi_poll+0x63/0x3a0 net/core/dev.c:7414
napi_poll net/core/dev.c:7478 [inline]
net_rx_action+0x391/0x830 net/core/dev.c:7605
handle_softirqs+0xb7/0x290 kernel/softirq.c:579
do_softirq+0x5d/0x90 kernel/softirq.c:480
__local_bh_enable_ip+0x70/0x80 kernel/softirq.c:407
local_bh_enable include/linux/bottom_half.h:33 [inline]
fpregs_unlock arch/x86/include/asm/fpu/api.h:77 [inline]
kernel_fpu_end+0x9d/0xd0 arch/x86/kernel/fpu/core.c:476
crc32c_arch+0x64/0x1a0 arch/x86/lib/crc32.c:52
crc32c include/linux/crc32.h:32 [inline]
jbd2_chksum include/linux/jbd2.h:1771 [inline]
jbd2_commit_block_csum_set fs/jbd2/commit.c:102 [inline]
journal_submit_commit_record+0x27b/0x400 fs/jbd2/commit.c:144
jbd2_journal_commit_transaction+0x1ea1/0x3150 fs/jbd2/commit.c:875
kjournald2+0x211/0x3d0 fs/jbd2/journal.c:201
kthread+0x486/0x510 kernel/kthread.c:464
ret_from_fork+0xda/0x150 arch/x86/kernel/process.c:148
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245

value changed: 0x0040c6b3 -> 0x0040c6b4

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 2968 Comm: jbd2/sda1-8 Tainted: G W 6.15.0-syzkaller-12426-ge271ed52b344 #0 PREEMPT(voluntary)
Tainted: [W]=WARN
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
==================================================================
==================================================================
BUG: KCSAN: data-race in can_rcv_filter / can_rcv_filter

read-write to 0xffff88810165f108 of 8 bytes by interrupt on cpu 1:
deliver net/can/af_can.c:576 [inline]
can_rcv_filter+0xd9/0x4f0 net/can/af_can.c:602
can_receive+0x163/0x1c0 net/can/af_can.c:666
canfd_rcv+0xed/0x190 net/can/af_can.c:705
__netif_receive_skb_one_core net/core/dev.c:5977 [inline]
__netif_receive_skb+0x120/0x270 net/core/dev.c:6090
process_backlog+0x229/0x420 net/core/dev.c:6442
__napi_poll+0x63/0x3a0 net/core/dev.c:7414
napi_poll net/core/dev.c:7478 [inline]
net_rx_action+0x391/0x830 net/core/dev.c:7605
handle_softirqs+0xb7/0x290 kernel/softirq.c:579
do_softirq+0x5d/0x90 kernel/softirq.c:480
__local_bh_enable_ip+0x70/0x80 kernel/softirq.c:407
__raw_spin_unlock_bh include/linux/spinlock_api_smp.h:167 [inline]
_raw_spin_unlock_bh+0x36/0x40 kernel/locking/spinlock.c:210
spin_unlock_bh include/linux/spinlock.h:396 [inline]
batadv_nc_purge_paths+0x22b/0x270 net/batman-adv/network-coding.c:471
batadv_nc_worker+0x3ff/0xae0 net/batman-adv/network-coding.c:722
process_one_work kernel/workqueue.c:3238 [inline]
process_scheduled_works+0x4cb/0x9d0 kernel/workqueue.c:3321
worker_thread+0x582/0x770 kernel/workqueue.c:3402
kthread+0x486/0x510 kernel/kthread.c:464
ret_from_fork+0xda/0x150 arch/x86/kernel/process.c:148
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245

read-write to 0xffff88810165f108 of 8 bytes by interrupt on cpu 0:
deliver net/can/af_can.c:576 [inline]
can_rcv_filter+0xd9/0x4f0 net/can/af_can.c:602
can_receive+0x163/0x1c0 net/can/af_can.c:666
canfd_rcv+0xed/0x190 net/can/af_can.c:705
__netif_receive_skb_one_core net/core/dev.c:5977 [inline]
__netif_receive_skb+0x120/0x270 net/core/dev.c:6090
process_backlog+0x229/0x420 net/core/dev.c:6442
__napi_poll+0x63/0x3a0 net/core/dev.c:7414
napi_poll net/core/dev.c:7478 [inline]
net_rx_action+0x391/0x830 net/core/dev.c:7605
handle_softirqs+0xb7/0x290 kernel/softirq.c:579
do_softirq+0x5d/0x90 kernel/softirq.c:480
__local_bh_enable_ip+0x70/0x80 kernel/softirq.c:407
__raw_spin_unlock_bh include/linux/spinlock_api_smp.h:167 [inline]
_raw_spin_unlock_bh+0x36/0x40 kernel/locking/spinlock.c:210
spin_unlock_bh include/linux/spinlock.h:396 [inline]
lock_sock_nested+0x112/0x140 net/core/sock.c:3759
lock_sock include/net/sock.h:1667 [inline]
tcp_recvmsg+0x114/0x490 net/ipv4/tcp.c:2907
inet_recvmsg+0xb7/0x290 net/ipv4/af_inet.c:883
sock_recvmsg_nosec net/socket.c:1017 [inline]
sock_recvmsg+0xf6/0x170 net/socket.c:1039
sock_read_iter+0x152/0x1a0 net/socket.c:1109
new_sync_read fs/read_write.c:491 [inline]
vfs_read+0x5ca/0x6f0 fs/read_write.c:572
ksys_read+0xda/0x1a0 fs/read_write.c:715
__do_sys_read fs/read_write.c:724 [inline]
__se_sys_read fs/read_write.c:722 [inline]
__x64_sys_read+0x40/0x50 fs/read_write.c:722
x64_sys_call+0x2d77/0x2fb0 arch/x86/include/generated/asm/syscalls_64.h:1
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xd2/0x200 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x0000000000412fee -> 0x0000000000412fef

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 3307 Comm: syz-executor Tainted: G W 6.15.0-syzkaller-12426-ge271ed52b344 #0 PREEMPT(voluntary)
Tainted: [W]=WARN
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
==================================================================
==================================================================
BUG: KCSAN: data-race in can_can_gw_rcv / can_can_gw_rcv

read-write to 0xffff888100151ce0 of 4 bytes by interrupt on cpu 1:
can_can_gw_rcv+0x807/0x820 net/can/gw.c:566
deliver net/can/af_can.c:575 [inline]
can_rcv_filter+0xc7/0x4f0 net/can/af_can.c:602
can_receive+0x163/0x1c0 net/can/af_can.c:666
canfd_rcv+0xed/0x190 net/can/af_can.c:705
__netif_receive_skb_one_core net/core/dev.c:5977 [inline]
__netif_receive_skb+0x120/0x270 net/core/dev.c:6090
process_backlog+0x229/0x420 net/core/dev.c:6442
__napi_poll+0x63/0x3a0 net/core/dev.c:7414
napi_poll net/core/dev.c:7478 [inline]
net_rx_action+0x391/0x830 net/core/dev.c:7605
handle_softirqs+0xb7/0x290 kernel/softirq.c:579
do_softirq+0x5d/0x90 kernel/softirq.c:480
__local_bh_enable_ip+0x70/0x80 kernel/softirq.c:407
__raw_spin_unlock_bh include/linux/spinlock_api_smp.h:167 [inline]
_raw_spin_unlock_bh+0x36/0x40 kernel/locking/spinlock.c:210
spin_unlock_bh include/linux/spinlock.h:396 [inline]
batadv_nc_purge_paths+0x22b/0x270 net/batman-adv/network-coding.c:471
batadv_nc_worker+0x3ff/0xae0 net/batman-adv/network-coding.c:722
process_one_work kernel/workqueue.c:3238 [inline]
process_scheduled_works+0x4cb/0x9d0 kernel/workqueue.c:3321
worker_thread+0x582/0x770 kernel/workqueue.c:3402
kthread+0x486/0x510 kernel/kthread.c:464
ret_from_fork+0xda/0x150 arch/x86/kernel/process.c:148
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245

read-write to 0xffff888100151ce0 of 4 bytes by interrupt on cpu 0:
can_can_gw_rcv+0x807/0x820 net/can/gw.c:566
deliver net/can/af_can.c:575 [inline]
can_rcv_filter+0xc7/0x4f0 net/can/af_can.c:602
can_receive+0x163/0x1c0 net/can/af_can.c:666
canfd_rcv+0xed/0x190 net/can/af_can.c:705
__netif_receive_skb_one_core net/core/dev.c:5977 [inline]
__netif_receive_skb+0x120/0x270 net/core/dev.c:6090
process_backlog+0x229/0x420 net/core/dev.c:6442
__napi_poll+0x63/0x3a0 net/core/dev.c:7414
napi_poll net/core/dev.c:7478 [inline]
net_rx_action+0x391/0x830 net/core/dev.c:7605
handle_softirqs+0xb7/0x290 kernel/softirq.c:579
do_softirq+0x5d/0x90 kernel/softirq.c:480
__local_bh_enable_ip+0x70/0x80 kernel/softirq.c:407
__raw_spin_unlock_bh include/linux/spinlock_api_smp.h:167 [inline]
_raw_spin_unlock_bh+0x36/0x40 kernel/locking/spinlock.c:210
spin_unlock_bh include/linux/spinlock.h:396 [inline]
nsim_dev_trap_report drivers/net/netdevsim/dev.c:820 [inline]
nsim_dev_trap_report_work+0x52b/0x630 drivers/net/netdevsim/dev.c:851
process_one_work kernel/workqueue.c:3238 [inline]
process_scheduled_works+0x4cb/0x9d0 kernel/workqueue.c:3321
worker_thread+0x582/0x770 kernel/workqueue.c:3402
kthread+0x486/0x510 kernel/kthread.c:464
ret_from_fork+0xda/0x150 arch/x86/kernel/process.c:148
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245

value changed: 0x00443339 -> 0x0044333a

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 31 Comm: kworker/u8:1 Tainted: G W 6.15.0-syzkaller-12426-ge271ed52b344 #0 PREEMPT(voluntary)
Tainted: [W]=WARN
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
Workqueue: events_unbound nsim_dev_trap_report_work
==================================================================


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup

syzbot

unread,
Nov 2, 2025, 2:50:17 AM11/2/25
to syzkaller-upst...@googlegroups.com
Auto-closing this bug as obsolete.
Crashes did not happen for a while, no reproducer and no activity.
Reply all
Reply to author
Forward
0 new messages