Bug 1393736

Summary: qemu core dump when there is an I/O error on AHCI
Product: Red Hat Enterprise Linux 7 Reporter: Marcel Kolaja <mkolaja>
Component: qemu-kvm-rhevAssignee: John Snow <jsnow>
Status: CLOSED ERRATA QA Contact: Xueqiang Wei <xuwei>
Severity: high Docs Contact:
Priority: high    
Version: 7.3CC: aliang, chayang, coli, jen, jherrman, jinzhao, jsnow, juzhang, knoel, kraxel, kwolf, michen, nerijus, pbonzini, virt-bugs, virt-maint, xfu, xuwei
Target Milestone: rcKeywords: ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: qemu-kvm-rhev-2.6.0-28.el7_3.1 Doc Type: Bug Fix
Doc Text:
Due to asychronous I/O control blocks (AIOCBs) not being properly cleared, guests that use the Advanced Host Controller Interface (AHCI) in some cases terminated unexpectedly when an I/O error occurred. With this update, AIOCB is cleared properly, and I/O errors on guests with AHCI are resolved gracefully.
Story Points: ---
Clone Of: 1375520 Environment:
Last Closed: 2017-01-17 20:10:06 UTC Type: ---
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: 1375520    
Bug Blocks:    

Description Marcel Kolaja 2016-11-10 08:54:52 UTC
This bug has been copied from bug #1375520 and has been proposed
to be backported to 7.3 z-stream (EUS).

Comment 3 Miroslav Rezanina 2016-11-30 10:43:09 UTC
Fix included in qemu-kvm-rhev-2.6.0-28.el7_3.1

Comment 5 Xueqiang Wei 2016-12-21 10:20:32 UTC
According to bug 887844 for detail steps, reproduce this issue on:
kernel-3.10.0-496.el7.x86_64
qemu-kvm-rhev-2.6.0-22.el7.x86_64

(gdb) bt
#0  0x00007fedbc39b1d7 in raise () from /lib64/libc.so.6
#1  0x00007fedbc39c8c8 in abort () from /lib64/libc.so.6
#2  0x00007fedbc394146 in __assert_fail_base () from /lib64/libc.so.6
#3  0x00007fedbc3941f2 in __assert_fail () from /lib64/libc.so.6
#4  0x00007fedc81f9d00 in ide_cancel_dma_sync (s=0x7fedce123560)
    at hw/ide/core.c:668
#5  0x00007fedc81fe12f in bmdma_cmd_writeb (bm=0x7fedce123fb8, 
    val=<optimized out>) at hw/ide/pci.c:237
#6  0x00007fedc80c1343 in memory_region_write_accessor (mr=<optimized out>, 
    addr=<optimized out>, value=<optimized out>, size=<optimized out>, 
    shift=<optimized out>, mask=<optimized out>, attrs=...)
    at /usr/src/debug/qemu-2.6.0/memory.c:525
#7  0x00007fedc80bf2a9 in access_with_adjusted_size (addr=addr@entry=0, 
    value=value@entry=0x7fedb2a55878, size=size@entry=1, 
    access_size_min=<optimized out>, access_size_max=<optimized out>, 
    access=access@entry=0x7fedc80c1300 <memory_region_write_accessor>, 
    mr=mr@entry=0x7fedce124110, attrs=attrs@entry=...)
    at /usr/src/debug/qemu-2.6.0/memory.c:591
#8  0x00007fedc80c2ac5 in memory_region_dispatch_write (
    mr=mr@entry=0x7fedce124110, addr=addr@entry=0, data=0, size=size@entry=1, 
    attrs=attrs@entry=...) at /usr/src/debug/qemu-2.6.0/memory.c:1273
#9  0x00007fedc808549b in address_space_write_continue (mr=0x7fedce124110, 
    l=1, addr1=0, len=1,

And then test on:
kernel-3.10.0-514.6.1.el7.x86_64
qemu-kvm-rhev-2.6.0-28.el7_3.1

Not reproduce this issue, so verify it.

Comment 7 errata-xmlrpc 2017-01-17 20:10:06 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2017-0115.html