Bug 1456983

Summary: Character device regression due to missing patch
Product: Red Hat Enterprise Linux 7 Reporter: Frediano Ziglio <fziglio>
Component: qemu-kvmAssignee: Marc-Andre Lureau <marcandre.lureau>
Status: CLOSED ERRATA QA Contact: Sitong Liu <siliu>
Severity: high Docs Contact:
Priority: high    
Version: 7.4CC: chayang, dblechte, ehabkost, famz, juzhang, marcandre.lureau, michen, mtessun, rbalakri, skrishna, toneata, virt-maint, xfu
Target Milestone: rcKeywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: qemu-kvm-1.5.3-140.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-01 17:49:19 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:

Description Frediano Ziglio 2017-05-30 21:10:18 UTC
Description of problem:
Copying long test using spice cause a regressions with following assert
qemu-kvm: spice-qemu-char.c:173: spice_chr_add_watch: Assertion `cond == G_IO_OUT' failed.
In release 138 (commit f8d524a0f6ebd4d15eb8ba6639f428526b36e064 in rhel-7.4 branch, file kvm-serial-poll-the-serial-console-with-G_IO_HUP.patch) the patch e02bc6de30c44fd668dc0d6e1cd1804f2eed3ed3 was backported without the regression fix f7a8beb5e6a13dc924895244777d9ef08b23b367; this cause the issue.


Version-Release number of selected component (if applicable):
qemu-kvm-1.5.3-139.el7.x86_64


How reproducible:
The bug was reproduced by Swapna Krishna using internal smoketest suite.


Steps to Reproduce:
The smoketest case is copying large text from clipboard to file.


Actual results:
Qemu crashes with the wrong assert.


Expected results:
Everything works.

Comment 2 Fam Zheng 2017-05-31 08:41:14 UTC
Setting 7.2.z and 7.3.z flags because the z-stream releases are also affected.

Comment 4 Miroslav Rezanina 2017-06-06 05:14:11 UTC
Fix included in qemu-kvm-1.5.3-140.el7

Comment 5 FuXiangChun 2017-06-06 12:30:56 UTC
Before, QE has reproduced this bug as https://bugzilla.redhat.com/show_bug.cgi?id=1452332#c10.

Verified this bug with qemu-kvm-1.5.3-140.el7.x86_64 & 3.10.0-675.el7.x86_64.

steps:

1.Boot 7.4 guest.

/usr/libexec/qemu-kvm -name 'avocado-vt-vm1' -sandbox off -machine pc -nodefaults -vga cirrus -drive id=drive_image1,if=none,snapshot=off,aio=native,cache=none,format=qcow2,file=/home/jinzhao/rhel74.qcow2 -device virtio-blk-pci,id=image1,drive=drive_image1,bootindex=1,bus=pci.0,addr=0x3 -device virtio-net-pci,mac=9a:cf:d0:d1:d2:d3,id=id7Mhop2,vectors=4,netdev=idR2dWcT,bus=pci.0,addr=0x4 -netdev tap,id=idR2dWcT,vhost=on -m 4096 -cpu 'Opteron_G5',+kvm_pv_unhalt -rtc base=utc,clock=host,driftfix=slew -boot order=cdn,once=d,menu=off,strict=off -no-shutdown -enable-kvm -device virtio-serial -chardev spicevmc,id=vdagent,debug=0,name=vdagent -device virtserialport,chardev=vdagent,name=com.redhat.spice.0 -spice port=3000,disable-ticketing -smp 6 -m 4G -device virtio-balloon-pci,id=balloon0 -k en-us -usb -device usb-tablet,id=tablet0 -device intel-hda,id=sound0 -device hda-duplex,id=sound0-codec0,bus=sound0.0,cad=0 -monitor stdio

1=2.create text file via small script in guest

#while true;do echo "copy text testing copy text testing copy text testing">>copy-test;done

2.copy paste text(8M size) from guest to host via spice

result:
guest works well

So, set this bug as verified.

Comment 6 Ademar Reis 2017-06-07 01:26:46 UTC
The z-stream clone is for the fixes for customer Bug 1451470 (see https://bugzilla.redhat.com/show_bug.cgi?id=1451470#c51 for details)

Comment 12 errata-xmlrpc 2017-08-01 17:49:19 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://access.redhat.com/errata/RHSA-2017:1856