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 2065399 - virtnwfilterd modular daemon occasionally hangs on concurrent access [rhel-9.1.0]
Summary: virtnwfilterd modular daemon occasionally hangs on concurrent access [rhel-9....
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: libvirt
Version: 9.1
Hardware: x86_64
OS: Unspecified
high
high
Target Milestone: rc
: ---
Assignee: Daniel Berrangé
QA Contact: yafu
URL:
Whiteboard:
Depends On: 2044379
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-03-17 18:54 UTC by RHEL Program Management Team
Modified: 2022-11-15 10:39 UTC (History)
11 users (show)

Fixed In Version: libvirt-8.2.0-1.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 2044379
Environment:
Last Closed: 2022-11-15 10:04:06 UTC
Type: ---
Target Upstream Version: 8.2.0
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-116017 0 None None None 2022-03-17 19:04:40 UTC
Red Hat Product Errata RHSA-2022:8003 0 None None None 2022-11-15 10:04:26 UTC

Comment 1 Jiri Denemark 2022-03-18 08:47:11 UTC
Merged upstream as

commit 65dc79f50b96b34b2253601b8972d5ca90658f33
Author: Daniel P. Berrangé <berrange>
Date:   Thu Feb 24 18:41:29 2022 +0000

    nwfilter: hold filter update lock when creating/deleting bindings
    
    The nwfilter update lock is historically acquired by the virt
    drivers in order to achieve serialization between nwfilter
    define/undefine, and instantiation/teardown of filters.
    
    When running in the modular daemons, however, the mutex that
    the virt drivers are locking is in a completely different
    process from the mutex that the nwfilter driver is locking.
    
    Serialization is lost and thus call from the virt driver to
    virNWFilterBindingCreateXML can deadlock with a concurrent
    call to the virNWFilterDefineXML method.
    
    The solution is surprisingly easy, the update lock simply
    needs acquiring in the virNWFilterBindingCreateXML method
    and virNWFilterBindingUndefine method instead of in the
    virt drivers.
    
    The only semantic difference here is that when a virtual
    machine has multiple NICs, the instantiation and teardown
    of filters is no longer serialized for the whole VM, but
    rather for each NIC. This should not be a problem since
    the virt drivers already need to cope with tearing down
    a partially created VM where only some of the NICs are
    setup.
    
    Reviewed-by: Laine Stump <laine>
    Signed-off-by: Daniel P. Berrangé <berrange>


commit 5f8b090f421cd6a6c46f44905431491e2d3cf8f5
Author: Daniel P. Berrangé <berrange>
Date:   Thu Feb 24 19:02:32 2022 +0000

    qemu,lxc: remove use to nwfilter update lock
    
    Now that the virNWFilterBinding APIs are using the nwfilter
    update lock directly, there is no need for the virt drivers
    to do it themselves.
    
    Reviewed-by: Laine Stump <laine>
    Signed-off-by: Daniel P. Berrangé <berrange>

Comment 5 yafu 2022-04-14 02:58:20 UTC
Verified with libvirt-8.2.0-1.el9.x86_64.

Test steps are the same with https://bugzilla.redhat.com/show_bug.cgi?id=2044379#c21.

Comment 7 errata-xmlrpc 2022-11-15 10:04:06 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 (Low: libvirt 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:8003


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