syzbot


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

Status: moderation: reported on 2024/12/21 21:19
Subsystems: input
[Documentation on labels]
Reported-by: syzbot+2c78d0298bd8bcab1670@syzkaller.appspotmail.com
First crash: 13h41m, last: 13h41m
Similar bugs (9)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in evdev_pass_values / evdev_poll (3) input 2 791d 803d 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 267d 267d 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 191d 219d 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 911d 1159d 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 549d 581d 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 712d 737d 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 364d 377d 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 473d 491d 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 844d 846d 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 0xffff8881045d6008 of 4 bytes by task 6955 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:126
 input_event_dispose+0x232/0x300 drivers/input/input.c:341
 input_handle_event+0xac4/0xb00 drivers/input/input.c:369
 input_inject_event+0xd1/0x100 drivers/input/input.c:428
 evdev_write+0x33f/0x440 drivers/input/evdev.c:528
 vfs_write+0x281/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 0xffff8881045d6008 of 4 bytes by task 2983 on cpu 1:
 evdev_poll+0xde/0x120 drivers/input/evdev.c:621
 vfs_poll include/linux/poll.h:84 [inline]
 select_poll_one fs/select.c:480 [inline]
 do_select+0x8d4/0xfc0 fs/select.c:536
 core_sys_select+0x362/0x530 fs/select.c:677
 do_pselect fs/select.c:759 [inline]
 __do_sys_pselect6 fs/select.c:802 [inline]
 __se_sys_pselect6+0x20d/0x270 fs/select.c:793
 __x64_sys_pselect6+0x78/0x90 fs/select.c:793
 x64_sys_call+0x2ac2/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:271
 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: 0x0000000e -> 0x00000010

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 2983 Comm: acpid Not tainted 6.13.0-rc3-syzkaller-00209-g499551201b5f #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/12/21 21:18 upstream 499551201b5f d7f584ee .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.