[uml-user] [PATCH] x86, UML: fix integer overflow in ELF_ET_DYN_BASE

2015-03-24 Thread Andrey Ryabinin
Almost all arches define ELF_ET_DYN_BASE as 2/3 of TASK_SIZE. Though it seems that some architectures do this in a wrong way. The problem is that 2*TASK_SIZE may overflow 32-bits so the real ELF_ET_DYN_BASE becomes wrong. Fix this overflow by dividing TASK_SIZE prior to multiplying: (TASK_S

Re: [uml-user] [PATCH 1/2] mm: Introducing arch_remap hook

2015-03-24 Thread Laurent Dufour
On 23/03/2015 09:52, Ingo Molnar wrote: > > * Laurent Dufour wrote: > >> Some architecture would like to be triggered when a memory area is moved >> through the mremap system call. >> >> This patch is introducing a new arch_remap mm hook which is placed in the >> path of mremap, and is called be

Re: [uml-user] [PATCH 1/2] mm: Introducing arch_remap hook

2015-03-24 Thread Ingo Molnar
* Laurent Dufour wrote: > Some architecture would like to be triggered when a memory area is moved > through the mremap system call. > > This patch is introducing a new arch_remap mm hook which is placed in the > path of mremap, and is called before the old area is unmapped (and the > arch_unma