INFO: task hung in vcs_open

4 views
Skip to first unread message

syzbot

unread,
Mar 10, 2020, 5:46:12 PM3/10/20
to syzkaller...@googlegroups.com
Hello,

syzbot found the following crash on:

HEAD commit: 78d697fc Linux 4.14.172
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=15149c39e00000
kernel config: https://syzkaller.appspot.com/x/.config?x=3484a1ea90b8523a
dashboard link: https://syzkaller.appspot.com/bug?extid=7fddf746887eadd5f171
compiler: gcc (GCC) 9.0.0 20181231 (experimental)

Unfortunately, I don't have any reproducer for this crash yet.

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

batman_adv: batadv0: Not using interface veth471 (retrying later): interface not active
IPv6: ADDRCONF(NETDEV_UP): veth471: link is not ready
batman_adv: batadv0: Interface activated: veth471
INFO: task syz-executor.4:3724 blocked for more than 140 seconds.
Not tainted 4.14.172-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor.4 D26336 3724 7360 0x00000004
Call Trace:
schedule+0x8d/0x1b0 kernel/sched/core.c:3428
schedule_timeout+0x946/0xe40 kernel/time/timer.c:1723
__down_common kernel/locking/semaphore.c:221 [inline]
__down+0x160/0x290 kernel/locking/semaphore.c:238
down+0x57/0x80 kernel/locking/semaphore.c:62
console_lock+0x24/0x70 kernel/printk/printk.c:2216
vcs_open+0x3d/0x80 drivers/tty/vt/vc_screen.c:599
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:891
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:1084
do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x45c4a9
RSP: 002b:00007fca5c9e1c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007fca5c9e26d4 RCX: 000000000045c4a9
RDX: 0000000000000000 RSI: 0000000020000040 RDI: ffffffffffffff9c
RBP: 000000000076bfc0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 00000000000007fe R14: 00000000004ca7e8 R15: 000000000076bfcc
INFO: task syz-executor.2:3777 blocked for more than 140 seconds.
Not tainted 4.14.172-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor.2 D28448 3777 3618 0x00000004
Call Trace:
schedule+0x8d/0x1b0 kernel/sched/core.c:3428
schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:3486
__mutex_lock_common kernel/locking/mutex.c:833 [inline]
__mutex_lock+0x73c/0x1470 kernel/locking/mutex.c:893
fb_open+0xb7/0x400 drivers/video/fbdev/core/fbmem.c:1468
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:891
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:1084
do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x45c4a9
RSP: 002b:00007f5a885cac78 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007f5a885cb6d4 RCX: 000000000045c4a9
RDX: 0000000000000000 RSI: 0000000020000180 RDI: ffffffffffffff9c
RBP: 000000000076bfc0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 0000000000000799 R14: 00000000004ca11a R15: 000000000076bfcc

Showing all locks held in the system:
1 lock held by khungtaskd/1056:
#0: (tasklist_lock){.+.+}, at: [<ffffffff81465b23>] debug_show_all_locks+0x7c/0x21a kernel/locking/lockdep.c:4544
1 lock held by rsyslogd/7188:
#0: (&f->f_pos_lock){+.+.}, at: [<ffffffff8191b3b6>] __fdget_pos+0xa6/0xc0 fs/file.c:769
2 locks held by getty/7311:
#0: (&tty->ldisc_sem){++++}, at: [<ffffffff833aa792>] tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:284
#1: (&ldata->atomic_read_lock){+.+.}, at: [<ffffffff8339e3d4>] n_tty_read+0x1e4/0x16f0 drivers/tty/n_tty.c:2156
2 locks held by getty/7312:
#0: (&tty->ldisc_sem){++++}, at: [<ffffffff833aa792>] tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:284
#1: (&ldata->atomic_read_lock){+.+.}, at: [<ffffffff8339e3d4>] n_tty_read+0x1e4/0x16f0 drivers/tty/n_tty.c:2156
2 locks held by getty/7313:
#0: (&tty->ldisc_sem){++++}, at: [<ffffffff833aa792>] tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:284
#1: (&ldata->atomic_read_lock){+.+.}, at: [<ffffffff8339e3d4>] n_tty_read+0x1e4/0x16f0 drivers/tty/n_tty.c:2156
2 locks held by getty/7314:
#0: (&tty->ldisc_sem){++++}, at: [<ffffffff833aa792>] tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:284
#1: (&ldata->atomic_read_lock){+.+.}, at: [<ffffffff8339e3d4>] n_tty_read+0x1e4/0x16f0 drivers/tty/n_tty.c:2156
2 locks held by getty/7315:
#0: (&tty->ldisc_sem){++++}, at: [<ffffffff833aa792>] tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:284
#1: (&ldata->atomic_read_lock){+.+.}, at: [<ffffffff8339e3d4>] n_tty_read+0x1e4/0x16f0 drivers/tty/n_tty.c:2156
2 locks held by getty/7316:
#0: (&tty->ldisc_sem){++++}, at: [<ffffffff833aa792>] tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:284
#1: (&ldata->atomic_read_lock){+.+.}, at: [<ffffffff8339e3d4>] n_tty_read+0x1e4/0x16f0 drivers/tty/n_tty.c:2156
2 locks held by getty/7317:
#0: (&tty->ldisc_sem){++++}, at: [<ffffffff833aa792>] tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:284
#1: (&ldata->atomic_read_lock){+.+.}, at: [<ffffffff8339e3d4>] n_tty_read+0x1e4/0x16f0 drivers/tty/n_tty.c:2156
1 lock held by syz-executor.2/3777:
#0: (&fb_info->lock){+.+.}, at: [<ffffffff8316d577>] fb_open+0xb7/0x400 drivers/video/fbdev/core/fbmem.c:1468

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

NMI backtrace for cpu 0
CPU: 0 PID: 1056 Comm: khungtaskd Not tainted 4.14.172-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:17 [inline]
dump_stack+0x13e/0x194 lib/dump_stack.c:58
nmi_cpu_backtrace.cold+0x57/0x93 lib/nmi_backtrace.c:101
nmi_trigger_cpumask_backtrace+0x139/0x17e lib/nmi_backtrace.c:62
trigger_all_cpu_backtrace include/linux/nmi.h:140 [inline]
check_hung_uninterruptible_tasks kernel/hung_task.c:195 [inline]
watchdog+0x5e2/0xb80 kernel/hung_task.c:274
kthread+0x30d/0x420 kernel/kthread.c:232
ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:404
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 3763 Comm: syz-executor.2 Not tainted 4.14.172-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff88802858c100 task.stack: ffff888047898000
RIP: 0010:__sanitizer_cov_trace_pc+0x3d/0x50 kernel/kcov.c:87
RSP: 0018:ffff88804789f3c8 EFLAGS: 00000246
RAX: 0000000000040000 RBX: ffff8880000a0006 RCX: ffffc90006825000
RDX: 000000000003ffff RSI: ffffffff831e5da3 RDI: ffff88804789f480
RBP: 0000000000000006 R08: 000000000000ffff R09: ffffed1043244224
R10: ffffed1043244223 R11: ffff88821922111f R12: ffff8880000a0004
R13: 0000000000000000 R14: 00000000017c72f8 R15: 0000000000000005
FS: 00007f5a885ec700(0000) GS:ffff8880aeb00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f0ccd1f4000 CR3: 000000004b003000 CR4: 00000000001426e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
writeb arch/x86/include/asm/io.h:65 [inline]
vga16fb_fillrect+0x943/0x1880 drivers/video/fbdev/vga16fb.c:923
bit_clear_margins+0x2a4/0x480 drivers/video/fbdev/core/bitblit.c:232
fbcon_clear_margins+0x285/0x310 drivers/video/fbdev/core/fbcon.c:1317
fbcon_switch+0xcdf/0x1780 drivers/video/fbdev/core/fbcon.c:2299
redraw_screen+0x331/0x770 drivers/tty/vt/vt.c:688
fbcon_modechanged+0x59d/0x890 drivers/video/fbdev/core/fbcon.c:2946
fbcon_event_notify+0x11a/0x1746 drivers/video/fbdev/core/fbcon.c:3299
notifier_call_chain+0x107/0x1a0 kernel/notifier.c:93
__blocking_notifier_call_chain kernel/notifier.c:317 [inline]
__blocking_notifier_call_chain kernel/notifier.c:304 [inline]
blocking_notifier_call_chain kernel/notifier.c:328 [inline]
blocking_notifier_call_chain+0x79/0x90 kernel/notifier.c:325
fb_set_var+0xaad/0xc70 drivers/video/fbdev/core/fbmem.c:1054
do_fb_ioctl+0x3cc/0x940 drivers/video/fbdev/core/fbmem.c:1127
fb_ioctl+0xdd/0x130 drivers/video/fbdev/core/fbmem.c:1242
vfs_ioctl fs/ioctl.c:46 [inline]
file_ioctl fs/ioctl.c:500 [inline]
do_vfs_ioctl+0x75a/0xfe0 fs/ioctl.c:684
SYSC_ioctl fs/ioctl.c:701 [inline]
SyS_ioctl+0x7f/0xb0 fs/ioctl.c:692
do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x45c4a9
RSP: 002b:00007f5a885ebc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f5a885ec6d4 RCX: 000000000045c4a9
RDX: 0000000020000000 RSI: 0000000000004601 RDI: 0000000000000004
RBP: 000000000076bf20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 00000000000002ef R14: 00000000004c50e2 R15: 000000000076bf2c
Code: a8 a7 7e 81 e2 00 01 1f 00 75 0b 8b 90 50 13 00 00 83 fa 01 74 01 c3 48 8b 34 24 48 8b 88 58 13 00 00 8b 80 54 13 00 00 48 8b 11 <48> 83 c2 01 48 39 d0 76 e2 48 89 34 d1 48 89 11 c3 66 90 41 57


---
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 syzk...@googlegroups.com.

syzbot will keep track of this bug report. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

syzbot

unread,
Sep 30, 2020, 6:12:17 AM9/30/20
to syzkaller...@googlegroups.com
Auto-closing this bug as obsolete.
Crashes did not happen for a while, no reproducer and no activity.
Reply all
Reply to author
Forward
0 new messages