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 2014129 - [virtio-fs] no error msg when chown vhost socket to an unknown user group
Summary: [virtio-fs] no error msg when chown vhost socket to an unknown user group
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: qemu-kvm
Version: 9.0
Hardware: x86_64
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Dr. David Alan Gilbert
QA Contact: xiagao
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-10-14 13:46 UTC by xiagao
Modified: 2022-05-17 12:29 UTC (History)
5 users (show)

Fixed In Version: qemu-kvm-6.2.0-1.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-05-17 12:24:29 UTC
Type: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-99964 0 None None None 2021-10-15 10:07:45 UTC
Red Hat Product Errata RHBA-2022:2307 0 None None None 2022-05-17 12:24:56 UTC

Description xiagao 2021-10-14 13:46:02 UTC
Description of problem:
I try to chown vhost socket to unknown user group, there is no error message,everything works well.
Expect some error/warning msg in this scenario.

Version-Release number of selected component (if applicable):
qemu-kvm-6.1.0-4.el9.x86_64
qemu-virtiofsd-6.1.0-4.el9.x86_64
kernel-5.14.0-5.el9.x86_64

How reproducible:
100%

Steps to Reproduce:
1. (host)# /usr/libexec/virtiofsd --socket-path=/tmp/vhostqemu1 -o source=/home/test -o cache=auto --socket-group=users_xx -d
[2021-10-14 09:27:18.925186+0000] [ID: 00066082] virtio_session_mount: Waiting for vhost-user socket connection...

2.(host)# ll /tmp/vhostqemu1
srwxrwx--- 1 root root 0 Oct 14 09:42 /tmp/vhostqemu1

3. boot up vm with vhost-user device(connect to that socket path)

Actual results:
virtiofsd works well and vm with virtiofs device can boot up.

Expected results:
vhost socket should failed to set group to unknown user

Additional info:

Comment 1 Dr. David Alan Gilbert 2021-10-14 13:51:20 UTC
posted upstream: virtiofsd: Error on bad socket group name

Comment 2 Dr. David Alan Gilbert 2021-10-26 17:33:15 UTC
Fixed upstream by 555a76e5e5dc2cd3c84c
8.6/9.0 will get it on the 6.2 rebase.

Comment 5 Yanan Fu 2021-12-20 12:45:39 UTC
QE bot(pre verify): Set 'Verified:Tested,SanityOnly' as gating/tier1 test pass.

Comment 6 xiagao 2021-12-21 03:23:41 UTC
Test version:
qemu-kvm-6.2.0-1.el9.x86_64
kernel-5.14.0-21.el9.x86_64

Start virtiofsd with unknown group name for socket-group, the virtiofsd quit with expected error info.
# /usr/libexec/virtiofsd --socket-path=/tmp/vhostqemu2 -o source=/home/test -o cache=auto --socket-group=users_xx -d
[2021-12-21 03:20:07.280070+0000] [ID: 00008280] vhost socket: unable to find group 'users_xx'

Change bug status to verifed.

Comment 9 errata-xmlrpc 2022-05-17 12:24:29 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 (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


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