================================================================== BUG: KCSAN: data-race in blk_stat_add / detach_if_pending read to 0xffff8881293e6d18 of 8 bytes by interrupt on cpu 1: blk_stat_is_active block/blk-stat.h:131 [inline] blk_stat_add+0xc9/0x290 block/blk-stat.c:65 __blk_mq_end_request+0x22d/0x270 block/blk-mq.c:549 scsi_end_request+0x20e/0x3e0 drivers/scsi/scsi_lib.c:613 scsi_io_completion+0x11d/0xc80 drivers/scsi/scsi_lib.c:963 scsi_finish_command+0x280/0x380 drivers/scsi/scsi.c:228 scsi_softirq_done+0x259/0x280 drivers/scsi/scsi_lib.c:1477 blk_done_softirq+0x1eb/0x250 block/blk-softirq.c:37 __do_softirq+0x115/0x33f kernel/softirq.c:292 invoke_softirq kernel/softirq.c:373 [inline] irq_exit+0xbb/0xe0 kernel/softirq.c:413 exiting_irq arch/x86/include/asm/apic.h:536 [inline] do_IRQ+0x81/0x130 arch/x86/kernel/irq.c:263 ret_from_intr+0x0/0x19 is_atomic kernel/kcsan/core.c:182 [inline] should_watch kernel/kcsan/core.c:211 [inline] check_access kernel/kcsan/core.c:465 [inline] __tsan_read8+0x8e/0x100 kernel/kcsan/core.c:596 copy_one_pte mm/memory.c:682 [inline] copy_pte_range mm/memory.c:823 [inline] copy_pmd_range mm/memory.c:874 [inline] copy_pud_range mm/memory.c:908 [inline] copy_p4d_range mm/memory.c:930 [inline] copy_page_range+0xbdb/0x1a80 mm/memory.c:992 dup_mmap kernel/fork.c:601 [inline] dup_mm+0x74a/0xba0 kernel/fork.c:1361 copy_mm kernel/fork.c:1417 [inline] copy_process+0x36f3/0x3b50 kernel/fork.c:2012 _do_fork+0xfe/0x6e0 kernel/fork.c:2366 __do_sys_clone kernel/fork.c:2521 [inline] __se_sys_clone kernel/fork.c:2502 [inline] __x64_sys_clone+0x12b/0x160 kernel/fork.c:2502 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 write to 0xffff8881293e6d18 of 8 bytes by task 7290 on cpu 0: __hlist_del include/linux/list.h:764 [inline] detach_timer kernel/time/timer.c:815 [inline] detach_if_pending+0xcd/0x290 kernel/time/timer.c:832 __mod_timer kernel/time/timer.c:1012 [inline] mod_timer+0x141/0x7a0 kernel/time/timer.c:1100 sk_reset_timer+0x2d/0x70 net/core/sock.c:2842 inet_csk_reset_xmit_timer include/net/inet_connection_sock.h:234 [inline] tcp_reset_xmit_timer include/net/tcp.h:1279 [inline] tcp_rearm_rto net/ipv4/tcp_input.c:3011 [inline] tcp_rearm_rto+0x1e7/0x2a0 net/ipv4/tcp_input.c:2987 tcp_event_new_data_sent+0x218/0x220 net/ipv4/tcp_output.c:77 tcp_write_xmit+0xa77/0x3120 net/ipv4/tcp_output.c:2447 tcp_push_one+0x95/0xb0 net/ipv4/tcp_output.c:2630 tcp_sendmsg_locked+0x11aa/0x1fb0 net/ipv4/tcp.c:1385 tcp_sendmsg+0x39/0x60 net/ipv4/tcp.c:1436 inet_sendmsg+0x6d/0x90 net/ipv4/af_inet.c:807 sock_sendmsg_nosec net/socket.c:637 [inline] sock_sendmsg+0x9f/0xc0 net/socket.c:657 sock_write_iter+0x16b/0x210 net/socket.c:989 call_write_iter include/linux/fs.h:1895 [inline] new_sync_write+0x388/0x4a0 fs/read_write.c:483 __vfs_write+0xb1/0xc0 fs/read_write.c:496 vfs_write fs/read_write.c:558 [inline] vfs_write+0x18a/0x390 fs/read_write.c:542 ksys_write+0xd5/0x1b0 fs/read_write.c:611 __do_sys_write fs/read_write.c:623 [inline] __se_sys_write fs/read_write.c:620 [inline] __x64_sys_write+0x4c/0x60 fs/read_write.c:620 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 7290 Comm: syz-executor.4 Not tainted 5.4.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================