syzbot


KCSAN: data-race in ps2_do_sendbyte / ps2_handle_ack

Status: auto-closed as invalid on 2020/06/09 05:57
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 930d, last: 865d
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in ps2_do_sendbyte / ps2_handle_ack (2) 4 750d 769d 0/23 auto-closed as invalid on 2020/08/28 23:47
upstream KCSAN: data-race in ps2_do_sendbyte / ps2_handle_ack (3) 194 2d20h 614d 0/23 moderation: reported on 2020/12/07 11:53

Sample crash report:
==================================================================
BUG: KCSAN: data-race in ps2_do_sendbyte / ps2_handle_ack

write to 0xffff888128c87840 of 8 bytes by interrupt on cpu 1:
 ps2_handle_ack+0xe0/0x220 drivers/input/serio/libps2.c:439
 atkbd_interrupt+0x628/0xcc0 drivers/input/keyboard/atkbd.c:393
 serio_interrupt+0x66/0xf0 drivers/input/serio/serio.c:1002
 i8042_interrupt+0x2dd/0x510 drivers/input/serio/i8042.c:596
 __handle_irq_event_percpu+0x99/0x430 kernel/irq/handle.c:149
 handle_irq_event_percpu+0x4b/0xd0 kernel/irq/handle.c:189
 handle_irq_event+0x7e/0xbe kernel/irq/handle.c:206
 handle_edge_irq+0x170/0x460 kernel/irq/chip.c:830
 generic_handle_irq_desc include/linux/irqdesc.h:156 [inline]
 do_IRQ+0x76/0x120 arch/x86/kernel/irq.c:250
 ret_from_intr+0x0/0x21

read to 0xffff888128c87840 of 8 bytes by task 7805 on cpu 0:
 ps2_do_sendbyte+0x25e/0x320 drivers/input/serio/libps2.c:45
 __ps2_command+0x2b8/0x9f0 drivers/input/serio/libps2.c:273
 ps2_command+0x5c/0xc0 drivers/input/serio/libps2.c:332
 atkbd_set_repeat_rate+0x1f0/0x240 drivers/input/keyboard/atkbd.c:554
 atkbd_event_work+0xa9/0xf0 drivers/input/keyboard/atkbd.c:608
 process_one_work+0x424/0x930 kernel/workqueue.c:2264
 worker_thread+0x9a/0x7e0 kernel/workqueue.c:2410
 kthread+0x1cb/0x1f0 kernel/kthread.c:255
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:352

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 7805 Comm: kworker/0:4 Not tainted 5.6.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: events atkbd_event_work
==================================================================

Crashes (6):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2020/03/31 05:55 https://github.com/google/ktsan.git kcsan 40959e34d670 c8d1cc20 .config log report
ci2-upstream-kcsan-gce 2020/03/23 14:12 https://github.com/google/ktsan.git kcsan 40959e34d670 78267cec .config log report
ci2-upstream-kcsan-gce 2020/03/18 02:36 https://github.com/google/ktsan.git kcsan 941e0d917bbf 97bc55ce .config log report
ci2-upstream-kcsan-gce 2020/02/24 11:08 https://github.com/google/ktsan.git kcsan 766d004d1b85 1253d6f0 .config log report
ci2-upstream-kcsan-gce 2020/02/07 02:15 https://github.com/google/ktsan.git kcsan 245a43005292 06150bf1 .config log report
ci2-upstream-kcsan-gce 2020/01/26 19:32 https://github.com/google/ktsan.git kcsan 245a43005292 dd56146d .config log report