]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: flowtable: set NF_FLOW_TEARDOWN flag on entry expiration
authorPablo Neira Ayuso <pablo@netfilter.org>
Mon, 11 May 2020 09:54:31 +0000 (11:54 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 12 May 2020 11:19:08 +0000 (13:19 +0200)
commit7034487f47666a17210e9a2f5ced6415b557a381
treeedf44038ddceba9388e404f91af49c3c0636621b
parent58a5c23797b54309ab450d884f0f162f9f226796
netfilter: flowtable: set NF_FLOW_TEARDOWN flag on entry expiration

If the flow timer expires, the gc sets on the NF_FLOW_TEARDOWN flag.
Otherwise, the flowtable software path might race to refresh the
timeout, leaving the state machine in inconsistent state.

Fixes: 3029814930c4 ("netfilter: nf_flow_table: hardware offload support")
Reported-by: Paul Blakey <paulb@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_flow_table_core.c