summaryrefslogtreecommitdiff
path: root/kexec/arch/arm/kexec-zImage-arm.c
diff options
context:
space:
mode:
authorMatt Evans <matt@ozlabs.org>2010-05-10 14:39:34 +1000
committerSimon Horman <horms@verge.net.au>2010-05-10 18:19:12 +0900
commit65feee9df927bef15f0b1d2f9b285cb924a9f799 (patch)
treea115d12c5567f9ff9988f2d309e973c84d5e4118 /kexec/arch/arm/kexec-zImage-arm.c
parent64c4e7d1aedec929ba57bd1e89577098f2a63612 (diff)
kexec-tools, ppc64: Fix segfault on parsing of large device trees.
ppc64's fs2dt used to use a fixed-size array into which the device tree was parsed. There was no bounds checking, so with a large device tree other heap data ended up getting stomped -- SIGSEGV time. This patch adds a function, 'dt_reserve', to check whether there's enough space left prior to writing data to the array. If not, the array is realloced. Signed-off-by: Matt Evans <matt@ozlabs.org> Ack-by: Michael Neuling <mikey@neuling.org> Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'kexec/arch/arm/kexec-zImage-arm.c')
0 files changed, 0 insertions, 0 deletions