linux-stable/arch
Pavel Tatashin 235d33fe3d arm64: kdump: update ppos when reading elfcorehdr
[ Upstream commit 141f8202cf ]

The ppos points to a position in the old kernel memory (and in case of
arm64 in the crash kernel since elfcorehdr is passed as a segment). The
function should update the ppos by the amount that was read. This bug is
not exposed by accident, but other platforms update this value properly.
So, fix it in ARM64 version of elfcorehdr_read() as well.

Signed-off-by: Pavel Tatashin <pasha.tatashin@soleen.com>
Fixes: e62aaeac42 ("arm64: kdump: provide /proc/vmcore file")
Reviewed-by: Tyler Hicks <tyhicks@linux.microsoft.com>
Link: https://lore.kernel.org/r/20210319205054.743368-1-pasha.tatashin@soleen.com
Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-03-30 14:40:11 +02:00
..
alpha alpha: fix annotation of io{read,write}{16,32}be() 2020-08-26 10:29:57 +02:00
arc arch/arc: add copy_user_page() to <asm/page.h> to fix build error on ARC 2021-01-23 15:48:42 +01:00
arm ARM: dts: at91-sama5d27_som1: fix phy address to 7 2021-03-30 14:40:10 +02:00
arm64 arm64: kdump: update ppos when reading elfcorehdr 2021-03-30 14:40:11 +02:00
blackfin
c6x
cris
frv
h8300 h8300: fix PREEMPTION build, TI_PRE_COUNT undefined 2021-02-23 14:00:33 +01:00
hexagon
ia64 ia64: fix ptrace(PTRACE_SYSCALL_INFO_EXIT) sign 2021-03-30 14:40:09 +02:00
m32r
m68k m68k: q40: Fix info-leak in rtc_ioctl 2020-10-01 13:12:26 +02:00
metag
microblaze microblaze: Prevent the overflow of the start 2020-02-28 16:36:08 +01:00
mips MIPS: lantiq: Explicitly compare LTQ_EBU_PCC_ISTAT against 0 2021-03-03 18:22:41 +01:00
mn10300
nios2
openrisc openrisc: Fix issue with argument clobbering for clone/fork 2020-06-25 15:41:56 +02:00
parisc parisc: Bump 64-bit IRQ stack size to 64 KB 2021-03-07 11:27:45 +01:00
powerpc powerpc/4xx: Fix build errors from mfdcr() 2021-03-30 14:40:07 +02:00
s390 s390/smp: __smp_rescan_cpus() - move cpumask away from stack 2021-03-17 16:34:31 +01:00
score
sh sh: dma: fix kconfig dependency for G2_DMA 2021-01-30 13:31:15 +01:00
sparc sparc64: Fix opcode filtering in handling of no fault loads 2021-03-30 14:40:09 +02:00
tile
um um: chan_xterm: Fix fd leak 2020-12-29 13:47:01 +01:00
unicore32
x86 x86: Introduce TS_COMPAT_RESTART to fix get_nr_restart_syscall() 2021-03-24 11:05:05 +01:00
xtensa xtensa: disable preemption around cache alias management calls 2020-11-24 13:05:56 +01:00
.gitignore
Kconfig mm: fix exec activate_mm vs TLB shootdown and lazy tlb switching race 2020-11-18 18:28:03 +01:00