Re: v2.6.26-rc7: BUG: unable to handle kernel NULL pointer dereference

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Mike Travis <travis@...>
Cc: Vegard Nossum <vegard.nossum@...>, Adrian Bunk <bunk@...>, Srivatsa Vaddagiri <vatsa@...>, <linux-kernel@...>, Gautham R Shenoy <ego@...>, Rafael J. Wysocki <rjw@...>, Zhang, Yanmin <yanmin.zhang@...>, Heiko Carstens <heiko.carstens@...>
Date: Monday, June 23, 2008 - 9:36 pm

On Tuesday 24 June 2008 02:58:44 Mike Travis wrote:

You're right.  It assumes cpu is < NR_CPUS.  Hmm, I have no idea what's going 
on.  nr_cpu_ids (ignore that it's a horrible name for a bad idea) should be 
fine to test against.

Vegard's analysis is flawed: just because cpu is offline, it still must be < 
nr_cpu_ids, which is based on possible cpus.  Unless something crazy is 
happening, but a quick grep doesn't reveal anyone manipulating nr_cpu_ids.

If changing this fixes the bug, something else is badly wrong...
Rusty.

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: v2.6.26-rc7: BUG: unable to handle kernel NULL pointer d..., Rusty Russell, (Mon Jun 23, 9:36 pm)