================================================================== BUG: KCSAN: data-race in can_rcv_filter / can_rx_unregister read-write to 0xffff888135c3e020 of 4 bytes by task 19258 on cpu 0: can_rx_unregister+0x429/0x520 net/can/af_can.c:553 bcm_release+0x235/0x5c0 net/can/bcm.c:1553 __sock_release net/socket.c:653 [inline] sock_close+0x70/0x150 net/socket.c:1397 __fput+0x245/0x570 fs/file_table.c:321 ____fput+0x15/0x20 fs/file_table.c:349 task_work_run+0x123/0x160 kernel/task_work.c:179 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0xd1/0xe0 kernel/entry/common.c:171 exit_to_user_mode_prepare+0x6c/0xb0 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline] syscall_exit_to_user_mode+0x26/0x140 kernel/entry/common.c:297 do_syscall_64+0x4d/0xc0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd read to 0xffff888135c3e020 of 4 bytes by interrupt on cpu 1: can_rcv_filter+0x40/0x490 net/can/af_can.c:583 can_receive+0x116/0x1f0 net/can/af_can.c:659 canfd_rcv+0xe7/0x180 net/can/af_can.c:702 __netif_receive_skb_one_core net/core/dev.c:5491 [inline] __netif_receive_skb+0x90/0x1b0 net/core/dev.c:5605 process_backlog+0x21f/0x380 net/core/dev.c:5933 __napi_poll+0x60/0x3b0 net/core/dev.c:6496 napi_poll net/core/dev.c:6563 [inline] net_rx_action+0x32b/0x750 net/core/dev.c:6696 __do_softirq+0xc1/0x265 kernel/softirq.c:571 run_ksoftirqd+0x17/0x20 kernel/softirq.c:939 smpboot_thread_fn+0x30a/0x4a0 kernel/smpboot.c:164 kthread+0x1d7/0x210 kernel/kthread.c:379 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 value changed: 0x00000001 -> 0x00000000 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 19 Comm: ksoftirqd/1 Not tainted 6.3.0-syzkaller-07919-g6e98b09da931 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023 ==================================================================