Re: linux-next: Tree for June 5

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Vegard Nossum
Date: Friday, June 6, 2008 - 7:07 am

On Fri, Jun 6, 2008 at 3:50 PM, Vegard Nossum <vegard.nossum@gmail.com> wrote:

...


Aha.

The error is of course that the node masks for nodes > nr_node_ids are
not valid. While this function ignores that:

cpumask_t *_node_to_cpumask_ptr(int node)
{
        if (node_to_cpumask_map == NULL) {
                printk(KERN_WARNING
                        "_node_to_cpumask_ptr(%d): no node_to_cpumask_map!\n",
                        node);
                dump_stack();
                return &cpu_online_map;
        }
        return &node_to_cpumask_map[node];
}
EXPORT_SYMBOL(_node_to_cpumask_ptr);

Notice the return statement. It needs to check if node < nr_node_ids.


Vegard

-- 
"The animistic metaphor of the bug that maliciously sneaked in while
the programmer was not looking is intellectually dishonest as it
disguises that the error is the programmer's own creation."
	-- E. W. Dijkstra, EWD1036
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
linux-next: Tree for June 5, Stephen Rothwell, (Thu Jun 5, 12:52 am)
Re: linux-next: Tree for June 5, Andrew Morton, (Thu Jun 5, 7:56 pm)
Re: linux-next: Tree for June 5, Andrew Morton, (Thu Jun 5, 8:46 pm)
Re: linux-next: Tree for June 5, Ingo Molnar, (Fri Jun 6, 12:17 am)
Re: linux-next: Tree for June 5, Ingo Molnar, (Fri Jun 6, 12:25 am)
Re: linux-next: Tree for June 5, Andrew Morton, (Fri Jun 6, 12:29 am)
Re: linux-next: Tree for June 5, Stephen Rothwell, (Fri Jun 6, 12:33 am)
Re: linux-next: Tree for June 5, Andrew Morton, (Fri Jun 6, 12:33 am)
Re: linux-next: Tree for June 5, Ingo Molnar, (Fri Jun 6, 12:41 am)
Re: linux-next: Tree for June 5, Andrew Morton, (Fri Jun 6, 12:47 am)
Re: linux-next: Tree for June 5, Stephen Rothwell, (Fri Jun 6, 12:53 am)
Re: linux-next: Tree for June 5, Andrew Morton, (Fri Jun 6, 1:01 am)
Re: linux-next: Tree for June 5, Stephen Rothwell, (Fri Jun 6, 1:22 am)
Re: linux-next: Tree for June 5, Ingo Molnar, (Fri Jun 6, 1:23 am)
Re: linux-next: Tree for June 5, Ingo Molnar, (Fri Jun 6, 1:27 am)
Re: linux-next: Tree for June 5, Stephen Rothwell, (Fri Jun 6, 1:28 am)
Re: linux-next: Tree for June 5, Andrew Morton, (Fri Jun 6, 1:30 am)
Re: linux-next: Tree for June 5, Ingo Molnar, (Fri Jun 6, 1:33 am)
Re: linux-next: Tree for June 5, Ingo Molnar, (Fri Jun 6, 1:36 am)
Re: linux-next: Tree for June 5, Andrew Morton, (Fri Jun 6, 1:38 am)
Re: linux-next: Tree for June 5, Ingo Molnar, (Fri Jun 6, 1:49 am)
Re: linux-next: Tree for June 5, Andrew Morton, (Fri Jun 6, 2:01 am)
Re: linux-next: Tree for June 5, Andrew Morton, (Fri Jun 6, 2:48 am)
Re: linux-next: Tree for June 5, Andrew Morton, (Fri Jun 6, 2:54 am)
Re: linux-next: Tree for June 5, Ingo Molnar, (Fri Jun 6, 3:10 am)
Re: linux-next: Tree for June 5, Ingo Molnar, (Fri Jun 6, 3:47 am)
Re: linux-next: Tree for June 5, Andrew Morton, (Fri Jun 6, 3:54 am)
Re: linux-next: Tree for June 5, Vegard Nossum, (Fri Jun 6, 4:21 am)
Re: linux-next: Tree for June 5, Paul Mackerras, (Fri Jun 6, 4:50 am)
Re: linux-next: Tree for June 5, Ingo Molnar, (Fri Jun 6, 4:57 am)
Re: linux-next: Tree for June 5, Vegard Nossum, (Fri Jun 6, 5:33 am)
Re: linux-next: Tree for June 5, Mike Travis, (Fri Jun 6, 6:28 am)
Re: linux-next: Tree for June 5, Mike Travis, (Fri Jun 6, 6:33 am)
Re: linux-next: Tree for June 5, Vegard Nossum, (Fri Jun 6, 6:50 am)
Re: linux-next: Tree for June 5, Vegard Nossum, (Fri Jun 6, 7:07 am)
Re: linux-next: Tree for June 5, Mike Travis, (Fri Jun 6, 7:13 am)
Re: linux-next: Tree for June 5, Mike Travis, (Fri Jun 6, 7:20 am)
Re: linux-next: Tree for June 5, Vegard Nossum, (Fri Jun 6, 7:36 am)
Re: linux-next: Tree for June 5, Mike Travis, (Fri Jun 6, 7:41 am)
Re: linux-next: Tree for June 5, Mike Travis, (Fri Jun 6, 7:51 am)
Re: linux-next: Tree for June 5, Mike Travis, (Fri Jun 6, 7:54 am)
Re: linux-next: Tree for June 5, Ingo Molnar, (Fri Jun 6, 7:57 am)
Re: linux-next: Tree for June 5, Ingo Molnar, (Fri Jun 6, 8:01 am)
Re: linux-next: Tree for June 5, Mike Travis, (Fri Jun 6, 8:04 am)
Re: linux-next: Tree for June 5, Ingo Molnar, (Fri Jun 6, 8:13 am)
Re: linux-next: Tree for June 5, Vegard Nossum, (Fri Jun 6, 8:13 am)
Re: linux-next: Tree for June 5, Mike Travis, (Fri Jun 6, 8:20 am)
Re: linux-next: Tree for June 5, Ingo Molnar, (Fri Jun 6, 8:23 am)
Re: linux-next: Tree for June 5, Ingo Molnar, (Fri Jun 6, 8:33 am)
Re: linux-next: Tree for June 5, Mike Travis, (Fri Jun 6, 8:52 am)
Re: linux-next: Tree for June 5, Ingo Molnar, (Fri Jun 6, 9:37 am)
Re: linux-next: Tree for June 5, Ingo Molnar, (Fri Jun 6, 10:15 am)
Re: linux-next: Tree for June 5, Ingo Molnar, (Wed Jun 18, 1:26 am)