netfilter: ctnetlink: acquire ct->lock before operating nf_ct_seqadj
authorLiping Zhang <zlpnobody@gmail.com>
Mon, 17 Apr 2017 13:18:58 +0000 (21:18 +0800)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 24 Apr 2017 18:06:29 +0000 (20:06 +0200)
commit64f3967c7aacbfa1f0614cdb1a23e3f7e76eb61b
tree320d2de10fc5b7c82a8a3b735d30a6acc21032f1
parent53b56da83d7899de375a9de153fd7f5397de85e6
netfilter: ctnetlink: acquire ct->lock before operating nf_ct_seqadj

We should acquire the ct->lock before accessing or modifying the
nf_ct_seqadj, as another CPU may modify the nf_ct_seqadj at the same
time during its packet proccessing.

Signed-off-by: Liping Zhang <zlpnobody@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_conntrack_netlink.c