syzbot


INFO: task hung in ioctl

Status: auto-closed as invalid on 2021/07/06 13:28
Reported-by: syzbot+e1019713285aecbb7a2b@syzkaller.appspotmail.com
First crash: 1158d, last: 1158d

Sample crash report:
R13: 00007fffed84577f R14: 00007f0f532c7300 R15: 0000000000022000
CPU: 0 PID: 9882 Comm: syz-executor.2 Not tainted 4.14.224-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
INFO: task kworker/0:0:22002 blocked for more than 140 seconds.
 warn_alloc.cold+0x96/0x1cc mm/page_alloc.c:3255
      Not tainted 4.14.224-syzkaller #0
 __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
kworker/0:0     D
 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
28024 22002      2 0x80000000
 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
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
Call Trace:
 SYSC_ioctl fs/ioctl.c:701 [inline]
 SyS_ioctl+0x7f/0xb0 fs/ioctl.c:692
 context_switch kernel/sched/core.c:2808 [inline]
 __schedule+0x88b/0x1de0 kernel/sched/core.c:3384
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x465f69
RSP: 002b:00007f58847db188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 000000000056bf60 RCX: 0000000000465f69
RDX: 0000000000000000 RSI: 000000000000ae41 RDI: 0000000000000004
RBP: 00000000004bfa67 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf60
R13: 00007ffd2f6bf3cf R14: 00007f58847db300 R15: 0000000000022000
netlink: 36 bytes leftover after parsing attributes in process `syz-executor.0'.
netlink: 12 bytes leftover after parsing attributes in process `syz-executor.0'.
warn_alloc_show_mem: 3 callbacks suppressed
Mem-Info:
active_anon:842512 inactive_anon:18063 isolated_anon:0
 active_file:9535 inactive_file:34126 isolated_file:0
 unevictable:0 dirty:423 writeback:0 unstable:0
 slab_reclaimable:16272 slab_unreclaimable:196361
 mapped:62827 shmem:8996 pagetables:18957 bounce:0
 free:487381 free_pcp:406 free_cma:0
syz-executor.3: page allocation failure: order:0, mode:0x14000c4(GFP_KERNEL|GFP_DMA32), nodemask=(null)
syz-executor.3 cpuset=/ mems_allowed=0-1
Node 0 active_anon:2109260kB inactive_anon:18772kB active_file:8kB inactive_file:0kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:217100kB dirty:0kB writeback:0kB shmem:19504kB shmem_thp: 0kB shmem_pmdmapped: 0kB anon_thp: 1116160kB writeback_tmp:0kB unstable:0kB all_unreclaimable? yes
CPU: 0 PID: 9949 Comm: syz-executor.3 Not tainted 4.14.224-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
 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:0x465f69
RSP: 002b:00007f8db8982188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 000000000056bf60 RCX: 0000000000465f69
RDX: 0000000000000000 RSI: 000000000000ae41 RDI: 0000000000000004
RBP: 00000000004bfa67 R08: 0000000000000000 R09: 0000000000000000
 schedule+0x8d/0x1b0 kernel/sched/core.c:3428
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf60
R13: 00007ffe6abe2b0f R14: 00007f8db8982300 R15: 0000000000022000
Node 1 active_anon:1260852kB inactive_anon:53480kB active_file:38136kB inactive_file:136536kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:34208kB dirty:1744kB writeback:0kB shmem:16480kB shmem_thp: 0kB shmem_pmdmapped: 0kB anon_thp: 6144kB writeback_tmp:0kB unstable:0kB all_unreclaimable? no
 usb_kill_urb.part.0+0x125/0x190 drivers/usb/core/urb.c:691
Node 0 DMA free:10972kB min:204kB low:252kB high:300kB active_anon:388kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB present:15992kB managed:15908kB mlocked:0kB kernel_stack:32kB pagetables:20kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB
lowmem_reserve[]: 0 2717 2718 2718 2718
Node 0 DMA32 free:28568kB min:36200kB low:45248kB high:54296kB active_anon:2108872kB inactive_anon:18772kB active_file:8kB inactive_file:0kB unevictable:0kB writepending:0kB present:3129332kB managed:2788160kB mlocked:0kB kernel_stack:11200kB pagetables:31488kB bounce:0kB free_pcp:336kB local_pcp:116kB free_cma:0kB
lowmem_reserve[]: 0 0 0 0 0
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:520kB mlocked:0kB kernel_stack:0kB pagetables:0kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB
lowmem_reserve[]: 0 0 0 0 0
Node 1 Normal free:1911236kB min:53696kB low:67120kB high:80544kB active_anon:1260852kB inactive_anon:53480kB active_file:38136kB inactive_file:136536kB unevictable:0kB writepending:1744kB present:4194304kB managed:4128256kB mlocked:0kB kernel_stack:18080kB pagetables:44300kB bounce:0kB free_pcp:880kB local_pcp:300kB free_cma:0kB
 usb_kill_urb+0x7c/0x90 drivers/usb/core/urb.c:686
lowmem_reserve[]: 0 0 0 0 0
 usb_start_wait_urb+0x209/0x440 drivers/usb/core/message.c:62
Node 0 DMA: 33*4kB (UM) 3*8kB (UM) 4*16kB (UM) 4*32kB (U) 4*64kB (UM) 1*128kB (U) 2*256kB (M) 1*512kB (U) 1*1024kB (M) 0*2048kB 2*4096kB (M) = 10972kB
Node 0 DMA32: 920*4kB (UME) 295*8kB (UME) 688*16kB (UME) 290*32kB (UME) 23*64kB (U) 6*128kB (UM) 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 28568kB
Node 0 Normal: 0*4kB 0*8kB 0*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 0kB
Node 1 Normal: 122*4kB (UME) 30*8kB (UME) 18*16kB (UME) 15*32kB (UME) 52*64kB (U) 205*128kB (UME) 302*256kB (UME) 118*512kB (M) 34*1024kB (ME) 14*2048kB (UM) 410*4096kB (M) = 1911640kB
 usb_internal_control_msg drivers/usb/core/message.c:100 [inline]
 usb_control_msg+0x302/0x450 drivers/usb/core/message.c:151
 usb_get_descriptor+0xc0/0x160 drivers/usb/core/message.c:652
Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=1048576kB
 usb_get_device_descriptor+0x71/0xd0 drivers/usb/core/message.c:924
Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=2048kB
 hub_port_init+0x629/0x2970 drivers/usb/core/hub.c:4647
Node 1 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=1048576kB
Node 1 hugepages_total=3 hugepages_free=0 hugepages_surp=3 hugepages_size=2048kB
 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
26773 total pagecache pages
0 pages in swap cache
Swap cache stats: add 0, delete 0, find 0/0
 process_one_work+0x793/0x14a0 kernel/workqueue.c:2116
Free swap  = 0kB
Total swap = 0kB
2097051 pages RAM
0 pages HighMem/MovableOnly
363840 pages reserved
0 pages cma reserved
 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:
syz-executor.2: page allocation failure: order:0, mode:0x14000c4(GFP_KERNEL|GFP_DMA32), nodemask=(null)
1 lock held by khungtaskd/1532:
 #0:  (tasklist_lock){.+.+}, at: [<ffffffff86ff2967>] debug_show_all_locks+0x7c/0x21a kernel/locking/lockdep.c:4548
5 locks held by kworker/0:0/22002:
 #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: [<ffffffff8443be88>] device_lock include/linux/device.h:1081 [inline]
 #2:  (&dev->mutex){....}, at: [<ffffffff8443be88>] hub_event+0x108/0x3d70 drivers/usb/core/hub.c:5220
 #3:  (&port_dev->status_lock){+.+.}, at: [<ffffffff8443d668>] usb_lock_port drivers/usb/core/hub.c:2934 [inline]
 #3:  (&port_dev->status_lock){+.+.}, at: [<ffffffff8443d668>] hub_port_connect drivers/usb/core/hub.c:4904 [inline]
 #3:  (&port_dev->status_lock){+.+.}, at: [<ffffffff8443d668>] hub_port_connect_change drivers/usb/core/hub.c:5088 [inline]
 #3:  (&port_dev->status_lock){+.+.}, at: [<ffffffff8443d668>] port_event drivers/usb/core/hub.c:5194 [inline]
 #3:  (&port_dev->status_lock){+.+.}, at: [<ffffffff8443d668>] hub_event+0x18e8/0x3d70 drivers/usb/core/hub.c:5274
 #4:  (hcd->address0_mutex){+.+.}, at: [<ffffffff8443198b>] hub_port_init+0x15b/0x2970 drivers/usb/core/hub.c:4429

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

syz-executor.2 cpuset=/ mems_allowed=0-1
CPU: 1 PID: 9993 Comm: syz-executor.2 Not tainted 4.14.224-syzkaller #0
NMI backtrace for cpu 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
 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:0x465f69
RSP: 002b:00007f58847db188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 000000000056bf60 RCX: 0000000000465f69
RDX: 0000000000000007 RSI: 000000000000ae41 RDI: 0000000000000005
RBP: 00000000004bfa67 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf60
R13: 00007ffd2f6bf3cf R14: 00007f58847db300 R15: 0000000000022000
CPU: 0 PID: 1532 Comm: khungtaskd Not tainted 4.14.224-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 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 7984 Comm: syz-fuzzer Not tainted 4.14.224-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff8880b33f06c0 task.stack: ffff888090310000
RIP: 0010:__sanitizer_cov_trace_pc+0x28/0x50 kernel/kcov.c:93
RSP: 0000:ffff888090317c50 EFLAGS: 00000297
RAX: ffff8880b33f06c0 RBX: 0000000000000001 RCX: 0000000000000001
RDX: 0000000000000000 RSI: ffffea0001e465c0 RDI: 0000000000000001
RBP: 0000000000000001 R08: ffff888090317d78 R09: 0000000000040411
R10: ffff8880b33f0f70 R11: ffff8880b33f06c0 R12: ffffea0001e465c0
R13: ffff8880b33f06c0 R14: ffff8880ac37d800 R15: ffff8880b33f1960
FS:  000000c00002f090(0000) GS:ffff8880ba500000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c010b97000 CR3: 000000009a821000 CR4: 00000000001426e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 __cpu_to_node+0xc/0xa0 arch/x86/mm/numa.c:792
 should_numa_migrate_memory+0x49/0x470 kernel/sched/fair.c:1376
 mpol_misplaced+0x174/0x5d0 mm/mempolicy.c:2360
 do_numa_page mm/memory.c:3949 [inline]
 handle_pte_fault mm/memory.c:4089 [inline]
 __handle_mm_fault+0x1a4e/0x4620 mm/memory.c:4206
 handle_mm_fault+0x391/0x860 mm/memory.c:4243
 __do_page_fault+0x549/0xad0 arch/x86/mm/fault.c:1442
 page_fault+0x45/0x50 arch/x86/entry/entry_64.S:1123
RIP: 0017:0x17
RSP: 1000:000000c01c6836f8 EFLAGS: 00000000
Code: 90 90 90 65 48 8b 04 25 80 df 01 00 48 85 c0 74 1a 65 8b 15 cb bd ac 7e 81 e2 00 01 1f 00 75 0b 8b 90 58 13 00 00 83 fa 01 74 01 <c3> 48 8b 34 24 48 8b 88 60 13 00 00 8b 80 5c 13 00 00 48 8b 11 

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/03/08 13:27 linux-4.14.y 1d177c0872ab 09fbf400 .config console log report info ci2-linux-4-14 INFO: task hung in ioctl
* Struck through repros no longer work on HEAD.