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: 341d, last: 1d17h
Discussions (4)
Title Replies (including bot) Last reply
[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 570d 1151d 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 98d 98d 0/3 upstream: reported on 2024/11/02 03:23
android-6-1 general protection fault in n_tty_receive_buf_common 1 352d 352d 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 2278d 2661d 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 131d 202d 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] PREEMPT SMP KASAN NOPTI
KASAN: probably user-memory-access in range [0x0000000000002260-0x0000000000002267]
CPU: 1 UID: 0 PID: 5931 Comm: kworker/u8:8 Not tainted 6.13.0-syzkaller-09760-g69e858e0b8b2 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024
Workqueue: events_unbound flush_to_ldisc
RIP: 0010:n_tty_receive_buf_common+0x13a/0x12e0 drivers/tty/n_tty.c:1718
Code: c0 48 89 84 24 b0 00 00 00 48 89 8c 24 f0 00 00 00 48 c1 e9 03 48 89 8c 24 f8 00 00 00 48 89 5c 24 60 48 8b 84 24 f8 00 00 00 <42> 80 3c 38 00 74 0d 48 8b bc 24 f0 00 00 00 e8 c2 e1 bb fc 4c 89
RSP: 0018:ffffc9000495f900 EFLAGS: 00010212
RAX: 000000000000044c RBX: ffff88805925e438 RCX: 000000000000044c
RDX: 0000000000000001 RSI: 0000000000000008 RDI: 0000000000000001
RBP: ffff88805925e000 R08: ffff88805925e287 R09: 1ffff1100b24bc50
R10: dffffc0000000000 R11: ffffed100b24bc51 R12: ffff888057b03020
R13: ffff888057b03020 R14: 0000000000000001 R15: dffffc0000000000
FS:  0000000000000000(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 000000006cbfa000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 tty_port_default_receive_buf+0x6d/0xa0 drivers/tty/tty_port.c:37
 receive_buf drivers/tty/tty_buffer.c:445 [inline]
 flush_to_ldisc+0x32a/0x860 drivers/tty/tty_buffer.c:495
 process_one_work kernel/workqueue.c:3236 [inline]
 process_scheduled_works+0xa68/0x1840 kernel/workqueue.c:3317
 worker_thread+0x870/0xd30 kernel/workqueue.c:3398
 kthread+0x7ab/0x920 kernel/kthread.c:464
 ret_from_fork+0x4d/0x80 arch/x86/kernel/process.c:148
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:n_tty_receive_buf_common+0x13a/0x12e0 drivers/tty/n_tty.c:1718
Code: c0 48 89 84 24 b0 00 00 00 48 89 8c 24 f0 00 00 00 48 c1 e9 03 48 89 8c 24 f8 00 00 00 48 89 5c 24 60 48 8b 84 24 f8 00 00 00 <42> 80 3c 38 00 74 0d 48 8b bc 24 f0 00 00 00 e8 c2 e1 bb fc 4c 89
RSP: 0018:ffffc9000495f900 EFLAGS: 00010212
RAX: 000000000000044c RBX: ffff88805925e438 RCX: 000000000000044c
RDX: 0000000000000001 RSI: 0000000000000008 RDI: 0000000000000001
RBP: ffff88805925e000 R08: ffff88805925e287 R09: 1ffff1100b24bc50
R10: dffffc0000000000 R11: ffffed100b24bc51 R12: ffff888057b03020
R13: ffff888057b03020 R14: 0000000000000001 R15: dffffc0000000000
FS:  0000000000000000(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 000000006cbf6000 CR4: 0000000000350ef0
----------------
Code disassembly (best guess):
   0:	c0 48 89 84          	rorb   $0x84,-0x77(%rax)
   4:	24 b0                	and    $0xb0,%al
   6:	00 00                	add    %al,(%rax)
   8:	00 48 89             	add    %cl,-0x77(%rax)
   b:	8c 24 f0             	mov    %fs,(%rax,%rsi,8)
   e:	00 00                	add    %al,(%rax)
  10:	00 48 c1             	add    %cl,-0x3f(%rax)
  13:	e9 03 48 89 8c       	jmp    0x8c89481b
  18:	24 f8                	and    $0xf8,%al
  1a:	00 00                	add    %al,(%rax)
  1c:	00 48 89             	add    %cl,-0x77(%rax)
  1f:	5c                   	pop    %rsp
  20:	24 60                	and    $0x60,%al
  22:	48 8b 84 24 f8 00 00 	mov    0xf8(%rsp),%rax
  29:	00
* 2a:	42 80 3c 38 00       	cmpb   $0x0,(%rax,%r15,1) <-- trapping instruction
  2f:	74 0d                	je     0x3e
  31:	48 8b bc 24 f0 00 00 	mov    0xf0(%rsp),%rdi
  38:	00
  39:	e8 c2 e1 bb fc       	call   0xfcbbe200
  3e:	4c                   	rex.WR
  3f:	89                   	.byte 0x89

Crashes (15):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
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.