syzbot


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

Status: auto-obsoleted due to no activity on 2022/11/27 08:01
Subsystems: input
[Documentation on labels]
First crash: 555d, last: 543d
Similar bugs (7)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in evdev_pass_values / evdev_poll (8) input 1 19d 19d 0/26 moderation: reported on 2024/03/30 08:18
upstream KCSAN: data-race in evdev_pass_values / evdev_poll input 65 664d 911d 0/26 auto-closed as invalid on 2022/07/29 11:48
upstream KCSAN: data-race in evdev_pass_values / evdev_poll (5) input 16 301d 334d 0/26 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 464d 489d 0/26 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 116d 129d 0/26 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 225d 244d 0/26 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 596d 599d 0/26 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 0xffff8881054da808 of 4 bytes by task 4237 on cpu 1:
 __pass_event drivers/input/evdev.c:239 [inline]
 evdev_pass_values+0x3b7/0x510 drivers/input/evdev.c:278
 evdev_events+0x91/0xd0 drivers/input/evdev.c:306
 input_to_handler drivers/input/input.c:127 [inline]
 input_pass_values+0x37a/0x8f0 drivers/input/input.c:159
 input_event_dispose+0x243/0x310 drivers/input/input.c:374
 input_handle_event+0x6a3/0xa70 drivers/input/input.c:402
 input_inject_event+0xbc/0xe0 drivers/input/input.c:461
 evdev_write+0x326/0x400 drivers/input/evdev.c:530
 vfs_write+0x25c/0x760 fs/read_write.c:582
 ksys_write+0xe8/0x1a0 fs/read_write.c:637
 __do_sys_write fs/read_write.c:649 [inline]
 __se_sys_write fs/read_write.c:646 [inline]
 __x64_sys_write+0x3e/0x50 fs/read_write.c:646
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff8881054da808 of 4 bytes by task 1416 on cpu 0:
 evdev_poll+0xdd/0x110 drivers/input/evdev.c:623
 vfs_poll include/linux/poll.h:88 [inline]
 do_select+0x951/0x1020 fs/select.c:538
 core_sys_select+0x368/0x520 fs/select.c:681
 do_pselect fs/select.c:763 [inline]
 __do_sys_pselect6+0x1f4/0x250 fs/select.c:804
 __se_sys_pselect6 fs/select.c:795 [inline]
 __x64_sys_pselect6+0x74/0x80 fs/select.c:795
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x00000006 -> 0x00000009

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 1416 Comm: acpid Not tainted 6.1.0-rc1-syzkaller-00249-g4da34b7d175d-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/11/2022
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/10/23 07:50 upstream 4da34b7d175d c0b80a55 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in evdev_pass_values / evdev_poll
2022/10/10 23:54 upstream e2302539dd4f 5bcf0c31 .config console log report info [disk image] [vmlinux] ci2-upstream-kcsan-gce KCSAN: data-race in evdev_pass_values / evdev_poll
* Struck through repros no longer work on HEAD.