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 F1C3717557E; Tue, 12 May 2026 18:14:36 +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=1778609677; cv=none; b=SYa/q8ln7E68/CypGYdQ8qWNChb3aqIRKsdbNcrAFwleMfAjRc12c38A9LP2RabCDUKEaAhHZ0NlxTYmNvCcGV0A2ajIjQOPf47Ka8Pmt+wPtlR5HhREckHNnAPGSr0P6ves3gdP0DRrq2witVEbEAzzRjiXKtaiXVDCrgPcmmQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778609677; c=relaxed/simple; bh=+K+ovdx58RH7tsVqfs1sJ3D2YHjg9dnVrlXK4spfao0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=hwq5GnC37kjnUIA4rjUUMP7p2lwerZNQcN949BT2Ir/vuphXC1w2nlILDClnvDwAv83FU6T4QbwWlhkL9WxyTdselumx8e1W7H3mdwhbzDtJfoHjZZmId6Qp/TrhUidbqt7zm9eR+bNRpBmt7Qsvfarf9FJxqtHaLayTNwbFOEI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ZaVwuOjy; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="ZaVwuOjy" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 894BDC2BCB0; Tue, 12 May 2026 18:14:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778609676; bh=+K+ovdx58RH7tsVqfs1sJ3D2YHjg9dnVrlXK4spfao0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZaVwuOjy5CrVVhyeSjc7AdB5IfSWdLro9kSQtU6qnCh/ru110qpu5yLQhWLWrMoNe U9tF03N0zKMnI4tEp5/LsKRhTGO/YTXktDCJI5F9g/w9IywQ/maD1Rxy+reQ+/hI+i LkbnAX/QWVHJYvXP7ev8oouYA/w6HYfc8XPq+Src= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Xianglai Li , Huacai Chen Subject: [PATCH 7.0 286/307] LoongArch: KVM: Fix "unreliable stack" for kvm_exc_entry Date: Tue, 12 May 2026 19:41:21 +0200 Message-ID: <20260512173946.161250048@linuxfoundation.org> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260512173940.117428952@linuxfoundation.org> References: <20260512173940.117428952@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.0-stable review patch. If anyone has any objections, please let me know. ------------------ From: Xianglai Li commit b323a441da602dfdfc24f30d3190cac786ffebf2 upstream. Insert the appropriate UNWIND hint into the kvm_exc_entry assembly function to guide the generation of correct ORC table entries, thereby solving the timeout problem ("unreliable stack") while loading the livepatch-sample module on a physical machine running virtual machines with multiple vcpus. Cc: stable@vger.kernel.org Signed-off-by: Xianglai Li Signed-off-by: Huacai Chen Signed-off-by: Greg Kroah-Hartman --- arch/loongarch/kvm/switch.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/loongarch/kvm/switch.S +++ b/arch/loongarch/kvm/switch.S @@ -111,7 +111,7 @@ .p2align PAGE_SHIFT .cfi_sections .debug_frame SYM_CODE_START(kvm_exc_entry) - UNWIND_HINT_UNDEFINED + UNWIND_HINT_END_OF_STACK csrwr a2, KVM_TEMP_KS csrrd a2, KVM_VCPU_KS addi.d a2, a2, KVM_VCPU_ARCH