Skip to contentSkip to conversation

bad switch, segfault in hw/pci-host/bonito.c bonito_readl

Qemu-devel Robin Lee 2 participants 3 messages Jul 1, 2014 – Dec 28, 2017

lore
Share & tools
lore

Robin Lee

author
#0 lore raw

Public bug reported:

http://git.qemu.org/?p=qemu.git;a=blob;f=hw/pci-
host/bonito.c;h=56292adb03cd1a9873c2c9e5a0b2978fd0572214;hb=master#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

Signature · 25 lines
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=qemu.git;a=blob;f=hw/pci-
  host/bonito.c;h=56292adb03cd1a9873c2c9e5a0b2978fd0572214;hb=master#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

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1336123/+subscriptions
#1 lore raw

I think this might have been fixed with this commit here:
https://git.qemu.org/?p=qemu.git;a=commitdiff;h=0ca4f94195cce77b624ed
Or can you still reproduce it with the current version of QEMU?

** Changed in: qemu
Status: New => Incomplete

Signature · 25 lines
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:
  Incomplete

Bug description:
  http://git.qemu.org/?p=qemu.git;a=blob;f=hw/pci-
  host/bonito.c;h=56292adb03cd1a9873c2c9e5a0b2978fd0572214;hb=master#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

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1336123/+subscriptions
#2 lore raw
In reply to Robin Lee

[Expired for QEMU because there has been no activity for 60 days.]

** Changed in: qemu
Status: Incomplete => Expired

Signature · 25 lines
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:
  Expired

Bug description:
  http://git.qemu.org/?p=qemu.git;a=blob;f=hw/pci-
  host/bonito.c;h=56292adb03cd1a9873c2c9e5a0b2978fd0572214;hb=master#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

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1336123/+subscriptions