Bug 1815399 - "fd" type error cause qemu-kvm process core dump when hotplugging tap device
Summary: "fd" type error cause qemu-kvm process core dump when hotplugging tap device
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux Advanced Virtualization
Classification: Red Hat
Component: qemu-kvm
Version: 8.2
Hardware: x86_64
OS: Windows
urgent
urgent
Target Milestone: rc
: 8.0
Assignee: Yvugenfi@redhat.com
QA Contact: Lei Yang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-03-20 07:15 UTC by FuXiangChun
Modified: 2023-01-17 02:27 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-12-21 02:04:56 UTC
Type: Bug
Target Upstream Version:
Embargoed:
xfu: needinfo-


Attachments (Terms of Use)

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"


Note You need to log in before you can comment on or make changes to this bug.