This bug was initially created as a copy of Bug #1983684 I am copying this bug because: 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:
Once we have the downstream bz accepted we can use the downstream commit id in the devel whiteboard and move this along to POST using bug 1957194 as a depends on
Moving this to 9.0.0, POST, but not picking DTM at this point as there isn't a weekly rebase schedule for rhel9 yet. Once/if qemu-6.1 gets merged into a rhel9 branch, I'll update.
Set 'Verified:Tested,SanityOnly' as gating test with qemu-kvm-6.1.0-1.el9 pass
Test PASS Test Env: 5.14.0-4.el9.x86_64 qemu-kvm-6.1.0-1.el9.x86_64 Test Steps: 1. boot qemu with command: # /usr/libexec/qemu-kvm -monitor stdio -chardev socket,id=channel0,path=/tmp/port0,server=on,wait=off,abstract=on -qmp tcp:0:4444,server,nowait 2. check the socket path address, it is true. (qemu)info chardev channel0: filename=disconnected:unix:/tmp/port0,abstract=on,tight=on,server=on {"execute":"query-chardev"} {"return": [{"frontend-open": true, "filename": "tcp:10.73.178.85:4444,server=on <-> 10.73.178.85:60440", "label": "compat_monitor1"}, {"frontend-open": false, "filename": "disconnected:unix:/tmp/port0,abstract=on,tight=on,server=on", "label": "channel0"}, {"frontend-open": true, "filename": "stdio", "label": "compat_monitor0"}, {"frontend-open": true, "filename": "vc", "label": "serial0"}]} I will move this bug to verified directly once it is ON_QA. Thanks. Best regards Liu Nana
Move this to verified according to Comment 4.
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 (new packages: qemu-kvm), 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/RHBA-2022:2307