syzbot


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

Status: auto-obsoleted due to no activity on 2022/10/23 08:11
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 173d, last: 134d
similar bugs (4):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in evdev_pass_values / evdev_read (5) 1 92d 92d 0/24 auto-obsoleted due to no activity on 2022/12/04 22:10
upstream KCSAN: data-race in evdev_pass_values / evdev_read 1 909d 909d 0/24 auto-closed as invalid on 2020/09/08 04:08
upstream KCSAN: data-race in evdev_pass_values / evdev_read (2) 1 663d 663d 0/24 auto-closed as invalid on 2021/05/12 19:26
upstream KCSAN: data-race in evdev_pass_values / evdev_read (3) 78 215d 258d 0/24 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 0xffff88810451d008 of 4 bytes by task 1908 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:576
 ksys_write+0xe8/0x1a0 fs/read_write.c:631
 __do_sys_write fs/read_write.c:643 [inline]
 __se_sys_write fs/read_write.c:640 [inline]
 __x64_sys_write+0x3e/0x50 fs/read_write.c:640
 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 0xffff88810451d008 of 4 bytes by task 1422 on cpu 0:
 evdev_read+0x1c5/0x7a0 drivers/input/evdev.c:574
 vfs_read+0x198/0x560 fs/read_write.c:468
 ksys_read+0xe8/0x1a0 fs/read_write.c:607
 __do_sys_read fs/read_write.c:617 [inline]
 __se_sys_read fs/read_write.c:615 [inline]
 __x64_sys_read+0x3e/0x50 fs/read_write.c:615
 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: 0x00000002 -> 0x00000004

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 1422 Comm: acpid Not tainted 6.0.0-rc5-syzkaller-00094-ga335366bad13-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022
==================================================================

Crashes (4):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci2-upstream-kcsan-gce 2022/09/18 08:04 upstream a335366bad13 dd9a85ff .config console log report info [disk image] [vmlinux] KCSAN: data-race in evdev_pass_values / evdev_read
ci2-upstream-kcsan-gce 2022/09/05 09:03 upstream 7e18e42e4b28 28811d0a .config console log report info KCSAN: data-race in evdev_pass_values / evdev_read
ci2-upstream-kcsan-gce 2022/08/20 15:14 upstream 50cd95ac4654 26a13b38 .config console log report info KCSAN: data-race in evdev_pass_values / evdev_read
ci2-upstream-kcsan-gce 2022/08/10 04:54 upstream 426b4ca2d6a5 c2a623d6 .config console log report info KCSAN: data-race in evdev_pass_values / evdev_read
* Struck through repros no longer work on HEAD.