syzbot


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

Status: moderation: reported on 2024/03/30 08:18
Subsystems: input
[Documentation on labels]
Reported-by: syzbot+97eed190b9be13f2fb78@syzkaller.appspotmail.com
First crash: 22d, last: 22d
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 (3) input 2 546d 558d 0/26 auto-obsoleted due to no activity on 2022/11/27 08:01
upstream KCSAN: data-race in evdev_pass_values / evdev_poll input 65 666d 914d 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 304d 336d 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 467d 492d 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 119d 132d 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 227d 246d 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 599d 601d 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 0xffff888103dba808 of 4 bytes by task 8916 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/0x8e0 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
 do_syscall_64+0xd3/0x1d0
 entry_SYSCALL_64_after_hwframe+0x72/0x7a

read to 0xffff888103dba808 of 4 bytes by task 2765 on cpu 1:
 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
 do_syscall_64+0xd3/0x1d0
 entry_SYSCALL_64_after_hwframe+0x72/0x7a

value changed: 0x00000007 -> 0x00000009

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 2765 Comm: acpid Tainted: G        W          6.9.0-rc1-syzkaller-00206-g4535e1a4174c #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/03/30 08:17 upstream 4535e1a4174c 6baf5069 .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.