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 21867C77B76 for ; Tue, 18 Apr 2023 14:00:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230334AbjDROAX (ORCPT ); Tue, 18 Apr 2023 10:00:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229498AbjDROAV (ORCPT ); Tue, 18 Apr 2023 10:00:21 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 12F8112C95; Tue, 18 Apr 2023 07:00:21 -0700 (PDT) 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 dfw.source.kernel.org (Postfix) with ESMTPS id A05AC62D94; Tue, 18 Apr 2023 14:00:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id F20BAC4339B; Tue, 18 Apr 2023 14:00:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1681826420; bh=qbushEK5etw3/3kOKAVkU+W7ur9k+Xc4f2jer3lILyY=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=MQ2Wa8rTASB4qQiExKEZQsqyUF4r/rFmCYi3x3DxkqpGNhW90rWY6dpr4fHPk/BnA 9dEcinwHHSutxeC2I2X0We99YETwM4TEy7vWpzQhu8Bf/q70vtm1yIikQksHFzLE2X o86Jt7Rq4uFi6gqRKsf0mrXjQVFrMiOSMyXqted9vyNEB5KFjXo6dERZ7Z+xUAvU7h X1e0KUQoyOd/rufTGr0Rtc/s9fQCRu/ZWBQI8ietBv5ykf7ka8nYUMDpCb3TZ3dH+p 59mWSm5NHg4z8C/J1KV97vKl5zMyzdcdEF+lsaRMpDVvfXFKaUOZusi2d745JNDACk S72GPVYasaS4w== Received: from aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (localhost.localdomain [127.0.0.1]) by aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (Postfix) with ESMTP id CE32DC4167B; Tue, 18 Apr 2023 14:00:19 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH net] mlxfw: fix null-ptr-deref in mlxfw_mfa2_tlv_next() From: patchwork-bot+netdevbpf@kernel.org Message-Id: <168182641983.28782.4983539968086574822.git-patchwork-notify@kernel.org> Date: Tue, 18 Apr 2023 14:00:19 +0000 References: <20230417120718.52325-1-n.zhandarovich@fintech.ru> In-Reply-To: <20230417120718.52325-1-n.zhandarovich@fintech.ru> To: Nikita Zhandarovich Cc: mlxsw@nvidia.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, lvc-project@linuxtesting.org, n.petrova@fintech.ru Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello: This patch was applied to netdev/net.git (main) by Paolo Abeni : On Mon, 17 Apr 2023 05:07:18 -0700 you wrote: > Function mlxfw_mfa2_tlv_multi_get() returns NULL if 'tlv' in > question does not pass checks in mlxfw_mfa2_tlv_payload_get(). This > behaviour may lead to NULL pointer dereference in 'multi->total_len'. > Fix this issue by testing mlxfw_mfa2_tlv_multi_get()'s return value > against NULL. > > Found by Linux Verification Center (linuxtesting.org) with static > analysis tool SVACE. > > [...] Here is the summary with links: - [net] mlxfw: fix null-ptr-deref in mlxfw_mfa2_tlv_next() https://git.kernel.org/netdev/net/c/c0e73276f0fc You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html