syzbot


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

Status: auto-obsoleted due to no activity on 2024/07/18 19:14
Subsystems: input
[Documentation on labels]
Reported-by: syzbot+2abd0ef237509f4d1b20@syzkaller.appspotmail.com
First crash: 71d, last: 43d
Similar bugs (8)
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 642d 655d 0/27 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 118d 118d 0/27 auto-obsoleted due to no activity on 2024/05/04 08:18
upstream KCSAN: data-race in evdev_pass_values / evdev_poll input 65 763d 1010d 0/27 auto-closed as invalid on 2022/07/29 11:48
upstream KCSAN: data-race in evdev_pass_values / evdev_poll (5) input 16 400d 433d 0/27 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 564d 588d 0/27 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 215d 229d 0/27 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 324d 343d 0/27 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 696d 698d 0/27 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 0xffff888104280008 of 4 bytes by task 23071 on cpu 1:
 __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 0xffff888104280008 of 4 bytes by task 2770 on cpu 0:
 evdev_poll+0xe4/0x120 drivers/input/evdev.c:623
 vfs_poll include/linux/poll.h:84 [inline]
 do_select+0x959/0xfa0 fs/select.c:538
 core_sys_select+0x362/0x530 fs/select.c:681
 do_pselect fs/select.c:763 [inline]
 __do_sys_pselect6 fs/select.c:804 [inline]
 __se_sys_pselect6+0x213/0x280 fs/select.c:795
 __x64_sys_pselect6+0x78/0x90 fs/select.c:795
 x64_sys_call+0x2731/0x2d70 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: 0x0000002f -> 0x00000031

Reported by Kernel Concurrency Sanitizer on:

Crashes (6):
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_poll
2024/06/05 02:13 upstream 32f88d65f01b e1e2c66e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in evdev_pass_values / evdev_poll
2024/05/30 04:24 upstream 4a4be1ad3a6e 34889ee3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in evdev_pass_values / evdev_poll
2024/05/28 13:13 upstream 2bfcfd584ff5 f550015e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in evdev_pass_values / evdev_poll
2024/05/18 06:17 upstream 7ee332c9f12b c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in evdev_pass_values / evdev_poll
2024/05/16 18:46 upstream 3c999d1ae3c7 c2e07261 .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.