syzbot


INFO: task hung in virtscsi_tmf

Status: upstream: reported C repro on 2020/10/24 19:50
Reported-by: syzbot+9e72ba6e45503b8b18b7@syzkaller.appspotmail.com
First crash: 1339d, last: 1249d
Fix bisection: failed (error log, bisect log)
  
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 INFO: task hung in virtscsi_tmf C error 1 1253d 1313d 0/1 upstream: reported C repro on 2020/11/19 20:17
Last patch testing requests (2)
Created Duration User Patch Repo Result
2023/02/06 08:32 9m retest repro linux-4.14.y report log
2022/09/15 18:29 9m retest repro linux-4.14.y report log
Fix bisection attempts (4)
Created Duration User Patch Repo Result
2021/02/23 20:04 19m bisect fix linux-4.14.y error job log (0)
2021/01/22 21:05 39m bisect fix linux-4.14.y job log (0) log
2020/12/23 20:26 39m bisect fix linux-4.14.y job log (0) log
2020/11/23 19:49 36m bisect fix linux-4.14.y job log (0) log

Sample crash report:
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

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/10/24 19:49 linux-4.14.y 5b7a52cd2eef a1839e81 .config console log report syz C ci2-linux-4-14
* Struck through repros no longer work on HEAD.