Received: from eggs.gnu.org ([2001:4830:134:3::10]:44467) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X1o4u-0002BE-E8 for qemu-devel@nongnu.org; Mon, 30 Jun 2014 22:45:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X1o4o-0001a0-3m for qemu-devel@nongnu.org; Mon, 30 Jun 2014 22:45:52 -0400 Received: from indium.canonical.com ([91.189.90.7]:35025) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X1o4n-0001ZS-Tz for qemu-devel@nongnu.org; Mon, 30 Jun 2014 22:45:46 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.76 #1 (Debian)) id 1X1o4m-000744-LS for ; Tue, 01 Jul 2014 02:45:44 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 9A6522E80BA for ; Tue, 1 Jul 2014 02:45:44 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Tue, 01 Jul 2014 02:36:16 -0000 From: Robin Lee Sender: bounces@canonical.com References: <20140701023616.19098.65962.malonedeb@gac.canonical.com> Message-Id: <20140701023616.19098.65962.malonedeb@gac.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1336123] [NEW] bad switch, segfault in hw/pci-host/bonito.c bonito_readl Reply-To: Bug 1336123 <1336123@bugs.launchpad.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Public bug reported: http://git.qemu.org/?p=3Dqemu.git;a=3Dblob;f=3Dhw/pci- host/bonito.c;h=3D56292adb03cd1a9873c2c9e5a0b2978fd0572214;hb=3Dmaster#l301 The switch statement is error-prone, since two branches return the same result. Segfault reproducing steps: 1. make a Linux kernel(for example 3.16.0-rc2) with fuloong2e_defconfig 2. use 'qemu-system-mips64el -machine fulong2e' to boot the vmlinux qemu versions tried: 2.0.0, 1.6.2 ** Affects: qemu Importance: Undecided Status: New -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1336123 Title: bad switch, segfault in hw/pci-host/bonito.c bonito_readl Status in QEMU: New Bug description: http://git.qemu.org/?p=3Dqemu.git;a=3Dblob;f=3Dhw/pci- host/bonito.c;h=3D56292adb03cd1a9873c2c9e5a0b2978fd0572214;hb=3Dmaster#l3= 01 The switch statement is error-prone, since two branches return the same result. Segfault reproducing steps: 1. make a Linux kernel(for example 3.16.0-rc2) with fuloong2e_defconfig 2. use 'qemu-system-mips64el -machine fulong2e' to boot the vmlinux qemu versions tried: 2.0.0, 1.6.2 To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1336123/+subscriptions