]> git.feebdaed.xyz Git - 0xmirror/ovs.git/commit
dpif: Fix infinite netlink loop in dpif_execute_helper_cb.
authorEelco Chaudron <echaudro@redhat.com>
Tue, 15 Jul 2025 13:12:21 +0000 (15:12 +0200)
committerEelco Chaudron <echaudro@redhat.com>
Tue, 15 Jul 2025 14:40:45 +0000 (16:40 +0200)
commit5c4d60671c5622304f12e13c8dec8eeff927d9b5
treec2205693bf41524549464ecb6756b265c36fe89d
parent50e1e57f812ca066b1b1256312e0e197fd0eec0e
dpif: Fix infinite netlink loop in dpif_execute_helper_cb.

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.

This patch maintains the current behavior but stores all
required meter actions in an ofpbuf for deferred execution.

Reported-at: https://patchwork.ozlabs.org/project/openvswitch/patch/20250506022337.3242-1-danieldin186@gmail.com/
Fixes: 076caa2fb077 ("ofproto: Meter translation.")
Acked-by: Ilya Maximets <i.maximets@ovn.org>
Signed-off-by: Eelco Chaudron <echaudro@redhat.com>
lib/dpif.c
tests/ofproto-dpif.at