================================================================== BUG: KCSAN: data-race in blk_stat_add / blk_stat_timer_fn write to 0xffffe8ffffc2dd28 of 8 bytes by interrupt on cpu 1: blk_rq_stat_init block/blk-stat.c:23 [inline] blk_stat_timer_fn+0x2ce/0x3d0 block/blk-stat.c:95 call_timer_fn+0x5f/0x2f0 kernel/time/timer.c:1404 expire_timers kernel/time/timer.c:1449 [inline] __run_timers kernel/time/timer.c:1773 [inline] __run_timers kernel/time/timer.c:1740 [inline] run_timer_softirq+0xc0c/0xcd0 kernel/time/timer.c:1786 __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] smp_apic_timer_interrupt+0xe6/0x280 arch/x86/kernel/apic/apic.c:1137 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:829 arch_atomic64_cmpxchg arch/x86/include/asm/atomic64_64.h:180 [inline] atomic64_cmpxchg include/asm-generic/atomic-instrumented.h:1478 [inline] atomic_long_cmpxchg_release include/asm-generic/atomic-long.h:425 [inline] __mutex_unlock_fast kernel/locking/mutex.c:181 [inline] mutex_unlock+0x26/0x50 kernel/locking/mutex.c:740 unix_dgram_recvmsg+0x113/0xbf0 net/unix/af_unix.c:2066 unix_seqpacket_recvmsg+0x6a/0x90 net/unix/af_unix.c:2027 sock_recvmsg_nosec net/socket.c:873 [inline] ____sys_recvmsg+0x387/0x3a0 net/socket.c:2551 ___sys_recvmsg+0xb2/0x100 net/socket.c:2595 do_recvmmsg+0x19a/0x5c0 net/socket.c:2693 __sys_recvmmsg+0x1ef/0x200 net/socket.c:2772 __do_sys_recvmmsg net/socket.c:2795 [inline] __se_sys_recvmmsg net/socket.c:2788 [inline] __x64_sys_recvmmsg+0x89/0xb0 net/socket.c:2788 do_syscall_64+0xcc/0x3a0 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x44/0xa9 read to 0xffffe8ffffc2dd28 of 8 bytes by interrupt on cpu 0: blk_rq_stat_add block/blk-stat.c:45 [inline] blk_stat_add+0x180/0x2c0 block/blk-stat.c:74 __blk_mq_end_request block/blk-mq.c:527 [inline] blk_mq_end_request+0x256/0x2b0 block/blk-mq.c:548 end_cmd drivers/block/null_blk_main.c:648 [inline] end_cmd+0xa9/0x1a0 drivers/block/null_blk_main.c:642 null_complete_rq+0x22/0x30 drivers/block/null_blk_main.c:675 blk_done_softirq+0x1eb/0x250 block/blk-softirq.c:37 __do_softirq+0x115/0x33f kernel/softirq.c:292 run_ksoftirqd+0x46/0x60 kernel/softirq.c:603 smpboot_thread_fn+0x37d/0x4a0 kernel/smpboot.c:165 kthread+0x1d4/0x200 drivers/block/aoe/aoecmd.c:1253 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:352 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 9 Comm: ksoftirqd/0 Not tainted 5.5.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================