syzbot


general protection fault in n_tty_set_termios

Status: closed as dup on 2018/05/01 10:15
Subsystems: serial
[Documentation on labels]
Reported-by: syzbot+ed02be0ad5f26ef4e31b@syzkaller.appspotmail.com
First crash: 2186d, last: 1966d
Duplicate of
Title Repro Cause bisect Fix bisect Count Last Reported
KASAN: user-memory-access Write in n_tty_set_termios serial C 85 1945d 2215d
Discussions (1)
Title Replies (including bot) Last reply
general protection fault in n_tty_set_termios 1 (2) 2018/05/01 10:15
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-49 general protection fault in n_tty_set_termios C 4 1967d 1838d 0/3 public: reported C repro on 2019/04/14 00:00
android-414 general protection fault in n_tty_set_termios syz 5 1967d 1840d 0/1 public: reported syz repro on 2019/04/12 00:01

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: 4509 Comm: syz-executor370 Not tainted 4.17.0-rc7+ #72
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:n_tty_set_termios+0x2d9/0xe80 drivers/tty/n_tty.c:1782
RSP: 0018:ffff8801ad41f698 EFLAGS: 00010203
RAX: 0000000000000001 RBX: 0000000000000000 RCX: 000000000000000b
RDX: dffffc0000000000 RSI: 0000000000000000 RDI: 0000000000000005
RBP: ffff8801ad41f6d0 R08: ffff8801ad198540 R09: 0000000000000002
R10: ffff8801ad198dc8 R11: ffff8801ad198540 R12: ffff8801b3d93340
R13: ffff8801b3d936f4 R14: 000000000000005d R15: ffff8801ad41f730
FS:  00007fa4ffe37700(0000) GS:ffff8801daf00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fa4ffdf4e78 CR3: 00000001d97ba000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 tty_set_termios+0x7a0/0xac0 drivers/tty/tty_ioctl.c:341
 set_termios+0x41e/0x7d0 drivers/tty/tty_ioctl.c:414
 tty_mode_ioctl+0x855/0xb50 drivers/tty/tty_ioctl.c:749
 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:0x445cf9
RSP: 002b:00007fa4ffe36d18 EFLAGS: 00000297 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00000000006dac24 RCX: 0000000000445cf9
RDX: 0000000020000040 RSI: 0000000000005402 RDI: 0000000000000027
RBP: 00000000006dac20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000297 R12: 6d74702f7665642f
R13: 00007fff9223372f R14: 00007fa4ffe379c0 R15: 0000000000000007
Code: 8b 45 d0 31 ff 83 e0 02 89 c6 89 45 d0 e8 c0 28 e1 fd 8b 45 d0 4c 89 f1 48 ba 00 00 00 00 00 fc ff df 85 c0 0f 95 c0 48 c1 e9 03 <0f> b6 14 11 4c 89 f1 83 e1 07 38 ca 7f 08 84 d2 0f 85 96 09 00 
RIP: n_tty_set_termios+0x2d9/0xe80 drivers/tty/n_tty.c:1782 RSP: ffff8801ad41f698
---[ end trace 3d43070155a9a577 ]---

Crashes (13):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/05/29 06:40 upstream 786b71f5b754 f48c20b8 .config console log report syz C ci-upstream-kasan-gce-root
2018/05/01 04:37 upstream 8188fc8bef8c d5b114b4 .config console log report syz C ci-upstream-kasan-gce-root
2018/12/06 16:41 upstream cf76c364a1e1 3ab38479 .config console log report syz ci-upstream-kasan-gce-selinux-root
2018/12/06 05:58 upstream d08970904582 764b42c4 .config console log report syz ci-upstream-kasan-gce-root
2018/12/06 05:57 upstream d08970904582 764b42c4 .config console log report syz ci-upstream-kasan-gce-smack-root
2018/10/20 13:32 upstream 270b77a0f30e ecb386fe .config console log report syz ci-upstream-kasan-gce-smack-root
2018/10/20 06:48 upstream c7b70a641df2 ecb386fe .config console log report syz ci-upstream-kasan-gce-selinux-root
2018/10/20 05:34 upstream c7b70a641df2 ecb386fe .config console log report syz ci-upstream-kasan-gce-root
2018/12/06 05:57 linux-next 442b8cea2477 764b42c4 .config console log report syz ci-upstream-linux-next-kasan-gce-root
2018/10/20 05:15 linux-next 8c60c36d0b8c ecb386fe .config console log report syz ci-upstream-linux-next-kasan-gce-root
2018/09/30 00:29 upstream 82ec752cce8b 41e4b329 .config console log report ci-upstream-kasan-gce-selinux-root
2018/05/08 14:06 upstream f142f08bf7ec 045bbd4a .config console log report ci-upstream-kasan-gce-root
2018/04/30 23:28 upstream 8188fc8bef8c d5b114b4 .config console log report ci-upstream-kasan-gce-root
* Struck through repros no longer work on HEAD.