Update: this is a known upstream bug and it is already fixed.
Commit 5c4d60671c5622304f12e13c8dec8eeff927d9b5
"dpif: Fix infinite netlink loop in dpif_execute_helper_cb."
by Eelco Chaudron, 2025-07-15
Fixes: 076caa2fb077 ("ofproto: Meter translation.")
Acked-by: Ilya Maximets <[email protected]>
https://github.com/openvswitch/ovs/commit/5c4d60671c5622304f12e13c8dec8eeff927d9b5
The commit message describes exactly the condition we hit:
"When a meter action is encountered and stored in the auxiliary
structure, and subsequently, a non-meter action is processed within a
nested list during callback execution, an infinite loop is triggered."
The fix keeps the existing behaviour but stores the required meter actions
in an ofpbuf for deferred execution, instead of walking the attribute list
backwards from aux->meter_action. The struct member changes from
'const struct nlattr *meter_action' to 'struct ofpbuf meter_actions'.
Originally reported here:
https://patchwork.ozlabs.org/project/openvswitch/patch/[email protected]/
The fix is present in v3.6.0 and later (v3.6.x, v3.7.x, main, branch-4.0).
It was never backported to branch-3.5, which is why openvswitch-switch
3.5.1-0ubuntu0.1~cloud0 in the Ubuntu Cloud Archive for OpenStack 2025.1
is still affected.
This bug therefore becomes a backport request rather than a new bug report:
please consider an SRU of 5c4d6067 for the 3.5.1 package in the Cloud
Archive.
[Regression potential]
The change is contained within dpif_execute_helper_cb() and the
dpif_execute_helper_aux struct in lib/dpif.c. It preserves the existing
semantics (meter actions are still executed before the datapath action)
and only changes how they are collected. It has been in stable upstream
releases since 3.6.0.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2166751
Title:
ovs-vswitchd 3.5.1 hangs: infinite loop in dpif_execute_helper_cb()
silently freezes the control plane on OVN compute nodes
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openvswitch/+bug/2166751/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs