Bug 1815399

Summary: "fd" type error cause qemu-kvm process core dump when hotplugging tap device
Product: Red Hat Enterprise Linux Advanced Virtualization Reporter: FuXiangChun <xfu>
Component: qemu-kvmAssignee: Yvugenfi <yvugenfi>
qemu-kvm sub component: Networking QA Contact: Lei Yang <leiyang>
Status: CLOSED NOTABUG Docs Contact:
Severity: urgent    
Priority: urgent CC: aadam, chayang, jinzhao, juzhang, leiyang, qzhang, virt-maint, ybendito, yvugenfi
Version: 8.2Keywords: Regression
Target Milestone: rcFlags: xfu: needinfo-
Target Release: 8.0   
Hardware: x86_64   
OS: Windows   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-12-21 02:04:56 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 FuXiangChun 2020-03-20 07:15:51 UTC
Description of problem:

Like Julia's comments(https://bugzilla.redhat.com/show_bug.cgi?id=1716352#c30), 'fd' type error caused this issue. 

qemu-kvm process core dump directly when hotplugging tap deivce via qmp or hmp

Version-Release number of selected component (if applicable):

qemu-kvm: qemu-kvm-core-4.2.0-15.module+el8.2.0+6029+618ef2ec.x86_64
kernel: kernel-4.18.0-187.el8.x86_64

How reproducible:
always

Steps to Reproduce:
1. Boot qemu-kvm process 
/usr/libexec/qemu-kvm -qmp tcp:0:4444,server,nowait

2. qmp connect
# telnet localhost 4444

3. hotplug tap device
{"execute": "netdev_add", "arguments": {"type": "tap", "id": "idR6cfzQ", "fd": "50"}, "id": "yqUkNhhe"}


Actual results:

qemu-kvm: util/oslib-posix.c:247: qemu_set_nonblock: Assertion `f != -1' failed.
Aborted (core dumped)

Expected results:
works

Additional info:

Comment 12 Lei Yang 2020-12-21 02:04:56 UTC
Base on comment 11, move it to "NOTABUG"