Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4933784rdb; Tue, 12 Dec 2023 13:40:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IFv/uPNwfyb07XVa/GoNfLMagipPyI+CUFhYkdTB1U4uUbiNqmXz5Pg7CCLJ6l/VEqxJ841 X-Received: by 2002:a17:902:e5ce:b0:1d3:2a94:cb46 with SMTP id u14-20020a170902e5ce00b001d32a94cb46mr2721925plf.31.1702417234593; Tue, 12 Dec 2023 13:40:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702417234; cv=none; d=google.com; s=arc-20160816; b=LBRyqbm0OvfsqAkj1dZjvhZal9jHfPxyzOlJx8hH8qEPsRiokL7K0TQ2t3N4bwgBoa sEb5S+npwnbUjGBtZvoXkWQO+hRW0Z7+hUjTCtsFM2QughhLpKoYzYYYBGLT8OVisSKg 6T5EAEY3m2iNY0Eec3eYrfuH1D6LVh6C1rSQevKlPXkl3lU1svU5PddjEkJ/TEWHuNoN mVBlmkfIWxoeRfYyLJ5sIbG66Vqpdqbtpk3XL13Z2/mzmKbnEEulVkhm9zOXEVigS8eU d4TysxFC5A2EOxabCZyDl6PXC1xUrjnjasTohOuxAPSXP4aDHwPgaxvv5bXNYxmr8e2W P+Xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:date:message-id :from:subject:content-transfer-encoding:mime-version:dkim-signature; bh=8ZV5BO3/9VGyEMGAq14JUfOr6LXKI0ZFB8tBLkW8XR8=; fh=71p++2hnq3RKwQ3VqjPWZOz0VHI+jRVDcM+QOY0nacM=; b=vWOvjHZzdZ+q+jWWtG56A/yzf8xISDD3j+WK9HBFU0WBtVfiHuGdqswQt9N2zcK5+E WlJXMQUgpuanhi4tk4pMIMbDPvWRQV0QMkxCb++HhhjdviJ0ErS/Mn539eBNexSACUHh IJaJSJl+qwoX/QBYEpGogMk6iYL0QAO9G6fpM1RcLctD0heGUrZSGbK10sQ3bODH18Ft /DTke5Gh56NRBybBWFE5fCkeTziNvdxgvXui9t7pQceCuVYPTZm8imdzVs7PhsWErLhl BBa8QTzVEbd1AD7W3W5MAj4fFBcw0CUlRdMjqOgj2/rmdrl+9zG0DIBK8U9DLd/3ma9o y/1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ahltqe3G; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id ik2-20020a170902ab0200b001d056d38cf4si8163053plb.625.2023.12.12.13.40.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 13:40:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ahltqe3G; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 2F202807862F; Tue, 12 Dec 2023 13:40:32 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377189AbjLLVkS (ORCPT + 99 others); Tue, 12 Dec 2023 16:40:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377185AbjLLVkQ (ORCPT ); Tue, 12 Dec 2023 16:40:16 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A69D2B3 for ; Tue, 12 Dec 2023 13:40:23 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPS id 3BB30C433C9; Tue, 12 Dec 2023 21:40:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702417223; bh=W+a8QMxDJQ/wYzGPICirRFBKNDviDAgz3f9h+vYPOVs=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=ahltqe3GMajhJjOwZIMS9LnC1dVNv/CJeMj99NUsY5zFpeify4fEmCnVLrIz/WA5B ilQQlRw/Xe8TI7WdIfHPQYAKP5rdzG8CH8Zs18AMs8DUMhnrS4bnzK+axx0d6JHBsg u58Ih445lqMrBnj0Szjl72+txqphW594iZ6/u52lwWhtBpbgUt+Qyvc8k4FABBpyFv CXS4fb2E4v6QkfsegyCYmh82PA9InOlT21aui99zGZZvOuamjqgVV1qMW+AvYcOYaF iT47kGgYTzp4wxgJ0uhnno41Ypl/RSfVshxtyu47MgRsXCMNlD7MjJWpcWcqF820pc q9eHw4EFsAN6w== 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 233A6DD4EFE; Tue, 12 Dec 2023 21:40:23 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH] [v3] qed: Fix a potential use-after-free in qed_cxt_tables_alloc From: patchwork-bot+netdevbpf@kernel.org Message-Id: <170241722314.18097.10660076112019451693.git-patchwork-notify@kernel.org> Date: Tue, 12 Dec 2023 21:40:23 +0000 References: <20231210045255.21383-1-dinghao.liu@zju.edu.cn> In-Reply-To: <20231210045255.21383-1-dinghao.liu@zju.edu.cn> To: Dinghao Liu Cc: aelior@marvell.com, manishc@marvell.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, Yuval.Mintz@qlogic.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Tue, 12 Dec 2023 13:40:32 -0800 (PST) Hello: This patch was applied to netdev/net.git (main) by Jakub Kicinski : On Sun, 10 Dec 2023 12:52:55 +0800 you wrote: > qed_ilt_shadow_alloc() will call qed_ilt_shadow_free() to > free p_hwfn->p_cxt_mngr->ilt_shadow on error. However, > qed_cxt_tables_alloc() accesses the freed pointer on failure > of qed_ilt_shadow_alloc() through calling qed_cxt_mngr_free(), > which may lead to use-after-free. Fix this issue by setting > p_mngr->ilt_shadow to NULL in qed_ilt_shadow_free(). > > [...] Here is the summary with links: - [v3] qed: Fix a potential use-after-free in qed_cxt_tables_alloc https://git.kernel.org/netdev/net/c/b65d52ac9c08 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html