Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp3304688ybf; Tue, 3 Mar 2020 03:34:16 -0800 (PST) X-Google-Smtp-Source: ADFU+vuqIpEBeJGY1V+W3C7o7ay0WGEELF4Ff/lfeoBzZ7k+hpzMjiYegIwbnCeJa6WOpNTQdAdn X-Received: by 2002:a9d:6655:: with SMTP id q21mr2928309otm.70.1583235256172; Tue, 03 Mar 2020 03:34:16 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1583235256; cv=pass; d=google.com; s=arc-20160816; b=xsVyy1ZS3wpYGfvjyevY0OC6d42+/90g/Ej8nZGOk5J5pc2a0hYkVB1/UMcY9i71Ss C8Fb1Sp/gWKrgmT4T5TBinFfTTQxUi5xe0z+XurQV+i8ZVwEJMrYTucNN58lWzDd4poi RuQ6x5PfzrYY+QYO6yd6rxoxK19qzTWOGclp7t7Ud2e89hYttCC43xc6y9aZ0zN+mAgk nilch2dBHbi3a6qoa27mVJ4AzOZRDj6Tw0ixBJaXe7BFry2/G1e4pKFQg6AEZ06ptf3R nTHnTDIQXKkTJikEIsbEKx5coYGvEXRb0USSCJUeJJWOzo6LyQbmbUZqjLPldZKgPPj7 XiLw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from; bh=Bi9h3sQp5Fjur8g8LCJt1GQ2imEjfSTksNKIpeKdcPs=; b=hNUMJXY7K7wrYv9SUyuYoLO3p/N2VxdIBY1ngby8sGkz/VxKY4iYoyglxPZ3oq0Ek4 AGi33oJQTMn1B1ZKa5lTMgcQk2zHRVJszwZhbH1xn7KtfDcbsjYhxzVbUXehu5mWG1Oh ak2uF6pQ/av+Zcn3CPrDuB2230BvQxJYOpjj6eSooBLcTTeN/kOWVvZtJXG9AjBGR2hH yjwvVTG3he3wkQv1ZdiaOS/NNVDh63Gp6v79J27F9QHupn6+jpq7oXaNl+7HYAGyLzTH VA45oFSE32ydiMgTYovvUlbV+VDG26c8/KoP+LUukq4DJO2dlbWdjZGXPvU+dcklfJzd bYUQ== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m25si8605642otn.208.2020.03.03.03.34.04; Tue, 03 Mar 2020 03:34:16 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728855AbgCCLXh (ORCPT + 99 others); Tue, 3 Mar 2020 06:23:37 -0500 Received: from mail-oln040092067031.outbound.protection.outlook.com ([40.92.67.31]:38373 "EHLO EUR02-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728374AbgCCLXg (ORCPT ); Tue, 3 Mar 2020 06:23:36 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZQejSuuiWG3F8zI58009atzNFO4LoNsslDwRM+t92e38a2rxfRp3SIW07181vTZyKcZ2TaoG9TmZOi4OBulKdPRlJ78KZlPmmL7Gfn6p8fc3eTOZusV2heNaxGPAjX6uQclnS6aX4Y4iYvxLqGiLL9bChi73yyor1Pg/fiKY1ZPPNC4p7p7JN/bbSD2st885cZchVQefOIYOaj85ScHPYqzvFmqed5z9cas1x4Du0FwM+zuUS/2gjC4mm1xVrHsgIWk3sJQYmwxpL9noHjALWi8FKA6+1EafsO6zDhnjgPZFd7nVHAnty722mJyrwunxp0EVZZBCWvCD0+hWbyuhCw== 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=Bi9h3sQp5Fjur8g8LCJt1GQ2imEjfSTksNKIpeKdcPs=; b=Bk8G1SEltKaZYa+ycepVkuCD8+pyEzTLaW6YROpbF7HVzkv/V+uyvHflHu2zPgffoFlif4YZlWnbhBYEpyGPlDr4dpEmmFIUACTfn6fecOW5dHRdztF3JNb48l2II45vYSuO9ebOFAiDXnJgDWXOVGqQOCrY0TWlyuxEOIMM8IjaBsBWFLMxXLcfFKuHXQ5KalDO2yh5457a+fQ+08pnGjp2fA3dD2lLKCcHQyvdc1oDo0NMWI9LuGJ77fXOEp4cq9UgtsscrW4ZvrnKQxGtVrKQrELpTu9hI58GoHA50UEm1Lr7W4d+pmFcS4Vws0KeUassdI4HOJNMnKX39iKjZA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none Received: from HE1EUR02FT037.eop-EUR02.prod.protection.outlook.com (2a01:111:e400:7e1d::35) by HE1EUR02HT165.eop-EUR02.prod.protection.outlook.com (2a01:111:e400:7e1d::239) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2772.15; Tue, 3 Mar 2020 11:23:31 +0000 Received: from AM6PR03MB5170.eurprd03.prod.outlook.com (10.152.10.54) by HE1EUR02FT037.mail.protection.outlook.com (10.152.10.205) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2772.15 via Frontend Transport; Tue, 3 Mar 2020 11:23:31 +0000 Received: from AM6PR03MB5170.eurprd03.prod.outlook.com ([fe80::1956:d274:cab3:b4dd]) by AM6PR03MB5170.eurprd03.prod.outlook.com ([fe80::1956:d274:cab3:b4dd%6]) with mapi id 15.20.2772.019; Tue, 3 Mar 2020 11:23:31 +0000 Received: from [192.168.1.101] (92.77.140.102) by AM0PR01CA0109.eurprd01.prod.exchangelabs.com (2603:10a6:208:168::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2772.14 via Frontend Transport; Tue, 3 Mar 2020 11:23:30 +0000 From: Bernd Edlinger To: Christian Brauner , Kees Cook CC: "Eric W. Biederman" , Jann Horn , Jonathan Corbet , Alexander Viro , Andrew Morton , Alexey Dobriyan , Thomas Gleixner , Oleg Nesterov , Frederic Weisbecker , Andrei Vagin , Ingo Molnar , "Peter Zijlstra (Intel)" , Yuyang Du , David Hildenbrand , Sebastian Andrzej Siewior , Anshuman Khandual , David Howells , James Morris , Greg Kroah-Hartman , Shakeel Butt , Jason Gunthorpe , Christian Kellner , Andrea Arcangeli , Aleksa Sarai , "Dmitry V. Levin" , "linux-doc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-fsdevel@vger.kernel.org" , "linux-mm@kvack.org" , "stable@vger.kernel.org" Subject: Re: [PATCHv4] exec: Fix a deadlock in ptrace Thread-Topic: [PATCHv4] exec: Fix a deadlock in ptrace Thread-Index: AQHV8OBzc5kV6gCKfE+vkD4wYYEirqg2JJ+AgABtUACAABrXAIAADcyA Date: Tue, 3 Mar 2020 11:23:31 +0000 Message-ID: References: <87a74zmfc9.fsf@x220.int.ebiederm.org> <87k142lpfz.fsf@x220.int.ebiederm.org> <875zfmloir.fsf@x220.int.ebiederm.org> <87v9nmjulm.fsf@x220.int.ebiederm.org> <202003021531.C77EF10@keescook> <20200303085802.eqn6jbhwxtmz4j2x@wittgenstein> In-Reply-To: Accept-Language: en-US, en-GB, de-DE Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: AM0PR01CA0109.eurprd01.prod.exchangelabs.com (2603:10a6:208:168::14) To AM6PR03MB5170.eurprd03.prod.outlook.com (2603:10a6:20b:ca::23) x-incomingtopheadermarker: OriginalChecksum:2472DEA6027607CB5A200246027E2FA3F4AA6FCE89AD573462F53366B269DA3A;UpperCasedChecksum:785365FC4FA3CE599406044206362DC58EF921E2C33B7FA8BCBAD834AA23D294;SizeAsReceived:9615;Count:50 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [zw/mh3ppBNYMucu6VHXP8T2ZRIYX3eY6] x-microsoft-original-message-id: <1856cb82-976f-3af3-05e8-4678592183cc@hotmail.de> x-ms-publictraffictype: Email x-incomingheadercount: 50 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: 857cb9f1-f9cb-4c3f-1c12-08d7bf654d8f x-ms-traffictypediagnostic: HE1EUR02HT165: x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 2EDaDqqQVkOIm28fh0lDkXAl3ksrgu+ezMZgm5InqvsfLa9byXwjaSUqyCuAQEg4hcqPzE/zXsGXvsf5IVl2ZBl+pUcTk1ydNYZ2/m8MtV6eL+s/boh8aKk1rvWQFmshOWe6oBt97/RcU3GpB8+L2eboFTgE3AFVkqqiL8NW4cIl1j5cxQnSilxEoAHUBxqT x-ms-exchange-antispam-messagedata: VZENhCCNHMjf4K8P1+qAHGthdd10/VzzDJeU9c9sL4d0fyP9ASdhpkZN3LwVmZKrt01/xdNf7ou/tFZf+xsmCnXgDaqE/+IncE6Lofl+uoCM/LCecVbZpXa82nKmFiVPHmbrs+UDD2vaxtXddw4e3w== 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: outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 857cb9f1-f9cb-4c3f-1c12-08d7bf654d8f X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Mar 2020 11:23:31.3229 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1EUR02HT165 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gMy8zLzIwIDExOjM0IEFNLCBCZXJuZCBFZGxpbmdlciB3cm90ZToNCj4gT24gMy8zLzIwIDk6 NTggQU0sIENocmlzdGlhbiBCcmF1bmVyIHdyb3RlOg0KPj4gU28gb25lIGlzc3VlIEkgc2VlIHdp dGggaGF2aW5nIHRvIHJlYWNxdWlyZSB0aGUgY3JlZF9ndWFyZF9tdXRleCBtaWdodA0KPj4gYmUg dGhhdCB0aGlzIHdvdWxkIGFsbG93IHRhc2tzIGhvbGRpbmcgdGhlIGNyZWRfZ3VhcmRfbXV0ZXgg dG8gYmxvY2sgYQ0KPj4ga2lsbGVkIGV4ZWMnaW5nIHRhc2sgZnJvbSBleGl0aW5nLCByaWdodD8N Cj4+DQo+IA0KPiBZZXMgbWF5YmUsIGJ1dCBJIHRoaW5rIGl0IHdpbGwgbm90IGJlIHdvcnNlIHRo YW4gaXQgaXMgbm93Lg0KPiBTaW5jZSB0aGUgc2Vjb25kIHRpbWUgdGhlIG11dGV4IGlzIGFjcXVp cmVkIGl0IGlzIGRvbmUgd2l0aA0KPiBtdXRleF9sb2NrX2tpbGxhYmxlLCBzbyBhdCBsZWFzdCBr aWxsIC05IHNob3VsZCBnZXQgaXQgdGVybWluYXRlZC4NCj4gDQoNCg0KDQo+ICBzdGF0aWMgdm9p ZCBmcmVlX2Jwcm0oc3RydWN0IGxpbnV4X2JpbnBybSAqYnBybSkNCj4gIHsNCj4gIAlmcmVlX2Fy Z19wYWdlcyhicHJtKTsNCj4gIAlpZiAoYnBybS0+Y3JlZCkgew0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