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.
Bug 1983684 - Wrong socket address in qemu while using 'tight=on'
Summary: Wrong socket address in qemu while using 'tight=on'
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: qemu-kvm
Version: 8.5
Hardware: x86_64
OS: Linux
high
medium
Target Milestone: rc
: 8.6
Assignee: Marc-Andre Lureau
QA Contact: liunana
URL:
Whiteboard:
Depends On: 1997410
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-07-19 13:43 UTC by liunana
Modified: 2022-05-10 13:29 UTC (History)
5 users (show)

Fixed In Version: qemu-kvm-6.1.0-2.module+el8.6.0+12861+13975d62
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1983915 (view as bug list)
Environment:
Last Closed: 2022-05-10 13:20:14 UTC
Type: Epic
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2022:1759 0 None None None 2022-05-10 13:21:17 UTC

Description liunana 2021-07-19 13:43:43 UTC
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:

Comment 1 John Ferlan 2021-08-09 14:42:32 UTC
Moving this to 8.6.0, POST, and set DTM=5 since this can be tested with the weekly rebase.

Decision is to not backport to AV 8.5.0.

Comment 5 Yanan Fu 2021-10-13 03:07:26 UTC
Set 'Verified:Tested,SanityOnly' as gating test with qemu-kvm-6.1.0-2.module+el8.6.0+12861+13975d62 pass.

Comment 6 liunana 2021-10-13 14:47:25 UTC
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

Comment 8 errata-xmlrpc 2022-05-10 13:20:14 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 (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


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