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 086B6C3DA78 for ; Tue, 17 Jan 2023 14:17:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230210AbjAQORR (ORCPT ); Tue, 17 Jan 2023 09:17:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40840 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229775AbjAQORQ (ORCPT ); Tue, 17 Jan 2023 09:17:16 -0500 Received: from mail.netfilter.org (mail.netfilter.org [217.70.188.207]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2F67B32525; Tue, 17 Jan 2023 06:17:15 -0800 (PST) Date: Tue, 17 Jan 2023 15:17:08 +0100 From: Pablo Neira Ayuso To: Alok Tiwari Cc: linux-kernel@vger.kernel.org, netfilter-devel@vger.kernel.org Subject: Re: [PATCH 6.1] netfilter: Null pointer dereference in nf_tables_updobj Message-ID: References: <20230117134537.3400252-1-alok.a.tiwari@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20230117134537.3400252-1-alok.a.tiwari@oracle.com> Precedence: bulk List-ID: X-Mailing-List: netfilter-devel@vger.kernel.org On Tue, Jan 17, 2023 at 05:45:38AM -0800, Alok Tiwari wrote: > static analyzer detect null pointer dereference case for 'type' > function __nft_obj_type_get() can return NULL value which require to handle > if type is NULL pointer return -ENOENT This should not ever happen, but it is good to have a failsafe in this path. I'll take this into nf.git, thanks.