Files
linux/mm
Takamori Yamaguchi 218440d541 mm: bugfix: set current->reclaim_state to NULL while returning from kswapd()
commit b0a8cc58e6 upstream.

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 offlining,
__free_slab() and freepages() can access the dangling pointer of
current->reclaim_state.

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>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-11-26 11:34:33 -08:00
..
2011-05-26 09:20:31 -07:00
2012-03-12 10:32:56 -07:00
2011-03-31 11:26:23 -03:00
2011-11-11 09:36:29 -08:00
2011-05-26 09:20:31 -07:00
2011-05-25 08:39:18 -07:00
2011-03-10 08:52:27 +01:00
2011-05-20 12:50:29 -07:00
2012-02-13 11:06:11 -08:00
2011-05-25 08:39:05 -07:00
2012-08-01 12:26:54 -07:00