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 64DAE1B6CE1 for ; Thu, 19 Dec 2024 19:47:26 +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=1734637646; cv=none; b=PAPEOLiJ8/kXxewClsMxR+PTjqPOdO3E7e24dZyqtk+08USaDCaSRa6p/7i6gtlc8mEYu9PT/SLmBtMJeyZwBAk/868VGQ+Lm9Bzycqw83Vew0iK47en8lB8CusHP6U8gWr1OB/feZCj8KZeaL/hNcPw0/TNG6eXWLspeqypFY8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734637646; c=relaxed/simple; bh=W4xG6C/P7SwhesGX8h+yHj5UUkat50dMpNFG4ndH9bE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=aQbx4J20MjfbvZKO598yWMqVX8V3LM6w5lLb45qzyClLqqmldXR+Zl30LTrkryLTVCMq1G8oL4bMczd6U/kMgplIm9ScKU+79fevy/ynqP66fg9/8aG0eYDJSGYr/aaflbcEDYAgpobHQGefIuoeugXV+hpd8zavKZoofRtzW04= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=qs0/pnel; 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="qs0/pnel" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8C4FEC4CED4; Thu, 19 Dec 2024 19:47:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1734637645; bh=W4xG6C/P7SwhesGX8h+yHj5UUkat50dMpNFG4ndH9bE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qs0/pnelDnGSWqhbSLCiLjNasihTl6OSWLlLmQtA6GXUUqVBDVQ7zVcp1VeHsTNS/ sIWBLOwxzi35hhtz3XKOJvbX9R/0atqvRqc5x4eexjbUQOhwCtnFh0uAU3HJEbsJh9 89/SYOFHScgrXTpPeqybXKeI+xl/QFN2Zux5YHQrCqNZXs/7EZinL8O7zII+XzUfrP 5izZ9BAr5CFkkoEmd1+gwxXs43KuXMqqZyBBiKaJZZhJkT95KU2znKGr1ecqcT21+x J8C/PXOSvCZ7kLVye8mwtSFd3voe1MwmUYyaaIduPPQjDQBpVCDyoVBy7xOza581Bl WDEoKOnlgVKJg== From: Will Deacon To: linux-arm-kernel@lists.infradead.org, Ard Biesheuvel Cc: catalin.marinas@arm.com, kernel-team@android.com, Will Deacon , linux-kernel@vger.kernel.org, Ard Biesheuvel , Marc Zyngier , Mark Rutland , Ryan Roberts , Anshuman Khandual , Quentin Perret , Kees Cook Subject: Re: [PATCH v3 0/6] arm64: Clean up and simplify PA space size handling Date: Thu, 19 Dec 2024 19:47:08 +0000 Message-Id: <173462903479.3930132.9019084013797129885.b4-ty@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20241212081841.2168124-8-ardb+git@google.com> References: <20241212081841.2168124-8-ardb+git@google.com> 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="utf-8" Content-Transfer-Encoding: 8bit On Thu, 12 Dec 2024 09:18:42 +0100, Ard Biesheuvel wrote: > This series addresses a number of buglets related to how we handle the > size of the physical address space when building LPA2 capable kernels: > > - reject 52-bit physical addressess in the mapping routines when LPA2 is > configured but not available at runtime > - ensure that TCR.IPS is not set to 52-bits if LPA2 is not supported > - ensure that TCR_EL2.PS and DS match the host, regardless of whether > LPA2 is available at stage 2 > - don't rely on kvm_get_parange() and invalid physical addresses as > control flags in the pKVM page donation APIs > > [...] Applied to arm64 (for-next/mm), thanks! [1/6] arm64/mm: Reduce PA space to 48 bits when LPA2 is not enabled https://git.kernel.org/arm64/c/bf74bb73cd87 [2/6] arm64/mm: Override PARange for !LPA2 and use it consistently https://git.kernel.org/arm64/c/62cffa496aac [3/6] arm64/kvm: Configure HYP TCR.PS/DS based on host stage1 https://git.kernel.org/arm64/c/f0da16992aef [4/6] arm64/kvm: Avoid invalid physical addresses to signal owner updates https://git.kernel.org/arm64/c/9d86c3c97434 [5/6] arm64: Kconfig: force ARM64_PAN=y when enabling TTBR0 sw PAN https://git.kernel.org/arm64/c/92b6919d7fb2 [6/6] arm64/mm: Drop configurable 48-bit physical address space limit https://git.kernel.org/arm64/c/32d053d6f5e9 Cheers, -- Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev