From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761925AbYFXOo5 (ORCPT ); Tue, 24 Jun 2008 10:44:57 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1761225AbYFXOot (ORCPT ); Tue, 24 Jun 2008 10:44:49 -0400 Received: from relay2.sgi.com ([192.48.171.30]:57474 "EHLO relay.sgi.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1761144AbYFXOos (ORCPT ); Tue, 24 Jun 2008 10:44:48 -0400 Message-ID: <4861085D.8020506@sgi.com> Date: Tue, 24 Jun 2008 07:44:45 -0700 From: Mike Travis User-Agent: Thunderbird 2.0.0.6 (X11/20070801) MIME-Version: 1.0 To: Rusty Russell CC: "Zhang, Yanmin" , Vegard Nossum , Adrian Bunk , Srivatsa Vaddagiri , linux-kernel@vger.kernel.org, Gautham R Shenoy , "Rafael J. Wysocki" , "Zhang, Yanmin" , Heiko Carstens Subject: Re: v2.6.26-rc7: BUG: unable to handle kernel NULL pointer dereference References: <20080622125633.GA8166@damson.getinternet.no> <200806241136.52430.rusty@rustcorp.com.au> <1214294783.25608.75.camel@ymzhang> <200806242314.51656.rusty@rustcorp.com.au> In-Reply-To: <200806242314.51656.rusty@rustcorp.com.au> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Rusty Russell wrote: ... > Nice catch. Basically, cpu_possible_map should only be cleared at boot, and > probably not even then. > One thing that should be avoided, is clearing anything but the last bit in the cpu_possible_map. This is because num_possible_cpus != nr_cpu_ids when there are holes in the map. (nr_cpu_ids = highest possible cpu # + 1). Thanks, Mike