summaryrefslogtreecommitdiffstats
path: root/samples
diff options
context:
space:
mode:
authorHari Bathini <hbathini@linux.ibm.com>2018-08-06 22:42:54 +0200
committerMichael Ellerman <mpe@ellerman.id.au>2018-08-10 14:12:34 +0200
commitced1bf52f47783135b985d2aacf53fa77fd72e2e (patch)
tree4ba5324c17d3e526cb5e4e2a6b4fc0537ab98ce5 /samples
parentpowerpc/fadump: handle crash memory ranges array index overflow (diff)
downloadlinux-ced1bf52f47783135b985d2aacf53fa77fd72e2e.tar.xz
linux-ced1bf52f47783135b985d2aacf53fa77fd72e2e.zip
powerpc/fadump: merge adjacent memory ranges to reduce PT_LOAD segements
With dynamic memory allocation support for crash memory ranges array, there is no hard limit on the no. of crash memory ranges kernel could export, but program headers count could overflow in the /proc/vmcore ELF file while exporting each memory range as PT_LOAD segment. Reduce the likelihood of a such scenario, by folding adjacent crash memory ranges which minimizes the total number of PT_LOAD segments. Signed-off-by: Hari Bathini <hbathini@linux.ibm.com> Reviewed-by: Mahesh Salgaonkar <mahesh@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions