Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
Wrong socket address in qemu while using 'tight=on'
Version-Release number of selected component (if applicable):
4.18.0-322.el8.x86_64
qemu-kvm-6.0.0-23.module+el8.5.0+11740+35571f13.x86_64
How reproducible: 100%
Steps to Reproduce:
1. Lanuch QEMU with cmdline:
# /usr/libexec/qemu-kvm -monitor stdio -chardev socket,id=channel0,path=/tmp/port0,server=on,wait=off,abstract=on
2. Check the chardev info, the socket address changed:
(qemu)info chardev
serial0: filename=vc
compat_monitor0: filename=stdio
channel0: filename=disconnected:unix:/tmp/port0U,abstract,tight,server=on
3. Connect the socket using the changed address, will fail.
# socat abstract-connect:/tmp/port0U -
2021/07/19 09:38:18 socat[236167] E connect(5, AF=1 "\0/tmp/port0U", 14): Connection refused
4. Connect the socket using the original socket address, will success.
# socat abstract-connect:/tmp/port0 -
Actual results:
socket address gets a wrong name in qemu
Expected results:
socket address shows right.
Additional info:
Test Env:
kernel-4.18.0-345.1.el8.x86_64
qemu-kvm-6.1.0-2.module+el8.6.0+12861+13975d62.x86_64
Test steps:
Lanuch QEMU with cmdline, can get the right socket path:
# /usr/libexec/qemu-kvm -monitor stdio -chardev socket,id=channel0,path=/tmp/port0,server=on,wait=off,abstract=on
(qemu) VNC server running on ::1:5900
info chardev
channel0: filename=disconnected:unix:/tmp/port0,abstract=on,tight=on,server=on
Move this bug to verified now, thanks.
Best regards
Liu Nana
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 (Moderate: virt:rhel and virt-devel:rhel security, bug fix, and enhancement update), 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-2022:1759
Description of problem: Wrong socket address in qemu while using 'tight=on' Version-Release number of selected component (if applicable): 4.18.0-322.el8.x86_64 qemu-kvm-6.0.0-23.module+el8.5.0+11740+35571f13.x86_64 How reproducible: 100% Steps to Reproduce: 1. Lanuch QEMU with cmdline: # /usr/libexec/qemu-kvm -monitor stdio -chardev socket,id=channel0,path=/tmp/port0,server=on,wait=off,abstract=on 2. Check the chardev info, the socket address changed: (qemu)info chardev serial0: filename=vc compat_monitor0: filename=stdio channel0: filename=disconnected:unix:/tmp/port0U,abstract,tight,server=on 3. Connect the socket using the changed address, will fail. # socat abstract-connect:/tmp/port0U - 2021/07/19 09:38:18 socat[236167] E connect(5, AF=1 "\0/tmp/port0U", 14): Connection refused 4. Connect the socket using the original socket address, will success. # socat abstract-connect:/tmp/port0 - Actual results: socket address gets a wrong name in qemu Expected results: socket address shows right. Additional info: