lkml.org 
[lkml]   [2019]   [Dec]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
Subjectgeneral protection fault in do_con_write
From
Hello,

syzbot found the following crash on:

HEAD commit: 76bb8b05 Merge tag 'kbuild-v5.5' of git://git.kernel.org/p..
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=1535d196e00000
kernel config: https://syzkaller.appspot.com/x/.config?x=dd226651cb0f364b
dashboard link: https://syzkaller.appspot.com/bug?extid=017265e8553724e514e8
compiler: gcc (GCC) 9.0.0 20181231 (experimental)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=14a2bb7ae00000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=16c20cdee00000

IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by: syzbot+017265e8553724e514e8@syzkaller.appspotmail.com

kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 9613 Comm: syz-executor287 Not tainted 5.4.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
Google 01/01/2011
RIP: 0010:do_con_write.part.0+0xa01/0x1ef0 drivers/tty/vt/vt.c:2760
Code: 7e fe ff ff 45 01 ef e8 8d cc 95 fd 48 8b 85 c8 fe ff ff 80 38 00 0f
85 71 12 00 00 49 8b 9e a0 03 00 00 48 89 d8 48 c1 e8 03 <42> 0f b6 14 20
48 89 d8 83 e0 07 83 c0 01 38 d0 7c 08 84 d2 0f 85
RSP: 0018:ffffc90001d776e8 EFLAGS: 00010203
RAX: 0000000020000001 RBX: 000000010000000e RCX: ffffffff83df2da0
RDX: 0000000000000000 RSI: ffffffff83df2df3 RDI: 0000000000000003
RBP: ffffc90001d77878 R08: ffff88809a546580 R09: ffff88809a546e10
R10: fffffbfff14b0ab0 R11: ffffffff8a585587 R12: dffffc0000000000
R13: 0000000000000000 R14: ffff88809b2b9000 R15: 00000000000007fe
FS: 0000000001678880(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f9ea7b34000 CR3: 00000000985d9000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
do_con_write drivers/tty/vt/vt.c:3146 [inline]
con_put_char+0xfa/0x110 drivers/tty/vt/vt.c:3145
tty_put_char+0xc5/0x160 drivers/tty/tty_io.c:3031
__process_echoes+0x37c/0xa40 drivers/tty/n_tty.c:708
flush_echoes drivers/tty/n_tty.c:829 [inline]
__receive_buf drivers/tty/n_tty.c:1648 [inline]
n_tty_receive_buf_common+0xc77/0x2b70 drivers/tty/n_tty.c:1742
n_tty_receive_buf+0x31/0x40 drivers/tty/n_tty.c:1771
tiocsti drivers/tty/tty_io.c:2198 [inline]
tty_ioctl+0x949/0x14f0 drivers/tty/tty_io.c:2574
vfs_ioctl fs/ioctl.c:47 [inline]
file_ioctl fs/ioctl.c:545 [inline]
do_vfs_ioctl+0x977/0x14e0 fs/ioctl.c:732
ksys_ioctl+0xab/0xd0 fs/ioctl.c:749
__do_sys_ioctl fs/ioctl.c:756 [inline]
__se_sys_ioctl fs/ioctl.c:754 [inline]
__x64_sys_ioctl+0x73/0xb0 fs/ioctl.c:754
do_syscall_64+0xfa/0x790 arch/x86/entry/common.c:294
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x444099
Code: 18 89 d0 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 48 89 f8 48 89 f7
48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff
ff 0f 83 7b d8 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007fffde6924f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 0000000000444099
RDX: 0000000020000040 RSI: 0000000000005412 RDI: 0000000000000004
RBP: 00000000006ce018 R08: 00000000004002e0 R09: 00000000004002e0
R10: 000000000000000f R11: 0000000000000246 R12: 0000000000401da0
R13: 0000000000401e30 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace 7e8070a124b9d12d ]---
RIP: 0010:do_con_write.part.0+0xa01/0x1ef0 drivers/tty/vt/vt.c:2760
Code: 7e fe ff ff 45 01 ef e8 8d cc 95 fd 48 8b 85 c8 fe ff ff 80 38 00 0f
85 71 12 00 00 49 8b 9e a0 03 00 00 48 89 d8 48 c1 e8 03 <42> 0f b6 14 20
48 89 d8 83 e0 07 83 c0 01 38 d0 7c 08 84 d2 0f 85
RSP: 0018:ffffc90001d776e8 EFLAGS: 00010203
RAX: 0000000020000001 RBX: 000000010000000e RCX: ffffffff83df2da0
RDX: 0000000000000000 RSI: ffffffff83df2df3 RDI: 0000000000000003
RBP: ffffc90001d77878 R08: ffff88809a546580 R09: ffff88809a546e10
R10: fffffbfff14b0ab0 R11: ffffffff8a585587 R12: dffffc0000000000
R13: 0000000000000000 R14: ffff88809b2b9000 R15: 00000000000007fe
FS: 0000000001678880(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f9ea7b34000 CR3: 00000000985d9000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400


---
This bug is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzkaller@googlegroups.com.

syzbot will keep track of this bug report. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
syzbot can test patches for this bug, for details see:
https://goo.gl/tpsmEJ#testing-patches

\
 
 \ /
  Last update: 2019-12-04 09:26    [W:0.038 / U:0.228 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site