Re: [PATCH 0/3] mm/mmap.c: don't unmap the overlapping VMA(s)

2016-04-08 Thread Piotr Kwapulinski
On Thu, Apr 07, 2016 at 06:31:09PM +0200, Michal Hocko wrote: > On Thu 07-04-16 18:11:29, Piotr Kwapulinski wrote: > > On Mon, Apr 04, 2016 at 05:26:43PM +0200, Vlastimil Babka wrote: > > > On 04/04/2016 09:31 AM, Michal Hocko wrote: > > > >On Sat 02-04-16 21:17:31, Piotr Kwapulinski wrote: > > >

Re: [PATCH 0/3] mm/mmap.c: don't unmap the overlapping VMA(s)

2016-04-08 Thread Piotr Kwapulinski
On Thu, Apr 07, 2016 at 06:31:09PM +0200, Michal Hocko wrote: > On Thu 07-04-16 18:11:29, Piotr Kwapulinski wrote: > > On Mon, Apr 04, 2016 at 05:26:43PM +0200, Vlastimil Babka wrote: > > > On 04/04/2016 09:31 AM, Michal Hocko wrote: > > > >On Sat 02-04-16 21:17:31, Piotr Kwapulinski wrote: > > >

Re: [PATCH 0/3] mm/mmap.c: don't unmap the overlapping VMA(s)

2016-04-07 Thread Michal Hocko
On Thu 07-04-16 18:11:29, Piotr Kwapulinski wrote: > On Mon, Apr 04, 2016 at 05:26:43PM +0200, Vlastimil Babka wrote: > > On 04/04/2016 09:31 AM, Michal Hocko wrote: > > >On Sat 02-04-16 21:17:31, Piotr Kwapulinski wrote: > > >>Currently the mmap(MAP_FIXED) discards the overlapping part of the > >

Re: [PATCH 0/3] mm/mmap.c: don't unmap the overlapping VMA(s)

2016-04-07 Thread Michal Hocko
On Thu 07-04-16 18:11:29, Piotr Kwapulinski wrote: > On Mon, Apr 04, 2016 at 05:26:43PM +0200, Vlastimil Babka wrote: > > On 04/04/2016 09:31 AM, Michal Hocko wrote: > > >On Sat 02-04-16 21:17:31, Piotr Kwapulinski wrote: > > >>Currently the mmap(MAP_FIXED) discards the overlapping part of the > >

Re: [PATCH 0/3] mm/mmap.c: don't unmap the overlapping VMA(s)

2016-04-07 Thread Piotr Kwapulinski
On Mon, Apr 04, 2016 at 05:26:43PM +0200, Vlastimil Babka wrote: > On 04/04/2016 09:31 AM, Michal Hocko wrote: > >On Sat 02-04-16 21:17:31, Piotr Kwapulinski wrote: > >>Currently the mmap(MAP_FIXED) discards the overlapping part of the > >>existing VMA(s). > >>Introduce the new MAP_DONTUNMAP flag

Re: [PATCH 0/3] mm/mmap.c: don't unmap the overlapping VMA(s)

2016-04-07 Thread Piotr Kwapulinski
On Mon, Apr 04, 2016 at 05:26:43PM +0200, Vlastimil Babka wrote: > On 04/04/2016 09:31 AM, Michal Hocko wrote: > >On Sat 02-04-16 21:17:31, Piotr Kwapulinski wrote: > >>Currently the mmap(MAP_FIXED) discards the overlapping part of the > >>existing VMA(s). > >>Introduce the new MAP_DONTUNMAP flag

Re: [PATCH 0/3] mm/mmap.c: don't unmap the overlapping VMA(s)

2016-04-07 Thread Piotr Kwapulinski
On Mon, Apr 04, 2016 at 05:26:43PM +0200, Vlastimil Babka wrote: > On 04/04/2016 09:31 AM, Michal Hocko wrote: > >On Sat 02-04-16 21:17:31, Piotr Kwapulinski wrote: > >>Currently the mmap(MAP_FIXED) discards the overlapping part of the > >>existing VMA(s). > >>Introduce the new MAP_DONTUNMAP flag

Re: [PATCH 0/3] mm/mmap.c: don't unmap the overlapping VMA(s)

2016-04-07 Thread Piotr Kwapulinski
On Mon, Apr 04, 2016 at 05:26:43PM +0200, Vlastimil Babka wrote: > On 04/04/2016 09:31 AM, Michal Hocko wrote: > >On Sat 02-04-16 21:17:31, Piotr Kwapulinski wrote: > >>Currently the mmap(MAP_FIXED) discards the overlapping part of the > >>existing VMA(s). > >>Introduce the new MAP_DONTUNMAP flag

Re: [PATCH 0/3] mm/mmap.c: don't unmap the overlapping VMA(s)

2016-04-04 Thread Vlastimil Babka
On 04/04/2016 09:31 AM, Michal Hocko wrote: On Sat 02-04-16 21:17:31, Piotr Kwapulinski wrote: Currently the mmap(MAP_FIXED) discards the overlapping part of the existing VMA(s). Introduce the new MAP_DONTUNMAP flag which forces the mmap to fail with ENOMEM whenever the overlapping occurs and

Re: [PATCH 0/3] mm/mmap.c: don't unmap the overlapping VMA(s)

2016-04-04 Thread Vlastimil Babka
On 04/04/2016 09:31 AM, Michal Hocko wrote: On Sat 02-04-16 21:17:31, Piotr Kwapulinski wrote: Currently the mmap(MAP_FIXED) discards the overlapping part of the existing VMA(s). Introduce the new MAP_DONTUNMAP flag which forces the mmap to fail with ENOMEM whenever the overlapping occurs and

Re: [PATCH 0/3] mm/mmap.c: don't unmap the overlapping VMA(s)

2016-04-04 Thread Michal Hocko
On Sat 02-04-16 21:17:31, Piotr Kwapulinski wrote: > Currently the mmap(MAP_FIXED) discards the overlapping part of the > existing VMA(s). > Introduce the new MAP_DONTUNMAP flag which forces the mmap to fail > with ENOMEM whenever the overlapping occurs and MAP_FIXED is set. > No existing

Re: [PATCH 0/3] mm/mmap.c: don't unmap the overlapping VMA(s)

2016-04-04 Thread Michal Hocko
On Sat 02-04-16 21:17:31, Piotr Kwapulinski wrote: > Currently the mmap(MAP_FIXED) discards the overlapping part of the > existing VMA(s). > Introduce the new MAP_DONTUNMAP flag which forces the mmap to fail > with ENOMEM whenever the overlapping occurs and MAP_FIXED is set. > No existing

Re: [PATCH 0/3] mm/mmap.c: don't unmap the overlapping VMA(s)

2016-04-02 Thread Konstantin Khlebnikov
On Sat, Apr 2, 2016 at 10:17 PM, Piotr Kwapulinski wrote: > Currently the mmap(MAP_FIXED) discards the overlapping part of the > existing VMA(s). > Introduce the new MAP_DONTUNMAP flag which forces the mmap to fail > with ENOMEM whenever the overlapping occurs and

Re: [PATCH 0/3] mm/mmap.c: don't unmap the overlapping VMA(s)

2016-04-02 Thread Konstantin Khlebnikov
On Sat, Apr 2, 2016 at 10:17 PM, Piotr Kwapulinski wrote: > Currently the mmap(MAP_FIXED) discards the overlapping part of the > existing VMA(s). > Introduce the new MAP_DONTUNMAP flag which forces the mmap to fail > with ENOMEM whenever the overlapping occurs and MAP_FIXED is set. > No existing

Re: [PATCH 0/3] mm/mmap.c: don't unmap the overlapping VMA(s)

2016-04-02 Thread Kirill A. Shutemov
On Sat, Apr 02, 2016 at 09:17:31PM +0200, Piotr Kwapulinski wrote: > @@ -19,6 +19,7 @@ > #define MAP_TYPE 0x0f/* Mask for type of mapping */ > #define MAP_FIXED0x10/* Interpret addr exactly */ > #define MAP_ANONYMOUS0x20/* don't use a file */

Re: [PATCH 0/3] mm/mmap.c: don't unmap the overlapping VMA(s)

2016-04-02 Thread Kirill A. Shutemov
On Sat, Apr 02, 2016 at 09:17:31PM +0200, Piotr Kwapulinski wrote: > @@ -19,6 +19,7 @@ > #define MAP_TYPE 0x0f/* Mask for type of mapping */ > #define MAP_FIXED0x10/* Interpret addr exactly */ > #define MAP_ANONYMOUS0x20/* don't use a file */

[PATCH 0/3] mm/mmap.c: don't unmap the overlapping VMA(s)

2016-04-02 Thread Piotr Kwapulinski
Currently the mmap(MAP_FIXED) discards the overlapping part of the existing VMA(s). Introduce the new MAP_DONTUNMAP flag which forces the mmap to fail with ENOMEM whenever the overlapping occurs and MAP_FIXED is set. No existing mapping(s) is discarded. The implementation tests the MAP_DONTUNMAP

[PATCH 0/3] mm/mmap.c: don't unmap the overlapping VMA(s)

2016-04-02 Thread Piotr Kwapulinski
Currently the mmap(MAP_FIXED) discards the overlapping part of the existing VMA(s). Introduce the new MAP_DONTUNMAP flag which forces the mmap to fail with ENOMEM whenever the overlapping occurs and MAP_FIXED is set. No existing mapping(s) is discarded. The implementation tests the MAP_DONTUNMAP