================================================================== BUG: KCSAN: data-race in add_input_randomness / add_input_randomness write to 0xffffffff89c27474 of 1 bytes by interrupt on cpu 0: add_input_randomness+0x66/0x2c0 drivers/char/random.c:1210 input_handle_event+0x637/0xd70 drivers/input/input.c:373 input_event+0x7d/0xa0 drivers/input/input.c:441 hidinput_hid_event+0xa91/0xba0 drivers/hid/hid-input.c:1392 hid_process_event+0x2f3/0x3c0 drivers/hid/hid-core.c:1512 hid_input_field drivers/hid/hid-core.c:1556 [inline] hid_report_raw_event+0x8b2/0xbd0 drivers/hid/hid-core.c:1765 hid_input_report+0x2c9/0x330 drivers/hid/hid-core.c:1832 hid_irq_in+0x2cb/0x3d0 drivers/hid/usbhid/hid-core.c:284 __usb_hcd_giveback_urb+0x216/0x290 drivers/usb/core/hcd.c:1650 usb_hcd_giveback_urb+0xae/0x200 drivers/usb/core/hcd.c:1716 dummy_timer+0x513/0x2470 drivers/usb/gadget/udc/dummy_hcd.c:1967 call_timer_fn+0x30/0x2a0 kernel/time/timer.c:1416 expire_timers+0x116/0x290 kernel/time/timer.c:1461 __run_timers+0x443/0x500 kernel/time/timer.c:1792 run_timer_softirq+0x2e/0x60 kernel/time/timer.c:1805 __do_softirq+0x198/0x360 kernel/softirq.c:292 asm_call_on_stack+0xf/0x20 arch/x86/entry/entry_64.S:711 __run_on_irqstack arch/x86/include/asm/irq_stack.h:22 [inline] run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:48 [inline] do_softirq_own_stack+0x5d/0x80 arch/x86/kernel/irq_64.c:77 invoke_softirq kernel/softirq.c:387 [inline] __irq_exit_rcu+0x115/0x120 kernel/softirq.c:417 sysvec_apic_timer_interrupt+0xba/0xd0 arch/x86/kernel/apic/apic.c:1091 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:585 arch_local_irq_restore arch/x86/include/asm/paravirt.h:770 [inline] kcsan_setup_watchpoint+0x47c/0x4d0 kernel/kcsan/core.c:542 tomoyo_check_acl+0xad/0x220 security/tomoyo/domain.c:173 tomoyo_path_permission security/tomoyo/file.c:586 [inline] tomoyo_path_perm+0x22f/0x330 security/tomoyo/file.c:838 tomoyo_inode_getattr+0x18/0x20 security/tomoyo/tomoyo.c:123 security_inode_getattr+0x7f/0xd0 security/security.c:1278 vfs_getattr fs/stat.c:121 [inline] vfs_statx_fd fs/stat.c:151 [inline] vfs_fstat include/linux/fs.h:3313 [inline] __do_sys_newfstat fs/stat.c:398 [inline] __se_sys_newfstat+0x5a/0x510 fs/stat.c:395 __x64_sys_newfstat+0x2d/0x40 fs/stat.c:395 do_syscall_64+0x51/0xb0 arch/x86/entry/common.c:384 entry_SYSCALL_64_after_hwframe+0x44/0xa9 read to 0xffffffff89c27474 of 1 bytes by interrupt on cpu 1: add_input_randomness+0x35/0x2c0 drivers/char/random.c:1207 input_handle_event+0x637/0xd70 drivers/input/input.c:373 input_event+0x7d/0xa0 drivers/input/input.c:441 hidinput_hid_event+0xa91/0xba0 drivers/hid/hid-input.c:1392 hid_process_event+0x2f3/0x3c0 drivers/hid/hid-core.c:1512 hid_input_field drivers/hid/hid-core.c:1556 [inline] hid_report_raw_event+0x8b2/0xbd0 drivers/hid/hid-core.c:1765 hid_input_report+0x2c9/0x330 drivers/hid/hid-core.c:1832 hid_irq_in+0x2cb/0x3d0 drivers/hid/usbhid/hid-core.c:284 __usb_hcd_giveback_urb+0x216/0x290 drivers/usb/core/hcd.c:1650 usb_hcd_giveback_urb+0xae/0x200 drivers/usb/core/hcd.c:1716 dummy_timer+0x513/0x2470 drivers/usb/gadget/udc/dummy_hcd.c:1967 call_timer_fn+0x30/0x2a0 kernel/time/timer.c:1416 expire_timers+0x116/0x290 kernel/time/timer.c:1461 __run_timers+0x443/0x500 kernel/time/timer.c:1792 run_timer_softirq+0x2e/0x60 kernel/time/timer.c:1805 __do_softirq+0x198/0x360 kernel/softirq.c:292 asm_call_on_stack+0xf/0x20 arch/x86/entry/entry_64.S:711 __run_on_irqstack arch/x86/include/asm/irq_stack.h:22 [inline] run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:48 [inline] do_softirq_own_stack+0x5d/0x80 arch/x86/kernel/irq_64.c:77 invoke_softirq kernel/softirq.c:387 [inline] __irq_exit_rcu+0x115/0x120 kernel/softirq.c:417 sysvec_apic_timer_interrupt+0xba/0xd0 arch/x86/kernel/apic/apic.c:1091 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:585 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 9851 Comm: syz-executor.1 Not tainted 5.8.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================