alistair23-linux/arch/arm64/kernel
Mark Rutland 9cc3d0c691 arm64: vdso: don't free unallocated pages
The aarch32_vdso_pages[] array never has entries allocated in the C_VVAR
or C_VDSO slots, and as the array is zero initialized these contain
NULL.

However in __aarch32_alloc_vdso_pages() when
aarch32_alloc_kuser_vdso_page() fails we attempt to free the page whose
struct page is at NULL, which is obviously nonsensical.

This patch removes the erroneous page freeing.

Fixes: 7c1deeeb01 ("arm64: compat: VDSO setup for compat layer")
Cc: <stable@vger.kernel.org> # 5.3.x-
Cc: Vincenzo Frascino <vincenzo.frascino@arm.com>
Acked-by: Will Deacon <will@kernel.org>
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
2020-04-15 11:13:16 +01:00
..
probes
vdso SPDX patches for 5.7-rc1. 2020-04-03 13:12:26 -07:00
vdso32 SPDX patches for 5.7-rc1. 2020-04-03 13:12:26 -07:00
.gitignore .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
acpi.c arm64: acpi: fix DAIF manipulation with pNMI 2020-01-22 14:41:22 +00:00
acpi_numa.c
acpi_parking_protocol.c
alternative.c
armv8_deprecated.c arm64: armv8_deprecated: Fix undef_hook mask for thumb setend 2020-04-08 18:19:20 +01:00
asm-offsets.c arm64: initialize and switch ptrauth kernel keys 2020-03-18 09:50:20 +00:00
cacheinfo.c
cpu-reset.h
cpu-reset.S arm64: use mov_q instead of literal ldr 2020-03-24 11:48:24 +00:00
cpu_errata.c arm64: Mark call_smc_arch_workaround_1 as __maybe_unused 2020-03-11 12:01:59 +00:00
cpu_ops.c arm64: Introduce get_cpu_ops() helper function 2020-03-24 17:24:19 +00:00
cpufeature.c Merge branch 'for-next/kernel-ptrauth' into for-next/core 2020-03-25 11:11:08 +00:00
cpuidle.c arm64: Introduce get_cpu_ops() helper function 2020-03-24 17:24:19 +00:00
cpuinfo.c Merge branch 'for-next/rng' into for-next/core 2020-01-22 11:38:53 +00:00
crash_core.c
crash_dump.c
debug-monitors.c
efi-entry.S efi/arm64: Clean EFI stub exit code from cache instead of avoiding it 2020-02-29 10:16:57 +01:00
efi-header.S efi/libstub: Introduce symbolic constants for the stub major/minor version 2020-02-23 21:59:42 +01:00
efi-rt-wrapper.S
efi.c
entry-common.c arm64: entry: unmask IRQ in el0_sp() 2020-03-11 14:34:28 +00:00
entry-fpsimd.S
entry-ftrace.S arm64: entry-ftrace.S: Fix missing argument for CONFIG_FUNCTION_GRAPH_TRACER=y 2020-03-11 11:06:48 +00:00
entry.S Merge branch 'for-next/kernel-ptrauth' into for-next/core 2020-03-25 11:11:08 +00:00
fpsimd.c arm64: nofpsmid: Handle TIF_FOREIGN_FPSTATE flag cleanly 2020-01-14 17:11:53 +00:00
ftrace.c
head.S Merge branch 'for-next/kernel-ptrauth' into for-next/core 2020-03-25 11:11:08 +00:00
hibernate-asm.S arm64: remove gratuitious/stray .ltorg stanzas 2020-03-04 15:47:47 +00:00
hibernate.c arm64: hibernate: Use bringup_hibernate_cpu() 2020-03-25 12:59:34 +01:00
hw_breakpoint.c Printk changes for 5.5 2019-11-25 19:40:40 -08:00
hyp-stub.S arm64: use mov_q instead of literal ldr 2020-03-24 11:48:24 +00:00
image-vars.h efi/arm64: Clean EFI stub exit code from cache instead of avoiding it 2020-02-29 10:16:57 +01:00
image.h
insn.c arm64: insn: consistently handle exit text 2019-12-04 11:32:20 +00:00
io.c
irq.c
jump_label.c
kaslr.c arm64: Fix CONFIG_ARCH_RANDOM=n build 2020-02-11 09:47:01 +00:00
kexec_image.c arm64: kexec_file: add crash dump support 2020-01-08 17:05:23 +00:00
kgdb.c
kuser32.S
machine_kexec.c Revert "arm64: kexec: make dtb_mem always enabled" 2020-01-10 16:00:50 +00:00
machine_kexec_file.c arm64: kexec_file: Fixed code style. 2020-03-17 18:23:20 +00:00
Makefile arm64: efi: add efi-entry.o to targets instead of extra-$(CONFIG_EFI) 2020-03-09 18:13:25 +00:00
module-plts.c
module.c
module.lds
paravirt.c
pci.c
perf_callchain.c
perf_event.c arm64: perf: Add support for ARMv8.5-PMU 64-bit counters 2020-03-17 22:50:30 +00:00
perf_regs.c
pointer_auth.c arm64: install user ptrauth keys at kernel exit time 2020-03-18 09:50:19 +00:00
process.c arm64 updates for 5.7: 2020-03-31 10:05:01 -07:00
psci.c
ptrace.c arm64: rename ptrauth key structures to be user-specific 2020-03-18 09:50:18 +00:00
reloc_test_core.c
reloc_test_syms.S
relocate_kernel.S arm64: use mov_q instead of literal ldr 2020-03-24 11:48:24 +00:00
return_address.c
sdei.c
setup.c arm64: Introduce get_cpu_ops() helper function 2020-03-24 17:24:19 +00:00
signal.c arm64: signal: nofpsimd: Handle fp/simd context for signal frames 2020-01-14 17:11:46 +00:00
signal32.c arm64: signal: nofpsimd: Handle fp/simd context for signal frames 2020-01-14 17:11:46 +00:00
sigreturn32.S
sleep.S arm64: ptrauth: Add bootup/runtime flags for __cpu_setup 2020-03-18 09:50:19 +00:00
smccc-call.S
smp.c arm64 updates for 5.7: 2020-03-31 10:05:01 -07:00
smp_spin_table.c
ssbd.c Return ENODEV when the selected speculation misfeature is unsupported 2020-01-08 17:27:41 +00:00
stacktrace.c arm64: unwind: strip PAC from kernel addresses 2020-03-18 09:50:20 +00:00
suspend.c
sys.c
sys32.c
sys_compat.c
syscall.c arm64: entry: cleanup el0 svc handler naming 2020-01-17 13:22:14 +00:00
time.c arm64: time: Replace <linux/clk-provider.h> by <linux/of_clk.h> 2020-02-12 17:26:38 +00:00
topology.c arm64: use activity monitors for frequency invariance 2020-03-06 16:02:50 +00:00
trace-events-emulation.h
traps.c sched/rt, arm64: Use CONFIG_PREEMPTION 2019-12-08 14:37:32 +01:00
vdso.c arm64: vdso: don't free unallocated pages 2020-04-15 11:13:16 +01:00
vmlinux.lds.S arm64 updates for 5.5: 2019-12-06 14:18:01 -08:00