syzbot


KCSAN: data-race in can_rcv_filter / can_rx_unregister (3)

Status: auto-obsoleted due to no activity on 2024/06/27 05:25
Subsystems: can
[Documentation on labels]
First crash: 297d, last: 297d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in can_rcv_filter / can_rx_unregister can 1 688d 688d 0/28 auto-obsoleted due to no activity on 2023/06/01 19:55
upstream KCSAN: data-race in can_rcv_filter / can_rx_unregister (2) can 1 628d 628d 0/28 auto-obsoleted due to no activity on 2023/08/01 12:06

Sample crash report:
==================================================================
BUG: KCSAN: data-race in can_rcv_filter / can_rx_unregister

read-write to 0xffff888119b6e020 of 4 bytes by task 10629 on cpu 0:
 can_rx_unregister+0x430/0x530 net/can/af_can.c:553
 raw_disable_filters net/can/raw.c:255 [inline]
 raw_disable_allfilters net/can/raw.c:276 [inline]
 raw_release+0x2c9/0x580 net/can/raw.c:424
 __sock_release net/socket.c:659 [inline]
 sock_close+0x68/0x150 net/socket.c:1421
 __fput+0x2c2/0x660 fs/file_table.c:422
 __fput_sync+0x44/0x60 fs/file_table.c:507
 __do_sys_close fs/open.c:1556 [inline]
 __se_sys_close+0x101/0x1b0 fs/open.c:1541
 __x64_sys_close+0x1f/0x30 fs/open.c:1541
 x64_sys_call+0x25b9/0x2d30 arch/x86/include/generated/asm/syscalls_64.h:4
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x1d0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff888119b6e020 of 4 bytes by interrupt on cpu 1:
 can_rcv_filter+0x40/0x4c0 net/can/af_can.c:583
 can_receive+0x116/0x1f0 net/can/af_can.c:659
 can_rcv+0xe7/0x180 net/can/af_can.c:687
 __netif_receive_skb_one_core net/core/dev.c:5624 [inline]
 __netif_receive_skb+0x123/0x280 net/core/dev.c:5738
 process_backlog+0x21d/0x3c0 net/core/dev.c:6067
 __napi_poll+0x63/0x3c0 net/core/dev.c:6721
 napi_poll net/core/dev.c:6790 [inline]
 net_rx_action+0x324/0x740 net/core/dev.c:6906
 handle_softirqs+0xc8/0x290 kernel/softirq.c:554
 run_ksoftirqd+0x1c/0x30 kernel/softirq.c:928
 smpboot_thread_fn+0x31c/0x4c0 kernel/smpboot.c:164
 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: 0x00000001 -> 0x00000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 23 Comm: ksoftirqd/1 Tainted: G        W          6.9.0-syzkaller-10713-g2a8120d7b482 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/05/23 05:14 upstream 2a8120d7b482 4d098039 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in can_rcv_filter / can_rx_unregister
* Struck through repros no longer work on HEAD.