Re: [PATCH] net: netfilter: fix possible refcount leak in ctnetlink_create_conntrack()

From: Florian Westphal
Date: Mon Feb 13 2023 - 09:49:07 EST


Hangyu Hua <hbh25y@xxxxxxxxx> wrote:
> nf_ct_put() needs to be called to put the refcount got by
> nf_conntrack_find_get() to avoid refcount leak when
> nf_conntrack_hash_check_insert() fails.
>
> Fixes: 7d367e06688d ("netfilter: ctnetlink: fix soft lockup when netlink adds new entries (v2)")
> Signed-off-by: Hangyu Hua <hbh25y@xxxxxxxxx>

I'll handle the other bug mentioned in the thread on top of this commit,
thanks for the patch.

Acked-by: Florian Westphal <fw@xxxxxxxxx>