Files
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
..
2022-06-03 20:09:27 +08:00
2022-10-12 16:36:19 +08:00
2025-05-21 16:46:37 +02:00
2025-05-30 21:45:42 +08:00
2022-12-14 08:41:53 +08:00
2025-05-21 16:46:37 +02:00
2025-02-13 12:02:35 +08:00
2024-10-16 21:56:56 +02:00
2022-10-12 16:36:14 +08:00
2025-05-07 11:05:57 +02:00
2025-02-13 12:02:35 +08:00