================================================================== BUG: KCSAN: data-race in blk_mq_run_hw_queue / blk_mq_sched_insert_request read to 0xffff88812a55b410 of 8 bytes by interrupt on cpu 1: list_empty_careful include/linux/list.h:287 [inline] blk_mq_hctx_has_pending block/blk-mq.c:69 [inline] blk_mq_run_hw_queue+0x10e/0x1c0 block/blk-mq.c:1469 blk_mq_run_hw_queues+0xac/0xf0 block/blk-mq.c:1486 scsi_end_request+0x342/0x360 drivers/scsi/scsi_lib.c:616 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 preempt_count arch/x86/include/asm/preempt.h:26 [inline] check_kcov_mode kernel/kcov.c:153 [inline] __sanitizer_cov_trace_pc+0x14/0x50 kernel/kcov.c:187 constant_test_bit+0x12/0x30 arch/x86/include/asm/bitops.h:211 test_bit include/asm-generic/bitops/instrumented-non-atomic.h:119 [inline] PageSwapBacked include/linux/page-flags.h:340 [inline] mm_counter_file include/linux/mm.h:1657 [inline] mm_counter include/linux/mm.h:1666 [inline] zap_pte_range mm/memory.c:1079 [inline] zap_pmd_range mm/memory.c:1184 [inline] zap_pud_range mm/memory.c:1213 [inline] zap_p4d_range mm/memory.c:1234 [inline] unmap_page_range+0xadc/0x1940 mm/memory.c:1255 unmap_single_vma+0x144/0x200 mm/memory.c:1300 unmap_vmas+0xda/0x1a0 mm/memory.c:1332 exit_mmap+0x13e/0x300 mm/mmap.c:3140 __mmput kernel/fork.c:1082 [inline] mmput+0xea/0x280 kernel/fork.c:1103 exit_mm kernel/exit.c:485 [inline] do_exit+0x4ac/0x18c0 kernel/exit.c:784 do_group_exit+0xb4/0x1c0 kernel/exit.c:895 get_signal+0x2a2/0x1320 kernel/signal.c:2734 do_signal+0x2f/0x6c0 arch/x86/kernel/signal.c:815 exit_to_usermode_loop+0x250/0x2c0 arch/x86/entry/common.c:160 prepare_exit_to_usermode arch/x86/entry/common.c:195 [inline] syscall_return_slowpath arch/x86/entry/common.c:278 [inline] do_syscall_64+0x384/0x3a0 arch/x86/entry/common.c:304 entry_SYSCALL_64_after_hwframe+0x44/0xa9 write to 0xffff88812a55b410 of 8 bytes by task 2497 on cpu 0: __list_add include/linux/list.h:63 [inline] list_add include/linux/list.h:79 [inline] blk_mq_sched_bypass_insert block/blk-mq-sched.c:367 [inline] blk_mq_sched_insert_request+0x2fd/0x3f0 block/blk-mq-sched.c:394 blk_mq_requeue_work+0x370/0x460 block/blk-mq.c:738 process_one_work+0x3d4/0x890 kernel/workqueue.c:2264 worker_thread+0xa0/0x800 kernel/workqueue.c:2410 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: 2497 Comm: kworker/0:1H Not tainted 5.5.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: kblockd blk_mq_requeue_work ==================================================================