Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp747890pxp; Fri, 11 Mar 2022 14:05:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJy3v+lXc+uB0efgcLfhoA3Xm+o8S0upf6q/leqq50qvOSd4Y46ll8EyI9Gmt4NicXxNbWJN X-Received: by 2002:a17:90b:3e88:b0:1bf:3bd0:4b5f with SMTP id rj8-20020a17090b3e8800b001bf3bd04b5fmr24081426pjb.106.1647036328170; Fri, 11 Mar 2022 14:05:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1647036328; cv=none; d=google.com; s=arc-20160816; b=alAZdCLjSQ1eWpHkh33lBCPS+W+GzwulYYCdmb+TbYswnLHAlTnTbMlNktKUhly71/ IRiD4EO8YBgsNH+Q1KTcLhixpq4xFUPe/l0Q/9xsTmTuueMOjyzuBz8mgmkMUDt5F86y U6mAXeA0c2VhohswwjCkaI3CVOrtLe4koB5WU0cqaKMnkmkJLWh0X7Bt7OOr6VywegKO qSZI6OcS8FQFdvw/x3seDUxkZz68uHO/qAzIKAsTw0mb15nCDXHfBxrDgxQvnGTvRGSA 0WG22chw54FAnOTUz/Qa59knuyo+O4Ey9rn2cDfYFGtj5s+abMru/5q51O3Ewr5qj58g HTsg== 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=3i/hY3QwCf8Qtzixl9v6y7/wCTyMkeax7Txn5N8wE3Q=; b=r93DfkpjmZvrYcE3rh3R8DRu76FTwt5A4qIvTitVgJEskzYTwlXHuz2ilMibWH1VvG G5axb5/7EQ8JmDMrP5PEVBGX98O/XqiHheC8nNBXPTsDBNhQTxev7wdRF4kzGnuFCRDp NNsoQcWPMnRyGL+e5KzU7Kp0lENB8Qn3GEGOBVXg5Vtj+o2xOl7zQXBMNvYa1BJ83wVD ekXIDS+u1AMN3znWcXK+x8/u6+HAxCRNT7Rc3qjojUYJ53Eggjlo5oNgdNsQLKhwXW0B n7TgpLSyC23Shmcatu6mCu131RHsrtlrigqe1Vzc2/Uek03Twn3w4pjEXt8lp5wKx1ql oweA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mf4u7MpX; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id d126-20020a636884000000b003803b0d9b51si9038851pgc.453.2022.03.11.14.05.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Mar 2022 14:05:28 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mf4u7MpX; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 436D3272E0D; Fri, 11 Mar 2022 13:20:06 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343938AbiCJXBP (ORCPT + 99 others); Thu, 10 Mar 2022 18:01:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229997AbiCJXBN (ORCPT ); Thu, 10 Mar 2022 18:01:13 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E7D7BE6D91; Thu, 10 Mar 2022 15:00:11 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 8391461BF0; Thu, 10 Mar 2022 23:00:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id DD2D5C340EB; Thu, 10 Mar 2022 23:00:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1646953210; bh=uZ1KrI/gt9CHhxEgRi523Od9M48dXgm685DeFJIjS2c=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=mf4u7MpXTV9FEJICLRcJKafB4rHMEjWfLkhiPcOWyLxeqEsWKJDaaP2KkdYhdsPaR +wBKqnX0GNtqXaMBn1VIL+jl+O+x/BVf+ynifv5KOsyAaSoCuudCEqI05eWpah1q2H XojqYXcyGqr36tIaKtgMfJZ2H1D5tpEMWPKBl+yCDXaXB3je/tvAz6FYtVxGQGpwps 7Wr+9menuSIWmToTzyBaUqFpqkEfZgy/8gs21wMf3rtgFsEIhrGKudQN4BNGrn9IS2 PKfgEKIVfQdlyuvrqURg4/gIRliBDzYxCvbJSzhEZJ9slUi1Z9RisL3gqdkHxAbc9x DKiuAU4zxx7Ag== 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 BF93BE5D087; Thu, 10 Mar 2022 23:00:10 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH v2] net: arc_emac: Fix use after free in arc_mdio_probe() From: patchwork-bot+netdevbpf@kernel.org Message-Id: <164695321078.6170.4849645757866961592.git-patchwork-notify@kernel.org> Date: Thu, 10 Mar 2022 23:00:10 +0000 References: <20220309121824.36529-1-niejianglei2021@163.com> In-Reply-To: <20220309121824.36529-1-niejianglei2021@163.com> To: Jianglei Nie Cc: davem@davemloft.net, kuba@kernel.org, caihuoqing@baidu.com, andrew@lunn.ch, netdev@vger.kernel.org, linux-kernel@vger.kernel.org X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello: This patch was applied to netdev/net.git (master) by Jakub Kicinski : On Wed, 9 Mar 2022 20:18:24 +0800 you wrote: > If bus->state is equal to MDIOBUS_ALLOCATED, mdiobus_free(bus) will free > the "bus". But bus->name is still used in the next line, which will lead > to a use after free. > > We can fix it by putting the name in a local variable and make the > bus->name point to the rodata section "name",then use the name in the > error message without referring to bus to avoid the uaf. > > [...] Here is the summary with links: - [v2] net: arc_emac: Fix use after free in arc_mdio_probe() https://git.kernel.org/netdev/net/c/bc0e610a6eb0 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html