Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755703Ab3DWXQs (ORCPT ); Tue, 23 Apr 2013 19:16:48 -0400 Received: from mail-da0-f50.google.com ([209.85.210.50]:59981 "EHLO mail-da0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752241Ab3DWXQq (ORCPT ); Tue, 23 Apr 2013 19:16:46 -0400 Date: Tue, 23 Apr 2013 16:16:44 -0700 (PDT) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: Aaron Tomlin cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, cl@linux.com, penberg@kernel.org, Rik , Rafael Aquini 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> User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 748 Lines: 19 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 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/