Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp726800rdb; Tue, 5 Dec 2023 19:50:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IGLh191s4UWjo8ez50vS5RIB1X9QkWf8WXFgsO+7b7o5secJBFn+Dm+fcTotYsopXc5HVkm X-Received: by 2002:a05:6870:1494:b0:1fb:64:1b25 with SMTP id k20-20020a056870149400b001fb00641b25mr268172oab.24.1701834649357; Tue, 05 Dec 2023 19:50:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701834649; cv=none; d=google.com; s=arc-20160816; b=WALm7ryS2B0XbRBqYimgKJwKdwVb2EX3EqNg+ceVZAFpIAYkKVjHGfKB7Mznf0hse1 ZwcvX4tmM43WuNL8np1F7zwN3439KtkOdAiz31uYCi+itozEVrSXCl3W0oZJ0GwyYUFE oNWZzY6propVu/KYK7uPoEGIPwesqZ5iBfGbiSXPn3f8zVjVb9kIT0TOXXAMttlHvIxp 6Ih3HahWyIPIue9tlXC6CmsmIUPfs9XoSW0/EdmvvH1UJHKQ+cxXOnRtYzf1KafGEG/V ys5L6Ud7IKYoWBJfzylfuaYxPDY7VnUXUeDVUnZ8xFfzjuK16nAe1lbT/UQw7RHzJQXu 9lzw== 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=NV8/FWwtxTebqUqU0O6WgXKzKKBqx4lOzjLqEUjfoSo=; fh=F4QQPetQF6tUZj1ZQWYe1pw7RYW0YOwWMErn643GYJA=; b=QHhCqhFW9Qg60QGh+WRr6UIKBvkV0ye/ztFGfp0xxZ7YQyCRBT9AsBOFpSR8WPl1pS Tpr7yTswMOdOMbdfP9q/6HCW32g8DD2n7omNj3F0ogTm2jAbh6ajW5c+yV6DQALdv12Z UGqzDZ7iHwgPzf+mshPTLM2JBi+s5PYhIXyW/ZMEV5upgEmCOYZu3PBY9NwxVeu/DAjv LzGNPtN97gF0qmc5fcBWPX529r9+n0sO5cch156Pou6Rt+loxEJPzg0eui8C3d7mI/p/ pPwbloNngUlB0VZvRZCcY7t+5B8o+i4jX+TrOCejr2MJ3lG1KughNGG8kCFtgvNa7qxg VLyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="fjbrmU/1"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id k26-20020a63ff1a000000b005c1b311a152si10974909pgi.657.2023.12.05.19.50.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 19:50:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="fjbrmU/1"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (Postfix) with ESMTP id 84E1B822110C; Tue, 5 Dec 2023 19:50:46 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229577AbjLFDuR (ORCPT + 99 others); Tue, 5 Dec 2023 22:50:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40486 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229493AbjLFDuR (ORCPT ); Tue, 5 Dec 2023 22:50:17 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1324D188 for ; Tue, 5 Dec 2023 19:50:24 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPS id 86A8CC433C9; Wed, 6 Dec 2023 03:50:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701834623; bh=XyQIABCNi5zpRVstxuXOFJ+WV83AbjHAvJa3U9iW7QE=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=fjbrmU/1FaZ/D2I8gDXv/NiU/+DM6VuxFi/YiAmceHGX2ljpmtYyZ8J8UY+eeyDUG OEv6Nhvpk7VeESnZd3/DbZzWE9QMzJLYJr5ojGzzVS1i6j+ckYJDzN90L+Oi9kTdix l+kRHX8EShwl9u03DLWANFW+0VdjLuO7ouRD1F4SvVmJ+b1Jz4MUp8PjNO2lUACLvI K83dCdEuNVBImY21ulqI6IUdc5Ri7YWpxFoHFRacEI+kKBdbye0ZbZm3h6oA5b3agf g5R+esy3tkqu1W8pTBJOT2gJUzc4ftNwr51eAxh36lZW5BPmnao6QRg5sd8cWca7CE xs2aA694oIFZA== 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 6B493C41671; Wed, 6 Dec 2023 03:50:23 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH] net: bnxt: fix a potential use-after-free in bnxt_init_tc From: patchwork-bot+netdevbpf@kernel.org Message-Id: <170183462343.27566.10798748391554489332.git-patchwork-notify@kernel.org> Date: Wed, 06 Dec 2023 03:50:23 +0000 References: <20231204024004.8245-1-dinghao.liu@zju.edu.cn> In-Reply-To: <20231204024004.8245-1-dinghao.liu@zju.edu.cn> To: Dinghao Liu Cc: michael.chan@broadcom.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, sriharsha.basavapatna@broadcom.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 morse.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 (morse.vger.email [0.0.0.0]); Tue, 05 Dec 2023 19:50:46 -0800 (PST) Hello: This patch was applied to netdev/net.git (main) by Jakub Kicinski : On Mon, 4 Dec 2023 10:40:04 +0800 you wrote: > When flow_indr_dev_register() fails, bnxt_init_tc will free > bp->tc_info through kfree(). However, the caller function > bnxt_init_one() will ignore this failure and call > bnxt_shutdown_tc() on failure of bnxt_dl_register(), where > a use-after-free happens. Fix this issue by setting > bp->tc_info to NULL after kfree(). > > [...] Here is the summary with links: - net: bnxt: fix a potential use-after-free in bnxt_init_tc https://git.kernel.org/netdev/net/c/d007caaaf052 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html