================================================================== BUG: KCSAN: data-race in handle_irq_event / synchronize_irq read-write to 0xffff888100142600 of 4 bytes by interrupt on cpu 0: irqd_clear kernel/irq/internals.h:225 [inline] handle_irq_event+0xf3/0x120 kernel/irq/handle.c:216 handle_edge_irq+0x16e/0x590 kernel/irq/chip.c:819 asm_call_irq_on_stack+0xf/0x20 __run_irq_on_irqstack arch/x86/include/asm/irq_stack.h:48 [inline] run_irq_on_irqstack_cond arch/x86/include/asm/irq_stack.h:101 [inline] handle_irq arch/x86/kernel/irq.c:230 [inline] __common_interrupt arch/x86/kernel/irq.c:249 [inline] common_interrupt+0x8e/0x130 arch/x86/kernel/irq.c:239 asm_common_interrupt+0x1e/0x40 arch/x86/include/asm/idtentry.h:622 native_restore_fl arch/x86/include/asm/irqflags.h:41 [inline] arch_local_irq_restore arch/x86/include/asm/irqflags.h:84 [inline] kcsan_setup_watchpoint+0x1ec/0x4d0 kernel/kcsan/core.c:591 __tlb_remove_page_size+0x53/0x160 mm/mmu_gather.c:82 __tlb_remove_page include/asm-generic/tlb.h:438 [inline] zap_pte_range+0x65f/0x13c0 mm/memory.c:1256 zap_pmd_range mm/memory.c:1357 [inline] zap_pud_range mm/memory.c:1386 [inline] zap_p4d_range mm/memory.c:1407 [inline] unmap_page_range+0x560/0x660 mm/memory.c:1428 unmap_single_vma+0x157/0x210 mm/memory.c:1473 unmap_vmas+0xbf/0x150 mm/memory.c:1505 exit_mmap+0x1c7/0x3b0 mm/mmap.c:3222 __mmput+0xa2/0x220 kernel/fork.c:1079 mmput+0x38/0x40 kernel/fork.c:1100 exit_mm+0x307/0x370 kernel/exit.c:486 do_exit+0x3c8/0x1630 kernel/exit.c:796 do_group_exit+0xc8/0x170 kernel/exit.c:906 get_signal+0xf9b/0x1510 kernel/signal.c:2758 arch_do_signal+0x25/0x260 arch/x86/kernel/signal.c:811 exit_to_user_mode_loop kernel/entry/common.c:161 [inline] exit_to_user_mode_prepare+0xde/0x170 kernel/entry/common.c:191 syscall_exit_to_user_mode+0x16/0x30 kernel/entry/common.c:266 do_syscall_64+0x45/0x80 arch/x86/entry/common.c:56 entry_SYSCALL_64_after_hwframe+0x44/0xa9 read to 0xffff888100142600 of 4 bytes by task 20563 on cpu 1: irqd_irq_inprogress include/linux/irq.h:354 [inline] __synchronize_hardirq kernel/irq/manage.c:51 [inline] synchronize_irq+0xa6/0x2e0 kernel/irq/manage.c:132 serial8250_do_shutdown+0xbb/0x400 drivers/tty/serial/8250/8250_port.c:2447 serial8250_shutdown+0x37/0x40 drivers/tty/serial/8250/8250_port.c:2493 uart_port_shutdown drivers/tty/serial/serial_core.c:1706 [inline] uart_tty_port_shutdown+0xb9/0x1b0 drivers/tty/serial/serial_core.c:1578 tty_port_shutdown drivers/tty/tty_port.c:330 [inline] tty_port_close+0x166/0x210 drivers/tty/tty_port.c:636 uart_close+0x4a/0xd0 drivers/tty/serial/serial_core.c:1559 tty_release+0x255/0x9f0 drivers/tty/tty_io.c:1681 __fput+0x243/0x4d0 fs/file_table.c:281 ____fput+0x11/0x20 fs/file_table.c:314 task_work_run+0x8e/0x110 kernel/task_work.c:151 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_user_mode_loop kernel/entry/common.c:164 [inline] exit_to_user_mode_prepare+0x13c/0x170 kernel/entry/common.c:191 syscall_exit_to_user_mode+0x16/0x30 kernel/entry/common.c:266 do_syscall_64+0x45/0x80 arch/x86/entry/common.c:56 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 20563 Comm: syz-executor.0 Not tainted 5.10.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================