]> 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)
commite934987ce740906d308329f724578c0711d9c28e
treec5269a9db0efcfb64ea83190b4b83500773711af
parent932fffbb0a2d741e0e28e87612fd0b47c877d7b4
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