Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756753Ab1FHXvV (ORCPT ); Wed, 8 Jun 2011 19:51:21 -0400 Received: from fgwmail6.fujitsu.co.jp ([192.51.44.36]:54847 "EHLO fgwmail6.fujitsu.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754011Ab1FHXvU (ORCPT ); Wed, 8 Jun 2011 19:51:20 -0400 X-SecurityPolicyCheck-FJ: OK by FujitsuOutboundMailChecker v1.3.1 Date: Thu, 9 Jun 2011 08:44:22 +0900 From: KAMEZAWA Hiroyuki To: Andrew Morton Cc: Igor Mammedov , Hiroyuki Kamezawa , Michal Hocko , linux-kernel@vger.kernel.org, balbir@linux.vnet.ibm.com, linux-mm@kvack.org, Paul Menage , Li Zefan , containers@lists.linux-foundation.org Subject: Re: [PATCH] memcg: do not expose uninitialized mem_cgroup_per_node to world Message-Id: <20110609084422.1b285cf3.kamezawa.hiroyu@jp.fujitsu.com> In-Reply-To: <20110608140951.115ab1dd.akpm@linux-foundation.org> References: <1306925044-2828-1-git-send-email-imammedo@redhat.com> <20110601123913.GC4266@tiehlicka.suse.cz> <4DE6399C.8070802@redhat.com> <20110601134149.GD4266@tiehlicka.suse.cz> <4DE64F0C.3050203@redhat.com> <20110601152039.GG4266@tiehlicka.suse.cz> <4DE66BEB.7040502@redhat.com> <4DE8D50F.1090406@redhat.com> <4DEE26E7.2060201@redhat.com> <20110608123527.479e6991.kamezawa.hiroyu@jp.fujitsu.com> <20110608140951.115ab1dd.akpm@linux-foundation.org> Organization: FUJITSU Co. LTD. X-Mailer: Sylpheed 3.1.0 (GTK+ 2.10.14; i686-pc-mingw32) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1237 Lines: 42 On Wed, 8 Jun 2011 14:09:51 -0700 Andrew Morton wrote: > > The original patch: > > --- a/mm/memcontrol.c > +++ b/mm/memcontrol.c > @@ -4707,7 +4707,6 @@ static int alloc_mem_cgroup_per_zone_info(struct mem_cgroup *mem, int node) > if (!pn) > return 1; > > - mem->info.nodeinfo[node] = pn; > for (zone = 0; zone < MAX_NR_ZONES; zone++) { > mz = &pn->zoneinfo[zone]; > for_each_lru(l) > @@ -4716,6 +4715,7 @@ static int alloc_mem_cgroup_per_zone_info(struct mem_cgroup *mem, int node) > mz->on_tree = false; > mz->mem = mem; > } > + mem->info.nodeinfo[node] = pn; > return 0; > } > > looks like a really good idea. But it needs a new changelog and I'd be > a bit reluctant to merge it as it appears that the aptch removes our > only known way of reproducing a bug. > > So for now I think I'll queue the patch up unchangelogged so the issue > doesn't get forgotten about. > Hmm, queued as clean up ? If so, I'll Ack. Thanks, -Kame -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/