================================================================== BUG: KCSAN: data-race in blk_stat_add / blk_stat_timer_fn read to 0xffffe8ffffd2e2d8 of 8 bytes by interrupt on cpu 0: blk_rq_stat_sum block/blk-stat.c:35 [inline] blk_rq_stat_sum block/blk-stat.c:29 [inline] blk_stat_timer_fn+0x222/0x3d0 block/blk-stat.c:94 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 clear_page_erms+0x7/0x10 arch/x86/lib/clear_page_64.S:48 prep_new_page+0x5d/0x110 mm/page_alloc.c:2171 get_page_from_freelist+0x139a/0x1650 mm/page_alloc.c:3695 __alloc_pages_nodemask+0x15f/0x310 mm/page_alloc.c:4756 __alloc_pages include/linux/gfp.h:496 [inline] __alloc_pages_node include/linux/gfp.h:509 [inline] alloc_pages_vma+0x2a6/0x3a0 mm/mempolicy.c:2151 do_huge_pmd_wp_page+0x3b3/0x1a20 mm/huge_memory.c:1366 wp_huge_pmd mm/memory.c:3846 [inline] __handle_mm_fault+0x1cfd/0x2e00 mm/memory.c:4065 handle_mm_fault+0x21b/0x530 mm/memory.c:4112 faultin_page mm/gup.c:640 [inline] __get_user_pages+0x485/0x1130 mm/gup.c:851 populate_vma_page_range+0xe6/0x100 mm/gup.c:1235 __mm_populate+0x168/0x2a0 mm/gup.c:1283 mm_populate include/linux/mm.h:2347 [inline] __do_sys_mlockall mm/mlock.c:823 [inline] __se_sys_mlockall mm/mlock.c:799 [inline] __x64_sys_mlockall+0x2e3/0x320 mm/mlock.c:799 do_syscall_64+0xcc/0x3a0 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x44/0xa9 write to 0xffffe8ffffd2e2d8 of 8 bytes by interrupt on cpu 1: blk_rq_stat_add block/blk-stat.c:46 [inline] blk_stat_add+0x1c7/0x2c0 block/blk-stat.c:74 __blk_mq_end_request+0x22d/0x270 block/blk-mq.c:527 scsi_end_request+0x1dd/0x360 drivers/scsi/scsi_lib.c:610 scsi_io_completion+0x11d/0xc80 drivers/scsi/scsi_lib.c:960 scsi_finish_command+0x283/0x380 drivers/scsi/scsi.c:228 scsi_softirq_done+0x259/0x280 drivers/scsi/scsi_lib.c:1476 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/0x21 arch_local_irq_enable arch/x86/include/asm/paravirt.h:762 [inline] __raw_spin_unlock_irq include/linux/spinlock_api_smp.h:168 [inline] _raw_spin_unlock_irq+0x4e/0x80 kernel/locking/spinlock.c:199 finish_lock_switch kernel/sched/core.c:3124 [inline] finish_task_switch+0x7b/0x260 kernel/sched/core.c:3224 context_switch kernel/sched/core.c:3388 [inline] __schedule+0x30e/0x690 kernel/sched/core.c:4081 schedule+0x4a/0x100 kernel/sched/core.c:4155 freezable_schedule include/linux/freezer.h:172 [inline] do_nanosleep+0x138/0x320 kernel/time/hrtimer.c:1874 hrtimer_nanosleep+0x191/0x320 kernel/time/hrtimer.c:1927 __do_sys_nanosleep kernel/time/hrtimer.c:1961 [inline] __se_sys_nanosleep kernel/time/hrtimer.c:1948 [inline] __x64_sys_nanosleep+0x106/0x150 kernel/time/hrtimer.c:1948 do_syscall_64+0xcc/0x3a0 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 29612 Comm: syz-executor.3 Not tainted 5.5.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================