syzbot


INFO: task hung in virtscsi_tmf

Status: upstream: reported C repro on 2020/11/19 20:17
Reported-by: syzbot+345cb6304253bd56db40@syzkaller.appspotmail.com
First crash: 1492d, last: 1432d
Fix bisection: failed (error log, bisect log)
  
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 INFO: task hung in virtscsi_tmf C error 1 1428d 1518d 0/1 upstream: reported C repro on 2020/10/24 19:50
Fix bisection attempts (4)
Created Duration User Patch Repo Result
2021/02/23 06:58 19m bisect fix linux-4.19.y error job log
2021/02/19 03:37 18m bisect fix linux-4.19.y error job log
2021/01/18 21:05 39m bisect fix linux-4.19.y OK (0) job log log
2020/12/19 20:22 39m bisect fix linux-4.19.y OK (0) job log 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-executor990:10211 blocked for more than 140 seconds.
      Not tainted 4.19.158-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor990 D28472 10211   8116 0x00000004
Call Trace:
 context_switch kernel/sched/core.c:2828 [inline]
 __schedule+0x887/0x2040 kernel/sched/core.c:3517
 schedule+0x8d/0x1b0 kernel/sched/core.c:3561
 schedule_timeout+0x92d/0xfe0 kernel/time/timer.c:1794
 do_wait_for_common kernel/sched/completion.c:83 [inline]
 __wait_for_common kernel/sched/completion.c:104 [inline]
 wait_for_common+0x29c/0x470 kernel/sched/completion.c:115
 virtscsi_tmf.constprop.0+0x103/0x350 drivers/scsi/virtio_scsi.c:591
 virtscsi_device_reset+0x275/0x320 drivers/scsi/virtio_scsi.c:633
 scsi_try_bus_device_reset drivers/scsi/scsi_error.c:900 [inline]
 scsi_ioctl_reset+0x3f9/0x8d0 drivers/scsi/scsi_error.c:2357
 scsi_ioctl+0xf6/0x894 drivers/scsi/scsi_ioctl.c:267
 sg_ioctl+0x5c1/0x2718 drivers/scsi/sg.c:1149
 vfs_ioctl fs/ioctl.c:46 [inline]
 file_ioctl fs/ioctl.c:501 [inline]
 do_vfs_ioctl+0xcdb/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:0x44a4a9
Code: Bad RIP value.
RSP: 002b:00007fe7255fedb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00000000006dbc28 RCX: 000000000044a4a9
RDX: 00000000200003c0 RSI: 0000000000002284 RDI: 0000000000000003
RBP: 00000000006dbc20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000006dbc2c
R13: 00007ffc0e49e0bf R14: 00007fe7255ff9c0 R15: 000000000000002d
INFO: task syz-executor990:10217 blocked for more than 140 seconds.
      Not tainted 4.19.158-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor990 D28912 10217   8119 0x00000004
Call Trace:
 context_switch kernel/sched/core.c:2828 [inline]
 __schedule+0x887/0x2040 kernel/sched/core.c:3517
 schedule+0x8d/0x1b0 kernel/sched/core.c:3561
 schedule_timeout+0x92d/0xfe0 kernel/time/timer.c:1794
 do_wait_for_common kernel/sched/completion.c:83 [inline]
 __wait_for_common kernel/sched/completion.c:104 [inline]
 wait_for_common+0x29c/0x470 kernel/sched/completion.c:115
 virtscsi_tmf.constprop.0+0x103/0x350 drivers/scsi/virtio_scsi.c:591
 virtscsi_device_reset+0x275/0x320 drivers/scsi/virtio_scsi.c:633
 scsi_try_bus_device_reset drivers/scsi/scsi_error.c:900 [inline]
 scsi_ioctl_reset+0x3f9/0x8d0 drivers/scsi/scsi_error.c:2357
 scsi_ioctl+0xf6/0x894 drivers/scsi/scsi_ioctl.c:267
 sg_ioctl+0x5c1/0x2718 drivers/scsi/sg.c:1149
 vfs_ioctl fs/ioctl.c:46 [inline]
 file_ioctl fs/ioctl.c:501 [inline]
 do_vfs_ioctl+0xcdb/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:0x44a4a9
Code: Bad RIP value.
RSP: 002b:00007fe7255fedb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00000000006dbc28 RCX: 000000000044a4a9
RDX: 00000000200003c0 RSI: 0000000000002284 RDI: 0000000000000003
RBP: 00000000006dbc20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000006dbc2c
R13: 00007ffc0e49e0bf R14: 00007fe7255ff9c0 R15: 000000000000002d
INFO: task syz-executor990:10221 blocked for more than 140 seconds.
      Not tainted 4.19.158-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor990 D29408 10221   8118 0x00000004
Call Trace:
 context_switch kernel/sched/core.c:2828 [inline]
 __schedule+0x887/0x2040 kernel/sched/core.c:3517
 schedule+0x8d/0x1b0 kernel/sched/core.c:3561
 scsi_block_when_processing_errors+0x338/0x3e0 drivers/scsi/scsi_error.c:337
 sg_open+0x384/0x1770 drivers/scsi/sg.c:321
 chrdev_open+0x266/0x770 fs/char_dev.c:423
 do_dentry_open+0x4aa/0x1160 fs/open.c:796
 do_last fs/namei.c:3421 [inline]
 path_openat+0x793/0x2df0 fs/namei.c:3537
 do_filp_open+0x18c/0x3f0 fs/namei.c:3567
 do_sys_open+0x3b3/0x520 fs/open.c:1085
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x405721
Code: Bad RIP value.
RSP: 002b:00007fe7255fe980 EFLAGS: 00000293 ORIG_RAX: 0000000000000002
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000405721
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00007fe7255fe990
RBP: 6666666666666667 R08: 000000000000000f R09: 00007fe7255ff700
R10: 00007fe7255ff9d0 R11: 0000000000000293 R12: 00000000006dbc2c
R13: 00007ffc0e49e0bf R14: 00007fe7255ff9c0 R15: 000000000000002d
INFO: task syz-executor990:10222 blocked for more than 140 seconds.
      Not tainted 4.19.158-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor990 D29408 10222   8122 0x00000004
Call Trace:
 context_switch kernel/sched/core.c:2828 [inline]
 __schedule+0x887/0x2040 kernel/sched/core.c:3517
 schedule+0x8d/0x1b0 kernel/sched/core.c:3561
 scsi_block_when_processing_errors+0x338/0x3e0 drivers/scsi/scsi_error.c:337
 sg_open+0x384/0x1770 drivers/scsi/sg.c:321
 chrdev_open+0x266/0x770 fs/char_dev.c:423
 do_dentry_open+0x4aa/0x1160 fs/open.c:796
 do_last fs/namei.c:3421 [inline]
 path_openat+0x793/0x2df0 fs/namei.c:3537
 do_filp_open+0x18c/0x3f0 fs/namei.c:3567
 do_sys_open+0x3b3/0x520 fs/open.c:1085
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x405721
Code: Bad RIP value.
RSP: 002b:00007fe7255fe980 EFLAGS: 00000293 ORIG_RAX: 0000000000000002
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000405721
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00007fe7255fe990
RBP: 6666666666666667 R08: 000000000000000f R09: 00007fe7255ff700
R10: 00007fe7255ff9d0 R11: 0000000000000293 R12: 00000000006dbc2c
R13: 00007ffc0e49e0bf R14: 00007fe7255ff9c0 R15: 000000000000002d
INFO: task syz-executor990:10220 blocked for more than 140 seconds.
      Not tainted 4.19.158-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor990 D29408 10220   8115 0x00000004
Call Trace:
 context_switch kernel/sched/core.c:2828 [inline]
 __schedule+0x887/0x2040 kernel/sched/core.c:3517
 schedule+0x8d/0x1b0 kernel/sched/core.c:3561
 scsi_block_when_processing_errors+0x338/0x3e0 drivers/scsi/scsi_error.c:337
 sg_open+0x384/0x1770 drivers/scsi/sg.c:321
 chrdev_open+0x266/0x770 fs/char_dev.c:423
 do_dentry_open+0x4aa/0x1160 fs/open.c:796
 do_last fs/namei.c:3421 [inline]
 path_openat+0x793/0x2df0 fs/namei.c:3537
 do_filp_open+0x18c/0x3f0 fs/namei.c:3567
 do_sys_open+0x3b3/0x520 fs/open.c:1085
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x405721
Code: Bad RIP value.
RSP: 002b:00007fe7255fe980 EFLAGS: 00000293 ORIG_RAX: 0000000000000002
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000405721
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00007fe7255fe990
RBP: 6666666666666667 R08: 000000000000000f R09: 00007fe7255ff700
R10: 00007fe7255ff9d0 R11: 0000000000000293 R12: 00000000006dbc2c
R13: 00007ffc0e49e0bf R14: 00007fe7255ff9c0 R15: 000000000000002d
INFO: task syz-executor990:10224 blocked for more than 140 seconds.
      Not tainted 4.19.158-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor990 D28888 10224   8120 0x00000004
Call Trace:
 context_switch kernel/sched/core.c:2828 [inline]
 __schedule+0x887/0x2040 kernel/sched/core.c:3517
 schedule+0x8d/0x1b0 kernel/sched/core.c:3561
 scsi_block_when_processing_errors+0x338/0x3e0 drivers/scsi/scsi_error.c:337
 sg_open+0x384/0x1770 drivers/scsi/sg.c:321
 chrdev_open+0x266/0x770 fs/char_dev.c:423
 do_dentry_open+0x4aa/0x1160 fs/open.c:796
 do_last fs/namei.c:3421 [inline]
 path_openat+0x793/0x2df0 fs/namei.c:3537
 do_filp_open+0x18c/0x3f0 fs/namei.c:3567
 do_sys_open+0x3b3/0x520 fs/open.c:1085
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x405721
Code: Bad RIP value.
RSP: 002b:00007fe7255fe980 EFLAGS: 00000293 ORIG_RAX: 0000000000000002
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000405721
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00007fe7255fe990
RBP: 6666666666666667 R08: 000000000000000f R09: 00007fe7255ff700
R10: 00007fe7255ff9d0 R11: 0000000000000293 R12: 00000000006dbc2c
R13: 00007ffc0e49e0bf R14: 00007fe7255ff9c0 R15: 000000000000002d

Showing all locks held in the system:
1 lock held by khungtaskd/1555:
 #0: 0000000001cf3289 (rcu_read_lock){....}, at: debug_show_all_locks+0x53/0x265 kernel/locking/lockdep.c:4440
1 lock held by in:imklog/7792:
 #0: 000000009a063037 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x26f/0x310 fs/file.c:767

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

NMI backtrace for cpu 0
CPU: 0 PID: 1555 Comm: khungtaskd Not tainted 4.19.158-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+0x1fc/0x2fe 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+0x991/0xe60 kernel/hung_task.c:287
 kthread+0x33f/0x460 kernel/kthread.c:259
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 4672 Comm: systemd-journal Not tainted 4.19.158-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:mnt_add_count fs/namespace.c:142 [inline]
RIP: 0010:__legitimize_mnt+0x4e/0x250 fs/namespace.c:576
Code: 75 62 e8 85 5c b7 ff 48 85 db 74 46 e8 7b 5c b7 ff 4c 8d 6b 28 48 b8 00 00 00 00 00 fc ff df 4c 89 ea 48 c1 ea 03 80 3c 02 00 <0f> 85 be 01 00 00 48 8b 43 28 65 ff 00 f0 83 44 24 fc 00 8b 2d 09
RSP: 0018:ffff8880a18f7b08 EFLAGS: 00000246
RAX: dffffc0000000000 RBX: ffff8880a3a97c20 RCX: ffffffff81ad7371
RDX: 1ffff11014752f89 RSI: ffffffff81ad7385 RDI: 0000000000000004
RBP: 000000000000052c R08: 0000000000000000 R09: 000000000000052c
R10: 0000000000000004 R11: 0000000000000000 R12: 000000000000052c
R13: ffff8880a3a97c48 R14: ffff8880a18f7d38 R15: 0000000000000040
FS:  00007f3050d418c0(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fd86c028000 CR3: 00000000a1a8f000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 legitimize_path.isra.0+0x38/0x1c0 fs/namei.c:618
 unlazy_walk+0x108/0x540 fs/namei.c:677
 complete_walk+0xc6/0x240 fs/namei.c:790
 path_lookupat+0x26f/0x8d0 fs/namei.c:2323
 filename_lookup+0x1ac/0x5a0 fs/namei.c:2349
 user_path_at include/linux/namei.h:57 [inline]
 do_faccessat+0x248/0x7a0 fs/open.c:397
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f304fffd9c7
Code: 83 c4 08 48 3d 01 f0 ff ff 73 01 c3 48 8b 0d c8 d4 2b 00 f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 b8 15 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d a1 d4 2b 00 f7 d8 64 89 01 48
RSP: 002b:00007fff0bd45fd8 EFLAGS: 00000246 ORIG_RAX: 0000000000000015
RAX: ffffffffffffffda RBX: 00007fff0bd48ef0 RCX: 00007f304fffd9c7
RDX: 00007f3050a6ea00 RSI: 0000000000000000 RDI: 000055beaf2379a3
RBP: 00007fff0bd46010 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000069 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fff0bd48ef0 R15: 00007fff0bd46500

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/11/19 20:16 linux-4.19.y 2c746135a12e 0767f13f .config console log report syz C ci2-linux-4-19
* Struck through repros no longer work on HEAD.