syzbot


INFO: task hung in vhost_vsock_dev_release (2)

Status: auto-obsoleted due to no activity on 2024/12/26 17:27
Subsystems: kvm net virt
[Documentation on labels]
First crash: 193d, last: 115d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 INFO: task hung in vhost_vsock_dev_release 1 2089d 2089d 0/1 auto-closed as invalid on 2019/10/25 08:41
upstream INFO: task hung in vhost_vsock_dev_release net virt kvm 1 305d 305d 0/28 auto-obsoleted due to no activity on 2024/06/19 05:14

Sample crash report:
INFO: task syz.3.947:11517 blocked for more than 143 seconds.
      Not tainted 6.11.0-syzkaller-11558-g075dbe9f6e3c #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.3.947       state:D stack:23056 pid:11517 tgid:11517 ppid:11049  flags:0x00004004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5315 [inline]
 __schedule+0x1843/0x4ae0 kernel/sched/core.c:6675
 __schedule_loop kernel/sched/core.c:6752 [inline]
 schedule+0x14b/0x320 kernel/sched/core.c:6767
 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6824
 __mutex_lock_common kernel/locking/mutex.c:684 [inline]
 __mutex_lock+0x6a7/0xd70 kernel/locking/mutex.c:752
 vhost_vsock_stop drivers/vhost/vsock.c:637 [inline]
 vhost_vsock_dev_release+0x1e5/0x410 drivers/vhost/vsock.c:748
 __fput+0x23f/0x880 fs/file_table.c:431
 task_work_run+0x24f/0x310 kernel/task_work.c:228
 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:114 [inline]
 exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline]
 __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline]
 syscall_exit_to_user_mode+0x168/0x370 kernel/entry/common.c:218
 do_syscall_64+0x100/0x230 arch/x86/entry/common.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fc676d7df39
RSP: 002b:00007ffd51600178 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4
RAX: 0000000000000000 RBX: 00007fc676f37a80 RCX: 00007fc676d7df39
RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003
RBP: 00007fc676f37a80 R08: 0000000000000006 R09: 00007ffd5160046f
R10: 00000000005ee390 R11: 0000000000000246 R12: 00000000000fe29e
R13: 00007ffd51600280 R14: 0000000000000032 R15: ffffffffffffffff
 </TASK>
INFO: task vhost-11531:11538 blocked for more than 144 seconds.
      Not tainted 6.11.0-syzkaller-11558-g075dbe9f6e3c #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:vhost-11531     state:D stack:24984 pid:11538 tgid:11517 ppid:11049  flags:0x00004006
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5315 [inline]
 __schedule+0x1843/0x4ae0 kernel/sched/core.c:6675
 __schedule_loop kernel/sched/core.c:6752 [inline]
 schedule+0x14b/0x320 kernel/sched/core.c:6767
 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6824
 rwsem_down_read_slowpath kernel/locking/rwsem.c:1086 [inline]
 __down_read_common kernel/locking/rwsem.c:1250 [inline]
 __down_read kernel/locking/rwsem.c:1263 [inline]
 down_read+0x705/0xa40 kernel/locking/rwsem.c:1528
 filemap_invalidate_lock_shared include/linux/fs.h:870 [inline]
 page_cache_ra_unbounded+0x135/0x8a0 mm/readahead.c:226
 do_sync_mmap_readahead+0x499/0x970
 filemap_fault+0x8c5/0x1950 mm/filemap.c:3339
 __do_fault+0x135/0x460 mm/memory.c:4876
 do_shared_fault mm/memory.c:5346 [inline]
 do_fault mm/memory.c:5420 [inline]
 do_pte_missing mm/memory.c:3965 [inline]
 handle_pte_fault+0x1105/0x6800 mm/memory.c:5751
 __handle_mm_fault mm/memory.c:5894 [inline]
 handle_mm_fault+0x1053/0x1ad0 mm/memory.c:6062
 do_user_addr_fault arch/x86/mm/fault.c:1389 [inline]
 handle_page_fault arch/x86/mm/fault.c:1481 [inline]
 exc_page_fault+0x2b9/0x8c0 arch/x86/mm/fault.c:1539
 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623
RIP: 0010:__put_user_nocheck_2+0x7/0x20 arch/x86/lib/putuser.S:78
Code: d9 0f 01 cb 66 89 01 31 c9 0f 01 ca c3 cc cc cc cc 66 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 0f 01 cb <66> 89 01 31 c9 0f 01 ca c3 cc cc cc cc 66 2e 0f 1f 84 00 00 00 00
RSP: 0018:ffffc900046dfb78 EFLAGS: 00050246
RAX: 0000000000000001 RBX: 0000000000000001 RCX: 00000000200000c0
RDX: ffff88801e379e00 RSI: 0000000000000001 RDI: 0000000000000000
RBP: 0000000000000001 R08: ffffffff89080466 R09: 1ffffffff20375e5
R10: dffffc0000000000 R11: fffffbfff20375e6 R12: dffffc0000000000
R13: dffffc0000000000 R14: ffff888026e84bf8 R15: ffff888026e84cb0
 vhost_put_used_flags drivers/vhost/vhost.c:1300 [inline]
 vhost_update_used_flags+0x16a/0x2b0 drivers/vhost/vhost.c:2346
 vhost_disable_notify+0xad/0x1b0 drivers/vhost/vhost.c:2911
 vhost_vsock_handle_tx_kick+0x182/0xe20 drivers/vhost/vsock.c:497
 vhost_run_work_list+0x145/0x1c0 drivers/vhost/vhost.c:407
 vhost_task_fn+0x267/0x3f0 kernel/vhost_task.c:49
 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>
INFO: task syz.2.970:11644 blocked for more than 144 seconds.
      Not tainted 6.11.0-syzkaller-11558-g075dbe9f6e3c #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.2.970       state:D stack:23512 pid:11644 tgid:11639 ppid:11091  flags:0x00000004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5315 [inline]
 __schedule+0x1843/0x4ae0 kernel/sched/core.c:6675
 __schedule_loop kernel/sched/core.c:6752 [inline]
 schedule+0x14b/0x320 kernel/sched/core.c:6767
 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6824
 rwsem_down_write_slowpath+0xeee/0x13b0 kernel/locking/rwsem.c:1178
 __down_write_common kernel/locking/rwsem.c:1306 [inline]
 __down_write kernel/locking/rwsem.c:1315 [inline]
 down_write+0x1d7/0x220 kernel/locking/rwsem.c:1580
 filemap_invalidate_lock include/linux/fs.h:860 [inline]
 blkdev_fallocate+0x20e/0x490 block/fops.c:808
 vfs_fallocate+0x569/0x6e0 fs/open.c:333
 ksys_fallocate fs/open.c:356 [inline]
 __do_sys_fallocate fs/open.c:364 [inline]
 __se_sys_fallocate fs/open.c:362 [inline]
 __x64_sys_fallocate+0xbd/0x110 fs/open.c:362
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fb5e837df39
RSP: 002b:00007fb5e90b1038 EFLAGS: 00000246 ORIG_RAX: 000000000000011d
RAX: ffffffffffffffda RBX: 00007fb5e8536130 RCX: 00007fb5e837df39
RDX: 0000000000000000 RSI: 0000000000000010 RDI: 0000000000000008
RBP: 00007fb5e83f0216 R08: 0000000000000000 R09: 0000000000000000
R10: 0000002000000400 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fb5e8536130 R15: 00007ffd1145ed48
 </TASK>

Showing all locks held in the system:
3 locks held by kworker/u8:1/12:
1 lock held by khungtaskd/30:
 #0: ffffffff8e937da0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline]
 #0: ffffffff8e937da0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline]
 #0: ffffffff8e937da0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6701
2 locks held by getty/4979:
 #0: ffff88802eb460a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243
 #1: ffffc90002f062f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6a6/0x1e00 drivers/tty/n_tty.c:2211
3 locks held by kworker/0:7/9001:
 #0: ffff88801ac80948 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3204 [inline]
 #0: ffff88801ac80948 ((wq_completion)events){+.+.}-{0:0}, at: process_scheduled_works+0x93b/0x1850 kernel/workqueue.c:3310
 #1: ffffc90009a07d00 ((work_completion)(&data->fib_event_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3205 [inline]
 #1: ffffc90009a07d00 ((work_completion)(&data->fib_event_work)){+.+.}-{0:0}, at: process_scheduled_works+0x976/0x1850 kernel/workqueue.c:3310
 #2: ffff888065573240 (&data->fib_lock){+.+.}-{3:3}, at: nsim_fib_event_work+0x2d1/0x4130 drivers/net/netdevsim/fib.c:1489
1 lock held by syz.4.886/11066:
 #0: ffff888148ca14c0 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock include/linux/fs.h:860 [inline]
 #0: ffff888148ca14c0 (mapping.invalidate_lock#2){++++}-{3:3}, at: blkdev_fallocate+0x20e/0x490 block/fops.c:808
2 locks held by syz.3.947/11517:
 #0: ffff888026e80070 (&dev->mutex#4){+.+.}-{3:3}, at: vhost_vsock_stop drivers/vhost/vsock.c:626 [inline]
 #0: ffff888026e80070 (&dev->mutex#4){+.+.}-{3:3}, at: vhost_vsock_dev_release+0x196/0x410 drivers/vhost/vsock.c:748
 #1: ffff888026e84c70 (&vq->mutex){+.+.}-{3:3}, at: vhost_vsock_stop drivers/vhost/vsock.c:637 [inline]
 #1: ffff888026e84c70 (&vq->mutex){+.+.}-{3:3}, at: vhost_vsock_dev_release+0x1e5/0x410 drivers/vhost/vsock.c:748
2 locks held by vhost-11531/11538:
 #0: ffff888026e84c70 (&vq->mutex){+.+.}-{3:3}, at: vhost_vsock_handle_tx_kick+0x129/0xe20 drivers/vhost/vsock.c:489
 #1: ffff888148ca14c0 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock_shared include/linux/fs.h:870 [inline]
 #1: ffff888148ca14c0 (mapping.invalidate_lock#2){++++}-{3:3}, at: page_cache_ra_unbounded+0x135/0x8a0 mm/readahead.c:226
1 lock held by syz.2.970/11644:
 #0: ffff888148ca14c0 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock include/linux/fs.h:860 [inline]
 #0: ffff888148ca14c0 (mapping.invalidate_lock#2){++++}-{3:3}, at: blkdev_fallocate+0x20e/0x490 block/fops.c:808
1 lock held by syz.1.1051/12212:
 #0: ffff888148ca14c0 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock include/linux/fs.h:860 [inline]
 #0: ffff888148ca14c0 (mapping.invalidate_lock#2){++++}-{3:3}, at: blkdev_fallocate+0x20e/0x490 block/fops.c:808
1 lock held by syz-executor/12494:
7 locks held by syz-executor/12640:
 #0: ffff888032b46420 (sb_writers#8){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2931 [inline]
 #0: ffff888032b46420 (sb_writers#8){.+.+}-{0:0}, at: vfs_write+0x224/0xc90 fs/read_write.c:679
 #1: ffff8880118c8c88 (&of->mutex){+.+.}-{3:3}, at: kernfs_fop_write_iter+0x1ea/0x500 fs/kernfs/file.c:325
 #2: ffff888144f04788 (kn->active#49){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x20e/0x500 fs/kernfs/file.c:326
 #3: ffffffff8f55ce88 (nsim_bus_dev_list_lock){+.+.}-{3:3}, at: del_device_store+0xfc/0x480 drivers/net/netdevsim/bus.c:216
 #4: ffff88807a1140e8 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:1014 [inline]
 #4: ffff88807a1140e8 (&dev->mutex){....}-{3:3}, at: __device_driver_lock drivers/base/dd.c:1095 [inline]
 #4: ffff88807a1140e8 (&dev->mutex){....}-{3:3}, at: device_release_driver_internal+0xce/0x7c0 drivers/base/dd.c:1293
 #5: ffff88804daf0250 (&devlink->lock_key#48){+.+.}-{3:3}, at: nsim_drv_remove+0x50/0x160 drivers/net/netdevsim/dev.c:1672
 #6: ffffffff8e93d200 (rcu_state.barrier_mutex){+.+.}-{3:3}, at: rcu_barrier+0x4c/0x530 kernel/rcu/tree.c:4561
2 locks held by syz.2.1128/12832:
4 locks held by rm/12842:

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

NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 30 Comm: khungtaskd Not tainted 6.11.0-syzkaller-11558-g075dbe9f6e3c #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:94 [inline]
 dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120
 nmi_cpu_backtrace+0x49c/0x4d0 lib/nmi_backtrace.c:113
 nmi_trigger_cpumask_backtrace+0x198/0x320 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:162 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:223 [inline]
 watchdog+0xff4/0x1040 kernel/hung_task.c:379
 kthread+0x2f0/0x390 kernel/kthread.c:389
 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 UID: 0 PID: 12 Comm: kworker/u8:1 Not tainted 6.11.0-syzkaller-11558-g075dbe9f6e3c #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
Workqueue: bat_events batadv_nc_worker
RIP: 0010:lock_acquire+0x24b/0x550 kernel/locking/lockdep.c:5825
Code: 4c 89 f7 e8 47 2d 8b 00 48 c7 44 24 60 00 00 00 00 9c 8f 44 24 60 42 80 3c 2b 00 74 08 4c 89 f7 e8 3a 2c 8b 00 f6 44 24 61 02 <0f> 85 85 01 00 00 41 f7 c7 00 02 00 00 74 01 fb 48 c7 44 24 40 0e
RSP: 0018:ffffc900001179e0 EFLAGS: 00000046
RAX: 0000000000000001 RBX: 1ffff92000022f48 RCX: 1896b452817bdc00
RDX: dffffc0000000000 RSI: ffffffff8c0adb40 RDI: ffffffff8c602060
RBP: ffffc90000117b40 R08: ffffffff942367c7 R09: 1ffffffff2846cf8
R10: dffffc0000000000 R11: fffffbfff2846cf9 R12: 1ffff92000022f44
R13: dffffc0000000000 R14: ffffc90000117a40 R15: 0000000000000246
FS:  0000000000000000(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffe560b1f88 CR3: 000000002fe4e000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <TASK>
 rcu_lock_acquire include/linux/rcupdate.h:337 [inline]
 rcu_read_lock include/linux/rcupdate.h:849 [inline]
 batadv_nc_purge_orig_hash net/batman-adv/network-coding.c:408 [inline]
 batadv_nc_worker+0xec/0x610 net/batman-adv/network-coding.c:719
 process_one_work kernel/workqueue.c:3229 [inline]
 process_scheduled_works+0xa63/0x1850 kernel/workqueue.c:3310
 worker_thread+0x870/0xd30 kernel/workqueue.c:3391
 kthread+0x2f0/0x390 kernel/kthread.c:389
 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/09/27 17:26 upstream 075dbe9f6e3c 2b1784d6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: task hung in vhost_vsock_dev_release
2024/07/20 03:51 upstream d7e78951a8b8 b88348e9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: task hung in vhost_vsock_dev_release
2024/07/11 07:52 upstream a19ea421490d c699c2eb .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: task hung in vhost_vsock_dev_release
2024/09/01 13:51 upstream 431c1646e1f8 1eda0d14 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-386 INFO: task hung in vhost_vsock_dev_release
2024/08/10 00:44 upstream ee9a43b7cfe2 a9e7e9e3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-386 INFO: task hung in vhost_vsock_dev_release
2024/09/26 11:18 linux-next 92fc9636d147 0d19f247 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: task hung in vhost_vsock_dev_release
* Struck through repros no longer work on HEAD.