================================================================== BUG: KCSAN: data-race in ps2_do_sendbyte / ps2_handle_ack write to 0xffff888102476840 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 is_atomic kernel/kcsan/core.c:247 [inline] should_watch kernel/kcsan/core.c:275 [inline] check_access kernel/kcsan/core.c:741 [inline] __tsan_read8+0x11f/0x180 kernel/kcsan/core.c:1014 should_fail+0x2a/0x250 lib/fault-inject.c:122 should_fail_usercopy+0x16/0x20 lib/fault-inject-usercopy.c:37 _copy_from_user+0x1a/0xc0 lib/usercopy.c:14 copy_from_user include/linux/uaccess.h:152 [inline] input_event_from_user+0x116/0x1d0 drivers/input/input-compat.c:31 evdev_write+0x282/0x400 drivers/input/evdev.c:524 vfs_write+0x25c/0x760 fs/read_write.c:576 ksys_write+0xe8/0x1a0 fs/read_write.c:631 __do_sys_write fs/read_write.c:643 [inline] __se_sys_write fs/read_write.c:640 [inline] __x64_sys_write+0x3e/0x50 fs/read_write.c:640 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 0xffff888102476840 of 8 bytes by task 1921 on cpu 0: ps2_do_sendbyte+0x12e/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: 1921 Comm: kworker/0:8 Not tainted 6.0.0-rc2-syzkaller-00260-g89b749d8552d-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022 Workqueue: events atkbd_event_work ==================================================================