syzbot


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

Status: moderation: reported on 2024/06/03 12:41
Subsystems: input
[Documentation on labels]
Reported-by: syzbot+182e3fc493685d579f0d@syzkaller.appspotmail.com
First crash: 15d, last: 4d18h
Similar bugs (8)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in evdev_pass_values / evdev_read (6) input 5 528d 554d 0/27 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 596d 596d 0/27 auto-obsoleted due to no activity on 2022/12/04 22:10
upstream KCSAN: data-race in evdev_pass_values / evdev_read input 1 1414d 1414d 0/27 auto-closed as invalid on 2020/09/08 04:08
upstream KCSAN: data-race in evdev_pass_values / evdev_read (2) input 1 1167d 1167d 0/27 auto-closed as invalid on 2021/05/12 19:26
upstream KCSAN: data-race in evdev_pass_values / evdev_read (4) input 4 639d 678d 0/27 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 343d 416d 0/27 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 224d 191d 0/27 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 719d 763d 0/27 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 0xffff888103ff6008 of 4 bytes by task 32625 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_to_handler drivers/input/input.c:129 [inline]
 input_pass_values+0x309/0x790 drivers/input/input.c:161
 input_event_dispose+0x251/0x320 drivers/input/input.c:378
 input_handle_event+0xac4/0xb00 drivers/input/input.c:406
 input_inject_event+0xd1/0x100 drivers/input/input.c:465
 evdev_write+0x334/0x420 drivers/input/evdev.c:530
 vfs_write+0x28b/0x900 fs/read_write.c:588
 ksys_write+0xeb/0x1b0 fs/read_write.c:643
 __do_sys_write fs/read_write.c:655 [inline]
 __se_sys_write fs/read_write.c:652 [inline]
 __x64_sys_write+0x42/0x50 fs/read_write.c:652
 x64_sys_call+0x27ef/0x2d70 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 0xffff888103ff6008 of 4 bytes by task 2769 on cpu 1:
 evdev_read+0x1ca/0x780 drivers/input/evdev.c:574
 vfs_read+0x1a2/0x6e0 fs/read_write.c:474
 ksys_read+0xeb/0x1b0 fs/read_write.c:619
 __do_sys_read fs/read_write.c:629 [inline]
 __se_sys_read fs/read_write.c:627 [inline]
 __x64_sys_read+0x42/0x50 fs/read_write.c:627
 x64_sys_call+0x27e5/0x2d70 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: 0x00000004 -> 0x00000008

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 2769 Comm: acpid Not tainted 6.10.0-rc3-syzkaller-00044-g2ccbdf43d5e7 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/06/13 19:13 upstream 2ccbdf43d5e7 a9616ff5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in evdev_pass_values / evdev_read
2024/06/03 12:40 upstream c3f38fa61af7 0aba2352 .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.