Skip to content

Commit 67afd14

Browse files
committed
netfilter: nf_tables: do not compare internal table flags on updates
jira SECO-169 subsystem-sync netfilter:nf_tables 4.18.0-553 commit-author Pablo Neira Ayuso <pablo@netfilter.org> commit 4a0e7f2 Restore skipping transaction if table update does not modify flags. Fixes: 179d9ba ("netfilter: nf_tables: fix table flag updates") Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> (cherry picked from commit 4a0e7f2) Signed-off-by: Greg Rose <g.v.rose@ciq.com>
1 parent aaa985e commit 67afd14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/netfilter/nf_tables_api.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -967,7 +967,7 @@ static int nf_tables_updtable(struct nft_ctx *ctx)
967967
if (flags & ~NFT_TABLE_F_DORMANT)
968968
return -EINVAL;
969969

970-
if (flags == ctx->table->flags)
970+
if (flags == (ctx->table->flags & NFT_TABLE_F_MASK))
971971
return 0;
972972

973973
/* No dormant off/on/off/on games in single transaction */

0 commit comments

Comments
 (0)