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 1522879 - Fix crash listing nwfilters for unprivileged daemon
Summary: Fix crash listing nwfilters for unprivileged daemon
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: libvirt
Version: 7.5
Hardware: All
OS: Linux
unspecified
high
Target Milestone: rc
: ---
Assignee: John Ferlan
QA Contact: yalzhang@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-12-06 16:31 UTC by John Ferlan
Modified: 2018-04-10 11:03 UTC (History)
6 users (show)

Fixed In Version: libvirt-3.9.0-6.el7
Doc Type: No Doc Update
Doc Text:
undefined
Clone Of:
Environment:
Last Closed: 2018-04-10 11:02:08 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2018:0704 0 None None None 2018-04-10 11:03:43 UTC

Description John Ferlan 2017-12-06 16:31:37 UTC
Description of problem:

The unprivileged libvirtd does not support nwfilter config, but leaves the
driver active. It is supposed to result in all APIs being an effective
no-op, but several APIs rely on driver->nwfilters being non-NULL, or they
will reference a NULL pointer. Rather than adding checks for NULL in many
places, just make sure  driver->nwfilters is always initialized.

Need to backport upstream commit id 7993554f70fd8d512dfde484490bcd1601b60b33

Comment 3 yalzhang@redhat.com 2017-12-07 08:50:02 UTC
I can reproduce on libvirt-3.9.0-5.el7.x86_64

$ virsh nwfilter-list 

error: Disconnected from qemu:///session due to end of file
error: Failed to list node filters
error: Cannot recv data: Connection reset by peer

Comment 5 yalzhang@redhat.com 2017-12-14 09:13:07 UTC
verify this bug on libvirt-3.9.0-6.el7.x86_64

$ virsh nwfilter-list
 UUID                                  Name                 
------------------------------------------------------------------

$ ps -ef | grep test | grep libvirt | grep -v grep 
test     26402     1 33 17:12 ?        00:00:00 /usr/sbin/libvirtd --timeout=30

Comment 6 ekultails 2017-12-21 16:52:03 UTC
This bug also affects Fedora 27 x86_64. I was able to replicate the issue by running "virsh nwfilter-list" as a non-root user and getting the same errors as originally reported.

RPM: libvirt-3.7.0-3.fc27.x86_64

Comment 10 errata-xmlrpc 2018-04-10 11:02:08 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, 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/RHEA-2018:0704


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