syzbot has found a reproducer for the following crash on:
HEAD commit: c10b57a5 Linux 4.14.176
git tree: linux-4.14.y
console output:
https://syzkaller.appspot.com/x/log.txt?x=17a3136fe00000
syz repro:
https://syzkaller.appspot.com/x/repro.syz?x=12a9f930100000
C reproducer:
https://syzkaller.appspot.com/x/repro.c?x=1063136fe00000
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000401260
RDX: 0000000000000000 RSI: 0000000000000002 RDI: 00007ffc19ae55b0
RBP: 0000000000000000 R08: 0000000000000000 R09: 000000000000000e
R10: 0000000000000064 R11: 0000000000000246 R12: 0000000000402500
R13: 0000000000402590 R14: 0000000000000000 R15: 0000000000000000
divide error: 0000 [#1] PREEMPT SMP KASAN
Modules linked in:
CPU: 1 PID: 6367 Comm: syz-executor226 Not tainted 4.14.176-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff88809838e340 task.stack: ffff8880976c8000
RIP: 0010:fbcon_init+0x760/0x19a0 drivers/video/fbdev/core/fbcon.c:1116
RSP: 0018:ffff8880976cf7a0 EFLAGS: 00010246
RAX: 0000000000000280 RBX: 0000000000000014 RCX: 1ffff11012ea0f36
RDX: 0000000000000000 RSI: ffff8880975079b4 RDI: ffff88821924f478
RBP: ffff888097507600 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffff8882192d4040
R13: ffff88821924f2c0 R14: ffff888097507934 R15: 00000000000001e0
FS: 00000000019d9940(0000) GS:ffff8880aeb00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000004 CR3: 000000008d797000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
visual_init+0x332/0x5e0 drivers/tty/vt/vt.c:746
vc_allocate drivers/tty/vt/vt.c:793 [inline]
vc_allocate+0x2c3/0x590 drivers/tty/vt/vt.c:765
con_install+0x4d/0x490 drivers/tty/vt/vt.c:2892
tty_driver_install_tty drivers/tty/tty_io.c:1225 [inline]
tty_init_dev drivers/tty/tty_io.c:1338 [inline]
tty_init_dev+0xe1/0x3a0 drivers/tty/tty_io.c:1315
tty_open_by_driver drivers/tty/tty_io.c:1973 [inline]
tty_open+0x410/0x9c0 drivers/tty/tty_io.c:2021
chrdev_open+0x1fc/0x540 fs/char_dev.c:423
do_dentry_open+0x732/0xe90 fs/open.c:777
vfs_open+0x105/0x220 fs/open.c:888
do_last fs/namei.c:3428 [inline]
path_openat+0x8ca/0x3c50 fs/namei.c:3569
do_filp_open+0x18e/0x250 fs/namei.c:3603
do_sys_open+0x29d/0x3f0 fs/open.c:1081
do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x401260
RSP: 002b:00007ffc19ae5598 EFLAGS: 00000246 ORIG_RAX: 0000000000000002
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000401260
RDX: 0000000000000000 RSI: 0000000000000002 RDI: 00007ffc19ae55b0
RBP: 0000000000008516 R08: 0000000000000000 R09: 000000000000000e
R10: 0000000000000064 R11: 0000000000000246 R12: 0000000000402500
R13: 0000000000402590 R14: 0000000000000000 R15: 0000000000000000
Code: 30 48 ba 00 00 00 00 00 fc ff df 8b 44 24 18 48 c1 e9 03 0f b6 14 11 84 d2 74 09 80 fa 03 0f 8e c3 0f 00 00 31 d2 48 8b 74 24 38 <f7> b5 b0 03 00 00 48 89 f2 48 c1 ea 03 89 44 24 18 48 b8 00 00
RIP: fbcon_init+0x760/0x19a0 drivers/video/fbdev/core/fbcon.c:1116 RSP: ffff8880976cf7a0
---[ end trace 4c5f4e8b91d32a41 ]---