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: 187d, last: 4d04h
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [serial?] general protection fault in n_tty_receive_buf_common (2) 0 (1) 2024/07/25 04:27
Similar bugs (4)
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 416d 997d 0/27 auto-obsoleted due to no activity on 2023/09/27 16:27
android-6-1 general protection fault in n_tty_receive_buf_common 1 198d 198d 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 2124d 2507d 0/27 closed as dup on 2018/07/17 10:20
android-6-1 general protection fault in n_tty_receive_buf_common (2) 3 33d 48d 0/2 premoderation: reported on 2024/07/21 14:40

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: 1098 Comm: kworker/u8:7 Not tainted 6.11.0-rc5-syzkaller-00050-g3ec3f5fc4a91 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024
Workqueue: events_unbound flush_to_ldisc
RIP: 0010:n_tty_receive_buf_common+0xf3/0x1980 drivers/tty/n_tty.c:1718
Code: 00 48 89 74 24 60 4a 8d 0c 39 4a 8d 34 3a 48 89 4c 24 70 48 89 74 24 68 48 89 84 24 a0 00 00 00 e8 c2 f8 94 fc 48 8b 44 24 68 <80> 38 00 0f 85 af 15 00 00 48 8b 44 24 18 48 8b a8 60 22 00 00 48
RSP: 0018:ffffc90004307ad0 EFLAGS: 00010293
RAX: dffffc000000044c RBX: 0000000000000001 RCX: dffffc0000000000
RDX: ffff888022771e00 RSI: ffffffff84f6c5de RDI: 000000000000005c
RBP: 0000000000000002 R08: 0000000000000001 R09: ffffed100f57d250
R10: ffff88807abe9287 R11: 0000000000000000 R12: ffffffff84f6de80
R13: 0000000000000000 R14: ffff88807abe9000 R15: dffffc0000000000
FS:  0000000000000000(0000) GS:ffff8880b9300000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f5c09912060 CR3: 0000000068176000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 tty_ldisc_receive_buf+0xa5/0x190 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+0x267/0x780 drivers/tty/tty_buffer.c:495
 process_one_work+0x9c8/0x1b40 kernel/workqueue.c:3231
 process_scheduled_works kernel/workqueue.c:3312 [inline]
 worker_thread+0x6c8/0xed0 kernel/workqueue.c:3389
 kthread+0x2c4/0x3a0 kernel/kthread.c:389
 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147
 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+0xf3/0x1980 drivers/tty/n_tty.c:1718
Code: 00 48 89 74 24 60 4a 8d 0c 39 4a 8d 34 3a 48 89 4c 24 70 48 89 74 24 68 48 89 84 24 a0 00 00 00 e8 c2 f8 94 fc 48 8b 44 24 68 <80> 38 00 0f 85 af 15 00 00 48 8b 44 24 18 48 8b a8 60 22 00 00 48
RSP: 0018:ffffc90004307ad0 EFLAGS: 00010293
RAX: dffffc000000044c RBX: 0000000000000001 RCX: dffffc0000000000
RDX: ffff888022771e00 RSI: ffffffff84f6c5de RDI: 000000000000005c
RBP: 0000000000000002 R08: 0000000000000001 R09: ffffed100f57d250
R10: ffff88807abe9287 R11: 0000000000000000 R12: ffffffff84f6de80
R13: 0000000000000000 R14: ffff88807abe9000 R15: dffffc0000000000
FS:  0000000000000000(0000) GS:ffff8880b9300000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020048000 CR3: 000000007d50e000 CR4: 0000000000350ef0
----------------
Code disassembly (best guess), 1 bytes skipped:
   0:	48 89 74 24 60       	mov    %rsi,0x60(%rsp)
   5:	4a 8d 0c 39          	lea    (%rcx,%r15,1),%rcx
   9:	4a 8d 34 3a          	lea    (%rdx,%r15,1),%rsi
   d:	48 89 4c 24 70       	mov    %rcx,0x70(%rsp)
  12:	48 89 74 24 68       	mov    %rsi,0x68(%rsp)
  17:	48 89 84 24 a0 00 00 	mov    %rax,0xa0(%rsp)
  1e:	00
  1f:	e8 c2 f8 94 fc       	call   0xfc94f8e6
  24:	48 8b 44 24 68       	mov    0x68(%rsp),%rax
* 29:	80 38 00             	cmpb   $0x0,(%rax) <-- trapping instruction
  2c:	0f 85 af 15 00 00    	jne    0x15e1
  32:	48 8b 44 24 18       	mov    0x18(%rsp),%rax
  37:	48 8b a8 60 22 00 00 	mov    0x2260(%rax),%rbp
  3e:	48                   	rex.W

Crashes (8):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
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/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
* Struck through repros no longer work on HEAD.