syzbot


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

Status: auto-closed as invalid on 2021/05/12 19:26
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 495d, last: 495d
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in evdev_pass_values / evdev_read 1 741d 741d 0/23 auto-closed as invalid on 2020/09/08 04:08
upstream KCSAN: data-race in evdev_pass_values / evdev_read (3) 78 47d 90d 0/23 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):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2021/04/07 19:24 upstream 3a22981230f9 6a81331a .config log report info KCSAN: data-race in evdev_pass_values / evdev_read