syzbot


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

Status: auto-obsoleted due to no activity on 2022/10/23 08:11
Subsystems: input
[Documentation on labels]
First crash: 788d, last: 749d
Similar bugs (9)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in evdev_pass_values / evdev_read (9) input 2 115d 125d 0/28 auto-obsoleted due to no activity on 2024/07/18 19:14
upstream KCSAN: data-race in evdev_pass_values / evdev_read (6) input 5 639d 664d 0/28 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 707d 707d 0/28 auto-obsoleted due to no activity on 2022/12/04 22:10
upstream KCSAN: data-race in evdev_pass_values / evdev_read input 1 1524d 1524d 0/28 auto-closed as invalid on 2020/09/08 04:08
upstream KCSAN: data-race in evdev_pass_values / evdev_read (2) input 1 1278d 1278d 0/28 auto-closed as invalid on 2021/05/12 19:26
upstream KCSAN: data-race in evdev_pass_values / evdev_read (10) input 1 25d 25d 0/28 moderation: reported on 2024/09/11 22:12
upstream KCSAN: data-race in evdev_pass_values / evdev_read (7) input 28 454d 527d 0/28 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 335d 302d 0/28 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 830d 873d 0/28 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):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/09/18 08:04 upstream a335366bad13 dd9a85ff .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in evdev_pass_values / evdev_read
2022/09/05 09:03 upstream 7e18e42e4b28 28811d0a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in evdev_pass_values / evdev_read
2022/08/20 15:14 upstream 50cd95ac4654 26a13b38 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in evdev_pass_values / evdev_read
2022/08/10 04:54 upstream 426b4ca2d6a5 c2a623d6 .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.