From patchwork Tue Jun 25 14:02:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Wang,Li(ACG Cloud)" X-Patchwork-Id: 1122078 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=openvswitch.org (client-ip=140.211.169.12; helo=mail.linuxfoundation.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=baidu.com Received: from mail.linuxfoundation.org (mail.linuxfoundation.org [140.211.169.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 45Y7XV62SLz9s8m for ; Wed, 26 Jun 2019 00:17:30 +1000 (AEST) Received: from mail.linux-foundation.org (localhost [127.0.0.1]) by mail.linuxfoundation.org (Postfix) with ESMTP id 40F8CF7F; Tue, 25 Jun 2019 14:17:28 +0000 (UTC) X-Original-To: ovs-dev@openvswitch.org Delivered-To: ovs-dev@mail.linuxfoundation.org Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id 5C6ACF68 for ; Tue, 25 Jun 2019 14:17:26 +0000 (UTC) X-Greylist: delayed 00:15:09 by SQLgrey-1.7.6 Received: from baidu.com (mx21.baidu.com [220.181.3.85]) by smtp1.linuxfoundation.org (Postfix) with ESMTP id AED9B82C for ; Tue, 25 Jun 2019 14:17:25 +0000 (UTC) Received: from BC-Mail-Ex07.internal.baidu.com (unknown [172.31.40.47]) by Forcepoint Email with ESMTPS id 9195F81B651A2 for ; Tue, 25 Jun 2019 22:02:10 +0800 (CST) Received: from BC-Mail-EX08.internal.baidu.com (172.31.40.48) by BC-Mail-EX07.internal.baidu.com (172.31.40.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1531.3; Tue, 25 Jun 2019 22:02:11 +0800 Received: from BC-Mail-EX08.internal.baidu.com ([172.31.40.48]) by BC-Mail-EX08.internal.baidu.com ([172.31.40.48]) with mapi id 15.01.1531.010; Tue, 25 Jun 2019 22:02:10 +0800 From: "Wang,Li(ACG Cloud)" To: "ovs-dev@openvswitch.org" Thread-Topic: [PATCH] ovs-rcu: Fix potential double free issue Thread-Index: AQHVK06vGgSol33U3EOKGoo5nzCfwKasZlQE Date: Tue, 25 Jun 2019 14:02:10 +0000 Message-ID: <1f8cf95840914d539a3a839a3feaaa11@baidu.com> References: <1561464501-34493-1-git-send-email-wangli39@baidu.com> In-Reply-To: <1561464501-34493-1-git-send-email-wangli39@baidu.com> Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [125.41.232.3] x-baidu-bdmsfe-datecheck: 1_BC-Mail-Ex07_2019-06-25 22:02:11:347 x-baidu-bdmsfe-viruscheck: BC-Mail-Ex07_GRAY_Inside_WithoutAtta_2019-06-25 22:02:11:332 MIME-Version: 1.0 X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,HTML_MESSAGE, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on smtp1.linux-foundation.org X-Content-Filtered-By: Mailman/MimeDel 2.1.12 Subject: [ovs-dev] =?gb2312?b?tPC4tDogW1BBVENIXSBvdnMtcmN1OiBGaXggcG90ZW50?= =?gb2312?b?aWFsIGRvdWJsZSBmcmVlIGlzc3Vl?= X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: ovs-dev-bounces@openvswitch.org Errors-To: ovs-dev-bounces@openvswitch.org I made a mistake, please ignore this. diff --git a/lib/ovs-rcu.c b/lib/ovs-rcu.c index ebc8120..3adfe5c 100644 --- a/lib/ovs-rcu.c +++ b/lib/ovs-rcu.c @@ -134,7 +134,6 @@ ovsrcu_quiesce_start(void) perthread = pthread_getspecific(perthread_key); if (perthread) { pthread_setspecific(perthread_key, NULL); - ovsrcu_unregister__(perthread); } ovsrcu_quiesced();