From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A080A3D1CCF for ; Tue, 24 Mar 2026 10:14:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774347283; cv=none; b=gemEU+xfCP4ZCCyhLAD7hnW2riCyswVLCZEWvyYg9pRPioBZXiHxvmJuAKlhDl+F6+Mr6hwMUX2AlsZ+M/4w8Up6fJP+NDON+/cE+geUwR1MhPZfzoqhdQf0uZXhgAcK4pgJsZpCXKHb028T2+vZOrzQddoWpuvPUoeZ8MCdpCE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774347283; c=relaxed/simple; bh=zg+WpXDdGHriaE92puEQ+UJjbNTidyzjwpmpPSIKApQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=MwZ/Um2LOX82jz6pOt4IPdcUd18Z933YGmMDSOxjR063KcPmabAh5Ud+kFgBD3A6LvNVQppmW+UsqEVGa/oEveVc9oMFGpnE2V416JvaENwBe6s0zl8qIG+DqIDf8Caay3OCmDNpHVKaNF/oMg+4lgME2p2ufJsKU/gSGOCIh94= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=b51RlXF9; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="b51RlXF9" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5C3B3C19424; Tue, 24 Mar 2026 10:14:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1774347283; bh=zg+WpXDdGHriaE92puEQ+UJjbNTidyzjwpmpPSIKApQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=b51RlXF9nyf57uLZAkbmqOzygP8Jq31XRBgp9s9tmXese9E+uvO343l6NDxefnMHi bPlvMTKsrY1PthViKr//5kKovtcT63Cfn6PeBOQGqUL0BT68ItF5U6l6DUXO9R1Cr9 /X003u/rLLWXueH2pfXjmONUN5JkH3SYkrb1NwzrQ+JfH11iF7KqBnl09V7f6RTMCu ogj9Mm1uMJhQYC8ujJwuEkaIHhy+ZhBLDFlu6pVrNGTDJJr0Rp/ZpFPhCVj+/V2eHE y2RZnGXEJKtKYIKvGRXh7TtgtbGA6aRkwcdrfPLAVT510XzmP19OsrqtN6gGrim2IY yOF/jVyjYplgA== Date: Tue, 24 Mar 2026 10:14:38 +0000 From: Will Deacon To: Thomas =?iso-8859-1?Q?Wei=DFschuh?= Cc: Osama Abdelkader , Catalin Marinas , Kees Cook , Andrew Morton , "Liam R. Howlett" , Jeff Xu , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] arm64: vdso: fix AArch32 compat init allocation leaks Message-ID: References: <20260323214117.241216-1-osama.abdelkader@gmail.com> <20260324110512-7a00b224-8c48-445b-93f3-dd9b7a07d3cd@linutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20260324110512-7a00b224-8c48-445b-93f3-dd9b7a07d3cd@linutronix.de> On Tue, Mar 24, 2026 at 11:09:12AM +0100, Thomas Weißschuh wrote: > On Tue, Mar 24, 2026 at 09:59:15AM +0000, Will Deacon wrote: > > On Mon, Mar 23, 2026 at 10:41:16PM +0100, Osama Abdelkader 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. > > > > But why should they be freed? The vectors, sigpage and vdso are > > independent from one another, so we can limp along with whatever we > > managed to allocate. I'm not sure how far we'll get, mind, if single > > page allocations are failing at initcall time... > > In the core vDSO datastore we just panic() if the allocation fails. > (See tip/timers/vdso for the currentl implementation) > The same should work for the architecture-specific bits. I think we should just leave the code as-is tbh unless there's an actual issue here. Will