KAMEZAWA Hiroyuki
678ff896a3
memcg: fix leak of accounting at failure path of hugepage collapsing
mem_cgroup_uncharge_page() should be called in all failure cases after
mem_cgroup_charge_newpage() is called in huge_memory.c::collapse_huge_page()
[ 4209.076861] BUG: Bad page state in process khugepaged pfn:1e9800
[ 4209.077601] page:ffffea0006b14000 count:0 mapcount:0 mapping: (null) index:0x2800
[ 4209.078674] page flags: 0x40000000004000(head)
[ 4209.079294] pc:ffff880214a30000 pc->flags:2146246697418756 pc->mem_cgroup:ffffc9000177a000
[ 4209.082177] (/A)
[ 4209.082500] Pid: 31, comm: khugepaged Not tainted 2.6.38-rc3-mm1 #1
[ 4209.083412] Call Trace:
[ 4209.083678] [<ffffffff810f4454>] ? bad_page+0xe4/0x140
[ 4209.084240] [<ffffffff810f53e6>] ? free_pages_prepare+0xd6/0x120
[ 4209.084837] [<ffffffff8155621d>] ? rwsem_down_failed_common+0xbd/0x150
[ 4209.085509] [<ffffffff810f5462>] ? __free_pages_ok+0x32/0xe0
[ 4209.086110] [<ffffffff810f552b>] ? free_compound_page+0x1b/0x20
[ 4209.086699] [<ffffffff810fad6c>] ? __put_compound_page+0x1c/0x30
[ 4209.087333] [<ffffffff810fae1d>] ? put_compound_page+0x4d/0x200
[ 4209.087935] [<ffffffff810fb015>] ? put_page+0x45/0x50
[ 4209.097361] [<ffffffff8113f779>] ? khugepaged+0x9e9/0x1430
[ 4209.098364] [<ffffffff8107c870>] ? autoremove_wake_function+0x0/0x40
[ 4209.099121] [<ffffffff8113ed90>] ? khugepaged+0x0/0x1430
[ 4209.099780] [<ffffffff8107c236>] ? kthread+0x96/0xa0
[ 4209.100452] [<ffffffff8100dda4>] ? kernel_thread_helper+0x4/0x10
[ 4209.101214] [<ffffffff8107c1a0>] ? kthread+0x0/0xa0
[ 4209.101842] [<ffffffff8100dda0>] ? kernel_thread_helper+0x0/0x10
Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Acked-by: Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp>
Reviewed-by: Johannes Weiner <hannes@cmpxchg.org>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Reviewed-by: Minchan Kim <minchan.kim@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2011-02-11 16:12:20 -08:00
..
2010-10-26 17:58:44 -07:00
2010-08-27 11:13:47 -07:00
2010-09-09 18:57:25 -07:00
2011-01-20 17:02:05 -08:00
2009-04-01 08:59:13 -07:00
2011-01-13 17:32:48 -08:00
2010-03-06 11:26:25 -08:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2011-01-13 17:32:36 -08:00
2010-09-25 09:34:58 -07:00
2010-10-27 18:03:05 -07:00
2011-02-11 16:12:20 -08:00
2011-01-13 17:32:49 -08:00
2010-08-11 09:23:11 +02:00
2010-08-09 20:44:54 -07:00
2011-01-17 14:42:19 -08:00
2011-01-26 10:50:02 +10:00
2009-09-21 15:14:57 +02:00
2010-03-30 22:02:32 +09:00
2011-01-27 18:31:51 +00:00
2011-01-27 18:32:06 +00:00
2011-01-13 17:32:49 -08:00
2010-10-27 17:29:01 +01:00
2011-01-13 17:32:47 -08:00
2011-01-13 17:32:42 -08:00
2011-02-11 16:12:20 -08:00
2011-02-02 16:03:19 -08:00
2011-01-15 13:28:17 +02:00
2011-02-02 16:03:19 -08:00
2011-02-11 16:12:20 -08:00
2011-01-13 17:32:45 -08:00
2009-09-22 07:17:35 -07:00
2011-02-02 16:03:18 -08:00
2011-01-13 17:32:44 -08:00
2011-02-02 10:20:50 +11:00
2008-08-20 15:40:30 -07:00
2011-01-13 17:32:48 -08:00
2010-03-24 16:31:21 -07:00
2011-01-13 17:32:46 -08:00
2011-01-13 17:32:31 -08:00
2011-01-13 17:32:44 -08:00
2011-01-13 17:32:41 -08:00
2010-05-21 18:31:21 -04:00
2011-01-13 17:32:36 -08:00
2010-10-26 16:52:05 -07:00
2011-01-26 10:50:01 +10:00
2010-07-19 11:54:14 +01:00
2010-08-07 18:20:39 +02:00
2010-10-26 16:52:11 -07:00
2011-01-13 17:32:38 -08:00
2011-01-13 17:32:41 -08:00
2010-10-02 10:28:42 +03:00
2011-01-13 17:32:34 -08:00
2011-01-13 10:05:56 -08:00
2011-01-26 10:49:58 +10:00
2010-03-30 22:02:32 +09:00
2010-05-25 08:07:00 -07:00
2011-01-13 17:32:50 -08:00
2011-01-07 17:50:26 +11:00
2011-01-15 13:28:36 +02:00
2011-01-07 17:50:16 +11:00
2011-01-15 13:28:17 +02:00
2010-11-01 15:38:34 -04:00
2011-01-13 17:32:43 -08:00
2011-01-13 17:32:41 -08:00
2011-01-17 14:42:34 -08:00
2011-01-13 17:32:41 -08:00
2009-06-23 12:50:05 -07:00
2011-01-20 17:02:06 -08:00
2011-01-07 17:50:16 +11:00
2011-01-13 20:15:35 -08:00
2011-02-11 16:12:20 -08:00
2011-01-13 17:32:43 -08:00