================================================================== BUG: KCSAN: data-race in ps2_do_sendbyte / ps2_handle_ack write to 0xffff888103236840 of 8 bytes by interrupt on cpu 1: ps2_handle_ack+0x1b3/0x320 drivers/input/serio/libps2.c:444 atkbd_interrupt+0xa5b/0xc30 drivers/input/keyboard/atkbd.c:422 serio_interrupt+0x5d/0xe0 drivers/input/serio/serio.c:1001 i8042_interrupt+0x380/0x710 drivers/input/serio/i8042.c:606 __handle_irq_event_percpu+0x92/0x400 kernel/irq/handle.c:158 handle_irq_event_percpu kernel/irq/handle.c:193 [inline] handle_irq_event+0x60/0xf0 kernel/irq/handle.c:210 handle_edge_irq+0x17e/0x5a0 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+0x60/0x100 arch/x86/kernel/irq.c:250 common_interrupt+0x9a/0xc0 arch/x86/kernel/irq.c:240 asm_common_interrupt+0x22/0x40 arch_atomic64_read arch/x86/include/asm/atomic64_64.h:22 [inline] arch_atomic_long_read include/linux/atomic/atomic-long.h:29 [inline] atomic_long_read include/linux/atomic/atomic-instrumented.h:1266 [inline] find_watchpoint kernel/kcsan/core.c:129 [inline] check_access kernel/kcsan/core.c:726 [inline] __tsan_read8+0x3b/0x180 kernel/kcsan/core.c:1014 vm_normal_page+0x7f/0x1b0 mm/memory.c:662 copy_present_pte+0x67/0xa70 mm/memory.c:951 copy_pte_range+0x3ed/0xc50 mm/memory.c:1085 copy_pmd_range mm/memory.c:1171 [inline] copy_pud_range mm/memory.c:1208 [inline] copy_p4d_range mm/memory.c:1232 [inline] copy_page_range+0x5ea/0x8f0 mm/memory.c:1330 dup_mmap+0x6e0/0xa60 kernel/fork.c:699 dup_mm+0x7c/0x210 kernel/fork.c:1524 copy_mm+0xce/0x140 kernel/fork.c:1576 copy_process+0xdf8/0x2140 kernel/fork.c:2256 kernel_clone+0x163/0x5c0 kernel/fork.c:2673 __do_sys_clone kernel/fork.c:2807 [inline] __se_sys_clone kernel/fork.c:2791 [inline] __x64_sys_clone+0xc3/0xf0 kernel/fork.c:2791 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd read to 0xffff888103236840 of 8 bytes by task 1916 on cpu 0: ps2_do_sendbyte+0x1ae/0x380 drivers/input/serio/libps2.c:45 __ps2_command+0x35e/0x8c0 drivers/input/serio/libps2.c:273 ps2_command+0x51/0x90 drivers/input/serio/libps2.c:332 atkbd_set_leds+0xad/0x1b0 drivers/input/keyboard/atkbd.c:594 atkbd_event_work+0xb9/0x2e0 drivers/input/keyboard/atkbd.c:634 process_one_work+0x3d3/0x720 kernel/workqueue.c:2289 worker_thread+0x618/0xa70 kernel/workqueue.c:2436 kthread+0x1a9/0x1e0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 value changed: 0x0000000000000001 -> 0x0000000000000000 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 1916 Comm: kworker/0:7 Not tainted 5.19.0-syzkaller-13236-g426b4ca2d6a5-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022 Workqueue: events atkbd_event_work ==================================================================