From mboxrd@z Thu Jan 1 00:00:00 1970 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 DFCF2C4332F for ; Tue, 29 Nov 2022 16:56:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236454AbiK2Q4N (ORCPT ); Tue, 29 Nov 2022 11:56:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58942 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236459AbiK2Qzw (ORCPT ); Tue, 29 Nov 2022 11:55:52 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 289936F0E7 for ; Tue, 29 Nov 2022 08:50:31 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 3F9CBB816D7 for ; Tue, 29 Nov 2022 16:50:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AF6CCC433D7; Tue, 29 Nov 2022 16:50:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669740627; bh=31w2livJyiUmlabvPmyJg0gmkdJhS0O0PRjmIgC4xl0=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=E0JwE0oGNQcNe5dmlwKeXZ1CffAF6AskW+Mpu6pDr3g07x6D+OGDMt8DlVR4Gxjuk 8wvvTdxTWiqAE6Tervol/61QZ2mxWk1EmOarqHpSn5yg+w1HDEv9zDZG7lv54gzODg sUq0eljaSzwdW71zd6UUTJ8DUpk1zz7Chqh8IHHFSjgXmlGahX6H9A8hO+iEsiMbAo sLKkjMYED8aX92uDmEffHx6tkMhYBzDjgK9fmfvWVVMdRaEWGuzCmBJ50ZgxGP2SUf LP3P8Hsp85ZeLJJgdQ/sO5Ey3DFu0zP8rkdg8nz2xlgAGaEoh1Q6doEFHzBrcrBz7E Tcnd6Qajq5VqA== Date: Tue, 29 Nov 2022 08:50:25 -0800 From: Jakub Kicinski To: David Ahern Cc: Yuan Can , davem@davemloft.net, yoshfuji@linux-ipv6.org, edumazet@google.com, pabeni@redhat.com, netdev@vger.kernel.org Subject: Re: [PATCH v2] udp_tunnel: Add checks for nla_nest_start() in __udp_tunnel_nic_dump_write() Message-ID: <20221129085025.79f9669b@kernel.org> In-Reply-To: References: <20221129013934.55184-1-yuancan@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Mon, 28 Nov 2022 20:09:52 -0700 David Ahern wrote: > On 11/28/22 6:39 PM, Yuan Can wrote: > > As the nla_nest_start() may fail with NULL returned, the return value needs > > to be checked. > > > > Fixes: c7d759eb7b12 ("ethtool: add tunnel info interface") > > Signed-off-by: Yuan Can > > Reviewed-by: David Ahern Applying to net-next without the Fixes tag, FWIW. The next put will fail and we'll bail all the same, this patch is pretty much a noop. But not the first "fix" like this we go so probably not point fighting it. Yuan, please try to find some other error checking to run your bots on, I doubt any of the nla_nest_start() uses actually need error checking.