Nick Piggin 8519fb30e4 [PATCH] mm: compound release fix
Compound pages on SMP systems can now often be freed from pagetables via
the release_pages path.  This uses put_page_testzero which does not handle
compound pages at all.  Releasing constituent pages from process mappings
decrements their count to a large negative number and leaks the reference
at the head page - net result is a memory leak.

The problem was hidden because the debug check in put_page_testzero itself
actually did take compound pages into consideration.

Fix the bug and the debug check.

Signed-off-by: Nick Piggin <npiggin@suse.de>
Acked-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-02-07 16:12:33 -08:00
..
2006-01-08 20:14:02 -08:00
2006-02-02 12:23:12 +00:00
2006-01-18 19:20:24 -08:00
2006-01-13 16:29:56 -08:00
2005-11-13 18:14:17 -08:00
2005-12-10 00:20:25 -05:00
2006-01-13 09:12:21 -08:00
2006-02-03 08:32:00 -08:00
2006-01-08 20:14:02 -08:00
2006-01-14 18:27:10 -08:00
2006-01-10 00:09:36 +01:00
2006-01-08 20:13:49 -08:00
2005-11-05 21:00:02 -05:00
2006-01-18 19:20:29 -08:00
2005-11-13 18:14:10 -08:00
2005-10-30 17:37:32 -08:00
2005-11-10 02:26:41 +01:00
2006-01-14 18:27:09 -08:00
2005-11-08 17:14:08 +01:00
2005-11-08 09:40:47 -08:00
2006-01-06 13:24:54 -08:00
2006-02-01 08:53:13 -08:00
2006-01-14 18:25:20 -08:00
2006-01-06 13:24:29 -08:00
2006-01-06 08:33:53 -08:00
2006-02-05 11:06:53 -08:00
2005-11-07 14:18:56 +01:00
2006-01-16 23:15:27 -08:00
2005-10-30 17:37:32 -08:00
2005-10-30 17:37:17 -08:00
2006-02-07 16:12:33 -08:00
2006-01-08 20:13:46 -08:00
2006-01-18 19:20:29 -08:00
2006-01-06 08:33:20 -08:00
2006-01-14 18:27:12 -08:00
2006-01-03 13:11:15 -08:00
2006-01-06 08:33:29 -08:00
2005-11-13 18:14:12 -08:00
2006-01-15 02:12:54 +01:00
2005-11-07 07:53:46 -08:00
2005-10-30 11:14:39 +11:00
2006-01-18 19:20:29 -08:00
2006-01-10 08:01:42 -08:00
2006-01-08 20:14:02 -08:00
2005-11-07 07:53:41 -08:00
2005-10-30 17:37:32 -08:00
2005-11-07 07:53:37 -08:00
2006-01-14 18:27:13 -08:00
2006-01-12 14:06:31 -08:00
2006-01-08 20:13:45 -08:00
2005-10-30 17:37:32 -08:00
2005-10-30 17:37:18 -08:00
2006-01-12 14:06:38 -08:00
2006-01-18 19:20:17 -08:00
2006-01-10 08:01:59 -08:00
2006-02-03 08:32:09 -08:00
2006-02-01 08:53:13 -08:00
2006-02-07 08:11:31 -02:00
2005-10-29 21:40:35 -07:00
2005-11-07 07:53:41 -08:00
2006-01-08 20:12:40 -08:00
2006-01-10 08:01:57 -08:00