syzbot


general protection fault in n_tty_receive_buf_common (2)

Status: upstream: reported on 2024/07/25 04:27
Subsystems: serial
[Documentation on labels]
Reported-by: syzbot+2dda672e146ff12ccb02@syzkaller.appspotmail.com
First crash: 438d, last: 8d07h
Discussions (5)
Title Replies (including bot) Last reply
[syzbot] Monthly serial report (Feb 2025) 0 (1) 2025/02/17 12:44
[syzbot] Monthly serial report (Jan 2025) 0 (1) 2025/01/17 10:36
[syzbot] Monthly serial report (Nov 2024) 0 (1) 2024/11/18 10:38
[syzbot] Monthly serial report (Sep 2024) 0 (1) 2024/09/14 10:58
[syzbot] [serial?] general protection fault in n_tty_receive_buf_common (2) 0 (1) 2024/07/25 04:27
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KMSAN: uninit-value in n_tty_receive_buf_common (2) serial C 591 667d 1248d 0/28 auto-obsoleted due to no activity on 2023/09/27 16:27
linux-6.1 general protection fault in n_tty_receive_buf_common 1 196d 196d 0/3 auto-obsoleted due to no activity on 2025/02/10 03:23
android-6-1 general protection fault in n_tty_receive_buf_common 1 449d 449d 0/2 auto-obsoleted due to no activity on 2024/05/22 15:27
upstream general protection fault in n_tty_receive_buf_common serial 48 2376d 2758d 0/28 closed as dup on 2018/07/17 10:20
android-6-1 general protection fault in n_tty_receive_buf_common (2) 4 228d 299d 0/2 auto-obsoleted due to no activity on 2024/12/29 18:01

Sample crash report:
Oops: general protection fault, probably for non-canonical address 0xdffffc000000044c: 0000 [#1] SMP KASAN NOPTI
KASAN: probably user-memory-access in range [0x0000000000002260-0x0000000000002267]
CPU: 1 UID: 0 PID: 13 Comm: kworker/u8:1 Not tainted 6.15.0-rc5-syzkaller-00043-gd76bb1ebb558 #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/29/2025
Workqueue: events_unbound flush_to_ldisc
RIP: 0010:n_tty_receive_buf_common+0xf3/0x1980 drivers/tty/n_tty.c:1702
Code: 00 00 00 00 00 00 00 48 89 7c 24 68 48 89 4c 24 70 89 9c 24 94 00 00 00 48 89 84 24 a0 00 00 00 e8 32 3d 75 fc 48 8b 44 24 68 <80> 38 00 0f 85 b6 15 00 00 48 8b 44 24 18 48 8b a8 60 22 00 00 48
RSP: 0018:ffffc90000127a70 EFLAGS: 00010293
RAX: dffffc000000044c RBX: 0000000000000001 RCX: dffffc0000000000
RDX: ffff88801ca80000 RSI: ffffffff8545f5be RDI: dffffc000000044c
RBP: 00000000000001fc R08: 0000000000000001 R09: ffffed1005013650
R10: ffff88802809b287 R11: 0000000000000000 R12: ffff88802e5f4824
R13: 0000000000000000 R14: ffff88802809b000 R15: dffffc0000000000
FS:  0000000000000000(0000) GS:ffff888124adf000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2dedaff8 CR3: 0000000025a85000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 tty_ldisc_receive_buf+0xa7/0x1a0 drivers/tty/tty_buffer.c:387
 tty_port_default_receive_buf+0x70/0xb0 drivers/tty/tty_port.c:37
 receive_buf drivers/tty/tty_buffer.c:445 [inline]
 flush_to_ldisc+0x268/0x780 drivers/tty/tty_buffer.c:495
 process_one_work+0x9cc/0x1b70 kernel/workqueue.c:3238
 process_scheduled_works kernel/workqueue.c:3319 [inline]
 worker_thread+0x6c8/0xf10 kernel/workqueue.c:3400
 kthread+0x3c2/0x780 kernel/kthread.c:464
 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:153
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:n_tty_receive_buf_common+0xf3/0x1980 drivers/tty/n_tty.c:1702
Code: 00 00 00 00 00 00 00 48 89 7c 24 68 48 89 4c 24 70 89 9c 24 94 00 00 00 48 89 84 24 a0 00 00 00 e8 32 3d 75 fc 48 8b 44 24 68 <80> 38 00 0f 85 b6 15 00 00 48 8b 44 24 18 48 8b a8 60 22 00 00 48
RSP: 0018:ffffc90000127a70 EFLAGS: 00010293
RAX: dffffc000000044c RBX: 0000000000000001 RCX: dffffc0000000000
RDX: ffff88801ca80000 RSI: ffffffff8545f5be RDI: dffffc000000044c
RBP: 00000000000001fc R08: 0000000000000001 R09: ffffed1005013650
R10: ffff88802809b287 R11: 0000000000000000 R12: ffff88802e5f4824
R13: 0000000000000000 R14: ffff88802809b000 R15: dffffc0000000000
FS:  0000000000000000(0000) GS:ffff888124adf000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2dedaff8 CR3: 000000000e180000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	00 00                	add    %al,(%rax)
   2:	00 00                	add    %al,(%rax)
   4:	00 00                	add    %al,(%rax)
   6:	00 48 89             	add    %cl,-0x77(%rax)
   9:	7c 24                	jl     0x2f
   b:	68 48 89 4c 24       	push   $0x244c8948
  10:	70 89                	jo     0xffffff9b
  12:	9c                   	pushf
  13:	24 94                	and    $0x94,%al
  15:	00 00                	add    %al,(%rax)
  17:	00 48 89             	add    %cl,-0x77(%rax)
  1a:	84 24 a0             	test   %ah,(%rax,%riz,4)
  1d:	00 00                	add    %al,(%rax)
  1f:	00 e8                	add    %ch,%al
  21:	32 3d 75 fc 48 8b    	xor    -0x74b7038b(%rip),%bh        # 0x8b48fc9c
  27:	44 24 68             	rex.R and $0x68,%al
* 2a:	80 38 00             	cmpb   $0x0,(%rax) <-- trapping instruction
  2d:	0f 85 b6 15 00 00    	jne    0x15e9
  33:	48 8b 44 24 18       	mov    0x18(%rsp),%rax
  38:	48 8b a8 60 22 00 00 	mov    0x2260(%rax),%rbp
  3f:	48                   	rex.W

Crashes (16):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/05/08 22:36 upstream d76bb1ebb558 dbf35fa1 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root general protection fault in n_tty_receive_buf_common
2025/02/03 10:13 upstream 69e858e0b8b2 568559e4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in n_tty_receive_buf_common
2025/01/28 01:53 upstream 9c5968db9e62 18070896 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root general protection fault in n_tty_receive_buf_common
2025/01/10 04:27 upstream 643e2e259c2b 67d7ec0a .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto general protection fault in n_tty_receive_buf_common
2024/12/07 09:54 upstream b5f217084ab3 9ac0fdc6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce general protection fault in n_tty_receive_buf_common
2024/11/06 08:47 upstream 2e1b3cc9d7f7 3a465482 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in n_tty_receive_buf_common
2024/08/28 01:55 upstream 3ec3f5fc4a91 6c853ff9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root general protection fault in n_tty_receive_buf_common
2024/08/26 07:11 upstream 5be63fc19fca d7d32352 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root general protection fault in n_tty_receive_buf_common
2024/07/25 04:26 upstream 786c8248dbd3 b24754ac .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root general protection fault in n_tty_receive_buf_common
2024/06/12 13:14 upstream 2ef5971ff345 4d75f4f7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in n_tty_receive_buf_common
2024/04/15 03:06 upstream fe46a7dd189e c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root general protection fault in n_tty_receive_buf_common
2024/04/13 12:25 upstream fe46a7dd189e c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root general protection fault in n_tty_receive_buf_common
2024/03/04 06:26 upstream 58c806d867bf 25905f5d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce general protection fault in n_tty_receive_buf_common
2024/11/03 11:53 upstream 3e5e6c9900c3 f00eed24 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-386 general protection fault in n_tty_receive_buf_common
2024/09/03 18:53 upstream 67784a74e258 512328ba .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-386 general protection fault in n_tty_receive_buf_common
2025/02/07 08:38 upstream bb066fe812d6 53657d1b .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in n_tty_receive_buf_common
* Struck through repros no longer work on HEAD.