Bug 1062840
| Summary: | qemu-kvm will core dumped when pass-through a configured libiscsi disk with chap authentication | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Sibiao Luo <sluo> |
| Component: | libiscsi | Assignee: | Paolo Bonzini <pbonzini> |
| Status: | CLOSED DUPLICATE | QA Contact: | Virtualization Bugs <virt-bugs> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 7.0 | CC: | acathrow, chayang, hhuang, juzhang, knoel, michen, pbonzini, qzhang, shyu, sluo, virt-maint, xfu |
| Target Milestone: | rc | Keywords: | Regression |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-02-21 18:32:28 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1062841, 1067784 | ||
|
Description
Sibiao Luo
2014-02-08 07:15:38 UTC
Core was generated by `/usr/libexec/qemu-kvm -M pc -cpu SandyBridge -enable-kvm -m 2048 -smp 2,sockets'.
Program terminated with signal 8, Arithmetic exception.
#0 0x00007fa78e034a41 in scsi_disk_reset (dev=0x7fa78f5c27a0) at hw/scsi/scsi-disk.c:2091
2091 nb_sectors /= s->qdev.blocksize / 512;
(gdb) bt
#0 0x00007fa78e034a41 in scsi_disk_reset (dev=0x7fa78f5c27a0) at hw/scsi/scsi-disk.c:2091
#1 0x00007fa78dfe8349 in qdev_reset_one (dev=dev@entry=0x7fa78f5c27a0, opaque=opaque@entry=0x0) at hw/core/qdev.c:227
#2 0x00007fa78dfe7a40 in qdev_walk_children (dev=0x7fa78f5c27a0, devfn=devfn@entry=0x7fa78dfe8330 <qdev_reset_one>,
busfn=busfn@entry=0x7fa78dfe6370 <qbus_reset_one>, opaque=opaque@entry=0x0) at hw/core/qdev.c:370
#3 0x00007fa78dfe7b4a in qbus_walk_children (bus=bus@entry=0x7fa78f5c3290,
devfn=devfn@entry=0x7fa78dfe8330 <qdev_reset_one>, busfn=busfn@entry=0x7fa78dfe6370 <qbus_reset_one>,
opaque=opaque@entry=0x0) at hw/core/qdev.c:354
#4 0x00007fa78dfe7bbd in qbus_reset_all (bus=bus@entry=0x7fa78f5c3290) at hw/core/qdev.c:248
#5 0x00007fa78e12d2c3 in virtio_scsi_reset (vdev=<optimized out>) at /usr/src/debug/qemu-1.5.3/hw/scsi/virtio-scsi.c:451
#6 0x00007fa78e134e8e in virtio_reset (opaque=0x7fa78f5c3178) at /usr/src/debug/qemu-1.5.3/hw/virtio/virtio.c:543
#7 0x00007fa78e05fc20 in virtio_ioport_write (val=0, addr=<optimized out>, opaque=0x7fa78f5c2980)
at hw/virtio/virtio-pci.c:307
#8 virtio_pci_config_write (opaque=0x7fa78f5c2980, addr=<optimized out>, val=0, size=<optimized out>)
at hw/virtio/virtio-pci.c:422
#9 0x00007fa78e13b612 in access_with_adjusted_size (addr=addr@entry=18, value=value@entry=0x7fa77bffeb58, size=1,
access_size_min=<optimized out>, access_size_max=<optimized out>,
access=access@entry=0x7fa78e13bbd0 <memory_region_write_accessor>, opaque=opaque@entry=0x7fa78f5c3030)
at /usr/src/debug/qemu-1.5.3/memory.c:365
#10 0x00007fa78e13cae7 in memory_region_iorange_write (iorange=<optimized out>, offset=18, width=1, data=0)
at /usr/src/debug/qemu-1.5.3/memory.c:440
#11 0x00007fa78e13a1e2 in kvm_handle_io (count=1, size=1, direction=1, data=<optimized out>, port=49234)
at /usr/src/debug/qemu-1.5.3/kvm-all.c:1490
#12 kvm_cpu_exec (env=env@entry=0x7fa78f50b570) at /usr/src/debug/qemu-1.5.3/kvm-all.c:1642
#13 0x00007fa78e0e29d5 in qemu_kvm_cpu_thread_fn (arg=0x7fa78f50b570) at /usr/src/debug/qemu-1.5.3/cpus.c:793
#14 0x00007fa78bf0cde3 in start_thread () from /lib64/libpthread.so.0
#15 0x00007fa788c1a25d in clone () from /lib64/libc.so.6
(gdb) bt full
#0 0x00007fa78e034a41 in scsi_disk_reset (dev=0x7fa78f5c27a0) at hw/scsi/scsi-disk.c:2091
s = 0x7fa78f5c27a0
nb_sectors = 0
#1 0x00007fa78dfe8349 in qdev_reset_one (dev=dev@entry=0x7fa78f5c27a0, opaque=opaque@entry=0x0) at hw/core/qdev.c:227
No locals.
#2 0x00007fa78dfe7a40 in qdev_walk_children (dev=0x7fa78f5c27a0, devfn=devfn@entry=0x7fa78dfe8330 <qdev_reset_one>,
busfn=busfn@entry=0x7fa78dfe6370 <qbus_reset_one>, opaque=opaque@entry=0x0) at hw/core/qdev.c:370
bus = <optimized out>
err = <optimized out>
#3 0x00007fa78dfe7b4a in qbus_walk_children (bus=bus@entry=0x7fa78f5c3290,
devfn=devfn@entry=0x7fa78dfe8330 <qdev_reset_one>, busfn=busfn@entry=0x7fa78dfe6370 <qbus_reset_one>,
opaque=opaque@entry=0x0) at hw/core/qdev.c:354
kid = 0x7fa78f5c6ad0
err = <optimized out>
#4 0x00007fa78dfe7bbd in qbus_reset_all (bus=bus@entry=0x7fa78f5c3290) at hw/core/qdev.c:248
No locals.
#5 0x00007fa78e12d2c3 in virtio_scsi_reset (vdev=<optimized out>) at /usr/src/debug/qemu-1.5.3/hw/scsi/virtio-scsi.c:451
s = 0x7fa78f5c3178
__func__ = "virtio_scsi_reset"
vs = 0x7fa78f5c3178
#6 0x00007fa78e134e8e in virtio_reset (opaque=0x7fa78f5c3178) at /usr/src/debug/qemu-1.5.3/hw/virtio/virtio.c:543
vdev = 0x7fa78f5c3178
k = 0x7fa78f5cf410
__func__ = "virtio_reset"
i = <optimized out>
#7 0x00007fa78e05fc20 in virtio_ioport_write (val=0, addr=<optimized out>, opaque=0x7fa78f5c2980)
at hw/virtio/virtio-pci.c:307
proxy = 0x7fa78f5c2980
vdev = 0x7fa78f5c3178
pa = <optimized out>
#8 virtio_pci_config_write (opaque=0x7fa78f5c2980, addr=<optimized out>, val=0, size=<optimized out>)
at hw/virtio/virtio-pci.c:422
proxy = 0x7fa78f5c2980
#9 0x00007fa78e13b612 in access_with_adjusted_size (addr=addr@entry=18, value=value@entry=0x7fa77bffeb58, size=1,
access_size_min=<optimized out>, access_size_max=<optimized out>,
access=access@entry=0x7fa78e13bbd0 <memory_region_write_accessor>, opaque=opaque@entry=0x7fa78f5c3030)
at /usr/src/debug/qemu-1.5.3/memory.c:365
access_mask = 255
access_size = 1
i = <optimized out>
#10 0x00007fa78e13cae7 in memory_region_iorange_write (iorange=<optimized out>, offset=18, width=1, data=0)
at /usr/src/debug/qemu-1.5.3/memory.c:440
mrio = <optimized out>
mr = 0x7fa78f5c3030
__PRETTY_FUNCTION__ = "memory_region_iorange_write"
#11 0x00007fa78e13a1e2 in kvm_handle_io (count=1, size=1, direction=1, data=<optimized out>, port=49234)
at /usr/src/debug/qemu-1.5.3/kvm-all.c:1490
i = 0
ptr = 0x7fa78deae000 <Address 0x7fa78deae000 out of bounds>
#12 kvm_cpu_exec (env=env@entry=0x7fa78f50b570) at /usr/src/debug/qemu-1.5.3/kvm-all.c:1642
cpu = 0x7fa78f50b460
__func__ = "kvm_cpu_exec"
run = 0x7fa78dead000
ret = <optimized out>
run_ret = <optimized out>
#13 0x00007fa78e0e29d5 in qemu_kvm_cpu_thread_fn (arg=0x7fa78f50b570) at /usr/src/debug/qemu-1.5.3/cpus.c:793
cpu = 0x7fa78f50b460
__func__ = "qemu_kvm_cpu_thread_fn"
r = <optimized out>
#14 0x00007fa78bf0cde3 in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#15 0x00007fa788c1a25d in clone () from /lib64/libc.so.6
No symbol table info available.
(gdb)
I think this is a regression issue since libiscsi-1.9.0-5.el7, mark Regression keywords and set hight priority to it. Please correct me directly if any mistake, thanks. Best Regards, sluo Please retry with /1 instead of /0 at the end of the iscsi URL.Please retry with /1 instead of /0 at the end of the iscsi URL. *** This bug has been marked as a duplicate of bug 1067784 *** (In reply to Paolo Bonzini from comment #5) > Please retry with /1 instead of /0 at the end of the iscsi URL.Please retry > with /1 instead of /0 at the end of the iscsi URL. Use /1 is OK, but /0 will meet bug 1067784(qemu-kvm: block.c:850: bdrv_open_common: Assertion `bs->request_alignment != 0' failed. Aborted (core dumped)). # uname -r && rpm -q qemu-kvm && rpm -q libiscsi 3.10.0-86.el7.x86_64 qemu-kvm-1.5.3-47.el7.x86_64 libiscsi-1.9.0-6.el7.x86_64 e.g1:...-drive file=iscsi://10.66.9.107/iqn.2008-09.com.example:server.target2/1,if=none,id=drive-data-disk,format=raw,cache=none,aio=native -iscsi id=iqn1,user=redhat,password=redhat -device virtio-scsi-pci,id=scsi1,bus=pci.0,addr=0x7 -device scsi-hd,drive=drive-data-disk,bus=scsi1.0,id=data-disk Above e.g1 is ok which can boot up guest successfully and detect the libiscsi disk in guest correctly. e.g2:...-drive file=iscsi://10.66.9.107/iqn.2008-09.com.example:server.target2/0,if=none,id=drive-data-disk,format=raw,cache=none,aio=native -iscsi id=iqn1,user=redhat,password=redhat -device virtio-scsi-pci,id=scsi1,bus=pci.0,addr=0x7 -device scsi-hd,drive=drive-data-disk,bus=scsi1.0,id=data-disk Above e.g2 meet bug 1067784 which qemu-kvm: block.c:850: bdrv_open_common: Assertion `bs->request_alignment != 0' failed. Aborted (core dumped). # iscsi-ls -s iscsi://redhat:redhat.9.107:3260/iqn.2008-09.com.example:server.target2 Target:iqn.2008-09.com.example:server.target2 Portal:10.66.9.107:3260,1 Lun:0 Type:STORAGE_ARRAY_CONTROLLER Lun:1 Type:DIRECT_ACCESS (Size:99M) Lun:2 Type:DIRECT_ACCESS (Size:99M) |