Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3466006pxp; Tue, 8 Mar 2022 15:11:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJy85ICCzwsoMUaHDiuS8/Jpegba3FYQPNB8l7BjoJdep1lSGuLUQT2clAEI+vMvVTlPRXaQ X-Received: by 2002:a63:1d6:0:b0:380:a063:660c with SMTP id 205-20020a6301d6000000b00380a063660cmr2864609pgb.149.1646781099622; Tue, 08 Mar 2022 15:11:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646781099; cv=none; d=google.com; s=arc-20160816; b=bpv5EDecE/SqLUt64a8/FaKrBw4mKFXcLO4b11Ry0G2uEP+5BtWy7p6e7ZLa+ysIjg 5ydeGxSKuzRvneaALuUpmBR9w1MNv1PlpVoLIchIIWAHkC3CgOd6OhDoVYWgNKHSg1xL 3TH9YNc8bz98+U2s3RheaB1jg3Fy7a50/YbUR55aKvjjuGnQyPxSrUGxV0P/GBSex4l/ Yp+tB5FJ+TPuBPjgLg3wxeeYEm75xosa4dt4HvGgPoui16YvR/xue6zM53LcfKFS+5IK Y+UOmQ+nM522E3RipOZKS4JEzOxG7KpDTtCZSCKogAKXMYVv4LouQhcx/Y6EiV1iapd2 pkaA== 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=Y2tHYtwkfcYYvE+9Dlzc+1huBLIVYafpLQpTBdzDYg0=; b=bqigcrmaDygfZLejaRFHncJqKlHc7xFhZ79kMsD5ksc5UxzABzsVjZfg2d/39YsoIE aDqT84gRmJiZwdjwjFhBaxx/QLVG0sKyfNqGJJNBD3Y1xAj6hC3xPjHT6wvt/hrXDvsy u21FR/NduQ9W04PQ1kZBsgmeyxNJMnepV7RmK+uTZzuAwrHn/rX8d04MRa78I4uRw3TD z2vnuMqwZ7mUrDAPaLodZ6ZmyuIMjhxF4H9+hu2olyKaSUqqIWNhcgrNKQq8zgeMRchm S9GlFKC6fn5nDh0KAruFZZuyrOGBNS+iqvfExlVBnIfSXg8Qyjd0FMTZgB9rxwqye+AR xO+A== 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 i9-20020a63a849000000b0036ff8789c9bsi199257pgp.25.2022.03.08.15.11.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Mar 2022 15:11:39 -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 A931C694B4; Tue, 8 Mar 2022 15:08:08 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347316AbiCHOHo (ORCPT + 99 others); Tue, 8 Mar 2022 09:07:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53180 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231695AbiCHOHn (ORCPT ); Tue, 8 Mar 2022 09:07:43 -0500 X-Greylist: delayed 962 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 08 Mar 2022 06:06:47 PST Received: from baidu.com (mx22.baidu.com [220.181.50.185]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 393B749F96; Tue, 8 Mar 2022 06:06:47 -0800 (PST) Received: from BC-Mail-Ex25.internal.baidu.com (unknown [172.31.51.19]) by Forcepoint Email with ESMTPS id 7B871BF1EFEB84AEFC6F; Tue, 8 Mar 2022 21:50:40 +0800 (CST) Received: from BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) by BC-Mail-Ex25.internal.baidu.com (172.31.51.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.20; Tue, 8 Mar 2022 21:50:40 +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; Tue, 8 Mar 2022 21:50:40 +0800 From: "Cai,Huoqing" To: Andrew Lunn , Jianglei Nie CC: "davem@davemloft.net" , "kuba@kernel.org" , "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: AQHYMt0Z8HFN3hFhWU29qEuTfsTlJqy0+PAAgACGxdA= Date: Tue, 8 Mar 2022 13:50:40 +0000 Message-ID: References: <20220308111005.4953-1-niejianglei2021@163.com> In-Reply-To: Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.18.80.106] 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 SGVsbG8sDQoNCj4gLS0tLS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