syzbot


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

Status: auto-closed as invalid on 2021/05/12 19:26
Subsystems: input
[Documentation on labels]
First crash: 1113d, last: 1113d
Similar bugs (7)
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 473d 499d 0/26 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 541d 541d 0/26 auto-obsoleted due to no activity on 2022/12/04 22:10
upstream KCSAN: data-race in evdev_pass_values / evdev_read input 1 1359d 1359d 0/26 auto-closed as invalid on 2020/09/08 04:08
upstream KCSAN: data-race in evdev_pass_values / evdev_read (4) input 4 584d 623d 0/26 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 289d 362d 0/26 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 170d 136d 0/26 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 664d 708d 0/26 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 0xffff88800c5b7808 of 4 bytes by task 12136 on cpu 1:
 __pass_event drivers/input/evdev.c:239 [inline]
 evdev_pass_values+0x402/0x550 drivers/input/evdev.c:278
 evdev_events+0x91/0xd0 drivers/input/evdev.c:306
 input_to_handler drivers/input/input.c:115 [inline]
 input_pass_values+0x37a/0x8f0 drivers/input/input.c:145
 input_handle_event+0x8d3/0xd50 drivers/input/input.c:404
 input_inject_event+0xbc/0xe0 drivers/input/input.c:476
 evdev_write+0x317/0x3f0 drivers/input/evdev.c:530
 vfs_write+0x223/0x7e0 fs/read_write.c:603
 ksys_write+0xce/0x180 fs/read_write.c:658
 __do_sys_write fs/read_write.c:670 [inline]
 __se_sys_write fs/read_write.c:667 [inline]
 __x64_sys_write+0x3e/0x50 fs/read_write.c:667
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff88800c5b7808 of 4 bytes by task 12127 on cpu 0:
 evdev_read+0x1a0/0x6f0 drivers/input/evdev.c:574
 do_loop_readv_writev fs/read_write.c:761 [inline]
 do_iter_read+0x3b1/0x4b0 fs/read_write.c:803
 vfs_readv fs/read_write.c:921 [inline]
 do_readv+0x13d/0x290 fs/read_write.c:958
 __do_sys_readv fs/read_write.c:1049 [inline]
 __se_sys_readv fs/read_write.c:1046 [inline]
 __x64_sys_readv+0x41/0x50 fs/read_write.c:1046
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 12127 Comm: syz-executor.5 Not tainted 5.12.0-rc6-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/04/07 19:24 upstream 3a22981230f9 6a81331a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in evdev_pass_values / evdev_read
* Struck through repros no longer work on HEAD.