syzbot


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

Status: moderation: reported on 2025/03/08 03:23
Subsystems: input
[Documentation on labels]
Reported-by: syzbot+108502f3201f9b0ed5e1@syzkaller.appspotmail.com
First crash: 4d01h, last: 4d01h
Similar bugs (10)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in evdev_pass_values / evdev_read (9) input 2 271d 281d 0/28 auto-obsoleted due to no activity on 2024/07/18 19:14
upstream KCSAN: data-race in evdev_pass_values / evdev_read (6) input 5 795d 820d 0/28 auto-obsoleted due to no activity on 2023/02/12 16:10
upstream KCSAN: data-race in evdev_pass_values / evdev_read (5) input 1 863d 863d 0/28 auto-obsoleted due to no activity on 2022/12/04 22:10
upstream KCSAN: data-race in evdev_pass_values / evdev_read input 1 1681d 1681d 0/28 auto-closed as invalid on 2020/09/08 04:08
upstream KCSAN: data-race in evdev_pass_values / evdev_read (2) input 1 1434d 1434d 0/28 auto-closed as invalid on 2021/05/12 19:26
upstream KCSAN: data-race in evdev_pass_values / evdev_read (10) input 1 181d 181d 0/28 auto-obsoleted due to no activity on 2024/10/16 22:12
upstream KCSAN: data-race in evdev_pass_values / evdev_read (4) input 4 905d 945d 0/28 auto-obsoleted due to no activity on 2022/10/23 08:11
upstream KCSAN: data-race in evdev_pass_values / evdev_read (7) input 28 610d 683d 0/28 auto-obsoleted due to no activity on 2023/08/14 19:50
upstream KCSAN: data-race in evdev_pass_values / evdev_read (8) input 16 491d 458d 0/28 auto-obsoleted due to no activity on 2023/12/24 00:01
upstream KCSAN: data-race in evdev_pass_values / evdev_read (3) input 78 986d 1029d 0/28 auto-closed as invalid on 2022/08/03 23:33

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

write to 0xffff888104580808 of 4 bytes by task 13371 on cpu 0:
 __pass_event drivers/input/evdev.c:239 [inline]
 evdev_pass_values+0x3ac/0x510 drivers/input/evdev.c:278
 evdev_events+0x90/0xd0 drivers/input/evdev.c:306
 input_pass_values+0x11a/0x390 drivers/input/input.c:127
 input_event_dispose+0x232/0x300 drivers/input/input.c:341
 input_handle_event+0xac4/0xb00 drivers/input/input.c:369
 input_inject_event+0xd1/0x110 drivers/input/input.c:423
 evdev_write+0x33f/0x440 drivers/input/evdev.c:528
 vfs_write+0x27d/0x920 fs/read_write.c:677
 ksys_write+0xe8/0x1b0 fs/read_write.c:731
 __do_sys_write fs/read_write.c:742 [inline]
 __se_sys_write fs/read_write.c:739 [inline]
 __x64_sys_write+0x42/0x50 fs/read_write.c:739
 x64_sys_call+0x287e/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:2
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff888104580808 of 4 bytes by task 2985 on cpu 1:
 evdev_read+0x1c4/0x780 drivers/input/evdev.c:572
 vfs_read+0x19b/0x6f0 fs/read_write.c:563
 ksys_read+0xe8/0x1b0 fs/read_write.c:708
 __do_sys_read fs/read_write.c:717 [inline]
 __se_sys_read fs/read_write.c:715 [inline]
 __x64_sys_read+0x42/0x50 fs/read_write.c:715
 x64_sys_call+0x2874/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:1
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x00000003 -> 0x00000005

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 2985 Comm: acpid Not tainted 6.14.0-rc5-syzkaller-00214-g21e4543a2e2f #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/03/08 03:23 upstream 21e4543a2e2f 7e3bd60d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in evdev_pass_values / evdev_read
* Struck through repros no longer work on HEAD.