================================================================== BUG: KCSAN: data-race in ps2_do_sendbyte / ps2_handle_ack write to 0xffff888103bd3840 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:817 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 get_current arch/x86/include/asm/current.h:15 [inline] get_ctx kernel/kcsan/core.c:204 [inline] check_access kernel/kcsan/core.c:739 [inline] __tsan_read1+0x112/0x180 kernel/kcsan/core.c:1011 strcmp+0x23/0x50 lib/string.c:347 kernfs_dop_revalidate+0x1fc/0x2d0 fs/kernfs/dir.c:1109 lookup_fast+0x210/0x360 walk_component+0x6b/0x280 fs/namei.c:2010 link_path_walk+0x459/0x7a0 path_lookupat+0x7b/0x2b0 fs/namei.c:2492 filename_lookup+0x130/0x310 fs/namei.c:2522 user_path_at_empty+0x3e/0x110 fs/namei.c:2895 do_readlinkat+0x98/0x210 fs/stat.c:456 __do_sys_readlink fs/stat.c:489 [inline] __se_sys_readlink fs/stat.c:486 [inline] __x64_sys_readlink+0x43/0x50 fs/stat.c:486 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 0xffff888103bd3840 of 8 bytes by task 1920 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: 1920 Comm: kworker/0:4 Not tainted 5.19.0-syzkaller-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022 Workqueue: events atkbd_event_work ==================================================================