Received: from eggs.gnu.org ([2001:4830:134:3::10]:42239) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xwx1s-00054W-Mt for qemu-devel@nongnu.org; Fri, 05 Dec 2014 12:51:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xwx1m-0006Qb-PZ for qemu-devel@nongnu.org; Fri, 05 Dec 2014 12:50:56 -0500 Received: from indium.canonical.com ([91.189.90.7]:47735) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xwx1m-0006QW-IB for qemu-devel@nongnu.org; Fri, 05 Dec 2014 12:50:50 -0500 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.76 #1 (Debian)) id 1Xwx1l-0005r8-Ec for ; Fri, 05 Dec 2014 17:50:49 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 6A61B2E80BB for ; Fri, 5 Dec 2014 17:50:49 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Fri, 05 Dec 2014 17:44:56 -0000 From: Launchpad Bug Tracker <1349277@bugs.launchpad.net> Sender: bounces@canonical.com References: <20140728074056.4555.84832.malonedeb@gac.canonical.com> Message-Id: <20141205174459.12278.76262.malone@ackee.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1349277] Re: AArch64 emulation ignores SPSel=0 when taking (or returning from) an exception at EL1 or greater Reply-To: Bug 1349277 <1349277@bugs.launchpad.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org This bug was fixed in the package qemu - 2.1+dfsg-7ubuntu3 --------------- qemu (2.1+dfsg-7ubuntu3) vivid; urgency=3Dmedium * d/p/target-arm-A64-Break-out-aarch64_save-restore_sp.patch d/p/target-arm-A64-Respect-SPSEL-in-ERET-SP-restore.patch d/p/target-arm-A64-Respect-SPSEL-when-taking-exceptions.patch: Cherry-pick of upstream patches in order to fix AArch64 emulation ignor= ing SPSel=3D0 in certain conditions. (LP: #1349277) -- Chris J Arges Thu, 04 Dec 2014 14:17:01= -0600 ** Changed in: qemu (Ubuntu) Status: Fix Committed =3D> Fix Released -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1349277 Title: AArch64 emulation ignores SPSel=3D0 when taking (or returning from) an exception at EL1 or greater Status in QEMU: Fix Committed Status in qemu package in Ubuntu: Fix Released Bug description: The AArch64 emulation ignores SPSel=3D0 when: (1) taking an interrupt from an exception level greater than EL0 (e.g., EL1t), (2) returning from an exception (via ERET) to an exception level greater than EL0 (e.g., EL1t), with SPSR_ELx[SPSel]=3D0. The attached patch fixes the problem in my application. Background: I'm running a standalone application (toy OS) that is performing preemptive multithreading between threads running at EL1t, with exception handling / context switching occurring at EL1h. This bug causes the stack pointer to be corrupted in the threads running at EL1t (they end up with a version of the EL1h stack pointer (SP_EL1)). Occurs in: qemu-2.1.0-rc1 (found in) commit c60a57ff497667780132a3fcdc1500c83af5d5c0 (current master) To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1349277/+subscriptions