]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: ctnetlink: get and zero operations must be atomic
authorPablo Neira Ayuso <pablo@netfilter.org>
Sat, 24 Dec 2011 13:11:39 +0000 (14:11 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sat, 24 Dec 2011 13:35:59 +0000 (14:35 +0100)
commit7dc2ac1897cbb98f7c1cee45e1e2fa84c1919b65
treec5269a9db0efcfb64ea83190b4b83500773711af
parentec04e1e79ce3b348fed12080f15dff8865284ba8
netfilter: ctnetlink: get and zero operations must be atomic

The get and zero operations have to be done in an atomic context,
otherwise counters added between them will be lost.

This problem was spotted by Changli Gao while discussing the
nfacct infrastructure.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_conntrack_netlink.c