Files
Linux/net/openvswitch
Chris J Arges bac541e463 openvswitch: allocate nr_node_ids flow_stats instead of num_possible_nodes
Some architectures like POWER can have a NUMA node_possible_map that
contains sparse entries. This causes memory corruption with openvswitch
since it allocates flow_cache with a multiple of num_possible_nodes() and
assumes the node variable returned by for_each_node will index into
flow->stats[node].

Use nr_node_ids to allocate a maximal sparse array instead of
num_possible_nodes().

The crash was noticed after 3af229f2 was applied as it changed the
node_possible_map to match node_online_map on boot.
Fixes: 3af229f207

Signed-off-by: Chris J Arges <[email protected]>
Acked-by: Pravin B Shelar <[email protected]>
Acked-by: Nishanth Aravamudan <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
2015-07-21 22:26:03 -07:00
..
2015-05-05 19:24:42 -04:00
2015-06-03 19:39:35 -07:00
2015-02-20 15:32:08 -05:00