syzbot


KCSAN: data-race in evdev_pass_values / evdev_poll (11)

Status: moderation: reported on 2025/05/11 22:28
Subsystems: input
[Documentation on labels]
Reported-by: syzbot+52f43bdce2ef8a5618d3@syzkaller.appspotmail.com
First crash: 5d06h, last: 5d06h
Similar bugs (10)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in evdev_pass_values / evdev_poll (10) input 2 144d 146d 0/28 auto-obsoleted due to no activity on 2025/02/17 08:57
upstream KCSAN: data-race in evdev_pass_values / evdev_poll (3) input 2 936d 949d 0/28 auto-obsoleted due to no activity on 2022/11/27 08:01
upstream KCSAN: data-race in evdev_pass_values / evdev_poll (8) input 1 412d 412d 0/28 auto-obsoleted due to no activity on 2024/05/04 08:18
upstream KCSAN: data-race in evdev_pass_values / evdev_poll (9) input 6 337d 365d 0/28 auto-obsoleted due to no activity on 2024/07/18 19:14
upstream KCSAN: data-race in evdev_pass_values / evdev_poll input 65 1057d 1304d 0/28 auto-closed as invalid on 2022/07/29 11:48
upstream KCSAN: data-race in evdev_pass_values / evdev_poll (5) input 16 695d 727d 0/28 auto-obsoleted due to no activity on 2023/07/27 03:31
upstream KCSAN: data-race in evdev_pass_values / evdev_poll (4) input 7 858d 882d 0/28 auto-obsoleted due to no activity on 2023/03/10 09:08
upstream KCSAN: data-race in evdev_pass_values / evdev_poll (7) input 5 510d 523d 0/28 auto-obsoleted due to no activity on 2024/01/28 04:16
upstream KCSAN: data-race in evdev_pass_values / evdev_poll (6) input 5 618d 637d 0/28 auto-obsoleted due to no activity on 2023/10/11 10:42
upstream KCSAN: data-race in evdev_pass_values / evdev_poll (2) input 2 990d 992d 0/28 auto-closed as invalid on 2022/10/04 21:56

Sample crash report:
==================================================================
BUG: KCSAN: data-race in evdev_pass_values / evdev_poll

write to 0xffff8881034b4008 of 4 bytes by task 4858 on cpu 1:
 __pass_event drivers/input/evdev.c:239 [inline]
 evdev_pass_values+0x3d4/0x510 drivers/input/evdev.c:278
 evdev_events+0x8e/0xd0 drivers/input/evdev.c:306
 input_pass_values+0x120/0x390 drivers/input/input.c:127
 input_event_dispose+0x248/0x320 drivers/input/input.c:341
 input_handle_event+0x9e8/0xa20 drivers/input/input.c:369
 input_inject_event+0xba/0xf0 drivers/input/input.c:423
 evdev_write+0x1fa/0x290 drivers/input/evdev.c:528
 vfs_write+0x266/0x8d0 fs/read_write.c:682
 ksys_write+0xda/0x1a0 fs/read_write.c:736
 __do_sys_write fs/read_write.c:747 [inline]
 __se_sys_write fs/read_write.c:744 [inline]
 __x64_sys_write+0x40/0x50 fs/read_write.c:744
 x64_sys_call+0x2cdd/0x2fb0 arch/x86/include/generated/asm/syscalls_64.h:2
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xd0/0x1a0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff8881034b4008 of 4 bytes by task 2990 on cpu 0:
 evdev_poll+0xc4/0x100 drivers/input/evdev.c:621
 vfs_poll include/linux/poll.h:82 [inline]
 select_poll_one fs/select.c:480 [inline]
 do_select+0x8ee/0xf40 fs/select.c:536
 core_sys_select+0x3b2/0x600 fs/select.c:677
 do_pselect fs/select.c:759 [inline]
 __do_sys_pselect6 fs/select.c:802 [inline]
 __se_sys_pselect6+0x216/0x280 fs/select.c:793
 __x64_sys_pselect6+0x78/0x90 fs/select.c:793
 x64_sys_call+0x1caa/0x2fb0 arch/x86/include/generated/asm/syscalls_64.h:271
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xd0/0x1a0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x00000002 -> 0x00000004

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 2990 Comm: acpid Not tainted 6.15.0-rc5-syzkaller-00353-gcd802e7e5f1e #0 PREEMPT(voluntary) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/2025
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/05/11 22:27 upstream cd802e7e5f1e 77908e5f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in evdev_pass_values / evdev_poll
* Struck through repros no longer work on HEAD.