syzbot


KMSAN: uninit-value in n_tty_lookahead_flow_ctrl

Status: auto-obsoleted due to no activity on 2024/03/02 17:27
Subsystems: serial
[Documentation on labels]
Reported-by: syzbot+0015c7d1e68e7f61621d@syzkaller.appspotmail.com
First crash: 228d, last: 116d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [serial?] KMSAN: uninit-value in n_tty_lookahead_flow_ctrl 0 (1) 2024/01/02 13:55
Last patch testing requests (3)
Created Duration User Patch Repo Result
2024/01/06 22:15 53m retest repro upstream OK log
2024/01/06 22:15 1h06m retest repro upstream OK log
2024/01/06 22:15 1h10m retest repro upstream OK log

Sample crash report:
=====================================================
BUG: KMSAN: uninit-value in n_tty_lookahead_flow_ctrl+0x2cd/0x2f0 drivers/tty/n_tty.c:1516
 n_tty_lookahead_flow_ctrl+0x2cd/0x2f0 drivers/tty/n_tty.c:1516
 tty_port_default_lookahead_buf+0x142/0x200 drivers/tty/tty_port.c:59
 lookahead_bufs drivers/tty/tty_buffer.c:427 [inline]
 flush_to_ldisc+0x906/0xdc0 drivers/tty/tty_buffer.c:497
 process_one_work kernel/workqueue.c:2630 [inline]
 process_scheduled_works+0x104e/0x1e70 kernel/workqueue.c:2703
 worker_thread+0xf45/0x1490 kernel/workqueue.c:2784
 kthread+0x3ed/0x540 kernel/kthread.c:388
 ret_from_fork+0x66/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242

Uninit was created at:
 slab_post_alloc_hook+0x129/0xa70 mm/slab.h:768
 slab_alloc_node mm/slub.c:3478 [inline]
 __kmem_cache_alloc_node+0x5c9/0x970 mm/slub.c:3517
 __do_kmalloc_node mm/slab_common.c:1006 [inline]
 __kmalloc+0x121/0x3c0 mm/slab_common.c:1020
 kmalloc include/linux/slab.h:604 [inline]
 tty_buffer_alloc drivers/tty/tty_buffer.c:179 [inline]
 __tty_buffer_request_room+0x36e/0x6c0 drivers/tty/tty_buffer.c:272
 __tty_insert_flip_string_flags+0x140/0x560 drivers/tty/tty_buffer.c:308
 tty_insert_flip_char include/linux/tty_flip.h:77 [inline]
 uart_insert_char+0x39e/0xa00 drivers/tty/serial/serial_core.c:3494
 serial8250_read_char+0x1a2/0x5d0 drivers/tty/serial/8250/8250_port.c:1760
 serial8250_rx_chars drivers/tty/serial/8250/8250_port.c:1777 [inline]
 serial8250_handle_irq+0x77b/0xb30 drivers/tty/serial/8250/8250_port.c:1937
 serial8250_default_handle_irq+0x11a/0x2a0 drivers/tty/serial/8250/8250_port.c:1962
 serial8250_interrupt+0xc0/0x350 drivers/tty/serial/8250/8250_core.c:127
 __handle_irq_event_percpu+0x113/0xc90 kernel/irq/handle.c:158
 handle_irq_event_percpu kernel/irq/handle.c:193 [inline]
 handle_irq_event+0xef/0x2c0 kernel/irq/handle.c:210
 handle_edge_irq+0x341/0xf90 kernel/irq/chip.c:831
 generic_handle_irq_desc include/linux/irqdesc.h:161 [inline]
 handle_irq arch/x86/kernel/irq.c:238 [inline]
 __common_interrupt+0x94/0x1f0 arch/x86/kernel/irq.c:257
 common_interrupt+0x89/0xa0 arch/x86/kernel/irq.c:247
 asm_common_interrupt+0x2b/0x40 arch/x86/include/asm/idtentry.h:636

CPU: 0 PID: 1031 Comm: kworker/u4:7 Not tainted 6.7.0-rc2-syzkaller-00095-gd3fa86b1a7b4 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023
Workqueue: events_unbound flush_to_ldisc
=====================================================

Crashes (28):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/11/24 13:28 upstream d3fa86b1a7b4 5b429f39 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in n_tty_lookahead_flow_ctrl
2023/09/13 17:21 upstream 3669558bdf35 0b6a67ac .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in n_tty_lookahead_flow_ctrl
2023/09/02 03:01 upstream b84acc11b1c9 696ea0d2 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in n_tty_lookahead_flow_ctrl
2023/12/18 23:44 upstream 2cf4f94d8e86 3222d10c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in n_tty_lookahead_flow_ctrl
2023/12/18 22:52 upstream 2cf4f94d8e86 3222d10c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in n_tty_lookahead_flow_ctrl
2023/12/16 17:00 upstream c8e97fc6b4c0 3222d10c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in n_tty_lookahead_flow_ctrl
2023/12/11 14:44 upstream a39b6ac3781d 28b24332 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in n_tty_lookahead_flow_ctrl
2023/12/10 13:47 upstream c527f5606aa5 28b24332 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in n_tty_lookahead_flow_ctrl
2023/12/09 04:24 upstream f2e8a57ee903 28b24332 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in n_tty_lookahead_flow_ctrl
2023/12/06 14:21 upstream bee0e7762ad2 e3299f55 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in n_tty_lookahead_flow_ctrl
2023/12/02 05:45 upstream 815fb87b7530 f819d6f7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in n_tty_lookahead_flow_ctrl
2023/11/25 23:08 upstream b46ae77f6787 5b429f39 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in n_tty_lookahead_flow_ctrl
2023/11/25 22:37 upstream b46ae77f6787 5b429f39 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in n_tty_lookahead_flow_ctrl
2023/11/18 05:15 upstream 6bc40e44f1dd cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in n_tty_lookahead_flow_ctrl
2023/11/11 02:01 upstream ac347a0655db 6d6dbf8a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in n_tty_lookahead_flow_ctrl
2023/11/08 16:15 upstream 305230142ae0 df3908d6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in n_tty_lookahead_flow_ctrl
2023/10/30 07:22 upstream ffc253263a13 3c418d72 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in n_tty_lookahead_flow_ctrl
2023/10/29 06:40 upstream 2af9b20dbb39 3c418d72 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in n_tty_lookahead_flow_ctrl
2023/10/24 20:20 upstream d88520ad73b7 17e6d526 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in n_tty_lookahead_flow_ctrl
2023/10/22 08:02 upstream 1acfd2bd3f0d 361b23dc .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in n_tty_lookahead_flow_ctrl
2023/10/10 04:18 upstream 94f6f0550c62 c9be5398 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in n_tty_lookahead_flow_ctrl
2023/10/10 03:11 upstream 94f6f0550c62 c9be5398 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in n_tty_lookahead_flow_ctrl
2023/09/29 03:04 upstream 9ed22ae6be81 d265efd8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in n_tty_lookahead_flow_ctrl
2023/09/27 14:48 upstream 0e945134b680 2895a507 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in n_tty_lookahead_flow_ctrl
2023/09/26 11:11 upstream 6465e260f487 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in n_tty_lookahead_flow_ctrl
2023/09/23 09:54 upstream d90b0276af8f 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in n_tty_lookahead_flow_ctrl
2023/09/11 01:18 upstream 0bb80ecc33a8 6654cf89 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in n_tty_lookahead_flow_ctrl
2023/12/23 17:27 upstream 5254c0cbc92d fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in n_tty_lookahead_flow_ctrl
* Struck through repros no longer work on HEAD.