Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp887627pxb; Thu, 15 Apr 2021 08:48:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzaw2i28sY1PDUymvfXfApVte56H/rSdNybYbu/GLqbH+2obFPFgTVdCRPxdB7VKYVclaq4 X-Received: by 2002:a63:5807:: with SMTP id m7mr3978074pgb.73.1618501722120; Thu, 15 Apr 2021 08:48:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1618501722; cv=pass; d=google.com; s=arc-20160816; b=zCHHTPrnI2J4deTbwMWmzOROFEhl0tUNGdksfNcCwA7PZjKX893RdlDGmW1fxw3Hxl MRt9+tLdcQbyaJV+5xkGW3GqUP0ct8u3ha2BkeWL7vMq9TNkCAFrbVsg2sRGwiWkI3Ym tDquwknIEi7Q4dhuLQiDpElJet2b0n408c/oLx1MSYgHmWAmoyo3EF/JDULhyvaegpc9 dnaM++tNB4ojmmdsMtsQ421jmMRosRIlvuyviwz+f9kG4SIK1/ZKcO9cMNMOtIXjkj0T tuF7PQ1S3cS0sZVWExCn/vaUxnv4Z/cmWRBSh0BZ9RyUlDr6A1T+d1ne+JmkSfi02wQf W0XA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-id:content-language:accept-language:message-id:date :thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=j9wOH05nckNChEhVnt+i67BKp+Y/HSijFJgkdRsFaoQ=; b=i5mZj8bGL9CEbAIik/O7/CUQT8fuXR3qpzmzgxzErNiUNcwcddEcvQE49PVKwZFfW5 bCaRJr1SetOYhTrfv2mCgR6WaedHFX4l4y03JeMcvmjXItUetJL0CtHu5FrUAa7IARTR 4pmi0tlZb9zAzlan0FcDgtsJBtuSsSgzvymMvA0YZFdoGt9Af4h4zX/yf3xWdFvkQ8qr pbVNSuuC26O09pVZZlyVukKGZo6iUz/YktrxG+j0H3JixrMSP2r+WifJixWlbPCHBhy/ vkh/bSwh7/sVMovGbuXsB6MTT8frkTQONNKiBhDFtiJSnBKdPHhzH5O6t/XK4BiJljvt wkDA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@purdue0.onmicrosoft.com header.s=selector2-purdue0-onmicrosoft-com header.b="p/lzVq4U"; arc=pass (i=1 spf=pass spfdomain=purdue.edu dkim=pass dkdomain=purdue.edu dmarc=pass fromdomain=purdue.edu); 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=fail (p=NONE sp=NONE dis=NONE) header.from=purdue.edu Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p7si3651235plk.163.2021.04.15.08.48.18; Thu, 15 Apr 2021 08:48:42 -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=@purdue0.onmicrosoft.com header.s=selector2-purdue0-onmicrosoft-com header.b="p/lzVq4U"; arc=pass (i=1 spf=pass spfdomain=purdue.edu dkim=pass dkdomain=purdue.edu dmarc=pass fromdomain=purdue.edu); 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=fail (p=NONE sp=NONE dis=NONE) header.from=purdue.edu Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233938AbhDOPrr (ORCPT + 99 others); Thu, 15 Apr 2021 11:47:47 -0400 Received: from mail-eopbgr760098.outbound.protection.outlook.com ([40.107.76.98]:14662 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S233518AbhDOPrp (ORCPT ); Thu, 15 Apr 2021 11:47:45 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CRyHRzz9fa/phTdL5iKRs55Hzno9hs4BgFm0WVht+7OkKc7tyPZFLWG117mPvZjC3nJFGkRG8o7+gFRNSHEv+78KOPl1T1jNpnal6jwnqJs2bKD16c0Dpq78DBH4bCDNAjK/VPesSiOsRo6Bg4P+PbP11vgLUA73Zy3hDRK/U9N7CRHYNmPqwAtqowjka06NTh4+yHyWUjeaVF9UkaH/CmINvObLdh8gijzXcvB680mFVC5HHsU3RBZxFW9HlNsyBMUglI3ngVVu++pVEKGw6GI8MpjNINVRW4rYTIW13fThNjeBT4oqo7pQVGQjVcfU2rAJ/XDK74KqfLPZhd/VmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=j9wOH05nckNChEhVnt+i67BKp+Y/HSijFJgkdRsFaoQ=; b=J/gVI9VXlTdiQspO0D2pnckWEjeAEndUmRj8jqnJzTJgEvma47QrYB7zpmv5G+qWT7Pfe7yE+Gu1q7GM0QfoA2G+2BM0YfJrPNc3kXNAV4RONryBmGHhOS9dfneBWnTxKzmC3AXauDqcUP6rS52K1sFh/Ph7WaHENFt2s8X9Gc412PMEY1HP/nbGS1Z4fhPRsTzP0MPA5+16tzmjLMDia+ruKeqnCt+Fro+2oLtci6fsC5ICskj1tQgqg0nfWXgHL7DUxu+ULyJ2YYLy6AFeyijca85hf07pbahK7U+hf0DFdo9zy817D9URJFXK0mvWa22nj/owh5H8R8GJlNkZjA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=purdue.edu; dmarc=pass action=none header.from=purdue.edu; dkim=pass header.d=purdue.edu; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=purdue0.onmicrosoft.com; s=selector2-purdue0-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=j9wOH05nckNChEhVnt+i67BKp+Y/HSijFJgkdRsFaoQ=; b=p/lzVq4UXAJ3Tow7J6e0+2Uxkp3rzCRQeLt1BqA3/FK+//wCTltJHzoSqV7G46qwwS68sroHYU3GILzKtslV5m1YPqSKVy1WGC1uLkMHlC/GXboln18Qs596UVYD67/SwgUQ3SljLOpw6GKPYbIvJcQL4KE/U3NJDleGR/582wU= Received: from CH2PR22MB2056.namprd22.prod.outlook.com (2603:10b6:610:5d::11) by CH2PR22MB1878.namprd22.prod.outlook.com (2603:10b6:610:8c::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3999.29; Thu, 15 Apr 2021 15:47:21 +0000 Received: from CH2PR22MB2056.namprd22.prod.outlook.com ([fe80::fd2f:cbcc:563b:aa4f]) by CH2PR22MB2056.namprd22.prod.outlook.com ([fe80::fd2f:cbcc:563b:aa4f%5]) with mapi id 15.20.4042.016; Thu, 15 Apr 2021 15:47:21 +0000 From: "Gong, Sishuai" To: "edumazet@google.com" , "davem@davemloft.net" , "yoshfuji@linux-ipv6.org" , "dsahern@kernel.org" , "kuba@kernel.org" CC: Linux Kernel Network Developers , "linux-kernel@vger.kernel.org" Subject: [PROBLEM] a data race between tcp_set_default_congestion_control() and tcp_set_congestion_control() Thread-Topic: [PROBLEM] a data race between tcp_set_default_congestion_control() and tcp_set_congestion_control() Thread-Index: AQHXMg6fONH72Y/f+kCKC7WPm5facA== Date: Thu, 15 Apr 2021 15:47:21 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [66.253.158.155] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: e98dc2bc-a54d-4535-c355-08d90025c210 x-ms-traffictypediagnostic: CH2PR22MB1878: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: HzAZht/XyticYswA3eBy0FtXYN0W41zKZjSTwK3Kdc3EC+PheeGP+aqw1keX6Qj0/Lp8Fy26OkQrrIYH+0uwOboMEWYuBsaF6Cp6ZrzToMUF2fbkLOu0oOMIWFopOsaZYSs8U+SGIXOZLZSthpw3BObJGFJus6zz91VqtgeIE302xDNLnkYC1SASpVFn3Z1W0vgkVjVcmrZ+eb1HZYZ8ysFpVDka1gn+myVSpkJ+Th6bVnTkms13cKMkhP5Mt6gRYEbvTS+J9mNpR8omElyAJBae+L1jFyVfU8W78wrzIjaR/oN6jtpx5lbz4RscS5tKJjURPcTGB9ApsjOpTXNnJ5c3y/yiUyYdRbXJqXcVzrY9HTUmvxDPDI1iu0RKfJLhdKeDw2beCRxjnfeorpi21AUCtAY5OOJYsYM2H3Nni/gOpa9oXaSb90qJeRPjggYSciSj0TSQkMJzzfqGDOfeOdV43cPYDEU5kTzAGk7vDaLDcwdC0y2ODqckQWJc53Ncp4YiL2GqTMdGYA0Dd4cI4DHwZczoJTvHnNJ8v0EfhMx8vuAiQHFyYH5C14JGzsyz5NqNbjcagt9PU1NfwVzguVGlL8BE6KJkwQl+6wA9+1QNjNZUFSB/a+8PayEKIcVvANgCCGWVK0pqYT/gHralhnn5wgCpgbprkNFxq8fPD7A= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CH2PR22MB2056.namprd22.prod.outlook.com;PTR:;CAT:NONE;SFS:(396003)(366004)(346002)(136003)(376002)(39860400002)(2616005)(38100700002)(86362001)(4326008)(75432002)(83380400001)(5660300002)(66476007)(186003)(66446008)(66946007)(54906003)(6486002)(122000001)(8936002)(478600001)(8676002)(26005)(6506007)(66556008)(33656002)(786003)(316002)(76116006)(64756008)(36756003)(71200400001)(110136005)(2906002)(6512007)(45980500001);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: =?utf-8?B?RitmT0IybHBnVGRnNVN1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x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: purdue.edu X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CH2PR22MB2056.namprd22.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: e98dc2bc-a54d-4535-c355-08d90025c210 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Apr 2021 15:47:21.7601 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4130bd39-7c53-419c-b1e5-8758d6d63f21 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: z8rNHYl5kVPdANnpn/XAU2VwgaOdAeQ0Ikoy7ySpdC/cMQ867jM9mgQd0QgeSD6WCYy/AGI5Y7QCCZViPVPWaA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR22MB1878 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGksDQoNCldlIGZvdW5kIGEgZGF0YSByYWNlIGJldHdlZW4gdGNwX3NldF9kZWZhdWx0X2Nvbmdl c3Rpb25fY29udHJvbCgpIGFuZCB0Y3Bfc2V0X2Nvbmdlc3Rpb25fY29udHJvbCgpIGluIGxpbnV4 LTUuMTItcmMzLiANCkluIGdlbmVyYWwsIHdoZW4gdGNwX3NldF9jb25nZXN0aW9uX2NvbnRyb2wo KSBpcyByZWFkaW5nIGNhLT5mbGFncyB3aXRoIGEgbG9jayBncmFiYmVkLCB0Y3Bfc2V0X2RlZmF1 bHRfY29uZ2VzdGlvbl9jb250cm9sKCkgDQptYXkgYmUgdXBkYXRpbmcgY2EtPmZsYWdzIGF0IHRo ZSBzYW1lIHRpbWUsIGFzIHNob3duIGJlbG93Lg0KDQpXaGVuIHRoZSB3cml0ZXIgYW5kIHJlYWRl ciBhcmUgcnVubmluZyBwYXJhbGxlbCwgdG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