================================================================== BUG: KCSAN: data-race in handle_irq_event / synchronize_irq write to 0xffff8881000eb600 of 4 bytes by interrupt on cpu 0: irqd_clear kernel/irq/internals.h:225 [inline] handle_irq_event+0x12a/0x160 kernel/irq/handle.c:216 handle_edge_irq+0x17e/0x600 kernel/irq/chip.c:819 generic_handle_irq_desc include/linux/irqdesc.h:158 [inline] handle_irq arch/x86/kernel/irq.c:231 [inline] __common_interrupt+0x38/0xb0 arch/x86/kernel/irq.c:250 common_interrupt+0x73/0x90 arch/x86/kernel/irq.c:240 asm_common_interrupt+0x1e/0x40 arch/x86/include/asm/idtentry.h:623 _raw_spin_unlock_irqrestore+0x34/0x40 kernel/locking/spinlock.c:192 spin_unlock_irqrestore include/linux/spinlock.h:409 [inline] unlock_page_lruvec_irqrestore include/linux/memcontrol.h:1468 [inline] __pagevec_lru_add+0x21c/0x280 mm/swap.c:1015 lru_add_drain_cpu+0x6a/0x260 mm/swap.c:606 lru_add_drain+0x28/0x40 mm/swap.c:710 follow_page_pte mm/gup.c:494 [inline] follow_pmd_mask mm/gup.c:572 [inline] follow_pud_mask mm/gup.c:667 [inline] follow_p4d_mask mm/gup.c:693 [inline] follow_page_mask+0xdc8/0x1040 mm/gup.c:752 __get_user_pages+0x8ff/0xee0 mm/gup.c:1067 populate_vma_page_range mm/gup.c:1402 [inline] __mm_populate+0x24d/0x380 mm/gup.c:1450 mm_populate include/linux/mm.h:2582 [inline] __do_sys_mlockall+0x24c/0x2d0 mm/mlock.c:798 __se_sys_mlockall mm/mlock.c:774 [inline] __x64_sys_mlockall+0x1a/0x20 mm/mlock.c:774 do_syscall_64+0x34/0x50 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xae read to 0xffff8881000eb600 of 4 bytes by task 8918 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+0xc5/0x540 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:1709 [inline] uart_tty_port_shutdown+0xd6/0x1d0 drivers/tty/serial/serial_core.c:1581 tty_port_shutdown drivers/tty/tty_port.c:330 [inline] tty_port_close+0x166/0x210 drivers/tty/tty_port.c:636 uart_close+0x4c/0x110 drivers/tty/serial/serial_core.c:1562 tty_release+0x255/0xa10 drivers/tty/tty_io.c:1779 __fput+0x25b/0x4e0 fs/file_table.c:280 ____fput+0x11/0x20 fs/file_table.c:313 task_work_run+0xae/0x130 kernel/task_work.c:140 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop kernel/entry/common.c:174 [inline] exit_to_user_mode_prepare+0x151/0x170 kernel/entry/common.c:208 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline] syscall_exit_to_user_mode+0x20/0x40 kernel/entry/common.c:301 do_syscall_64+0x40/0x50 arch/x86/entry/common.c:56 entry_SYSCALL_64_after_hwframe+0x44/0xae Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 8918 Comm: syz-executor.4 Not tainted 5.12.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================