================================================================== BUG: KCSAN: data-race in ps2_do_sendbyte / ps2_handle_ack write to 0xffff88810328f840 of 8 bytes by interrupt on cpu 1: ps2_handle_ack+0x1b3/0x320 drivers/input/serio/libps2.c:447 atkbd_interrupt+0xa5b/0xc30 drivers/input/keyboard/atkbd.c:424 serio_interrupt+0x5d/0xe0 drivers/input/serio/serio.c:998 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/x86/include/asm/idtentry.h:640 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:131 [inline] check_access kernel/kcsan/core.c:728 [inline] __tsan_read8+0x28/0x180 kernel/kcsan/core.c:1016 insert_entry fs/proc/proc_sysctl.c:168 [inline] insert_header+0x5ba/0x8e0 fs/proc/proc_sysctl.c:252 __register_sysctl_table+0xc77/0xce0 fs/proc/proc_sysctl.c:1372 register_net_sysctl+0x1b1/0x1c0 net/sysctl_net.c:169 __addrconf_sysctl_register+0x1bc/0x2b0 net/ipv6/addrconf.c:7083 addrconf_sysctl_register+0xd8/0x110 net/ipv6/addrconf.c:7130 ipv6_add_dev+0x8c9/0xa90 net/ipv6/addrconf.c:450 addrconf_notify+0x3a2/0x9b0 net/ipv6/addrconf.c:3528 notifier_call_chain kernel/notifier.c:87 [inline] raw_notifier_call_chain+0x53/0xb0 kernel/notifier.c:455 call_netdevice_notifiers_info net/core/dev.c:1944 [inline] call_netdevice_notifiers_extack net/core/dev.c:1982 [inline] call_netdevice_notifiers+0xb8/0x120 net/core/dev.c:1996 register_netdevice+0xca3/0xe10 net/core/dev.c:10078 __ip_tunnel_create+0x1c5/0x260 net/ipv4/ip_tunnel.c:267 ip_tunnel_init_net+0x18e/0x3d0 net/ipv4/ip_tunnel.c:1073 erspan_init_net+0x31/0x40 net/ipv4/ip_gre.c:1709 ops_init+0x201/0x2c0 net/core/net_namespace.c:135 setup_net+0x39b/0x8e0 net/core/net_namespace.c:333 copy_net_ns+0x29f/0x450 net/core/net_namespace.c:483 create_new_namespaces+0x22c/0x450 kernel/nsproxy.c:110 copy_namespaces+0x149/0x1a0 kernel/nsproxy.c:179 copy_process+0xda6/0x2090 kernel/fork.c:2269 kernel_clone+0x166/0x550 kernel/fork.c:2681 __do_sys_clone kernel/fork.c:2822 [inline] __se_sys_clone kernel/fork.c:2806 [inline] __x64_sys_clone+0xc3/0xf0 kernel/fork.c:2806 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 0xffff88810328f840 of 8 bytes by task 35 on cpu 0: ps2_do_sendbyte+0x12e/0x380 drivers/input/serio/libps2.c:46 __ps2_command+0x35e/0x8c0 drivers/input/serio/libps2.c:274 ps2_command+0x51/0x90 drivers/input/serio/libps2.c:335 atkbd_set_repeat_rate drivers/input/keyboard/atkbd.c:585 [inline] atkbd_event_work+0x2a8/0x2e0 drivers/input/keyboard/atkbd.c:639 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 arch/x86/entry/entry_64.S:308 value changed: 0x0000000000000001 -> 0x0000000000000000 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 35 Comm: kworker/0:1 Not tainted 6.2.0-rc6-syzkaller-00011-gc0b67534c95c-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 Workqueue: events atkbd_event_work ==================================================================