From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756868AbYFYFjD (ORCPT ); Wed, 25 Jun 2008 01:39:03 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754341AbYFYFiy (ORCPT ); Wed, 25 Jun 2008 01:38:54 -0400 Received: from ozlabs.org ([203.10.76.45]:46850 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754007AbYFYFix (ORCPT ); Wed, 25 Jun 2008 01:38:53 -0400 From: Rusty Russell To: Mike Travis Subject: Re: v2.6.26-rc7: BUG: unable to handle kernel NULL pointer dereference Date: Wed, 25 Jun 2008 15:38:45 +1000 User-Agent: KMail/1.9.9 Cc: "Zhang, Yanmin" , Vegard Nossum , Adrian Bunk , Srivatsa Vaddagiri , linux-kernel@vger.kernel.org, Gautham R Shenoy , "Rafael J. Wysocki" , "Zhang, Yanmin" , Heiko Carstens References: <20080622125633.GA8166@damson.getinternet.no> <200806242314.51656.rusty@rustcorp.com.au> <4861085D.8020506@sgi.com> In-Reply-To: <4861085D.8020506@sgi.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200806251538.45795.rusty@rustcorp.com.au> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wednesday 25 June 2008 00:44:45 Mike Travis wrote: > 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). It's ok if nr_cpu_ids is an overestimate, isn't it? But for this corner case, I think clearing cpu_possible_map is wrong. Cheers, Rusty.