syzbot


INFO: task hung in vt_resize

Status: auto-closed as invalid on 2020/08/19 20:33
Reported-by: syzbot+527d049f1406956f6a94@syzkaller.appspotmail.com
First crash: 1676d, last: 1676d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in vt_resize (2) serial 1 1606d 1606d 0/28 auto-closed as invalid on 2020/09/29 03:27
upstream INFO: task hung in vt_resize serial 1 1730d 1727d 0/28 auto-closed as invalid on 2020/06/27 10:07
linux-4.14 INFO: task hung in vt_resize 1 1790d 1790d 0/1 auto-closed as invalid on 2020/04/28 10:00
linux-4.14 INFO: task hung in vt_resize (2) 1 1638d 1638d 0/1 auto-closed as invalid on 2020/09/27 00:31

Sample crash report:
NOHZ: local_softirq_pending 08
INFO: task syz-executor.4:7307 blocked for more than 140 seconds.
      Not tainted 4.19.117-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor.4  D29280  7307   6830 0x00000004
Call Trace:
 schedule+0x8d/0x1b0 kernel/sched/core.c:3559
 schedule_timeout+0x896/0xf20 kernel/time/timer.c:1782
 __down_common kernel/locking/semaphore.c:221 [inline]
 __down+0x176/0x2c0 kernel/locking/semaphore.c:238
 down+0x57/0x80 kernel/locking/semaphore.c:62
 console_lock+0x25/0x80 kernel/printk/printk.c:2244
 vt_resize+0x41/0xe0 drivers/tty/vt/vt.c:1351
 tiocswinsz drivers/tty/tty_io.c:2275 [inline]
 tty_ioctl+0xbdf/0x1420 drivers/tty/tty_io.c:2584
 vfs_ioctl fs/ioctl.c:46 [inline]
 file_ioctl fs/ioctl.c:501 [inline]
 do_vfs_ioctl+0xcda/0x12e0 fs/ioctl.c:688
 ksys_ioctl+0x9b/0xc0 fs/ioctl.c:705
 __do_sys_ioctl fs/ioctl.c:712 [inline]
 __se_sys_ioctl fs/ioctl.c:710 [inline]
 __x64_sys_ioctl+0x6f/0xb0 fs/ioctl.c:710
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x45c829
Code: Bad RIP value.
RSP: 002b:00007f7f9f621c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00000000004eee40 RCX: 000000000045c829
RDX: 00000000200002c0 RSI: 0000000000005414 RDI: 0000000000000005
RBP: 000000000078c040 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 000000000000058e R14: 00000000004c823c R15: 00007f7f9f6226d4
INFO: task syz-executor.5:7247 blocked for more than 140 seconds.
      Not tainted 4.19.117-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor.5  D29264  7247   6882 0x00000004
Call Trace:
 schedule+0x8d/0x1b0 kernel/sched/core.c:3559
 schedule_timeout+0x896/0xf20 kernel/time/timer.c:1782
 __down_common kernel/locking/semaphore.c:221 [inline]
 __down+0x176/0x2c0 kernel/locking/semaphore.c:238
 down+0x57/0x80 kernel/locking/semaphore.c:62
 console_lock+0x25/0x80 kernel/printk/printk.c:2244
 do_con_write.part.0+0xa8/0x1db0 drivers/tty/vt/vt.c:2570
 do_con_write drivers/tty/vt/vt.c:2565 [inline]
 con_write+0x41/0xe0 drivers/tty/vt/vt.c:3132
 process_output_block drivers/tty/n_tty.c:593 [inline]
 n_tty_write+0x3ee/0x1080 drivers/tty/n_tty.c:2331
 do_tty_write drivers/tty/tty_io.c:960 [inline]
 tty_write+0x452/0x790 drivers/tty/tty_io.c:1044
 __vfs_write+0xf7/0x760 fs/read_write.c:485
 vfs_write+0x206/0x550 fs/read_write.c:549
 ksys_write+0x12b/0x2a0 fs/read_write.c:599
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x45c829
Code: Bad RIP value.
RSP: 002b:00007f03075c5c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 000000000050c240 RCX: 000000000045c829
RDX: 0000000000000040 RSI: 0000000020000140 RDI: 0000000000000003
RBP: 000000000078bf00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 0000000000000cde R14: 00000000004cf088 R15: 00007f03075c66d4

Showing all locks held in the system:
1 lock held by khungtaskd/1081:
 #0: 000000000e5fc201 (rcu_read_lock){....}, at: debug_show_all_locks+0x53/0x265 kernel/locking/lockdep.c:4440
1 lock held by in:imklog/6170:
 #0: 000000002ca9b6cf (&f->f_pos_lock){+.+.}, at: __fdget_pos+0xe3/0x100 fs/file.c:767
2 locks held by agetty/6367:
 #0: 0000000098976ed9 (&tty->ldisc_sem){++++}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:272
 #1: 0000000069916f77 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x217/0x1a50 drivers/tty/n_tty.c:2154
1 lock held by syz-executor.4/7241:
4 locks held by syz-executor.5/7247:
 #0: 0000000098976ed9 (&tty->ldisc_sem){++++}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:272
 #1: 00000000a59832c5 (&tty->atomic_write_lock){+.+.}, at: tty_write_lock+0x1e/0x80 drivers/tty/tty_io.c:886
 #2: 00000000ac89a649 (&tty->termios_rwsem){++++}, at: n_tty_write+0x1b2/0x1080 drivers/tty/n_tty.c:2314
 #3: 00000000ea8a399d (&ldata->output_lock){+.+.}, at: process_output_block drivers/tty/n_tty.c:548 [inline]
 #3: 00000000ea8a399d (&ldata->output_lock){+.+.}, at: n_tty_write+0x505/0x1080 drivers/tty/n_tty.c:2331

=============================================

NMI backtrace for cpu 1
CPU: 1 PID: 1081 Comm: khungtaskd Not tainted 4.19.117-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x188/0x20d lib/dump_stack.c:118
 nmi_cpu_backtrace.cold+0x63/0xa2 lib/nmi_backtrace.c:101
 nmi_trigger_cpumask_backtrace+0x1a6/0x1eb lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:203 [inline]
 watchdog+0x962/0xe40 kernel/hung_task.c:287
 kthread+0x34a/0x420 kernel/kthread.c:246
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 7241 Comm: syz-executor.4 Not tainted 4.19.117-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:cfb_fillrect+0x405/0x7a0 drivers/video/fbdev/core/cfbfillrect.c:327
Code: 24 18 eb 03 4d 89 ee e8 39 6f f1 fd 0f b6 4c 24 10 89 d8 83 e3 3f 6a 00 41 b9 40 00 00 00 44 8b 44 24 10 89 da 48 89 ef d3 f8 <4c> 89 f9 48 98 4d 8d 24 c4 48 8b 44 24 08 4c 89 e6 ff d0 48 8b 44
RSP: 0018:ffff888210147620 EFLAGS: 00000246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000006
RDX: 0000000000000000 RSI: ffffffff83763a67 RDI: ffff8880a5717640
RBP: ffff8880a5717640 R08: 0000000000000040 R09: 0000000000000040
R10: ffffed1014ac758b R11: ffff8880a563ac5f R12: ffff8880000a0000
R13: 0000000029cf9130 R14: 0000000029cf9130 R15: 0000000000000000
FS:  00007f7f9f664700(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c42e27ace8 CR3: 0000000210643000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 vga16fb_fillrect+0x68f/0x1960 drivers/video/fbdev/vga16fb.c:951
 bit_clear_margins+0x2d5/0x4a0 drivers/video/fbdev/core/bitblit.c:232
 fbcon_clear_margins+0x2d8/0x370 drivers/video/fbdev/core/fbcon.c:1342
 fbcon_switch+0xe0f/0x1970 drivers/video/fbdev/core/fbcon.c:2324
 redraw_screen+0x37d/0x870 drivers/tty/vt/vt.c:1009
 vc_do_resize+0x108e/0x1380 drivers/tty/vt/vt.c:1311
 vt_resize+0xa3/0xe0 drivers/tty/vt/vt.c:1352
 tiocswinsz drivers/tty/tty_io.c:2275 [inline]
 tty_ioctl+0xbdf/0x1420 drivers/tty/tty_io.c:2584
 vfs_ioctl fs/ioctl.c:46 [inline]
 file_ioctl fs/ioctl.c:501 [inline]
 do_vfs_ioctl+0xcda/0x12e0 fs/ioctl.c:688
 ksys_ioctl+0x9b/0xc0 fs/ioctl.c:705
 __do_sys_ioctl fs/ioctl.c:712 [inline]
 __se_sys_ioctl fs/ioctl.c:710 [inline]
 __x64_sys_ioctl+0x6f/0xb0 fs/ioctl.c:710
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x45c829
Code: 0d b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 db b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f7f9f663c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00000000004eee40 RCX: 000000000045c829
RDX: 00000000200002c0 RSI: 0000000000005414 RDI: 0000000000000005
RBP: 000000000078bf00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 000000000000058e R14: 00000000004c823c R15: 00007f7f9f6646d4

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/04/21 20:32 linux-4.19.y 8e2406c85187 f20434a8 .config console log report ci2-linux-4-19
* Struck through repros no longer work on HEAD.