From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 7FD2F377AAD; Wed, 23 Sep 2026 14:25:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790173517; cv=none; b=oeaBtaK110C1tv5+PWWyUEofbwP5GqLKzSI5NvHpaGWex2cTvLiCj+KPMIP7fCyI0FowbNWHmQlJB6AFEEYQYcplDDIqCl9qkhKhp7I8gMaOzv5D68djS6pqXXHDXtZLTy36/HXdHi67BFX0+LDVc1zdPCPhb8uWHCmbx1ZcVhA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790173517; c=relaxed/simple; bh=p7ikxTMXpkUkQyDhwCdqHpKF7uwltC2C40lnG8+mOp4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=AlWE4cLUC/NwgRUWTrjPFtG5RVicuO9dNNF3dOC29j+P4Hgcp9+mpIkyu6b0IMcc2lR3TF+7oH4Zje3KQwjozipIwHhBtQsAF2ZbH3vtjF/DtDXjQ9W40JU7oTnULWCfDR2y97fESfLA5C+6yUvjHqVE69v4XdrpKNtslV9FqKI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=cz4eaFp+; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="cz4eaFp+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7AB9D1F000FF; Wed, 23 Sep 2026 14:25:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790173515; bh=S1UkhrzQXIMWZhLB6OcukG6igclYD9OISyxva0Gk5GQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=cz4eaFp+HdXBMVVtbVylc3Pz+FjrVEMCdk/ohfF1yXRdJV1e9qewH+l8E+az/806P 7Om48tSOGujQFDKFssz4V9gEEJpoBoDn4O4RxvQLxmTyMINS1m7NeA1FrN6ZENZM/F XlfpfyrgiLsxxeSMYQsPD6VOuVs6Y/cdVr9YTwLc= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Bradley Morgan , Vladimir Murzin , Mark Rutland , Will Deacon Subject: [PATCH 7.2 271/438] arm64: hibernate: pass HVC_SET_VECTORS args to the resume hvc Date: Wed, 23 Sep 2026 16:04:52 +0200 Message-ID: <20260923140651.791804983@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260923140644.756254324@linuxfoundation.org> References: <20260923140644.756254324@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 7.2-stable review patch. If anyone has any objections, please let me know. ------------------ From: Bradley Morgan commit 955d86e5f3b95b731991fdb84966c50b16314629 upstream. swsusp_arch_suspend_exit() reinstalls the restored kernel's hyp stub vectors with an hvc, but never passes the arguments. x0 is not set to HVC_SET_VECTORS and x1 is not set to the vector address, so the stub dispatch falls through and returns without writing vbar_el2. EL2 is left pointing at the trans_pgd copy of the vectors, a page that swsusp_free() releases right after resume. Set the arguments up the same way __hyp_set_vectors() does. Without this fix, Vladimir was able to trigger a hang when resuming from hibernation with CONFIG_PAGE_POISONING=y and page_poison=on. Fixes: 788bfdd97434 ("arm64: trans_pgd: hibernate: Add trans_pgd_copy_el2_vectors") Cc: stable@vger.kernel.org Signed-off-by: Bradley Morgan Reviewed-by: Vladimir Murzin Tested-by: Vladimir Murzin Acked-by: Mark Rutland Signed-off-by: Will Deacon Signed-off-by: Greg Kroah-Hartman --- arch/arm64/kernel/hibernate-asm.S | 2 ++ 1 file changed, 2 insertions(+) --- a/arch/arm64/kernel/hibernate-asm.S +++ b/arch/arm64/kernel/hibernate-asm.S @@ -89,6 +89,8 @@ alternative_insn "dc cvau, x4", "dc civ isb cbz x24, 3f /* Do we need to re-initialise EL2? */ + mov x1, x24 + mov x0, #HVC_SET_VECTORS hvc #0 3: ret SYM_CODE_END(swsusp_arch_suspend_exit)