Re: [PATCH] arm64: vdso: fix AArch32 compat init allocation leaks
From: Andrew Morton
Date: Mon Mar 23 2026 - 18:30:13 EST
On Mon, 23 Mar 2026 22:41:16 +0100 Osama Abdelkader <osama.abdelkader@xxxxxxxxx> wrote:
> aarch32_alloc_vdso_pages() allocates the AA32 vdso pagelist, the compat
> sigpage, then the kuser vectors page. If aarch32_alloc_sigpage() or
> aarch32_alloc_kuser_vdso_page() fails, earlier allocations were not freed.
>
> Unwind in reverse order: drop the sigpage when kuser setup fails, and
> kfree the vdso pagelist when either later step fails (only when
> CONFIG_COMPAT_VDSO allocated it).
Thanks. AI review has flagged a couple of possible issues:
https://sashiko.dev/#/patchset/20260323214117.241216-1-osama.abdelkader@xxxxxxxxx