From: Pablo Neira Ayuso Date: Mon, 5 Oct 2015 14:51:03 +0000 (+0200) Subject: netfilter: xt_CT: don't put back reference to timeout policy object X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=403d89ad9cc076db44c76ab75c7629497d8ddbb2;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git netfilter: xt_CT: don't put back reference to timeout policy object On success, this shouldn't put back the timeout policy object, otherwise we may have module refcount overflow and we allow deletion of timeout that are still in use. Signed-off-by: Pablo Neira Ayuso --- diff --git a/net/netfilter/xt_CT.c b/net/netfilter/xt_CT.c index faf32d888198..a03924c1db41 100644 --- a/net/netfilter/xt_CT.c +++ b/net/netfilter/xt_CT.c @@ -171,6 +171,9 @@ xt_ct_set_timeout(struct nf_conn *ct, const struct xt_tgchk_param *par, if (timeout_ext == NULL) ret = -ENOMEM; + rcu_read_unlock(); + return ret; + err_put_timeout: __xt_ct_tg_timeout_put(timeout); out: