INFO: task hung in kvm_mmu_create

12 views
Skip to first unread message

syzbot

unread,
Jan 22, 2021, 8:42:23 PM1/22/21
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 2762b48e Linux 4.14.216
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1468a70cd00000
kernel config: https://syzkaller.appspot.com/x/.config?x=e8574522d7c28056
dashboard link: https://syzkaller.appspot.com/bug?extid=0be838b52881e51764e6
compiler: gcc (GCC) 10.1.0-syz 20200507

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

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

syz-executor.3: page allocation failure: order:0, mode:0x14000c4(GFP_KERNEL|GFP_DMA32), nodemask=(null)
syz-executor.3 cpuset=/ mems_allowed=0-1
CPU: 0 PID: 10424 Comm: syz-executor.3 Not tainted 4.14.216-syzkaller #0
INFO: task kworker/1:0:853 blocked for more than 140 seconds.
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/0x281 lib/dump_stack.c:58
Not tainted 4.14.216-syzkaller #0
warn_alloc.cold+0x96/0x1cc mm/page_alloc.c:3255
__alloc_pages_slowpath mm/page_alloc.c:4102 [inline]
__alloc_pages_nodemask+0x2127/0x2720 mm/page_alloc.c:4205
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
alloc_pages_current+0x155/0x260 mm/mempolicy.c:2113
alloc_pages include/linux/gfp.h:520 [inline]
alloc_mmu_pages arch/x86/kvm/mmu.c:5173 [inline]
kvm_mmu_create+0xda/0x1d0 arch/x86/kvm/mmu.c:5191
kvm_arch_vcpu_init+0x282/0x890 arch/x86/kvm/x86.c:8286
kworker/1:0 D
kvm_vcpu_init+0x26d/0x360 arch/x86/kvm/../../../virt/kvm/kvm_main.c:321
27704 853 2 0x80000000
vmx_create_vcpu+0xef/0x29d0 arch/x86/kvm/vmx.c:10042
kvm_vm_ioctl_create_vcpu arch/x86/kvm/../../../virt/kvm/kvm_main.c:2550 [inline]
kvm_vm_ioctl+0x4ca/0x13e0 arch/x86/kvm/../../../virt/kvm/kvm_main.c:3058
Workqueue: usb_hub_wq hub_event
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
Call Trace:
entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x45e219
RSP: 002b:00007fc80e417c68 EFLAGS: 00000246
context_switch kernel/sched/core.c:2808 [inline]
__schedule+0x88b/0x1de0 kernel/sched/core.c:3384
ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 000000000045e219
RDX: 0000000000000000 RSI: 000000000000ae41 RDI: 0000000000000007
RBP: 000000000119c068 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000119c034
R13: 00007ffdf124ceef R14: 00007fc80e4189c0 R15: 000000000119c034
schedule+0x8d/0x1b0 kernel/sched/core.c:3428
usb_kill_urb.part.0+0x125/0x190 drivers/usb/core/urb.c:691
usb_kill_urb+0x7c/0x90 drivers/usb/core/urb.c:686
usb_start_wait_urb+0x209/0x440 drivers/usb/core/message.c:62
usb_internal_control_msg drivers/usb/core/message.c:100 [inline]
usb_control_msg+0x302/0x450 drivers/usb/core/message.c:151
Mem-Info:
active_anon:764277 inactive_anon:4709 isolated_anon:0
active_file:2223 inactive_file:5857 isolated_file:0
unevictable:0 dirty:32 writeback:0 unstable:0
slab_reclaimable:12612 slab_unreclaimable:137368
mapped:58559 shmem:4909 pagetables:7697 bounce:0
free:697374 free_pcp:616 free_cma:0
hub_port_init+0xfdc/0x2970 drivers/usb/core/hub.c:4555
hub_port_connect drivers/usb/core/hub.c:4905 [inline]
hub_port_connect_change drivers/usb/core/hub.c:5088 [inline]
port_event drivers/usb/core/hub.c:5194 [inline]
hub_event+0x1923/0x3dc0 drivers/usb/core/hub.c:5274
process_one_work+0x793/0x14a0 kernel/workqueue.c:2116
Node 0 active_anon:2002692kB inactive_anon:18812kB active_file:56kB inactive_file:8kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:213288kB dirty:16kB writeback:0kB shmem:19596kB shmem_thp: 0kB shmem_pmdmapped: 0kB anon_thp: 1585152kB writeback_tmp:0kB unstable:0kB all_unreclaimable? yes
worker_thread+0x5cc/0xff0 kernel/workqueue.c:2250
kthread+0x30d/0x420 kernel/kthread.c:232
ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:404

Showing all locks held in the system:
1 lock held by khungtaskd/1532:
#0: (tasklist_lock){.+.+}, at: [<ffffffff86fed847>] debug_show_all_locks+0x7c/0x21a kernel/locking/lockdep.c:4548
Node 1 active_anon:1054240kB inactive_anon:24kB active_file:8836kB inactive_file:23436kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:20896kB dirty:112kB writeback:0kB shmem:40kB shmem_thp: 0kB shmem_pmdmapped: 0kB anon_thp: 0kB writeback_tmp:0kB unstable:0kB all_unreclaimable? no
2 locks held by login/7924:
#0: (&tty->ldisc_sem){++++}, at: [<ffffffff83534d62>] tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:284
Node 0
#1: (&tty->atomic_write_lock){+.+.}, at: [<ffffffff8351da4d>] tty_write_lock drivers/tty/tty_io.c:885 [inline]
#1: (&tty->atomic_write_lock){+.+.}, at: [<ffffffff8351da4d>] do_tty_write drivers/tty/tty_io.c:908 [inline]
#1: (&tty->atomic_write_lock){+.+.}, at: [<ffffffff8351da4d>] tty_write+0x22d/0x740 drivers/tty/tty_io.c:1043
5 locks held by kworker/1:0/853:
#0: ("usb_hub_wq"){+.+.}, at: [<ffffffff81363810>] process_one_work+0x6b0/0x14a0 kernel/workqueue.c:2087
#1: ((&hub->events)){+.+.}, at: [<ffffffff81363846>] process_one_work+0x6e6/0x14a0 kernel/workqueue.c:2091
#2: (&dev->mutex){....}, at: [<ffffffff844395f8>] device_lock include/linux/device.h:1081 [inline]
#2: (&dev->mutex){....}, at: [<ffffffff844395f8>] hub_event+0x108/0x3dc0 drivers/usb/core/hub.c:5220
#3: (&port_dev->status_lock){+.+.}, at: [<ffffffff8443adfe>] usb_lock_port drivers/usb/core/hub.c:2934 [inline]
#3: (&port_dev->status_lock){+.+.}, at: [<ffffffff8443adfe>] hub_port_connect drivers/usb/core/hub.c:4904 [inline]
#3: (&port_dev->status_lock){+.+.}, at: [<ffffffff8443adfe>] hub_port_connect_change drivers/usb/core/hub.c:5088 [inline]
#3: (&port_dev->status_lock){+.+.}, at: [<ffffffff8443adfe>] port_event drivers/usb/core/hub.c:5194 [inline]
#3: (&port_dev->status_lock){+.+.}, at: [<ffffffff8443adfe>] hub_event+0x190e/0x3dc0 drivers/usb/core/hub.c:5274
#4: (hcd->address0_mutex){+.+.}, at: [<ffffffff8442f13b>] hub_port_init+0x15b/0x2970 drivers/usb/core/hub.c:4429

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

NMI backtrace for cpu 1
CPU: 1 PID: 1532 Comm: khungtaskd Not tainted 4.14.216-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/0x281 lib/dump_stack.c:58
nmi_cpu_backtrace.cold+0x57/0x93 lib/nmi_backtrace.c:101
nmi_trigger_cpumask_backtrace+0x13a/0x180 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
CPU: 0 PID: 10424 Comm: syz-executor.3 Not tainted 4.14.216-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff8881f5eb0200 task.stack: ffff8881e5d90000
RIP: 0010:lock_acquire+0x1b/0x3f0 kernel/locking/lockdep.c:3987
RSP: 0018:ffff8880ba407820 EFLAGS: 00000246
RAX: dffffc0000000000 RBX: 000000000045e219 RCX: 0000000000000002
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff88f776c0
RBP: 000000000045e219 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000145fa8 R11: 0000000000000001 R12: ffff8880ba407940
R13: 0000000000000000 R14: 0000000000000002 R15: 0000000000000000
FS: 00007fc80e418700(0000) GS:ffff8880ba400000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f63ec398000 CR3: 000000022f00b000 CR4: 00000000001426f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<IRQ>
rcu_lock_acquire include/linux/rcupdate.h:242 [inline]
rcu_read_lock include/linux/rcupdate.h:629 [inline]
is_bpf_text_address+0x35/0x150 kernel/bpf/core.c:456
kernel_text_address kernel/extable.c:150 [inline]
kernel_text_address+0xbd/0xf0 kernel/extable.c:120
__kernel_text_address+0x9/0x30 kernel/extable.c:105
unwind_get_return_address arch/x86/kernel/unwind_orc.c:252 [inline]
unwind_get_return_address+0x51/0x90 arch/x86/kernel/unwind_orc.c:247
__save_stack_trace+0xa0/0x160 arch/x86/kernel/stacktrace.c:45
save_stack mm/kasan/kasan.c:447 [inline]
set_track mm/kasan/kasan.c:459 [inline]
kasan_kmalloc+0xeb/0x160 mm/kasan/kasan.c:551
kmem_cache_alloc+0x124/0x3c0 mm/slab.c:3552
skb_clone+0x126/0x9a0 net/core/skbuff.c:1282
frame_get_tagged_skb net/hsr/hsr_forward.c:195 [inline]
hsr_forward_do net/hsr/hsr_forward.c:283 [inline]
hsr_forward_skb+0xf4f/0x19c0 net/hsr/hsr_forward.c:373
send_hsr_supervision_frame+0x8e3/0xf00 net/hsr/hsr_device.c:321
hsr_announce+0xf0/0x330 net/hsr/hsr_device.c:350
call_timer_fn+0x14a/0x650 kernel/time/timer.c:1280
expire_timers+0x232/0x4d0 kernel/time/timer.c:1319
__run_timers kernel/time/timer.c:1637 [inline]
run_timer_softirq+0x1d5/0x5a0 kernel/time/timer.c:1650
__do_softirq+0x254/0xa1d kernel/softirq.c:288
invoke_softirq kernel/softirq.c:368 [inline]
irq_exit+0x193/0x240 kernel/softirq.c:409
exiting_irq arch/x86/include/asm/apic.h:648 [inline]
smp_apic_timer_interrupt+0x141/0x5e0 arch/x86/kernel/apic/apic.c:1102
apic_timer_interrupt+0x93/0xa0 arch/x86/entry/entry_64.S:793
</IRQ>
RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:779 [inline]
RIP: 0010:console_trylock_spinning kernel/printk/printk.c:1685 [inline]
RIP: 0010:vprintk_emit+0x549/0x620 kernel/printk/printk.c:1922
RSP: 0018:ffff8881e5d97408 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff10
RAX: 0000000000040000 RBX: 1ffffffff11e1251 RCX: ffffc90010749000
RDX: 0000000000040000 RSI: ffffffff8143ef94 RDI: 0000000000000246
RBP: ffff8881e5d97440 R08: ffffffff8b9b55e8 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000007
R13: ffff8880b2de6540 R14: 0000000000000246 R15: 0000000000000000
vprintk_func+0x58/0x160 kernel/printk/printk_safe.c:401
printk+0x9e/0xbc kernel/printk/printk.c:1996
show_node mm/page_alloc.c:4514 [inline]
show_free_areas.cold+0xd4f/0x1275 mm/page_alloc.c:4772
show_mem+0x34/0x177 lib/show_mem.c:18
warn_alloc_show_mem mm/page_alloc.c:3226 [inline]
warn_alloc.cold+0x132/0x1cc mm/page_alloc.c:3256
__alloc_pages_slowpath mm/page_alloc.c:4102 [inline]
__alloc_pages_nodemask+0x2127/0x2720 mm/page_alloc.c:4205
alloc_pages_current+0x155/0x260 mm/mempolicy.c:2113
alloc_pages include/linux/gfp.h:520 [inline]
alloc_mmu_pages arch/x86/kvm/mmu.c:5173 [inline]
kvm_mmu_create+0xda/0x1d0 arch/x86/kvm/mmu.c:5191
kvm_arch_vcpu_init+0x282/0x890 arch/x86/kvm/x86.c:8286
kvm_vcpu_init+0x26d/0x360 arch/x86/kvm/../../../virt/kvm/kvm_main.c:321
vmx_create_vcpu+0xef/0x29d0 arch/x86/kvm/vmx.c:10042
kvm_vm_ioctl_create_vcpu arch/x86/kvm/../../../virt/kvm/kvm_main.c:2550 [inline]
kvm_vm_ioctl+0x4ca/0x13e0 arch/x86/kvm/../../../virt/kvm/kvm_main.c:3058
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:0x45e219
RSP: 002b:00007fc80e417c68 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 000000000045e219
RDX: 0000000000000000 RSI: 000000000000ae41 RDI: 0000000000000007
RBP: 000000000119c068 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000119c034
R13: 00007ffdf124ceef R14: 00007fc80e4189c0 R15: 000000000119c034
Code: e9 34 fe ff ff 90 66 2e 0f 1f 84 00 00 00 00 00 48 b8 00 00 00 00 00 fc ff df 41 57 45 89 c7 41 56 41 89 ce 41 55 41 89 d5 41 54 <41> 89 f4 55 48 89 fd 53 65 48 8b 1c 25 80 df 01 00 48 8d bb 84


---
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

unread,
Aug 25, 2021, 1:08:19 AM8/25/21
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