syzbot


INFO: task hung in kvm_mmu_create

Status: auto-closed as invalid on 2021/08/25 05:08
Reported-by: syzbot+0be838b52881e51764e6@syzkaller.appspotmail.com
First crash: 1412d, last: 1318d

Sample crash report:
 slab_reclaimable:16213 slab_unreclaimable:145751
 mapped:61026 shmem:11100 pagetables:40029 bounce:0
 free:35262 free_pcp:433 free_cma:0
syz-executor.3 cpuset=
page allocation failure: order:0
INFO: task kworker/1:2:2649 blocked for more than 140 seconds.
, mode:0x14000c4(GFP_KERNEL|GFP_DMA32), nodemask=(null)
syz-executor.5 cpuset=/ mems_allowed=0-1
CPU: 0 PID: 7623 Comm: syz-executor.5 Not tainted 4.14.231-syzkaller #0
      Not tainted 4.14.231-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
 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:8291
 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:2549 [inline]
 kvm_vm_ioctl+0x4ca/0x13e0 arch/x86/kvm/../../../virt/kvm/kvm_main.c:3057
kworker/1:2     D
 vfs_ioctl fs/ioctl.c:46 [inline]
 file_ioctl fs/ioctl.c:500 [inline]
 do_vfs_ioctl+0x75a/0xff0 fs/ioctl.c:684
/
27128  2649      2 0x80000000
 mems_allowed=0-1
 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:0x4665f9
RSP: 002b:00007fe3ab845188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 000000000056bf60 RCX: 00000000004665f9
RDX: 0000000000000000 RSI: 000000000000ae41 RDI: 0000000000000004
RBP: 00000000004bfce1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf60
R13: 00007ffc142060af R14: 00007fe3ab845300 R15: 0000000000022000
Node 0 active_anon:2083612kB inactive_anon:30716kB active_file:720kB inactive_file:808kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:214452kB dirty:32kB writeback:0kB shmem:31452kB shmem_thp: 0kB shmem_pmdmapped: 0kB anon_thp: 954368kB writeback_tmp:0kB unstable:0kB all_unreclaimable? yes
Workqueue: usb_hub_wq hub_event
Node 1 active_anon:3190820kB inactive_anon:12812kB active_file:59296kB inactive_file:125824kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:29652kB dirty:780kB writeback:0kB shmem:12948kB shmem_thp: 0kB shmem_pmdmapped: 0kB anon_thp: 0kB writeback_tmp:0kB unstable:0kB all_unreclaimable? no
Node 0 
Call Trace:
DMA free:10976kB min:204kB low:252kB high:300kB active_anon:496kB inactive_anon:0kB active_file:4kB inactive_file:0kB unevictable:0kB writepending:0kB present:15992kB managed:15908kB mlocked:0kB kernel_stack:0kB pagetables:48kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB
 context_switch kernel/sched/core.c:2808 [inline]
 __schedule+0x88b/0x1de0 kernel/sched/core.c:3384
lowmem_reserve[]:
 0
 2717
CPU: 1 PID: 7615 Comm: syz-executor.3 Not tainted 4.14.231-syzkaller #0
 2718
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
 2718
 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
 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:8291
 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:2549 [inline]
 kvm_vm_ioctl+0x4ca/0x13e0 arch/x86/kvm/../../../virt/kvm/kvm_main.c:3057
 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:0x4665f9
RSP: 002b:00007fab4e7a0188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 000000000056bf60 RCX: 00000000004665f9
RDX: 0000000000000000 RSI: 000000000000ae41 RDI: 0000000000000004
RBP: 00000000004bfce1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf60
R13: 00007ffd3ef795af R14: 00007fab4e7a0300 R15: 0000000000022000
 2718
 schedule+0x8d/0x1b0 kernel/sched/core.c:3428
 usb_kill_urb.part.0+0x125/0x190 drivers/usb/core/urb.c:691
Node 0 
DMA32 free:36180kB min:36200kB low:45248kB high:54296kB active_anon:2083116kB inactive_anon:30716kB active_file:716kB inactive_file:864kB unevictable:0kB writepending:32kB present:3129332kB managed:2788128kB mlocked:0kB kernel_stack:14944kB pagetables:49020kB bounce:0kB free_pcp:584kB local_pcp:304kB free_cma:0kB
lowmem_reserve[]:
 0
 usb_kill_urb+0x7c/0x90 drivers/usb/core/urb.c:686
 0
 usb_start_wait_urb+0x209/0x440 drivers/usb/core/message.c:62
 0
audit: type=1326 audit(1619500055.373:80): auid=4294967295 uid=0 gid=0 ses=4294967295 pid=7643 comm="syz-executor.1" exe="/root/syz-executor.1" sig=31 arch=c000003e syscall=202 compat=0 ip=0x4665f9 code=0x0
 0
 0
 usb_internal_control_msg drivers/usb/core/message.c:100 [inline]
 usb_control_msg+0x302/0x450 drivers/usb/core/message.c:151
Node 0 
Normal free:0kB min:4kB low:4kB high:4kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB present:1048576kB managed:516kB mlocked:0kB kernel_stack:0kB pagetables:0kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB
lowmem_reserve[]:
 hub_port_init+0xfdc/0x2970 drivers/usb/core/hub.c:4555
 0
 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+0x18fd/0x3d70 drivers/usb/core/hub.c:5274
 0
 0
 0
 0
 process_one_work+0x793/0x14a0 kernel/workqueue.c:2116
Node 1 
Normal free:91540kB min:53696kB low:67120kB high:80544kB active_anon:3190992kB inactive_anon:12796kB active_file:59296kB inactive_file:125852kB unevictable:0kB writepending:804kB present:4194304kB managed:4128256kB mlocked:0kB kernel_stack:40672kB pagetables:111224kB bounce:0kB free_pcp:1116kB local_pcp:672kB free_cma:0kB
lowmem_reserve[]:
 worker_thread+0x5cc/0xff0 kernel/workqueue.c:2250
 0
 0
 kthread+0x30d/0x420 kernel/kthread.c:232
 0
 0
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:404
 0

Showing all locks held in the system:
1 lock held by khungtaskd/1533:
Node 0 
 #0:  (tasklist_lock){.+.+}, at: [<ffffffff8700a357>] debug_show_all_locks+0x7c/0x21a kernel/locking/lockdep.c:4548
5 locks held by kworker/1:2/2649:
 #0:  ("usb_hub_wq"){+.+.}, at: [<ffffffff813639b0>] process_one_work+0x6b0/0x14a0 kernel/workqueue.c:2087
 #1: 
DMA: 
 ((&hub->events)){+.+.}, at: [<ffffffff813639e6>] process_one_work+0x6e6/0x14a0 kernel/workqueue.c:2091
 #2:  (&dev->mutex){....}, at: [<ffffffff8444ee28>] device_lock include/linux/device.h:1081 [inline]
 #2:  (&dev->mutex){....}, at: [<ffffffff8444ee28>] hub_event+0x108/0x3d70 drivers/usb/core/hub.c:5220
 #3:  (&port_dev->status_lock){+.+.}, at: [<ffffffff84450608>] usb_lock_port drivers/usb/core/hub.c:2934 [inline]
 #3:  (&port_dev->status_lock){+.+.}, at: [<ffffffff84450608>] hub_port_connect drivers/usb/core/hub.c:4904 [inline]
 #3:  (&port_dev->status_lock){+.+.}, at: [<ffffffff84450608>] hub_port_connect_change drivers/usb/core/hub.c:5088 [inline]
 #3:  (&port_dev->status_lock){+.+.}, at: [<ffffffff84450608>] port_event drivers/usb/core/hub.c:5194 [inline]
 #3:  (&port_dev->status_lock){+.+.}, at: [<ffffffff84450608>] hub_event+0x18e8/0x3d70 drivers/usb/core/hub.c:5274
 #4:  (hcd->address0_mutex){+.+.}, at: [<ffffffff8444492b>] hub_port_init+0x15b/0x2970 drivers/usb/core/hub.c:4429

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

NMI backtrace for cpu 1
6*4kB 
CPU: 1 PID: 1533 Comm: khungtaskd Not tainted 4.14.231-syzkaller #0
(UM) 
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:
14*8kB 
NMI backtrace for cpu 0
CPU: 0 PID: 7613 Comm: syz-executor.4 Not tainted 4.14.231-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff8881d843c000 task.stack: ffff88814b538000
RIP: 0010:native_apic_mem_write+0x8/0x10 arch/x86/include/asm/apic.h:100
RSP: 0018:ffff8880ba407eb8 EFLAGS: 00000046
RAX: dffffc0000000000 RBX: ffffffff88cc4000 RCX: 0000000000000020
RDX: 1ffffffff119881d RSI: 000000000000010e RDI: 0000000000000380
RBP: ffff8880ba41e280 R08: ffff88823fff7018 R09: ffff88823fff700f
R10: ffff88823fff7017 R11: 0000010ccca9697a R12: 000000000000010e
R13: 0000000000000003 R14: 0000010ac4bb726b R15: 0000010ac4bb726b
FS:  00007fa323a7f700(0000) GS:ffff8880ba400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f7084bc4000 CR3: 000000021d262000 CR4: 00000000001426f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 apic_write arch/x86/include/asm/apic.h:385 [inline]
 lapic_next_event+0x53/0x80 arch/x86/kernel/apic/apic.c:468
 clockevents_program_event+0x1f1/0x2d0 kernel/time/clockevents.c:339
 tick_program_event+0x78/0xd0 kernel/time/tick-oneshot.c:47
 hrtimer_interrupt+0x336/0x5e0 kernel/time/hrtimer.c:1334
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1079 [inline]
 smp_apic_timer_interrupt+0x117/0x5e0 arch/x86/kernel/apic/apic.c:1104
 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:ffff88814b53f408 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff10
RAX: 0000000000040000 RBX: 1ffffffff11e1259 RCX: ffffc900080dc000
RDX: 0000000000040000 RSI: ffffffff8143f224 RDI: 0000000000000246
RBP: ffff88814b53f440 R08: ffffffff8b9bb5e8 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000007
R13: ffff8880b337e580 R14: 0000000000000246 R15: 0000000000000000
 vprintk_func+0x58/0x160 kernel/printk/printk_safe.c:409
 printk+0x9e/0xbc kernel/printk/printk.c:1996
 show_free_areas.cold+0xbd5/0x1275 mm/page_alloc.c:4847
 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:8291
 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:2549 [inline]
 kvm_vm_ioctl+0x4ca/0x13e0 arch/x86/kvm/../../../virt/kvm/kvm_main.c:3057
 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:0x4665f9
RSP: 002b:00007fa323a7f188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 000000000056bf60 RCX: 00000000004665f9
RDX: 0000000000000000 RSI: 000000000000ae41 RDI: 0000000000000004
RBP: 00000000004bfce1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf60
R13: 00007ffdfc0a2fff R14: 00007fa323a7f300 R15: 0000000000022000
Code: 83 3d 8c cc 0a 0a 01 7f 02 5d c3 89 ef 5d e9 9d 9e dd 05 48 c7 c7 c0 43 2d 8b e8 44 52 5c 00 eb df 66 90 89 ff 89 b7 00 c0 5f ff <c3> 0f 1f 80 00 00 00 00 48 b8 00 00 00 00 00 fc ff df 53 89 fb 

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/04/27 05:07 linux-4.14.y cf256fbcbe34 8ee2dea6 .config console log report info ci2-linux-4-14 INFO: task hung in kvm_mmu_create
2021/01/23 01:42 linux-4.14.y 2762b48e9611 52e37319 .config console log report info ci2-linux-4-14 INFO: task hung in kvm_mmu_create
* Struck through repros no longer work on HEAD.