================================================================== BUG: KCSAN: data-race in add_input_randomness / add_input_randomness write to 0xffffffff89c62b14 of 1 bytes by interrupt on cpu 0: add_input_randomness+0x66/0x2c0 drivers/char/random.c:1210 input_handle_event+0x6b3/0xd70 drivers/input/input.c:373 input_event+0x7d/0xa0 drivers/input/input.c:441 hidinput_hid_event+0xa4d/0xba0 drivers/hid/hid-input.c:1390 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+0x378/0x490 drivers/hid/usbhid/hid-core.c:302 __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:1413 expire_timers+0x116/0x290 kernel/time/timer.c:1458 __run_timers+0x348/0x3e0 kernel/time/timer.c:1755 run_timer_softirq+0x2e/0x60 kernel/time/timer.c:1768 __do_softirq+0x198/0x360 kernel/softirq.c:298 asm_call_on_stack+0xf/0x20 arch/x86/entry/entry_64.S:706 __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:393 [inline] __irq_exit_rcu+0x115/0x120 kernel/softirq.c:423 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:581 arch_local_irq_restore arch/x86/include/asm/paravirt.h:770 [inline] kcsan_setup_watchpoint+0x44b/0x4a0 kernel/kcsan/core.c:563 tomoyo_get_absolute_path security/tomoyo/realpath.c:105 [inline] tomoyo_realpath_from_path+0x286/0x3c0 security/tomoyo/realpath.c:276 tomoyo_get_realpath security/tomoyo/file.c:151 [inline] tomoyo_path_perm+0xc6/0x330 security/tomoyo/file.c:822 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+0x118/0x2b0 fs/stat.c:206 vfs_lstat include/linux/fs.h:3175 [inline] __do_sys_newlstat fs/stat.c:374 [inline] __se_sys_newlstat+0x46/0x250 fs/stat.c:368 __x64_sys_newlstat+0x2d/0x40 fs/stat.c:368 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 read to 0xffffffff89c62b14 of 1 bytes by interrupt on cpu 1: add_input_randomness+0x35/0x2c0 drivers/char/random.c:1207 input_handle_event+0x6b3/0xd70 drivers/input/input.c:373 input_event+0x7d/0xa0 drivers/input/input.c:441 hidinput_hid_event+0xa4d/0xba0 drivers/hid/hid-input.c:1390 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+0x378/0x490 drivers/hid/usbhid/hid-core.c:302 __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:1413 expire_timers+0x116/0x290 kernel/time/timer.c:1458 __run_timers+0x348/0x3e0 kernel/time/timer.c:1755 run_timer_softirq+0x2e/0x60 kernel/time/timer.c:1768 __do_softirq+0x198/0x360 kernel/softirq.c:298 asm_call_on_stack+0xf/0x20 arch/x86/entry/entry_64.S:706 __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:393 [inline] __irq_exit_rcu+0x115/0x120 kernel/softirq.c:423 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:581 arch_local_irq_restore arch/x86/include/asm/paravirt.h:770 [inline] kcsan_setup_watchpoint+0x44b/0x4a0 kernel/kcsan/core.c:563 putname fs/namei.c:255 [inline] filename_lookup+0x266/0x380 fs/namei.c:2376 user_path_at_empty+0x3b/0x50 fs/namei.c:2646 do_readlinkat+0x87/0x200 fs/stat.c:419 __do_sys_readlinkat fs/stat.c:446 [inline] __se_sys_readlinkat fs/stat.c:443 [inline] __x64_sys_readlinkat+0x4f/0x60 fs/stat.c:443 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: 1 PID: 10717 Comm: systemd-udevd Not tainted 5.8.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================