summaryrefslogtreecommitdiff
path: root/include/math-emu
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2024-03-21 01:27:59 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2024-03-28 03:54:01 +0100
commit1e1fb6f00f52812277963365d9bd835b9b0ea4e0 (patch)
treed88cc04426c1fffb47311a4824269498e37fc449 /include/math-emu
parentb32ca27fa238ff83427d23bef2a5b741e2a88a1e (diff)
netfilter: nf_tables: reject table flag and netdev basechain updates
netdev basechain updates are stored in the transaction object hook list. When setting on the table dormant flag, it iterates over the existing hooks in the basechain. Thus, skipping the hooks that are being added/deleted in this transaction, which leaves hook registration in inconsistent state. Reject table flag updates in combination with netdev basechain updates in the same batch: - Update table flags and add/delete basechain: Check from basechain update path if there are pending flag updates for this table. - add/delete basechain and update table flags: Iterate over the transaction list to search for basechain updates from the table update path. In both cases, the batch is rejected. Based on suggestion from Florian Westphal. Fixes: b9703ed44ffb ("netfilter: nf_tables: support for adding new devices to an existing netdev chain") Fixes: 7d937b107108f ("netfilter: nf_tables: support for deleting devices in an existing netdev chain") Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/math-emu')
0 files changed, 0 insertions, 0 deletions