]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nf_flow_table_offload: check the status of dst_neigh
authorwenxu <wenxu@ucloud.cn>
Fri, 20 Dec 2019 04:14:37 +0000 (12:14 +0800)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sun, 5 Jan 2020 09:06:31 +0000 (10:06 +0100)
commit8db75d4c7d3070d02c71bae108323735f0e26ec2
tree41d73e41e76d1fce0a260c9befb3d3255da31ece
parentf789f829cb8472a45539f74a79b775d76d086de1
netfilter: nf_flow_table_offload: check the status of dst_neigh

It is better to get the dst_neigh with neigh->lock and check the
nud_state is VALID. If there is not neigh previous, the lookup will
Create a non NUD_VALID with 00:00:00:00:00:00 mac.

Fixes: 3029814930c4 ("netfilter: nf_flow_table: hardware offload support")
Signed-off-by: wenxu <wenxu@ucloud.cn>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_flow_table_offload.c