linux/arch/loongarch/kernel
Guangshuo Li ac398f5707 LoongArch: vDSO: Check kcalloc() result in init_vdso()
Add a NULL-pointer check after the kcalloc() call in init_vdso(). If
allocation fails, return -ENOMEM to prevent a possible dereference of
vdso_info.code_mapping.pages when it is NULL.

Cc: stable@vger.kernel.org
Fixes: 2ed119aef6 ("LoongArch: Set correct size for vDSO code mapping")
Signed-off-by: Guangshuo Li <202321181@mail.sdu.edu.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
2025-09-18 19:44:10 +08:00
..
.gitignore
Makefile
Makefile.syscalls
access-helper.h
acpi.c
alternative.c
asm-offsets.c
cacheinfo.c
cpu-probe.c
crash_dump.c
dma.c
efi-header.S
efi.c
elf.c
entry.S
env.c LoongArch: Replace sprintf() with sysfs_emit() 2025-09-18 19:44:04 +08:00
fpu.S
ftrace.c
ftrace_dyn.c
genex.S
head.S
hw_breakpoint.c
idle.c
image-vars.h
inst.c LoongArch: BPF: Add dynamic code modification support 2025-08-05 19:00:18 +08:00
irq.c
jump_label.c
kdebugfs.c
kfpu.c
kgdb.c
kprobes.c
lbt.S
machine_kexec.c
mcount.S
mcount_dyn.S
mem.c
module-sections.c LoongArch: Optimize module load time by optimizing PLT/GOT counting 2025-08-20 22:23:44 +08:00
module.c
numa.c
paravirt.c
perf_event.c
perf_regs.c
proc.c
process.c
ptrace.c
relocate.c
relocate_kernel.S LoongArch: Make relocate_new_kernel_size be a .quad value 2025-08-03 22:49:47 +08:00
reset.c
rethook.c
rethook.h
rethook_trampoline.S
setup.c LoongArch changes for v6.17 2025-08-08 06:36:48 +03:00
signal.c LoongArch: Save LBT before FPU in setup_sigcontext() 2025-08-20 22:23:44 +08:00
smp.c
stacktrace.c LoongArch: Fix unreliable stack for live patching 2025-09-18 19:44:08 +08:00
switch.S
syscall.c
sysrq.c
time.c LoongArch: Add cpuhotplug hooks to fix high cpu usage of vCPU threads 2025-08-20 22:23:44 +08:00
topology.c
traps.c
unaligned.c
unwind.c
unwind_guess.c
unwind_orc.c LoongArch: Don't use %pK through printk() in unwinder 2025-08-03 22:49:47 +08:00
unwind_prologue.c
uprobes.c
vdso.c LoongArch: vDSO: Check kcalloc() result in init_vdso() 2025-09-18 19:44:10 +08:00
vmlinux.lds.S