]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nfnetlink_log: validate dependencies to avoid breaking atomicity
authorPablo Neira <pablo@netfilter.org>
Tue, 13 Oct 2015 10:47:48 +0000 (12:47 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 15 Oct 2015 04:45:03 +0000 (06:45 +0200)
commit960193c93a2bd857b0683163aa3e77a401559994
treea6aef860ba8faa818349f7033e574f4b060485ee
parent4f2e6d774afe3da78ee6b0d180eb269ef41a8cd9
netfilter: nfnetlink_log: validate dependencies to avoid breaking atomicity

Check that dependencies are fulfilled before updating the logger
instance, otherwise we can leave things in intermediate state on errors
in nfulnl_recv_config().

[ Ken-ichirou reports that this is also fixing missing instance refcnt drop
  on error introduced in his patch 2ff308225853 ("netfilter: nfnetlink_log:
  autoload nf_conntrack_netlink module NFQA_CFG_F_CONNTRACK config flag"). ]

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Tested-by: Ken-ichirou MATSUZAWA <chamaken@gmail.com>
net/netfilter/nfnetlink_log.c