diff options
author | Matt Evans <matt@ozlabs.org> | 2010-05-14 13:07:53 +1000 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2010-05-19 09:15:21 +0900 |
commit | e5ebc83034a407bf208578fb99e719886ec74cde (patch) | |
tree | a260d162352e36d4ab8aa8f542924c4c61d9920a /kexec/add_segment.c | |
parent | 45e8f29639d9f97b74389e5bd28c7a5cccbf3e2a (diff) |
kexec-tools, ppc64: Fix segfault parsing DR memory property
add_dyn_reconf_usable_mem_property() iterates over memory spans
in /ibm,dynamic-reconfiguration-memory/ibm,dynamic-memory and intersects
these with usablemem_rgns ranges. In doing so it used an unchecked
fixed-size array which will overrun on machines with lots of LMBs.
This patch removes the fixed-sized arrays from
add_dyn_reconf_usable_mem_property() and add_usable_mem_property(), in lieu of
malloc/realloc/free.
Signed-off-by: Matt Evans <matt@ozlabs.org>
Michael Neuling <mikey@neuling.org>
Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'kexec/add_segment.c')
0 files changed, 0 insertions, 0 deletions