Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp386560pxm; Wed, 2 Mar 2022 18:02:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJz7VlqVm6d7bozcWKSseWL6k6DN+Rv3OQQTXfFivdSlKWiHpmwqKwvNIfEX2dgJK82f6M9N X-Received: by 2002:a17:902:e80c:b0:14f:f95c:41ee with SMTP id u12-20020a170902e80c00b0014ff95c41eemr32452349plg.31.1646272948968; Wed, 02 Mar 2022 18:02:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646272948; cv=none; d=google.com; s=arc-20160816; b=P1b2yyGizmIFSBQOu4vXGvtqXCsS/KKLx/yxFykf9yzG5av7WOImHfF5mcLUsdqhEF pt+5xj+kwVqPXHh34P+LfQNSr0no57d9cN5gV7m4XMBbuI96TGNN2/e9GS5nVqX6mC0f qHE3dJD4nQP2y5PCcAL0+T2M+oK/Vp21uvfPil4YjjKypTw2FtE+WbwC95rNqQRRPmJY zmR49bBlmbhisC5+MqaSQHylz47e5E6ImleH1gz6KJ/bHrTGkvp5IxqCwjHTa/cDWAF7 x7QC71IJy1qRO42459E/TIgEczNqAOkUpxcIvsQmL/FEqSk3U72XW/LLgWwwT7LRRMu0 Zc5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=n0fjJbAWabRhUq+51Z9T/B5sdRsBKfhY2r4yHedyP+g=; b=p2RqbkipOh4h4+ihcojqbfBFLLOXZX4ecMW+EFnGFE43OErxRcuY38GY+VR+nlh4da w7CINRAI3HG+oCkFu/+400fc6k7bAti+XgLQ0AyhulzyJ2snEPG1uA6tGYYuk/JAEHgT g+QcqDbv2gcDDGBJwMqp/iCbkVblv4XgIZrwl0pSw/+zxT7eolxejSiArLukKuuijdvK 4Vl7IC9lJ3NsBCnAFjWEzkLiPcY6hwtoBKRqvZ4wNukaq5OpqSYwY49zd/vKI2zrcAKQ Si3mly9PNQVAHQPqE0jFDO1XiSIZJHqwXORzcuYfzoRzg87R4Ep9xK8qKlOunO7fPvm7 nddQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id j7-20020a170903028700b001513a3bfea2si728223plr.292.2022.03.02.18.02.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Mar 2022 18:02:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8B10237009; Wed, 2 Mar 2022 17:59:45 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231492AbiCCCA2 (ORCPT + 99 others); Wed, 2 Mar 2022 21:00:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45692 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231580AbiCCCA0 (ORCPT ); Wed, 2 Mar 2022 21:00:26 -0500 X-Greylist: delayed 932 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 02 Mar 2022 17:59:40 PST Received: from baidu.com (mx24.baidu.com [111.206.215.185]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9884838BD5; Wed, 2 Mar 2022 17:59:40 -0800 (PST) Received: from BC-Mail-Ex06.internal.baidu.com (unknown [172.31.51.46]) by Forcepoint Email with ESMTPS id AFF197E458F57ABBF49E; Thu, 3 Mar 2022 09:44:01 +0800 (CST) Received: from BJHW-MAIL-EX25.internal.baidu.com (10.127.64.40) by BC-Mail-Ex06.internal.baidu.com (172.31.51.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.20; Thu, 3 Mar 2022 09:44:01 +0800 Received: from BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) by BJHW-MAIL-EX25.internal.baidu.com (10.127.64.40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.20; Thu, 3 Mar 2022 09:44:01 +0800 Received: from BJHW-MAIL-EX27.internal.baidu.com ([169.254.58.247]) by BJHW-MAIL-EX27.internal.baidu.com ([169.254.58.247]) with mapi id 15.01.2308.020; Thu, 3 Mar 2022 09:44:01 +0800 From: "Cai,Huoqing" To: Jianglei Nie , "davem@davemloft.net" , "kuba@kernel.org" CC: "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH] net: arc_emac: Fix use after free in arc_mdio_probe() Thread-Topic: [PATCH] net: arc_emac: Fix use after free in arc_mdio_probe() Thread-Index: AQHYLp5LKcUpXpLQGUa95DdJWAWshKys4eVw Date: Thu, 3 Mar 2022 01:44:01 +0000 Message-ID: References: <20220303013022.459154-1-niejianglei2021@163.com> In-Reply-To: <20220303013022.459154-1-niejianglei2021@163.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.18.80.46] Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 SGVsbG8sDQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogSmlhbmdsZWkg TmllIDxuaWVqaWFuZ2xlaTIwMjFAMTYzLmNvbT4NCj4gU2VudDogMjAyMsTqM9TCM8jVIDk6MzAN Cj4gVG86IGRhdmVtQGRhdmVtbG9mdC5uZXQ7IGt1YmFAa2VybmVsLm9yZzsgQ2FpLEh1b3FpbmcN Cj4gQ2M6IG5ldGRldkB2Z2VyLmtlcm5lbC5vcmc7IGxpbnV4LWtlcm5lbEB2Z2VyLmtlcm5lbC5v cmc7IEppYW5nbGVpIE5pZQ0KPiBTdWJqZWN0OiBbUEFUQ0hdIG5ldDogYXJjX2VtYWM6IEZpeCB1 c2UgYWZ0ZXIgZnJlZSBpbiBhcmNfbWRpb19wcm9iZSgpDQo+IA0KPiBJZiBidXMtPnN0YXRlIGlz IGVxdWFsIHRvIE1ESU9CVVNfQUxMT0NBVEVELCBtZGlvYnVzX2ZyZWUoYnVzKSB3aWxsIGZyZWUN Cj4gdGhlICJidXMiLiBCdXQgYnVzLT5uYW1lIGlzIHN0aWxsIHVzZWQgaW4gdGhlIG5leHQgbGlu ZSwgd2hpY2ggd2lsbCBsZWFkDQo+IHRvIGEgdXNlIGFmdGVyIGZyZWUuDQo+IA0KPiBXZSBjYW4g Zml4IGl0IGJ5IGFzc2lnbmluZyBkZXZfZXJyX3Byb2JlKCkgdG8gZGV2X2VyciBiZWZvcmUgdGhl IGJ1cyBpcw0KPiBmcmVlZCB0byBhdm9pZCB0aGUgdWFmLg0KQWRkIGZpeCBsb2cgaGVyZTopDQpG aXhlczogOTViNWZjMDNjMTg5ICgibmV0OiBhcmNfZW1hYzogTWFrZSB1c2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