================================================================== BUG: KCSAN: data-race in can_receive / can_receive read-write to 0xffff888104681ce8 of 8 bytes by interrupt on cpu 0: can_receive+0x62/0x1f0 net/can/af_can.c:650 canfd_rcv+0xe7/0x180 net/can/af_can.c:702 __netif_receive_skb_one_core net/core/dev.c:5452 [inline] __netif_receive_skb+0x90/0x1b0 net/core/dev.c:5566 process_backlog+0x21f/0x380 net/core/dev.c:5894 __napi_poll+0x60/0x3b0 net/core/dev.c:6460 napi_poll net/core/dev.c:6527 [inline] net_rx_action+0x32b/0x750 net/core/dev.c:6660 __do_softirq+0xc1/0x265 kernel/softirq.c:553 do_softirq+0x5e/0x90 kernel/softirq.c:454 __local_bh_enable_ip+0x64/0x70 kernel/softirq.c:381 __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:395 [inline] batadv_purge_orig_ref+0xb89/0xbf0 net/batman-adv/originator.c:1259 batadv_purge_orig+0x19/0x40 net/batman-adv/originator.c:1272 process_one_work+0x434/0x860 kernel/workqueue.c:2597 worker_thread+0x5f2/0xa10 kernel/workqueue.c:2748 kthread+0x1d7/0x210 kernel/kthread.c:389 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 read-write to 0xffff888104681ce8 of 8 bytes by interrupt on cpu 1: can_receive+0x62/0x1f0 net/can/af_can.c:650 canfd_rcv+0xe7/0x180 net/can/af_can.c:702 __netif_receive_skb_one_core net/core/dev.c:5452 [inline] __netif_receive_skb+0x90/0x1b0 net/core/dev.c:5566 process_backlog+0x21f/0x380 net/core/dev.c:5894 __napi_poll+0x60/0x3b0 net/core/dev.c:6460 napi_poll net/core/dev.c:6527 [inline] net_rx_action+0x32b/0x750 net/core/dev.c:6660 __do_softirq+0xc1/0x265 kernel/softirq.c:553 do_softirq+0x5e/0x90 kernel/softirq.c:454 __local_bh_enable_ip+0x64/0x70 kernel/softirq.c:381 __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:395 [inline] tcp_metrics_flush_all net/ipv4/tcp_metrics.c:899 [inline] tcp_net_metrics_exit_batch+0xf0/0x120 net/ipv4/tcp_metrics.c:1019 ops_exit_list net/core/net_namespace.c:175 [inline] cleanup_net+0x419/0x770 net/core/net_namespace.c:614 process_one_work+0x434/0x860 kernel/workqueue.c:2597 worker_thread+0x5f2/0xa10 kernel/workqueue.c:2748 kthread+0x1d7/0x210 kernel/kthread.c:389 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 value changed: 0x0000000000002057 -> 0x0000000000002058 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 24 Comm: kworker/u4:1 Not tainted 6.4.0-syzkaller-04247-g3a8a670eeeaa #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 Workqueue: netns cleanup_net ================================================================== ================================================================== BUG: KCSAN: data-race in can_send / can_send read-write to 0xffff888104681c90 of 8 bytes by interrupt on cpu 0: can_send+0x55e/0x5d0 net/can/af_can.c:289 bcm_can_tx+0x314/0x410 net/can/bcm.c:302 bcm_tx_timeout_handler+0xdb/0x260 __run_hrtimer kernel/time/hrtimer.c:1688 [inline] __hrtimer_run_queues+0x217/0x700 kernel/time/hrtimer.c:1752 hrtimer_run_softirq+0xd6/0x120 kernel/time/hrtimer.c:1769 __do_softirq+0xc1/0x265 kernel/softirq.c:553 run_ksoftirqd+0x17/0x20 kernel/softirq.c:921 smpboot_thread_fn+0x30a/0x4a0 kernel/smpboot.c:164 kthread+0x1d7/0x210 kernel/kthread.c:389 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 read-write to 0xffff888104681c90 of 8 bytes by interrupt on cpu 1: can_send+0x55e/0x5d0 net/can/af_can.c:289 bcm_can_tx+0x314/0x410 net/can/bcm.c:302 bcm_tx_timeout_handler+0xdb/0x260 __run_hrtimer kernel/time/hrtimer.c:1688 [inline] __hrtimer_run_queues+0x217/0x700 kernel/time/hrtimer.c:1752 hrtimer_run_softirq+0xd6/0x120 kernel/time/hrtimer.c:1769 __do_softirq+0xc1/0x265 kernel/softirq.c:553 invoke_softirq kernel/softirq.c:427 [inline] __irq_exit_rcu kernel/softirq.c:632 [inline] irq_exit_rcu+0x3b/0x90 kernel/softirq.c:644 sysvec_apic_timer_interrupt+0x6d/0x80 arch/x86/kernel/apic/apic.c:1109 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645 bio_op include/linux/blk_types.h:471 [inline] bio_no_advance_iter include/linux/bio.h:68 [inline] bio_advance_iter_single include/linux/bio.h:117 [inline] bio_split_rw+0x3ef/0x5c0 block/blk-merge.c:286 __bio_split_to_limits+0x3f8/0x520 block/blk-merge.c:370 blk_mq_submit_bio+0x199/0xcd0 block/blk-mq.c:2942 __submit_bio+0x11c/0x350 block/blk-core.c:595 __submit_bio_noacct_mq block/blk-core.c:674 [inline] submit_bio_noacct_nocheck+0x449/0x5e0 block/blk-core.c:703 submit_bio_noacct+0x75c/0x900 block/blk-core.c:802 submit_bio+0xb7/0xc0 block/blk-core.c:835 iomap_dio_submit_bio fs/iomap/direct-io.c:77 [inline] iomap_dio_bio_iter+0x954/0xb00 fs/iomap/direct-io.c:347 __iomap_dio_rw+0x8ac/0x10a0 fs/iomap/direct-io.c:575 iomap_dio_rw+0x40/0x90 fs/iomap/direct-io.c:665 ext4_dio_read_iter fs/ext4/file.c:94 [inline] ext4_file_read_iter+0x21c/0x2a0 fs/ext4/file.c:145 call_read_iter include/linux/fs.h:1866 [inline] copy_splice_read+0x26b/0x4b0 fs/splice.c:367 vfs_splice_read fs/splice.c:993 [inline] splice_direct_to_actor+0x2aa/0x690 fs/splice.c:1070 do_splice_direct+0x10d/0x190 fs/splice.c:1195 do_sendfile+0x3b6/0x9a0 fs/read_write.c:1254 __do_sys_sendfile64 fs/read_write.c:1322 [inline] __se_sys_sendfile64 fs/read_write.c:1308 [inline] __x64_sys_sendfile64+0x110/0x150 fs/read_write.c:1308 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd value changed: 0x00000000000170e2 -> 0x00000000000170e3 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 7884 Comm: syz-executor.2 Not tainted 6.4.0-syzkaller-04247-g3a8a670eeeaa #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 ==================================================================