Messages in this thread | | | Date | Mon, 5 Nov 2012 13:44:32 -0800 (PST) | From | David Rientjes <> | Subject | Re: [PATCH] mm: bugfix: set current->reclaim_state to NULL while returning from kswapd() |
| |
On Tue, 6 Nov 2012, Aaditya Kumar wrote:
> From: Takamori Yamaguchi <takamori.yamaguchi@jp.sony.com> > > In kswapd(), set current->reclaim_state to NULL before returning, as > current->reclaim_state holds reference to variable on kswapd()'s stack. > > In rare cases, while returning from kswapd() during memory off lining, > __free_slab() can access dangling pointer of current->reclaim_state. >
It's __free_slab() for slub and kmem_freepages() for slab.
> Signed-off-by: Takamori Yamaguchi <takamori.yamaguchi@jp.sony.com> > Signed-off-by: Aaditya Kumar <aaditya.kumar@ap.sony.com>
Acked-by: David Rientjes <rientjes@google.com>
| |