From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx109.postini.com [74.125.245.109]) by kanga.kvack.org (Postfix) with SMTP id D64356B0002 for ; Tue, 23 Apr 2013 19:16:46 -0400 (EDT) Received: by mail-pd0-f174.google.com with SMTP id y13so345777pdi.33 for ; Tue, 23 Apr 2013 16:16:46 -0700 (PDT) Date: Tue, 23 Apr 2013 16:16:44 -0700 (PDT) From: David Rientjes Subject: Re: [Patch v2] mm: slab: Verify the nodeid passed to ____cache_alloc_node In-Reply-To: <1014891011.990074.1366727496599.JavaMail.root@redhat.com> Message-ID: References: <1014891011.990074.1366727496599.JavaMail.root@redhat.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org List-ID: To: Aaron Tomlin Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, cl@linux.com, penberg@kernel.org, Rik , Rafael Aquini On Tue, 23 Apr 2013, Aaron Tomlin wrote: > mm: slab: Verify the nodeid passed to ____cache_alloc_node > > If the nodeid is > num_online_nodes() this can cause an > Oops and a panic(). The purpose of this patch is to assert > if this condition is true to aid debugging efforts rather > than some random NULL pointer dereference or page fault. > > Signed-off-by: Aaron Tomlin > Reviewed-by: Rik van Riel > Acked-by: David Rientjes -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org