syzbot


KCSAN: data-race in ps2_do_sendbyte / ps2_handle_ack (4)

Status: auto-obsoleted due to no activity on 2023/08/02 15:27
Subsystems: input
[Documentation on labels]
First crash: 473d, last: 244d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in ps2_do_sendbyte / ps2_handle_ack (2) input 4 1313d 1332d 0/26 auto-closed as invalid on 2020/08/28 23:47
upstream KCSAN: data-race in ps2_do_sendbyte / ps2_handle_ack input 6 1428d 1493d 0/26 auto-closed as invalid on 2020/06/09 05:57
upstream KCSAN: data-race in ps2_do_sendbyte / ps2_handle_ack (3) input 201 523d 1177d 0/26 auto-obsoleted due to no activity on 2022/10/27 04:14

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

write to 0xffff8881036f8040 of 8 bytes by interrupt on cpu 1:
 ps2_handle_ack+0x1c5/0x330 drivers/input/serio/libps2.c:447
 atkbd_interrupt+0xbe6/0xd80 drivers/input/keyboard/atkbd.c:424
 serio_interrupt+0x61/0xe0 drivers/input/serio/serio.c:998
 i8042_interrupt+0x3b3/0x780 drivers/input/serio/i8042.c:606
 __handle_irq_event_percpu+0x91/0x490 kernel/irq/handle.c:158
 handle_irq_event_percpu kernel/irq/handle.c:193 [inline]
 handle_irq_event+0x64/0xf0 kernel/irq/handle.c:210
 handle_edge_irq+0x167/0x590 kernel/irq/chip.c:834
 generic_handle_irq_desc include/linux/irqdesc.h:161 [inline]
 handle_irq arch/x86/kernel/irq.c:238 [inline]
 __common_interrupt+0x3c/0xb0 arch/x86/kernel/irq.c:257
 common_interrupt+0x7a/0x90 arch/x86/kernel/irq.c:247
 asm_common_interrupt+0x26/0x40 arch/x86/include/asm/idtentry.h:636
 is_atomic kernel/kcsan/core.c:260 [inline]
 should_watch kernel/kcsan/core.c:277 [inline]
 check_access kernel/kcsan/core.c:752 [inline]
 __tsan_read8+0xf7/0x180 kernel/kcsan/core.c:1025
 mtree_range_walk lib/maple_tree.c:2958 [inline]
 mas_state_walk+0x28b/0x5d0 lib/maple_tree.c:3881
 mas_walk+0x1f/0xd0 lib/maple_tree.c:5109
 lock_vma_under_rcu+0x89/0x290 mm/memory.c:5279
 do_user_addr_fault arch/x86/mm/fault.c:1341 [inline]
 handle_page_fault arch/x86/mm/fault.c:1534 [inline]
 exc_page_fault+0x16e/0x780 arch/x86/mm/fault.c:1590
 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570

read to 0xffff8881036f8040 of 8 bytes by task 3288 on cpu 0:
 ps2_do_sendbyte+0x190/0x380 drivers/input/serio/libps2.c:46
 __ps2_command+0x353/0x910 drivers/input/serio/libps2.c:274
 ps2_command+0x54/0x90 drivers/input/serio/libps2.c:335
 atkbd_set_leds+0xad/0x1b0 drivers/input/keyboard/atkbd.c:596
 atkbd_event_work+0x8d/0x300 drivers/input/keyboard/atkbd.c:636
 process_one_work+0x434/0x860 kernel/workqueue.c:2597
 worker_thread+0x5f2/0xa10 kernel/workqueue.c:2748
 kthread+0x1d7/0x210 kernel/kthread.c:389
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308

value changed: 0x0000000000000001 -> 0x0000000000000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 3288 Comm: kworker/0:9 Not tainted 6.4.0-syzkaller-01761-g6aeadf7896bf #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023
Workqueue: events atkbd_event_work
==================================================================

Crashes (26):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/06/28 15:23 upstream 6aeadf7896bf 4cd5bb25 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ps2_do_sendbyte / ps2_handle_ack
2023/06/26 11:04 upstream 6995e2de6891 79782afc .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ps2_do_sendbyte / ps2_handle_ack
2023/06/26 03:10 upstream 547cc9be86f4 79782afc .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ps2_do_sendbyte / ps2_handle_ack
2023/06/17 19:00 upstream 1639fae5132b f3921d4d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ps2_do_sendbyte / ps2_handle_ack
2023/06/15 16:29 upstream b6dad5178cea 90d4044e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ps2_do_sendbyte / ps2_handle_ack
2023/06/07 09:08 upstream a4d7d7011219 a4ae4f42 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ps2_do_sendbyte / ps2_handle_ack
2023/06/06 07:44 upstream f8dba31b0a82 a4ae4f42 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ps2_do_sendbyte / ps2_handle_ack
2023/05/31 07:07 upstream afead42fdfca 09898419 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ps2_do_sendbyte / ps2_handle_ack
2023/05/23 22:18 upstream ae8373a5add4 4bce1a3e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ps2_do_sendbyte / ps2_handle_ack
2023/05/10 19:42 upstream 16a8829130ca 14b12a99 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ps2_do_sendbyte / ps2_handle_ack
2023/05/10 01:43 upstream 1dc3731daf1f 30aa2a7e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ps2_do_sendbyte / ps2_handle_ack
2023/05/05 01:26 upstream 1a5304fecee5 518a39a6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ps2_do_sendbyte / ps2_handle_ack
2023/04/27 15:57 upstream 6e98b09da931 6f3d6fa7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ps2_do_sendbyte / ps2_handle_ack
2023/04/27 10:46 upstream 5c7ecada25d2 19a3dabe .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ps2_do_sendbyte / ps2_handle_ack
2023/04/16 15:59 upstream 3e7bb4f24617 ec410564 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ps2_do_sendbyte / ps2_handle_ack
2023/04/12 09:19 upstream e62252bc55b6 1a1596b6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ps2_do_sendbyte / ps2_handle_ack
2023/04/10 05:49 upstream 09a9639e56c0 71147e29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ps2_do_sendbyte / ps2_handle_ack
2023/04/06 11:56 upstream 99ddf2254feb 08707520 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ps2_do_sendbyte / ps2_handle_ack
2023/04/01 09:29 upstream 5a57b48fdfcb f325deb0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ps2_do_sendbyte / ps2_handle_ack
2023/03/11 16:25 upstream ef5f68cc1f82 5205ef30 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ps2_do_sendbyte / ps2_handle_ack
2023/02/07 12:21 upstream 05ecb680708a 5bc3be51 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ps2_do_sendbyte / ps2_handle_ack
2023/02/01 23:25 upstream c0b67534c95c 9a6f477c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ps2_do_sendbyte / ps2_handle_ack
2023/01/07 04:19 upstream 1f5abbd77e2c 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ps2_do_sendbyte / ps2_handle_ack
2022/12/19 15:39 upstream f9ff5644bcc0 05494336 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ps2_do_sendbyte / ps2_handle_ack
2022/11/30 19:17 upstream 01f856ae6d0c 4c2a66e8 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in ps2_do_sendbyte / ps2_handle_ack
2022/11/11 10:31 upstream 4bbf3422df78 f42ee5d8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ps2_do_sendbyte / ps2_handle_ack
* Struck through repros no longer work on HEAD.