Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3004380iog; Mon, 20 Jun 2022 09:09:33 -0700 (PDT) X-Google-Smtp-Source: AGRyM1toCeUc49mqHe0RAZN/x0q+8HVhuXuFHeeWf+Cz42pn2AXN6u3OE9p+v1aqNvb4MOD4dvTK X-Received: by 2002:a17:907:908b:b0:703:9e42:3d07 with SMTP id ge11-20020a170907908b00b007039e423d07mr21467541ejb.748.1655741372796; Mon, 20 Jun 2022 09:09:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655741372; cv=none; d=google.com; s=arc-20160816; b=q2a2J7YkMLXeG32neV2kCwrFNLTx8pZ2+CX9MpfbRh6cZxI4uA8earaVTNr7fO2GWM v6OjyOkmfioVKjxo1p6mxdnmJs9vHyxpHqjwkp7Gb4bDuurmX6htF0afZbsp03AmGLtn zHiqBPB451Oe/8G9JYdLfib08ssQX1YnkS7Zku645lrBqRcj0haZFQ9YuGhTGkwQ8WuI 7xAVmYGO/4LGRx497g+u2nng+aWkr6/qEXI5p/n0LlR0UQdeHp/i5201kpMyV/5TgR57 3KEwkS0fF1xAYvG2sRd8pHvl/dVe1PFLbrmjKAzkOgzXoRTDcWHNsgURn60xk6DWYrf+ N3eQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=9E7RN5+vzkogg3lrJujb3bmQcgiLEomat2yN91tsCFQ=; b=R14ihaaiRFclayIcY4uUcx5axr9lEgpm9F5eENfDdZc8Xpar8daqVY+XMgZsd96y/A MnBRiYNohHS4SMk/7yzJNi6GRrXahCcMUhN/0SJi/OUewE6mX5m/JaqPPoBJ0scyGJGo MZoc7TIncwWk9IRWwVEWTG8NlwP3wn5Ng2t/wa3Qmc5MSVtXIHdFffwtKCN0cfZpgaY1 mjHkFKaxCo7/6N0M64aaTXtP1GiQaSyHD9K841VhXzYMZaSojPY8d9zipSR04w+SG9Jg wshhTh1PK2m/kZAYsAte6mlwMNyclWU7cF9NKQ12L5yRFKRY+Z0B4Nz1nrEVBgtJaSnG 0oHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lcMQ2yXp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oz44-20020a1709077dac00b006e87a109539si15625652ejc.204.2022.06.20.09.09.06; Mon, 20 Jun 2022 09:09:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lcMQ2yXp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S240211AbiFTP4x (ORCPT + 99 others); Mon, 20 Jun 2022 11:56:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229662AbiFTP4w (ORCPT ); Mon, 20 Jun 2022 11:56:52 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C38B31D32F; Mon, 20 Jun 2022 08:56:51 -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 601DF6135F; Mon, 20 Jun 2022 15:56:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 56F51C3411B; Mon, 20 Jun 2022 15:56:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1655740610; bh=fE37JXcAMLz2dAXCM7dSc6/mFlmPqdR9D8KgCu+rjwE=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=lcMQ2yXpKRZWL78A5ReWS/rN5uagvR+rTANOMAdGhtigwC+wGQ14oD603RYBa9R6k +P8FoleMaDXdcKn11KGTxlh/KlNSE60DTSFRCP/Qwigb4AVNtSI1Wqg47JPIoTa0iH 2oWx+Hnkh9bg7x2e3elkuzwlGITERySan+GBEuE1STy5g9i+ENv4QQxiSdCEI3p6D6 VoytEKbrJ+u3SZZUrMoOFYg6u0LZeqCJlnfy+MiC7F5w1EYZ7YuZtdwuQ/cs2CgHEG a2fBNdNV4JAPvRyuwrta4KTrP+9mgtxa1W3TP6bgP4lqw1CrVwftUtfAhbyos3ILjV kZp/nmy6kMMOg== Date: Mon, 20 Jun 2022 08:56:49 -0700 From: Jakub Kicinski To: jdmason@kudzu.us Cc: patchwork-bot+netdevbpf@kernel.org, Wentao_Liang , davem@davemloft.net, edumazet@google.com, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] drivers/net/ethernet/neterion/vxge: Fix a use-after-free bug in vxge-main.c Message-ID: <20220620085649.79989775@kernel.org> In-Reply-To: <165563641313.16837.10425130041626423819.git-patchwork-notify@kernel.org> References: <20220619141454.3881-1-Wentao_Liang_g@163.com> <165563641313.16837.10425130041626423819.git-patchwork-notify@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 On Sun, 19 Jun 2022 11:00:13 +0000 patchwork-bot+netdevbpf@kernel.org wrote: > Hello: >=20 > This patch was applied to netdev/net.git (master) > by David S. Miller : >=20 > On Sun, 19 Jun 2022 22:14:54 +0800 you wrote: > > The pointer vdev points to a memory region adjacent to a net_device > > structure ndev, which is a field of hldev. At line 4740, the invocation > > to vxge_device_unregister unregisters device hldev, and it also releases > > the memory region pointed by vdev->bar0. At line 4743, the freed memory > > region is referenced (i.e., iounmap(vdev->bar0)), resulting in a > > use-after-free vulnerability. We can fix the bug by calling iounmap > > before vxge_device_unregister. > >=20 > > [...] =20 >=20 > Here is the summary with links: > - drivers/net/ethernet/neterion/vxge: Fix a use-after-free bug in vxge-= main.c > https://git.kernel.org/netdev/net/c/8fc74d18639a >=20 > You are awesome, thank you! =F0=9F=98=AD=F0=9F=98=AD=F0=9F=98=AD Jon, if you care about this driver staying upstream please send=20 a correct fix (on top of this change since it's already merged).