[PATCH for v4.9 LTS 75/86] coredump: Ensure proper size of sparse core files

2017-06-17 Thread Levin, Alexander (Sasha Levin)
From: Dave Kleikamp [ Upstream commit 4d22c75d4c7b5c5f4bd31054f09103ee490878fd ] If the last section of a core file ends with an unmapped or zero page, the size of the file does not correspond with the last dump_skip() call. gdb complains that the file is truncated and

[PATCH for v4.9 LTS 75/86] coredump: Ensure proper size of sparse core files

2017-06-17 Thread Levin, Alexander (Sasha Levin)
From: Dave Kleikamp [ Upstream commit 4d22c75d4c7b5c5f4bd31054f09103ee490878fd ] If the last section of a core file ends with an unmapped or zero page, the size of the file does not correspond with the last dump_skip() call. gdb complains that the file is truncated and can be confusing to