================================================================== BUG: KCSAN: data-race in ps2_do_sendbyte / ps2_handle_ack write to 0xffff88810379c840 of 8 bytes by interrupt on cpu 1: ps2_handle_ack+0x1c5/0x330 drivers/input/serio/libps2.c:447 atkbd_interrupt+0xbe6/0xd80 drivers/input/keyboard/atkbd.c:424 serio_interrupt+0x61/0xe0 drivers/input/serio/serio.c:998 i8042_interrupt+0x3b3/0x780 drivers/input/serio/i8042.c:606 __handle_irq_event_percpu+0x91/0x490 kernel/irq/handle.c:158 handle_irq_event_percpu kernel/irq/handle.c:193 [inline] handle_irq_event+0x64/0xf0 kernel/irq/handle.c:210 handle_edge_irq+0x167/0x590 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+0x3c/0xb0 arch/x86/kernel/irq.c:250 common_interrupt+0x3d/0x90 arch/x86/kernel/irq.c:240 asm_common_interrupt+0x26/0x40 arch/x86/include/asm/idtentry.h:636 __preempt_count_dec_and_test arch/x86/include/asm/preempt.h:95 [inline] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline] _raw_spin_unlock_irqrestore+0x3d/0x50 kernel/locking/spinlock.c:194 spin_unlock_irqrestore include/linux/spinlock.h:405 [inline] __wake_up_common_lock kernel/sched/wait.c:140 [inline] __wake_up kernel/sched/wait.c:160 [inline] __wake_up_bit kernel/sched/wait_bit.c:126 [inline] wake_up_bit+0xda/0x110 kernel/sched/wait_bit.c:149 journal_end_buffer_io_sync+0x81/0xa0 fs/jbd2/commit.c:44 end_bio_bh_io_sync+0x73/0x90 fs/buffer.c:2703 bio_endio+0x36b/0x410 block/bio.c:1607 req_bio_endio block/blk-mq.c:795 [inline] blk_update_request+0x428/0x960 block/blk-mq.c:927 scsi_end_request+0x52/0x480 drivers/scsi/scsi_lib.c:538 scsi_io_completion+0x9f/0x200 drivers/scsi/scsi_lib.c:976 scsi_finish_command+0x1bb/0x1d0 drivers/scsi/scsi.c:198 scsi_complete+0xce/0x520 drivers/scsi/scsi_lib.c:1440 blk_complete_reqs block/blk-mq.c:1132 [inline] blk_done_softirq+0x73/0xa0 block/blk-mq.c:1137 __do_softirq+0xc1/0x265 kernel/softirq.c:571 invoke_softirq kernel/softirq.c:445 [inline] __irq_exit_rcu+0x57/0xa0 kernel/softirq.c:650 common_interrupt+0x7f/0x90 arch/x86/kernel/irq.c:240 asm_common_interrupt+0x26/0x40 arch/x86/include/asm/idtentry.h:636 is_atomic kernel/kcsan/core.c:260 [inline] should_watch kernel/kcsan/core.c:277 [inline] check_access kernel/kcsan/core.c:743 [inline] __tsan_read1+0xf3/0x180 kernel/kcsan/core.c:1013 memcmp+0x5b/0x80 lib/string.c:692 namecmp fs/proc/proc_sysctl.c:113 [inline] insert_entry fs/proc/proc_sysctl.c:172 [inline] insert_header+0x5e2/0x830 fs/proc/proc_sysctl.c:252 __register_sysctl_table+0xc0e/0xc80 fs/proc/proc_sysctl.c:1378 register_net_sysctl+0x19d/0x1b0 net/sysctl_net.c:169 __addrconf_sysctl_register+0x19f/0x290 net/ipv6/addrconf.c:7088 addrconf_init_net+0x327/0x460 net/ipv6/addrconf.c:7207 ops_init+0x1fc/0x2c0 net/core/net_namespace.c:135 setup_net+0x2b5/0x700 net/core/net_namespace.c:338 copy_net_ns+0x36c/0x500 net/core/net_namespace.c:490 create_new_namespaces+0x228/0x430 kernel/nsproxy.c:110 copy_namespaces+0x14d/0x1b0 kernel/nsproxy.c:179 copy_process+0xf65/0x2100 kernel/fork.c:2270 kernel_clone+0x169/0x560 kernel/fork.c:2682 __do_sys_clone kernel/fork.c:2823 [inline] __se_sys_clone kernel/fork.c:2807 [inline] __x64_sys_clone+0xdf/0x110 kernel/fork.c:2807 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd read to 0xffff88810379c840 of 8 bytes by task 886 on cpu 0: ps2_do_sendbyte+0x190/0x380 drivers/input/serio/libps2.c:46 __ps2_command+0x353/0x910 drivers/input/serio/libps2.c:274 ps2_command+0x54/0x90 drivers/input/serio/libps2.c:335 atkbd_set_repeat_rate drivers/input/keyboard/atkbd.c:585 [inline] atkbd_event_work+0x2c5/0x300 drivers/input/keyboard/atkbd.c:639 process_one_work+0x3e6/0x750 kernel/workqueue.c:2390 worker_thread+0x5f2/0xa10 kernel/workqueue.c:2537 kthread+0x1a6/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: 886 Comm: kworker/0:2 Not tainted 6.3.0-rc6-syzkaller-00034-ge62252bc55b6 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023 Workqueue: events atkbd_event_work ==================================================================