[PATCH] tmpfs: fix shared mempolicy leak

2012-12-05 Thread Hugh Dickins
From: Mel Gorman This fixes a regression in 3.7-rc, which has since gone into stable. Commit 00442ad04a5e ("mempolicy: fix a memory corruption by refcount imbalance in alloc_pages_vma()") changed get_vma_policy() to raise the refcount on a shmem shared mempolicy; whereas shmem_alloc_page() went

Re: [PATCH] tmpfs: fix shared mempolicy leak

2012-12-05 Thread Hugh Dickins
On Wed, 5 Dec 2012, Tommi Rantala wrote: > 2012/12/5 Mel Gorman : > > On Tue, Dec 04, 2012 at 11:24:30PM -0800, Hugh Dickins wrote: > >> From: Mel Gorman > >> > >> Commit 00442ad04a5e ("mempolicy: fix a memory corruption by refcount > >> imbalance in alloc_pages_vma()") changed get_vma_policy()

Re: [PATCH] tmpfs: fix shared mempolicy leak

2012-12-05 Thread Tommi Rantala
2012/12/5 Mel Gorman : > On Tue, Dec 04, 2012 at 11:24:30PM -0800, Hugh Dickins wrote: >> From: Mel Gorman >> >> Commit 00442ad04a5e ("mempolicy: fix a memory corruption by refcount >> imbalance in alloc_pages_vma()") changed get_vma_policy() to raise the >> refcount on a shmem shared mempolicy;

Re: [PATCH] tmpfs: fix shared mempolicy leak

2012-12-05 Thread Mel Gorman
On Tue, Dec 04, 2012 at 11:24:30PM -0800, Hugh Dickins wrote: > From: Mel Gorman > > Commit 00442ad04a5e ("mempolicy: fix a memory corruption by refcount > imbalance in alloc_pages_vma()") changed get_vma_policy() to raise the > refcount on a shmem shared mempolicy; whereas shmem_alloc_page()

Re: [PATCH] tmpfs: fix shared mempolicy leak

2012-12-05 Thread Mel Gorman
On Tue, Dec 04, 2012 at 11:24:30PM -0800, Hugh Dickins wrote: From: Mel Gorman mgor...@suse.de Commit 00442ad04a5e (mempolicy: fix a memory corruption by refcount imbalance in alloc_pages_vma()) changed get_vma_policy() to raise the refcount on a shmem shared mempolicy; whereas

Re: [PATCH] tmpfs: fix shared mempolicy leak

2012-12-05 Thread Tommi Rantala
2012/12/5 Mel Gorman mgor...@suse.de: On Tue, Dec 04, 2012 at 11:24:30PM -0800, Hugh Dickins wrote: From: Mel Gorman mgor...@suse.de Commit 00442ad04a5e (mempolicy: fix a memory corruption by refcount imbalance in alloc_pages_vma()) changed get_vma_policy() to raise the refcount on a shmem

Re: [PATCH] tmpfs: fix shared mempolicy leak

2012-12-05 Thread Hugh Dickins
On Wed, 5 Dec 2012, Tommi Rantala wrote: 2012/12/5 Mel Gorman mgor...@suse.de: On Tue, Dec 04, 2012 at 11:24:30PM -0800, Hugh Dickins wrote: From: Mel Gorman mgor...@suse.de Commit 00442ad04a5e (mempolicy: fix a memory corruption by refcount imbalance in alloc_pages_vma()) changed

[PATCH] tmpfs: fix shared mempolicy leak

2012-12-05 Thread Hugh Dickins
From: Mel Gorman mgor...@suse.de This fixes a regression in 3.7-rc, which has since gone into stable. Commit 00442ad04a5e (mempolicy: fix a memory corruption by refcount imbalance in alloc_pages_vma()) changed get_vma_policy() to raise the refcount on a shmem shared mempolicy; whereas

[PATCH] tmpfs: fix shared mempolicy leak

2012-12-04 Thread Hugh Dickins
From: Mel Gorman Commit 00442ad04a5e ("mempolicy: fix a memory corruption by refcount imbalance in alloc_pages_vma()") changed get_vma_policy() to raise the refcount on a shmem shared mempolicy; whereas shmem_alloc_page() went on expecting alloc_page_vma() to drop the refcount it had acquired.

[PATCH] tmpfs: fix shared mempolicy leak

2012-12-04 Thread Hugh Dickins
From: Mel Gorman mgor...@suse.de Commit 00442ad04a5e (mempolicy: fix a memory corruption by refcount imbalance in alloc_pages_vma()) changed get_vma_policy() to raise the refcount on a shmem shared mempolicy; whereas shmem_alloc_page() went on expecting alloc_page_vma() to drop the refcount it