================================================================== BUG: KCSAN: data-race in add_input_randomness / add_input_randomness write to 0xffffffff88be6aa4 of 1 bytes by interrupt on cpu 1: add_input_randomness+0x66/0x2a0 drivers/char/random.c:1210 input_handle_event+0x6a1/0xd30 drivers/input/input.c:373 input_event+0x7d/0xa0 drivers/input/input.c:441 hidinput_hid_event+0xa3e/0xb90 drivers/hid/hid-input.c:1397 hid_process_event+0x2f3/0x3c0 drivers/hid/hid-core.c:1519 hid_input_field drivers/hid/hid-core.c:1577 [inline] hid_report_raw_event+0xb96/0xd60 drivers/hid/hid-core.c:1783 hid_input_report+0x2c9/0x330 drivers/hid/hid-core.c:1850 hid_irq_in+0x2cb/0x3d0 drivers/hid/usbhid/hid-core.c:284 __usb_hcd_giveback_urb+0x219/0x290 drivers/usb/core/hcd.c:1650 usb_hcd_giveback_urb+0xae/0x210 drivers/usb/core/hcd.c:1716 dummy_timer+0x4d3/0x2390 drivers/usb/gadget/udc/dummy_hcd.c:1967 call_timer_fn+0x2e/0x240 kernel/time/timer.c:1410 expire_timers+0x116/0x260 kernel/time/timer.c:1455 __run_timers+0x338/0x3d0 kernel/time/timer.c:1747 run_timer_softirq+0x19/0x30 kernel/time/timer.c:1760 __do_softirq+0x12c/0x2b1 kernel/softirq.c:298 asm_call_irq_on_stack+0xf/0x20 __run_on_irqstack arch/x86/include/asm/irq_stack.h:26 [inline] run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:77 [inline] do_softirq_own_stack+0x32/0x40 arch/x86/kernel/irq_64.c:77 invoke_softirq kernel/softirq.c:393 [inline] __irq_exit_rcu+0xb2/0xc0 kernel/softirq.c:423 sysvec_apic_timer_interrupt+0x74/0x90 arch/x86/kernel/apic/apic.c:1091 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:631 native_restore_fl arch/x86/include/asm/irqflags.h:41 [inline] arch_local_irq_restore arch/x86/include/asm/irqflags.h:84 [inline] kcsan_setup_watchpoint+0x1ec/0x4d0 kernel/kcsan/core.c:591 tomoyo_check_path_acl+0x2c/0xe0 security/tomoyo/file.c:258 tomoyo_check_acl+0xcc/0x200 security/tomoyo/domain.c:175 tomoyo_path_permission security/tomoyo/file.c:586 [inline] tomoyo_path_perm+0x22f/0x330 security/tomoyo/file.c:838 tomoyo_path_unlink+0x43/0x60 security/tomoyo/tomoyo.c:150 security_path_unlink+0x82/0xd0 security/security.c:1101 do_unlinkat+0x231/0x4d0 fs/namei.c:3894 __do_sys_unlink fs/namei.c:3943 [inline] __se_sys_unlink fs/namei.c:3941 [inline] __x64_sys_unlink+0x2c/0x30 fs/namei.c:3941 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 read to 0xffffffff88be6aa4 of 1 bytes by interrupt on cpu 0: add_input_randomness+0x35/0x2a0 drivers/char/random.c:1207 input_handle_event+0x6a1/0xd30 drivers/input/input.c:373 input_event+0x7d/0xa0 drivers/input/input.c:441 hidinput_hid_event+0xa3e/0xb90 drivers/hid/hid-input.c:1397 hid_process_event+0x2f3/0x3c0 drivers/hid/hid-core.c:1519 hid_input_field drivers/hid/hid-core.c:1571 [inline] hid_report_raw_event+0xa73/0xd60 drivers/hid/hid-core.c:1783 hid_input_report+0x2c9/0x330 drivers/hid/hid-core.c:1850 hid_irq_in+0x2cb/0x3d0 drivers/hid/usbhid/hid-core.c:284 __usb_hcd_giveback_urb+0x219/0x290 drivers/usb/core/hcd.c:1650 usb_hcd_giveback_urb+0xae/0x210 drivers/usb/core/hcd.c:1716 dummy_timer+0x4d3/0x2390 drivers/usb/gadget/udc/dummy_hcd.c:1967 call_timer_fn+0x2e/0x240 kernel/time/timer.c:1410 expire_timers+0x116/0x260 kernel/time/timer.c:1455 __run_timers+0x338/0x3d0 kernel/time/timer.c:1747 run_timer_softirq+0x19/0x30 kernel/time/timer.c:1760 __do_softirq+0x12c/0x2b1 kernel/softirq.c:298 asm_call_irq_on_stack+0xf/0x20 __run_on_irqstack arch/x86/include/asm/irq_stack.h:26 [inline] run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:77 [inline] do_softirq_own_stack+0x32/0x40 arch/x86/kernel/irq_64.c:77 invoke_softirq kernel/softirq.c:393 [inline] __irq_exit_rcu+0xb2/0xc0 kernel/softirq.c:423 sysvec_apic_timer_interrupt+0x74/0x90 arch/x86/kernel/apic/apic.c:1091 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:631 native_restore_fl arch/x86/include/asm/irqflags.h:41 [inline] arch_local_irq_restore arch/x86/include/asm/irqflags.h:84 [inline] kcsan_setup_watchpoint+0x1ec/0x4d0 kernel/kcsan/core.c:591 tomoyo_domain_quota_is_ok+0x79/0x2d0 security/tomoyo/util.c:1054 tomoyo_supervisor+0x1f4/0xb20 security/tomoyo/common.c:2089 tomoyo_audit_path_log security/tomoyo/file.c:168 [inline] tomoyo_path_permission security/tomoyo/file.c:587 [inline] tomoyo_check_open_permission+0x1b0/0x370 security/tomoyo/file.c:777 tomoyo_file_open+0xd3/0xf0 security/tomoyo/tomoyo.c:313 security_file_open+0x3f/0x90 security/security.c:1575 do_dentry_open+0x22d/0x870 fs/open.c:804 vfs_open+0x43/0x50 fs/open.c:931 do_open fs/namei.c:3252 [inline] path_openat+0x1844/0x20a0 fs/namei.c:3369 do_filp_open+0xbd/0x1d0 fs/namei.c:3396 do_sys_openat2+0xa3/0x240 fs/open.c:1168 do_sys_open fs/open.c:1184 [inline] __do_sys_open fs/open.c:1192 [inline] __se_sys_open fs/open.c:1188 [inline] __x64_sys_open+0xe2/0x110 fs/open.c:1188 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 10135 Comm: systemd-udevd Not tainted 5.10.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================