Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp490374pxb; Wed, 3 Nov 2021 07:32:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw/hl2qMiCOgRnVSDyUoUzF0NdBh4A+2SgPQqzU3kWiq1d/qDXZMNKtAyfJxePXvNiSyxoF X-Received: by 2002:a17:907:6e26:: with SMTP id sd38mr37848141ejc.90.1635949944744; Wed, 03 Nov 2021 07:32:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635949944; cv=none; d=google.com; s=arc-20160816; b=D+4eiVZToG7euPyh93teWod+0LJiq/jqiEfT7SqQukJ4dXUOpw/otyyKtiFbxNUcbB KyVjxg+KkU25+EH6r8SZk3nhcbLRfgPbnzRJREr5a5E1h83DxxSNxFAiC+FD4AhJ0c9M FY+Z281EVV4XrrdR9z7KuwqU/emuyJla4E/STkeaoL0pdQZkrV+hq6RwE3sgi6x82vtd d4DCN82TRzpn8cni+vhdXr6YNTzMxRv/A2D8/sg0+PqxZ30qvSplKCdzErKXqm8EWlpc TghnxmVX413ocFWdy3FDAKds3t+YmU/nAH7c9Qm9eobjVMwZ1dBNA4ShByj9DGSa6eCO F7hA== 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=npUODo/xzJU5rBPDQAtCQ2uy8ZYNm/sIECYSMFG6fxI=; b=vHPm8M1Xu41HnfRGjmizR5L0YGK+jjyNzz0Vn63klMwB1dqjTUvgNK6xKwTEEqhnlU Gp+ibBvkqMEQwF0uEzUc3y0tY2CFNCfWxlChSPrrXX2o0tMuXjE9vnbJIZDhzR8Bma1t e43qMBsQiGaC0WhbhvF7hMiguCwI+IXRr0wcyIrEHi0IR512mUCa7VXGTt0guBk0T0tc PsJPOJloSmGceLqhQ67SA807lN34f2GwacqEoVEym3NGIoE4dyYB8x16N5HW7joFAo0L P4Vz3fJ50FgTL1k2dgfp9qsB5+xAsddXWEFOh1ajYrkxYwqUM6VZs3ShilWYCxf9VOwE FQnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=krlQrCe+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dr15si5047443ejc.170.2021.11.03.07.32.00; Wed, 03 Nov 2021 07:32:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=krlQrCe+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231922AbhKCOco (ORCPT + 99 others); Wed, 3 Nov 2021 10:32:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:42598 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231464AbhKCOco (ORCPT ); Wed, 3 Nov 2021 10:32:44 -0400 Received: by mail.kernel.org (Postfix) with ESMTPS id A6C6561053; Wed, 3 Nov 2021 14:30:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1635949807; bh=E21pwJW18RO2gou05dCYN+YaAY7hMj8ZKh7YBzvQLXY=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=krlQrCe+4GOvV5iH9PeG01rfFK0DssAFMFtKbnoQtHS4o4I05+AfU2HlDrTC3j5Iz BRII87IgpazApgoEV9XuwkDgdCBBXOOpgoR3MDmxv+792Lre1ob9ShFSzilo1tDkTD k8tAK9ALy5iEQY1JNT7q7wETwYsTE6ntYkE7ChfGfdwpDGwJeUwwBsk4j2RmIoDdWe YZjN1UdHkUHZWJmhsQGzhhslf6IKyGeTLaujACfyOBdKbhnNkIhUxHyMI35sLVW4C4 vBrYfDo734rMJl3ViOxQxuwCRfZuELN5iv2O3b8/iGfQYCEXIGsH+RNZby5+bZyz4j KeK4X59cNzF4g== Received: from pdx-korg-docbuild-2.ci.codeaurora.org (localhost.localdomain [127.0.0.1]) by pdx-korg-docbuild-2.ci.codeaurora.org (Postfix) with ESMTP id 9DC3F60A39; Wed, 3 Nov 2021 14:30:07 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH net v2] net: vlan: fix a UAF in vlan_dev_real_dev() From: patchwork-bot+netdevbpf@kernel.org Message-Id: <163594980764.8310.6832272093505307449.git-patchwork-notify@kernel.org> Date: Wed, 03 Nov 2021 14:30:07 +0000 References: <20211102021218.955277-1-william.xuanziyang@huawei.com> In-Reply-To: <20211102021218.955277-1-william.xuanziyang@huawei.com> To: Ziyang Xuan Cc: davem@davemloft.net, kuba@kernel.org, jgg@nvidia.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello: This patch was applied to netdev/net.git (master) by David S. Miller : On Tue, 2 Nov 2021 10:12:18 +0800 you wrote: > The real_dev of a vlan net_device may be freed after > unregister_vlan_dev(). Access the real_dev continually by > vlan_dev_real_dev() will trigger the UAF problem for the > real_dev like following: > > ================================================================== > BUG: KASAN: use-after-free in vlan_dev_real_dev+0xf9/0x120 > Call Trace: > kasan_report.cold+0x83/0xdf > vlan_dev_real_dev+0xf9/0x120 > is_eth_port_of_netdev_filter.part.0+0xb1/0x2c0 > is_eth_port_of_netdev_filter+0x28/0x40 > ib_enum_roce_netdev+0x1a3/0x300 > ib_enum_all_roce_netdevs+0xc7/0x140 > netdevice_event_work_handler+0x9d/0x210 > ... > > [...] Here is the summary with links: - [net,v2] net: vlan: fix a UAF in vlan_dev_real_dev() https://git.kernel.org/netdev/net/c/563bcbae3ba2 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html