[moderation] [can?] KCSAN: data-race in can_rcv_filter / can_rcv_filter (12)

0 views
Skip to first unread message

syzbot

unread,
Jun 5, 2025, 8:29:37 AMJun 5
to syzkaller-upst...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 1af80d00e1e0 Merge tag 'slab-for-6.16' of git://git.kernel..
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=130b31d4580000
kernel config: https://syzkaller.appspot.com/x/.config?x=bba874f685309ec0
dashboard link: https://syzkaller.appspot.com/bug?extid=2cd2103d1513f73ae012
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/a3e50a712424/disk-1af80d00.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/68bc908308c4/vmlinux-1af80d00.xz
kernel image: https://storage.googleapis.com/syzbot-assets/3d291ba02a2e/bzImage-1af80d00.xz

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

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

read-write to 0xffff888101fed428 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+0x11d/0x270 net/core/dev.c:6090
process_backlog+0x229/0x420 net/core/dev.c:6442
__napi_poll+0x66/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

read-write to 0xffff888101fed428 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+0x11d/0x270 net/core/dev.c:6090
process_backlog+0x229/0x420 net/core/dev.c:6442
__napi_poll+0x66/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: 0x0000000000006c01 -> 0x0000000000006c02

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 5124 Comm: kworker/u8:12 Not tainted 6.15.0-syzkaller-11802-g1af80d00e1e0 #0 PREEMPT(voluntary)
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
Workqueue: events_unbound nsim_dev_trap_report_work
==================================================================
==================================================================
BUG: KCSAN: data-race in can_can_gw_rcv / can_can_gw_rcv

read-write to 0xffff8881219ef020 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+0x11d/0x270 net/core/dev.c:6090
process_backlog+0x229/0x420 net/core/dev.c:6442
__napi_poll+0x66/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]
ptr_ring_consume_bh include/linux/ptr_ring.h:367 [inline]
wg_packet_encrypt_worker+0x17a/0xb80 drivers/net/wireguard/send.c:293
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 0xffff8881219ef020 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+0x11d/0x270 net/core/dev.c:6090
process_backlog+0x229/0x420 net/core/dev.c:6442
__napi_poll+0x66/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]
ptr_ring_consume_bh include/linux/ptr_ring.h:367 [inline]
wg_packet_encrypt_worker+0xb44/0xb80 drivers/net/wireguard/send.c:293
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: 0x0000c765 -> 0x0000c766

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 9 Comm: kworker/0:0 Not tainted 6.15.0-syzkaller-11802-g1af80d00e1e0 #0 PREEMPT(voluntary)
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
Workqueue: wg-crypt-wg0 wg_packet_encrypt_worker
==================================================================
==================================================================
BUG: KCSAN: data-race in can_rcv_filter / can_rcv_filter

read-write to 0xffff888101fed428 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+0x11d/0x270 net/core/dev.c:6090
process_backlog+0x229/0x420 net/core/dev.c:6442
__napi_poll+0x66/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
blake2s_compress+0x5f/0xd0 arch/x86/lib/crypto/blake2s-glue.c:46
blake2s_final+0x6a/0xa0 lib/crypto/blake2s.c:54
hmac+0x208/0x270 drivers/net/wireguard/noise.c:333
kdf drivers/net/wireguard/noise.c:367 [inline]
message_ephemeral+0x165/0x1d0 drivers/net/wireguard/noise.c:493
wg_noise_handshake_create_initiation+0x1ac/0x5a0 drivers/net/wireguard/noise.c:545
wg_packet_send_handshake_initiation drivers/net/wireguard/send.c:34 [inline]
wg_packet_handshake_send_worker+0xb2/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 0xffff888101fed428 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+0x11d/0x270 net/core/dev.c:6090
process_backlog+0x229/0x420 net/core/dev.c:6442
__napi_poll+0x66/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]
sockopt_lock_sock+0x42/0x50 net/core/sock.c:1150
do_ip_getsockopt+0xa85/0xfe0 net/ipv4/ip_sockglue.c:1703
ip_getsockopt+0x5c/0x180 net/ipv4/ip_sockglue.c:1765
tcp_getsockopt+0xaa/0xe0 net/ipv4/tcp.c:4760
sock_common_getsockopt+0x60/0x70 net/core/sock.c:3917
do_sock_getsockopt+0x1fd/0x240 net/socket.c:2357
__sys_getsockopt net/socket.c:2386 [inline]
__do_sys_getsockopt net/socket.c:2393 [inline]
__se_sys_getsockopt net/socket.c:2390 [inline]
__x64_sys_getsockopt+0x11e/0x1a0 net/socket.c:2390
x64_sys_call+0x12aa/0x2fb0 arch/x86/include/generated/asm/syscalls_64.h:56
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: 0x000000000006df0a -> 0x000000000006df0b

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 12244 Comm: syz-executor Not tainted 6.15.0-syzkaller-11802-g1af80d00e1e0 #0 PREEMPT(voluntary)
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 0xffff888101fed428 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+0x11d/0x270 net/core/dev.c:6090
process_backlog+0x229/0x420 net/core/dev.c:6442
__napi_poll+0x66/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 0xffff888101fed428 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+0x11d/0x270 net/core/dev.c:6090
process_backlog+0x229/0x420 net/core/dev.c:6442
__napi_poll+0x66/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: 0x00000000000d85bb -> 0x00000000000d85bc

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 5137 Comm: kworker/u8:25 Not tainted 6.15.0-syzkaller-11802-g1af80d00e1e0 #0 PREEMPT(voluntary)
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,
Sep 4, 2025, 3:07:18 PM (3 days ago) Sep 4
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