From: Ian Jackson Subject: Re: "vmalloc sync one failure" and host lockup Date: Mon, 11 Mar 2013 18:18:27 +0000 Message-ID: <20798.8179.221277.39002@mariner.uk.xensource.com> References: <20798.6737.541428.298603@mariner.uk.xensource.com> <20130311180324.GA17733@phenom.dumpdata.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20130311180324.GA17733@phenom.dumpdata.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Konrad Rzeszutek Wilk Cc: Ian Campbell , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org Konrad Rzeszutek Wilk writes ("Re: "vmalloc sync one failure" and host lockup"): > This .. I thought was fixed years ago. Say 461ae488ecb125b140d7ea29ceeedbcce9327003 ? The tree I'm using has that change. At least, it seems to. Here is the whole of alloc_vm_area. Ian. /** * alloc_vm_area - allocate a range of kernel address space * @size: size of the area * * Returns: NULL on failure, vm_struct on success * * This function reserves a range of kernel address space, and * allocates pagetables to map that range. No actual mappings * are created. If the kernel address space is not shared * between processes, it syncs the pagetable across all * processes. */ struct vm_struct *alloc_vm_area(size_t size) { struct vm_struct *area; area = get_vm_area_caller(size, VM_IOREMAP, __builtin_return_address(0)); if (area == NULL) return NULL; /* * This ensures that page tables are constructed for this region * of kernel virtual address space and mapped into init_mm. */ if (apply_to_page_range(&init_mm, (unsigned long)area->addr, area->size, f, NULL)) { free_vm_area(area); return NULL; } /* Make sure the pagetables are constructed in process kernel mappings */ vmalloc_sync_all(); return area; } EXPORT_SYMBOL_GPL(alloc_vm_area);