Andrea Arcangeli
93d5c9be1d
memcg: fix prepare migration
...
If a signal is pending (task being killed by sigkill)
__mem_cgroup_try_charge will write NULL into &mem, and css_put will oops
on null pointer dereference.
BUG: unable to handle kernel NULL pointer dereference at 0000000000000010
IP: [<ffffffff810fc6cc>] mem_cgroup_prepare_migration+0x7c/0xc0
PGD a5d89067 PUD a5d8a067 PMD 0
Oops: 0000 [#1 ] SMP
last sysfs file: /sys/devices/platform/microcode/firmware/microcode/loading
CPU 0
Modules linked in: nfs lockd nfs_acl auth_rpcgss sunrpc acpi_cpufreq pcspkr sg [last unloaded: microcode]
Pid: 5299, comm: largepages Tainted: G W 2.6.34-rc3 #3 Penryn1600SLI-110dB/To Be Filled By O.E.M.
RIP: 0010:[<ffffffff810fc6cc>] [<ffffffff810fc6cc>] mem_cgroup_prepare_migration+0x7c/0xc0
[nishimura@mxp.nes.nec.co.jp: fix merge issues]
Signed-off-by: Andrea Arcangeli <aarcange@redhat.com>
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Balbir Singh <balbir@in.ibm.com>
Signed-off-by: Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-04-24 11:31:24 -07:00
..
2010-04-02 09:46:55 +02:00
2010-04-07 11:02:23 -07:00
2010-03-30 22:02:32 +09:00
2009-04-01 08:59:13 -07:00
2009-06-30 18:56:00 -07: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
2010-03-30 22:02:32 +09:00
2010-03-06 11:26:23 -08:00
2010-02-05 12:22:40 +01:00
2010-03-30 22:02:32 +09:00
2009-12-16 12:20:01 +01:00
2009-06-16 19:47:28 -07:00
2009-12-16 12:19:59 +01:00
2010-03-03 08:15:05 -08:00
2009-09-21 15:14:57 +02:00
2010-03-30 22:02:32 +09:00
2009-06-24 15:13:48 +09:00
2010-03-30 22:02:32 +09:00
2010-03-24 16:31:20 -07:00
2010-01-07 11:58:36 -06:00
2009-12-16 12:20:00 +01:00
2010-03-30 22:02:32 +09:00
2010-04-24 11:31:24 -07:00
2010-03-12 15:52:28 -08:00
2010-03-30 22:02:32 +09:00
2010-04-07 08:38:02 -07:00
2010-03-30 22:02:32 +09:00
2009-09-22 07:17:35 -07:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2010-03-06 11:26:24 -08:00
2008-08-20 15:40:30 -07:00
2010-04-12 17:54:11 -07:00
2010-03-24 16:31:21 -07:00
2010-03-30 22:02:32 +09:00
2009-05-18 11:22:24 +01:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2009-01-14 14:15:23 +01:00
2010-03-25 14:13:27 -07:00
2010-03-30 22:02:32 +09:00
2010-03-12 15:52:28 -08:00
2010-03-17 18:43:47 -07:00
2010-03-30 22:02:32 +09:00
2008-11-06 15:41:19 -08:00
2009-12-03 13:54:25 +01:00
2010-04-07 08:38:04 -07:00
2010-03-30 22:02:32 +09:00
2010-03-29 23:07:12 +09:00
2007-10-20 01:27:18 +02:00
2010-03-30 22:02:32 +09:00
2010-04-07 08:38:03 -07:00
2010-04-19 16:28:20 -07:00
2009-12-16 19:48:48 -05:00
2010-04-09 10:09:50 -07:00
2009-08-06 11:36:25 +03:00
2010-04-09 10:09:50 -07:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2010-03-12 15:52:36 -08:00
2009-06-23 12:50:05 -07:00
2010-03-30 22:02:32 +09:00
2010-04-09 10:09:50 -07:00
2010-02-02 12:50:47 -08:00
2010-04-07 08:38:03 -07:00
2010-03-30 22:02:32 +09:00