INFO: task hung in virtscsi_tmf

7 views
Skip to first unread message

syzbot

unread,
Oct 24, 2020, 3:50:22 PM10/24/20
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 5b7a52cd Linux 4.14.202
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=12f8b7f7900000
kernel config: https://syzkaller.appspot.com/x/.config?x=fa386e02ca459165
dashboard link: https://syzkaller.appspot.com/bug?extid=9e72ba6e45503b8b18b7
compiler: gcc (GCC) 10.1.0-syz 20200507
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=176ec454500000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=12aa1888500000

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+9e72ba...@syzkaller.appspotmail.com

sd 0:0:1:0: device reset
sd 0:0:1:0: device reset
sd 0:0:1:0: device reset
sd 0:0:1:0: device reset
sd 0:0:1:0: device reset
INFO: task syz-executor155:4942 blocked for more than 140 seconds.
Not tainted 4.14.202-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor155 D28912 4942 8003 0x00000004
Call Trace:
context_switch kernel/sched/core.c:2808 [inline]
__schedule+0x88b/0x1de0 kernel/sched/core.c:3384
schedule+0x8d/0x1b0 kernel/sched/core.c:3428
schedule_timeout+0x80a/0xe90 kernel/time/timer.c:1731
do_wait_for_common kernel/sched/completion.c:91 [inline]
__wait_for_common kernel/sched/completion.c:112 [inline]
wait_for_common+0x272/0x430 kernel/sched/completion.c:123
virtscsi_tmf.constprop.0+0xe5/0x2d0 drivers/scsi/virtio_scsi.c:608
virtscsi_device_reset+0x275/0x320 drivers/scsi/virtio_scsi.c:650
scsi_try_bus_device_reset drivers/scsi/scsi_error.c:865 [inline]
scsi_ioctl_reset+0x3b7/0x780 drivers/scsi/scsi_error.c:2330
scsi_ioctl+0xc5/0x7dc drivers/scsi/scsi_ioctl.c:267
sg_ioctl+0x51f/0x2617 drivers/scsi/sg.c:1159
vfs_ioctl fs/ioctl.c:46 [inline]
file_ioctl fs/ioctl.c:500 [inline]
do_vfs_ioctl+0x75a/0xff0 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+0x46/0xbb
RIP: 0033:0x444fe9
RSP: 002b:00007fff82e28738 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000444fe9
RDX: 00000000200003c0 RSI: 0000000000002284 RDI: 0000000000000003
RBP: 00000000000f7e12 R08: 0000000000000004 R09: 00000000004002e0
R10: 000000000000000f R11: 0000000000000246 R12: 0000000000402100
R13: 0000000000402190 R14: 0000000000000000 R15: 0000000000000000
INFO: task syz-executor155:4943 blocked for more than 140 seconds.
Not tainted 4.14.202-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor155 D28912 4943 8006 0x00000004
Call Trace:
context_switch kernel/sched/core.c:2808 [inline]
__schedule+0x88b/0x1de0 kernel/sched/core.c:3384
schedule+0x8d/0x1b0 kernel/sched/core.c:3428
schedule_timeout+0x80a/0xe90 kernel/time/timer.c:1731
do_wait_for_common kernel/sched/completion.c:91 [inline]
__wait_for_common kernel/sched/completion.c:112 [inline]
wait_for_common+0x272/0x430 kernel/sched/completion.c:123
virtscsi_tmf.constprop.0+0xe5/0x2d0 drivers/scsi/virtio_scsi.c:608
virtscsi_device_reset+0x275/0x320 drivers/scsi/virtio_scsi.c:650
scsi_try_bus_device_reset drivers/scsi/scsi_error.c:865 [inline]
scsi_ioctl_reset+0x3b7/0x780 drivers/scsi/scsi_error.c:2330
scsi_ioctl+0xc5/0x7dc drivers/scsi/scsi_ioctl.c:267
sg_ioctl+0x51f/0x2617 drivers/scsi/sg.c:1159
vfs_ioctl fs/ioctl.c:46 [inline]
file_ioctl fs/ioctl.c:500 [inline]
do_vfs_ioctl+0x75a/0xff0 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+0x46/0xbb
RIP: 0033:0x444fe9
RSP: 002b:00007fff82e28738 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000444fe9
RDX: 00000000200003c0 RSI: 0000000000002284 RDI: 0000000000000003
RBP: 00000000000f7e1a R08: 0000000000000004 R09: 00000000004002e0
R10: 000000000000000f R11: 0000000000000246 R12: 0000000000402100
R13: 0000000000402190 R14: 0000000000000000 R15: 0000000000000000
INFO: task syz-executor155:4945 blocked for more than 140 seconds.
Not tainted 4.14.202-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor155 D28912 4945 8008 0x00000004
Call Trace:
context_switch kernel/sched/core.c:2808 [inline]
__schedule+0x88b/0x1de0 kernel/sched/core.c:3384
schedule+0x8d/0x1b0 kernel/sched/core.c:3428
scsi_block_when_processing_errors+0x299/0x340 drivers/scsi/scsi_error.c:315
sg_open+0x2f1/0x1490 drivers/scsi/sg.c:322
chrdev_open+0x23c/0x6d0 fs/char_dev.c:423
do_dentry_open+0x44b/0xec0 fs/open.c:777
vfs_open+0x105/0x220 fs/open.c:888
do_last fs/namei.c:3428 [inline]
path_openat+0x628/0x2970 fs/namei.c:3569
do_filp_open+0x179/0x3c0 fs/namei.c:3603
do_sys_open+0x296/0x410 fs/open.c:1081
do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x4010e0
RSP: 002b:00007fff82e28308 EFLAGS: 00000246 ORIG_RAX: 0000000000000002
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000004010e0
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00007fff82e28310
RBP: 6666666666666667 R08: 000000000000000f R09: 0000000000000004
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000402100
R13: 0000000000402190 R14: 0000000000000000 R15: 0000000000000000
INFO: task syz-executor155:4947 blocked for more than 140 seconds.
Not tainted 4.14.202-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor155 D28912 4947 8007 0x00000004
Call Trace:
context_switch kernel/sched/core.c:2808 [inline]
__schedule+0x88b/0x1de0 kernel/sched/core.c:3384
schedule+0x8d/0x1b0 kernel/sched/core.c:3428
scsi_block_when_processing_errors+0x299/0x340 drivers/scsi/scsi_error.c:315
sg_open+0x2f1/0x1490 drivers/scsi/sg.c:322
chrdev_open+0x23c/0x6d0 fs/char_dev.c:423
do_dentry_open+0x44b/0xec0 fs/open.c:777
vfs_open+0x105/0x220 fs/open.c:888
do_last fs/namei.c:3428 [inline]
path_openat+0x628/0x2970 fs/namei.c:3569
do_filp_open+0x179/0x3c0 fs/namei.c:3603
do_sys_open+0x296/0x410 fs/open.c:1081
do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x4010e0
RSP: 002b:00007fff82e28308 EFLAGS: 00000246 ORIG_RAX: 0000000000000002
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000004010e0
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00007fff82e28310
RBP: 6666666666666667 R08: 000000000000000f R09: 0000000000000004
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000402100
R13: 0000000000402190 R14: 0000000000000000 R15: 0000000000000000
INFO: task syz-executor155:4948 blocked for more than 140 seconds.
Not tainted 4.14.202-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor155 D28912 4948 8002 0x00000004
Call Trace:
context_switch kernel/sched/core.c:2808 [inline]
__schedule+0x88b/0x1de0 kernel/sched/core.c:3384
schedule+0x8d/0x1b0 kernel/sched/core.c:3428
scsi_block_when_processing_errors+0x299/0x340 drivers/scsi/scsi_error.c:315
sg_open+0x2f1/0x1490 drivers/scsi/sg.c:322
chrdev_open+0x23c/0x6d0 fs/char_dev.c:423
do_dentry_open+0x44b/0xec0 fs/open.c:777
vfs_open+0x105/0x220 fs/open.c:888
do_last fs/namei.c:3428 [inline]
path_openat+0x628/0x2970 fs/namei.c:3569
do_filp_open+0x179/0x3c0 fs/namei.c:3603
do_sys_open+0x296/0x410 fs/open.c:1081
do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x4010e0
RSP: 002b:00007fff82e28308 EFLAGS: 00000246 ORIG_RAX: 0000000000000002
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000004010e0
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00007fff82e28310
RBP: 6666666666666667 R08: 000000000000000f R09: 0000000000000004
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000402100
R13: 0000000000402190 R14: 0000000000000000 R15: 0000000000000000
INFO: task syz-executor155:4949 blocked for more than 140 seconds.
Not tainted 4.14.202-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor155 D28912 4949 8005 0x00000004
Call Trace:
context_switch kernel/sched/core.c:2808 [inline]
__schedule+0x88b/0x1de0 kernel/sched/core.c:3384
schedule+0x8d/0x1b0 kernel/sched/core.c:3428
scsi_block_when_processing_errors+0x299/0x340 drivers/scsi/scsi_error.c:315
sg_open+0x2f1/0x1490 drivers/scsi/sg.c:322
chrdev_open+0x23c/0x6d0 fs/char_dev.c:423
do_dentry_open+0x44b/0xec0 fs/open.c:777
vfs_open+0x105/0x220 fs/open.c:888
do_last fs/namei.c:3428 [inline]
path_openat+0x628/0x2970 fs/namei.c:3569
do_filp_open+0x179/0x3c0 fs/namei.c:3603
do_sys_open+0x296/0x410 fs/open.c:1081
do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x4010e0
RSP: 002b:00007fff82e28308 EFLAGS: 00000246 ORIG_RAX: 0000000000000002
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000004010e0
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00007fff82e28310
RBP: 6666666666666667 R08: 000000000000000f R09: 0000000000000004
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000402100
R13: 0000000000402190 R14: 0000000000000000 R15: 0000000000000000

Showing all locks held in the system:
1 lock held by khungtaskd/1524:
#0: (tasklist_lock){.+.+}, at: [<ffffffff81430a04>] debug_show_all_locks+0x7c/0x21a kernel/locking/lockdep.c:4548
1 lock held by in:imklog/7657:
#0: (&f->f_pos_lock){+.+.}, at: [<ffffffff818f88cb>] __fdget_pos+0x1fb/0x2b0 fs/file.c:769

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

NMI backtrace for cpu 1
CPU: 1 PID: 1524 Comm: khungtaskd Not tainted 4.14.202-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+0x1b2/0x283 lib/dump_stack.c:58
nmi_cpu_backtrace.cold+0x57/0x93 lib/nmi_backtrace.c:101
nmi_trigger_cpumask_backtrace+0x13a/0x17f 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+0x5b9/0xb40 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 1 to CPUs 0:
NMI backtrace for cpu 0 skipped: idling at pc 0xffffffff8720348e


---
This report 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 issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
syzbot can test patches for this issue, for details see:
https://goo.gl/tpsmEJ#testing-patches
Reply all
Reply to author
Forward
0 new messages