Re: [PATCH] mm: fix corner case in anon_vma endless growing prevention

2015-01-12 Thread Konstantin Khlebnikov
On Mon, Jan 12, 2015 at 11:21 PM, Andrew Morton wrote: > On Sun, 11 Jan 2015 16:54:06 +0300 Konstantin Khlebnikov > wrote: > >> Fix for BUG_ON(anon_vma->degree) splashes in unlink_anon_vmas() >> ("kernel BUG at mm/rmap.c:399!"). >> >> Anon_vma_clone() is usually called for a copy of source vma

Re: [PATCH] mm: fix corner case in anon_vma endless growing prevention

2015-01-12 Thread Andrew Morton
On Sun, 11 Jan 2015 16:54:06 +0300 Konstantin Khlebnikov wrote: > Fix for BUG_ON(anon_vma->degree) splashes in unlink_anon_vmas() > ("kernel BUG at mm/rmap.c:399!"). > > Anon_vma_clone() is usually called for a copy of source vma in destination > argument. If source vma has anon_vma it should

Re: [PATCH] mm: fix corner case in anon_vma endless growing prevention

2015-01-12 Thread Michal Hocko
On Sun 11-01-15 16:54:06, Konstantin Khlebnikov wrote: > Fix for BUG_ON(anon_vma->degree) splashes in unlink_anon_vmas() > ("kernel BUG at mm/rmap.c:399!"). > > Anon_vma_clone() is usually called for a copy of source vma in destination > argument. If source vma has anon_vma it should be already

Re: [PATCH] mm: fix corner case in anon_vma endless growing prevention

2015-01-12 Thread Michal Hocko
On Sun 11-01-15 16:54:06, Konstantin Khlebnikov wrote: Fix for BUG_ON(anon_vma-degree) splashes in unlink_anon_vmas() (kernel BUG at mm/rmap.c:399!). Anon_vma_clone() is usually called for a copy of source vma in destination argument. If source vma has anon_vma it should be already in

Re: [PATCH] mm: fix corner case in anon_vma endless growing prevention

2015-01-12 Thread Andrew Morton
On Sun, 11 Jan 2015 16:54:06 +0300 Konstantin Khlebnikov koc...@gmail.com wrote: Fix for BUG_ON(anon_vma-degree) splashes in unlink_anon_vmas() (kernel BUG at mm/rmap.c:399!). Anon_vma_clone() is usually called for a copy of source vma in destination argument. If source vma has anon_vma it

Re: [PATCH] mm: fix corner case in anon_vma endless growing prevention

2015-01-12 Thread Konstantin Khlebnikov
On Mon, Jan 12, 2015 at 11:21 PM, Andrew Morton a...@linux-foundation.org wrote: On Sun, 11 Jan 2015 16:54:06 +0300 Konstantin Khlebnikov koc...@gmail.com wrote: Fix for BUG_ON(anon_vma-degree) splashes in unlink_anon_vmas() (kernel BUG at mm/rmap.c:399!). Anon_vma_clone() is usually

Re: [PATCH] mm: fix corner case in anon_vma endless growing prevention

2015-01-11 Thread Vlastimil Babka
On 01/11/2015 02:54 PM, Konstantin Khlebnikov wrote: > Fix for BUG_ON(anon_vma->degree) splashes in unlink_anon_vmas() > ("kernel BUG at mm/rmap.c:399!"). > > Anon_vma_clone() is usually called for a copy of source vma in destination > argument. If source vma has anon_vma it should be already in

Re: [PATCH] mm: fix corner case in anon_vma endless growing prevention

2015-01-11 Thread Rik van Riel
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 01/11/2015 08:54 AM, Konstantin Khlebnikov wrote: > Fix for BUG_ON(anon_vma->degree) splashes in unlink_anon_vmas() > ("kernel BUG at mm/rmap.c:399!"). > > Anon_vma_clone() is usually called for a copy of source vma in > destination argument. If

[PATCH] mm: fix corner case in anon_vma endless growing prevention

2015-01-11 Thread Konstantin Khlebnikov
Fix for BUG_ON(anon_vma->degree) splashes in unlink_anon_vmas() ("kernel BUG at mm/rmap.c:399!"). Anon_vma_clone() is usually called for a copy of source vma in destination argument. If source vma has anon_vma it should be already in dst->anon_vma. NULL in dst->anon_vma is used as a sign that

Re: [PATCH] mm: fix corner case in anon_vma endless growing prevention

2015-01-11 Thread Rik van Riel
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 01/11/2015 08:54 AM, Konstantin Khlebnikov wrote: Fix for BUG_ON(anon_vma-degree) splashes in unlink_anon_vmas() (kernel BUG at mm/rmap.c:399!). Anon_vma_clone() is usually called for a copy of source vma in destination argument. If source

[PATCH] mm: fix corner case in anon_vma endless growing prevention

2015-01-11 Thread Konstantin Khlebnikov
Fix for BUG_ON(anon_vma-degree) splashes in unlink_anon_vmas() (kernel BUG at mm/rmap.c:399!). Anon_vma_clone() is usually called for a copy of source vma in destination argument. If source vma has anon_vma it should be already in dst-anon_vma. NULL in dst-anon_vma is used as a sign that it's

Re: [PATCH] mm: fix corner case in anon_vma endless growing prevention

2015-01-11 Thread Vlastimil Babka
On 01/11/2015 02:54 PM, Konstantin Khlebnikov wrote: Fix for BUG_ON(anon_vma-degree) splashes in unlink_anon_vmas() (kernel BUG at mm/rmap.c:399!). Anon_vma_clone() is usually called for a copy of source vma in destination argument. If source vma has anon_vma it should be already in