syzbot


general protection fault in n_tty_flush_buffer

Status: closed as dup on 2018/05/17 10:46
Subsystems: serial
[Documentation on labels]
Reported-by: syzbot+083228748980909eb453@syzkaller.appspotmail.com
First crash: 2410d, last: 2224d
Duplicate of
Title Repro Cause bisect Fix bisect Count Last Reported
KASAN: user-memory-access Write in n_tty_set_termios serial C 85 2185d 2455d
Discussions (1)
Title Replies (including bot) Last reply
general protection fault in n_tty_flush_buffer 1 (2) 2018/05/17 10:45

Sample crash report:
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] SMP KASAN
Dumping ftrace buffer:
   (ftrace buffer empty)
Modules linked in:
CPU: 1 PID: 4530 Comm: syz-executor147 Not tainted 4.17.0-rc5+ #54
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:reset_buffer_flags drivers/tty/n_tty.c:318 [inline]
RIP: 0010:n_tty_flush_buffer+0x64/0x320 drivers/tty/n_tty.c:358
RSP: 0018:ffff8801c60f77a0 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 000000000000044c RSI: ffff8801ae012ef8 RDI: 0000000000002260
RBP: ffff8801c60f77b8 R08: 0000000000007ad5 R09: 0000000000000002
R10: ffff8801ae012f48 R11: ffff8801ae0126c0 R12: ffff8801d96321c0
R13: ffff8801d96323f8 R14: 0000000000000000 R15: ffff8801c60f7808
FS:  00007f53b10c8700(0000) GS:ffff8801daf00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f53b10a6e78 CR3: 00000001ac8cf000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 set_termios+0x390/0x7d0 drivers/tty/tty_ioctl.c:404
 tty_mode_ioctl+0x265/0xb50 drivers/tty/tty_ioctl.c:745
 n_tty_ioctl_helper+0x54/0x3b0 drivers/tty/tty_ioctl.c:940
 n_tty_ioctl+0x54/0x320 drivers/tty/n_tty.c:2441
 tty_ioctl+0x5e1/0x1870 drivers/tty/tty_io.c:2655
 vfs_ioctl fs/ioctl.c:46 [inline]
 file_ioctl fs/ioctl.c:500 [inline]
 do_vfs_ioctl+0x1cf/0x16a0 fs/ioctl.c:684
 ksys_ioctl+0xa9/0xd0 fs/ioctl.c:701
 __do_sys_ioctl fs/ioctl.c:708 [inline]
 __se_sys_ioctl fs/ioctl.c:706 [inline]
 __x64_sys_ioctl+0x73/0xb0 fs/ioctl.c:706
 do_syscall_64+0x1b1/0x800 arch/x86/entry/common.c:287
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x445c19
RSP: 002b:00007f53b10c7da8 EFLAGS: 00000297 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00000000006dac24 RCX: 0000000000445c19
RDX: 0000000020000000 RSI: 0000000000005404 RDI: 0000000000000005
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000297 R12: 00000000006dac20
R13: 6d74702f7665642f R14: 00007f53b10c89c0 R15: 0000000000000007
Code: 03 80 3c 02 00 0f 85 b1 02 00 00 49 8b 9c 24 70 05 00 00 48 b8 00 00 00 00 00 fc ff df 48 8d bb 60 22 00 00 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 9b 02 00 00 48 b8 00 00 00 00 00 fc ff df 48 
RIP: reset_buffer_flags drivers/tty/n_tty.c:318 [inline] RSP: ffff8801c60f77a0
RIP: n_tty_flush_buffer+0x64/0x320 drivers/tty/n_tty.c:358 RSP: ffff8801c60f77a0
---[ end trace 75cd8a017cb978de ]---

Crashes (11):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/05/17 08:23 upstream e6506eb24187 a367c1d7 .config console log report syz C ci-upstream-kasan-gce-root
2018/10/21 14:07 upstream 23469de647c4 ecb386fe .config console log report syz ci-upstream-kasan-gce-smack-root
2018/10/20 21:29 upstream 270b77a0f30e ecb386fe .config console log report syz ci-upstream-kasan-gce-selinux-root
2018/10/20 19:54 upstream 270b77a0f30e ecb386fe .config console log report syz ci-upstream-kasan-gce-root
2018/10/06 10:27 upstream 091a1eaa0e30 8b311eaf .config console log report syz ci-upstream-kasan-gce-root
2018/10/20 14:52 linux-next 8c60c36d0b8c ecb386fe .config console log report syz ci-upstream-linux-next-kasan-gce-root
2018/10/06 10:18 linux-next 12ffaa1197f5 8b311eaf .config console log report syz ci-upstream-linux-next-kasan-gce-root
2018/05/17 08:57 upstream e6506eb24187 a367c1d7 .config console log report ci-upstream-kasan-gce-root
2018/05/17 08:05 upstream e6506eb24187 a367c1d7 .config console log report ci-upstream-kasan-gce-root
2018/11/19 11:02 linux-next 442b8cea2477 adf636a8 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/11/13 23:26 linux-next 442b8cea2477 5f5f6d14 .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.