 
	
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH MM-PART2 RESEND v2 16/19] xen/arm: mm: Protect Xen page-table update with a spinlock
 Hi Stefano, On 08/06/2019 01:17, Stefano Stabellini wrote: On Wed, 5 Jun 2019, Julien Grall wrote:On 05/06/2019 00:11, Stefano Stabellini wrote:On Tue, 14 May 2019, Julien Grall wrote:The function create_xen_entries() may be called concurrently. For instance, while the vmap allocation is protected by a spinlock, the mapping is not.Do you have an example of potential concurrent calls of create_xen_entries() which doesn't involve concurrent vmaps (because vmaps are already protected by their spinlock)? vmap + something_else for instance? Yes vm_alloc() would guarantee you to have a different VA. But it would be still possible to have X and Y so that they select the same &xen_second entry, hence, the race with create_xen_table(). It looks like the race is there. That's correct. Reviewed-by: Stefano Stabellini <sstabellini@xxxxxxxxxx> Thank you! Cheers, -- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel 
 
 | 
|  | Lists.xenproject.org is hosted with RackSpace, monitoring our |