Patch "act_ipt: fix a bind refcnt leak" has been added to the 4.6-stable tree
Subsystems (3)
This is a note to let you know that I've just added the patch titled
act_ipt: fix a bind refcnt leak
to the 4.6-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
act_ipt-fix-a-bind-refcnt-leak.patch
and it can be found in the queue-4.6 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From foo@baz Wed Jul 6 16:50:56 PDT 2016
From: WANG Cong <[email protected]>
Date: Mon, 13 Jun 2016 13:44:14 -0700
Subject: act_ipt: fix a bind refcnt leak
From: WANG Cong <[email protected]>
[ Upstream commit d15eccea69b96a5116169688dcc9baf6d1ce2751 ]
And avoid calling tcf_hash_check() twice.
--- net/sched/act_ipt.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
net/sched/act_ipt.c +5 -2
@@ -121,10 +121,13 @@ static int __tcf_ipt_init(struct tc_acti } td = (struct xt_entry_target *)nla_data (tb[TCA_IPT_TARG ]); -if (nla_len (tb[TCA_IPT_TARG ]) < td->u.target_size) +if (nla_len (tb[TCA_IPT_TARG ]) < td->u.target_size) { +if (exists) +tcf_hash_release (a, bind);return -EINVAL ; + } -if (!tcf_hash_check (tn, index, a, bind)) { +if (!exists) { ret =tcf_hash_create (tn, index, est, a,sizeof (*ipt), bind, false);if (ret)
Patches currently in stable-queue which might be from [email protected] are
queue-4.6/netem-fix-a-use-after-free.patch queue-4.6/net_sched-fix-pfifo_head_drop-behavior-vs-backlog.patch queue-4.6/act_ipt-fix-a-bind-refcnt-leak.patch