android_kernel_samsung_univ.../include
Dave Kleikamp 878f37efac coredump: Ensure proper size of sparse core files
[ 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 users.

After all of the vma sections are written, make sure that the file size
is no smaller than the current file position.

This problem can be demonstrated with gdb's bigcore testcase on the
sparc architecture.

Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Cc: linux-fsdevel@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-07-05 14:37:20 +02:00
..
acpi
asm-generic
clocksource
crypto crypto: ahash - Fix EINPROGRESS notification callback 2017-04-21 09:30:06 +02:00
drm drm/ttm, drm/vmwgfx: Relax permission checking when opening surfaces 2017-04-12 12:38:33 +02:00
dt-bindings
keys
kvm
linux coredump: Ensure proper size of sparse core files 2017-07-05 14:37:20 +02:00
math-emu
media
memory
misc
net ipv6: fix flow labels when the traffic class is non-0 2017-06-17 06:39:37 +02:00
pcmcia
ras
rdma
rxrpc
scsi
soc
sound
target target: Convert ACL change queue_depth se_session reference usage 2017-05-20 14:26:58 +02:00
trace
uapi USB: hub: fix SS max number of ports 2017-06-26 07:13:09 +02:00
video
xen
Kbuild