Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8478DC64ED6 for ; Mon, 13 Feb 2023 14:49:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230412AbjBMOtF (ORCPT ); Mon, 13 Feb 2023 09:49:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230419AbjBMOsp (ORCPT ); Mon, 13 Feb 2023 09:48:45 -0500 Received: from Chamillionaire.breakpoint.cc (Chamillionaire.breakpoint.cc [IPv6:2a0a:51c0:0:237:300::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 72537144A1; Mon, 13 Feb 2023 06:48:32 -0800 (PST) Received: from fw by Chamillionaire.breakpoint.cc with local (Exim 4.92) (envelope-from ) id 1pRa82-0005Wk-4y; Mon, 13 Feb 2023 15:48:26 +0100 Date: Mon, 13 Feb 2023 15:48:26 +0100 From: Florian Westphal To: Hangyu Hua Cc: pablo@netfilter.org, kadlec@netfilter.org, fw@strlen.de, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, netfilter-devel@vger.kernel.org, coreteam@netfilter.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] net: netfilter: fix possible refcount leak in ctnetlink_create_conntrack() Message-ID: <20230213144826.GC14680@breakpoint.cc> References: <20230210071730.21525-1-hbh25y@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230210071730.21525-1-hbh25y@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hangyu Hua 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 I'll handle the other bug mentioned in the thread on top of this commit, thanks for the patch. Acked-by: Florian Westphal