Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp3386226ybf; Tue, 3 Mar 2020 05:09:04 -0800 (PST) X-Google-Smtp-Source: ADFU+vuIh3koinnvP4E9h4QeF2Ba81BojwWqR+Mhx/Tz6rn5GMJv+k0JJU/R457rcHsbjKsgfBVs X-Received: by 2002:a9d:6744:: with SMTP id w4mr3185918otm.163.1583240944255; Tue, 03 Mar 2020 05:09:04 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1583240944; cv=pass; d=google.com; s=arc-20160816; b=I2txfl/1PVcdQhky45GY0DAFhrzor67mWG++O8x8IrlIipXFXrwTNwcD5WnK0eWP+8 TbropbDVWjyNIg/TNdIplVSXwFUA16slQGp88TI1D5kCANWBhVLbV8ZL1Wl8ZPzqYDMb mE6nqfLqPd9+jqR29kYJq5S4BC8W44Ty7VZRNlWPl6SdAeTBcsAHn44mkGcGwhLxcie7 EgH8ZXv1v1Fy05rUIcxHYdhb+kkue/+kCuH2TZNbyTvDIWYyIpp01F5LY6XP65XmAVI7 f4NzzaQUYhqb55Z1mDHLq9oiZi7jmFWZByFt25p2IZL66ClAWCxVZGrGXlAPmpGVMgvN DD6A== 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=R/7C/pvwOdA+yGXula/YC4w5AxIogJFAEzii63ER/34=; b=jLUEy/AwpWByieAxHXj6QLM0R3ZXyX6RleleT5hFMQmPr3iEHQB568yXy18fYU9YrB EF/iEu+tVRca/VBibrZCChfMtzLhO7MhjF7XpWahlrGJEuWsYQX6MysFFmHI+QuT7H8n GQXizkfKm8lEuGYY/8cPRRMc4I/E/4K33J4nzDRk78cbkUunH8SxT9hAvagungrD+dx9 GiYa8B5CnEwPp7il//n0jCQOyGFGUa1f39D3+ZCE3JO58I1KCPRKTLDaGSIJvBOlyWdF 8ErKXCyXwIcUOeLhQaHPazfyXIICtPNwpR4bLeTV/h1JUoPH4BWcczrHYD7KeCs9oaOm IXWw== 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 b25si7461697otp.212.2020.03.03.05.08.49; Tue, 03 Mar 2020 05:09:04 -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 S1729186AbgCCNDA (ORCPT + 99 others); Tue, 3 Mar 2020 08:03:00 -0500 Received: from mail-oln040092074057.outbound.protection.outlook.com ([40.92.74.57]:14471 "EHLO EUR04-DB3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728041AbgCCNDA (ORCPT ); Tue, 3 Mar 2020 08:03:00 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bPYboE1hw+SNhB9XdS4A+eEqqhl3IKLf/n3rOrO+6yY0FQ/M2VA0iOg07ZqmWEabHETprD+bi6vxCX/QimVTOkEQ8Smy8TXlyLEMiI8v2ER8TT5zn/A6qlXK1k4H1m6WlbfjhWJo7kbK1UEytYjIfrTV9BmwL6DCycGKqf+gqVdif6dcb/d8v8OYZjNSImx3E+mpNhglMI0+CkasoX+MKQqAsnTOtvJICit7WaY5UuTWupbyyYXmoenFGKB49zQ8R4plSOQDRm7uyxUQmzMNOxHelv0tlfknX2BE+lhhGHIYuj132RUpiWZ/piYMy8OH6AbPw21LtYpnnUEL/CdO9Q== 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=R/7C/pvwOdA+yGXula/YC4w5AxIogJFAEzii63ER/34=; b=PrqH55olxEOwuCXGFfcwzmOMWvIQLE7FrFZ1DhibYsXYLspOwbCwfUC8IEPFa6w9gYtxYOr05SM3cX6wOZiHewPBrtlAAnGgfJj3K+70AaiN92m4Ijfw0vUw8NZIya63mB5hGYblIjJjcoeurQtI7sLaOX1xh6c2bYkzYkMfUFw5mBYEW7G8/t6PeK9Ouz+VyNaEmmPwu+3GC3idKqzcSo/nQHEb3zf5+KxjmdT9pWQ4EBZeAabMsXOQMkr2byMRxIaIsykuAtRvKAeveMjdcBvrJ5OgTflJl3qHabfOUoeaFL4mgY+DmZfnb8HwcMI8ApuZAw/PhRc2bPlefpDdlw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none Received: from VI1EUR04FT033.eop-eur04.prod.protection.outlook.com (2a01:111:e400:7e0e::37) by VI1EUR04HT096.eop-eur04.prod.protection.outlook.com (2a01:111:e400:7e0e::210) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2750.19; Tue, 3 Mar 2020 13:02:51 +0000 Received: from AM6PR03MB5170.eurprd03.prod.outlook.com (10.152.28.53) by VI1EUR04FT033.mail.protection.outlook.com (10.152.29.130) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2750.18 via Frontend Transport; Tue, 3 Mar 2020 13:02:51 +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 13:02:51 +0000 Received: from [192.168.1.101] (92.77.140.102) by AM0PR06CA0037.eurprd06.prod.outlook.com (2603:10a6:208:aa::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 13:02:50 +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: [PATCHv5] exec: Fix a deadlock in ptrace Thread-Topic: [PATCHv5] exec: Fix a deadlock in ptrace Thread-Index: AQHV8VwLHjttz8YuA0eRTVSvUK/ceg== Date: Tue, 3 Mar 2020 13:02:51 +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: <20200303085802.eqn6jbhwxtmz4j2x@wittgenstein> Accept-Language: en-US, en-GB, de-DE Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: AM0PR06CA0037.eurprd06.prod.outlook.com (2603:10a6:208:aa::14) To AM6PR03MB5170.eurprd03.prod.outlook.com (2603:10a6:20b:ca::23) x-incomingtopheadermarker: OriginalChecksum:3A9E593F916730446E6B3724A95D918191EAB9F962843CB6E4A8D395A1D5C545;UpperCasedChecksum:7F3C66001225CD05E3033E478368C91FA8BD86D313988ED0F8D15FF8ACFB94B4;SizeAsReceived:9446;Count:50 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [A2XfsmQ/5CM0LopJ+nZrc+vKH/0O+5/w] x-microsoft-original-message-id: x-ms-publictraffictype: Email x-incomingheadercount: 50 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: 5f7270e3-e2fb-45bc-69b9-08d7bf732e01 x-ms-traffictypediagnostic: VI1EUR04HT096: x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: OD2NV1XhwmL/GVkSQrjMCoq2VUC7uLil4AbzD9yPDp5HB80BMPToAzvOSOsryGrQ1RqHr5t6avshoghzgYezThxKvPmgnwC4RzJrtUCIXcV8PUFfljcUY9dZPLyFpX1nzQde+mUh31AeLgGp1qwj5Fwfz2XpuIvXd4lqVUjMLULbqiG7T/V9WwBneDzldkt9 x-ms-exchange-antispam-messagedata: 1UKjL8uwczkk74NkbKmZ71XZb4qLbnniJ3WGLt46/0AJBTee3cx3PySwyKIZkm2ZtoGSxFWstzD37IX15RSjbQjenmYjDl8XKUDvRjYoojOv/U05LoGAmPmRSxHPvNY8ssseyP4/OgUhf4woyhClvg== x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="utf-8" Content-ID: <155893300113B54C8A26153B7F1E7563@eurprd03.prod.outlook.com> 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: 5f7270e3-e2fb-45bc-69b9-08d7bf732e01 X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Mar 2020 13:02:51.4960 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1EUR04HT096 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org VGhpcyBmaXhlcyBhIGRlYWRsb2NrIGluIHRoZSB0cmFjZXIgd2hlbiB0cmFjaW5nIGEgbXVsdGkt dGhyZWFkZWQNCmFwcGxpY2F0aW9uIHRoYXQgY2FsbHMgZXhlY3ZlIHdoaWxlIG1vcmUgdGhhbiBv bmUgdGhyZWFkIGFyZSBydW5uaW5nLg0KDQpJIG9ic2VydmVkIHRoYXQgd2hlbiBydW5uaW5nIHN0 cmFjZSBvbiB0aGUgZ2NjIHRlc3Qgc3VpdGUsIGl0IGFsd2F5cw0KYmxvY2tzIGFmdGVyIGEgd2hp bGUsIHdoZW4gZXhwZWN0IGNhbGxzIGV4ZWN2ZSwgYmVjYXVzZSBvdGhlciB0aHJlYWRzDQpoYXZl IHRvIGJlIHRlcm1pbmF0ZWQuICBUaGV5IHNlbmQgcHRyYWNlIGV2ZW50cywgYnV0IHRoZSBzdHJh Y2UgaXMgbm8NCmxvbmdlciBhYmxlIHRvIHJlc3BvbmQsIHNpbmNlIGl0IGlzIGJsb2NrZWQgaW4g dm1fYWNjZXNzLg0KDQpUaGUgZGVhZGxvY2sgaXMgYWx3YXlzIGhhcHBlbmluZyB3aGVuIHN0cmFj ZSBuZWVkcyB0byBhY2Nlc3MgdGhlDQp0cmFjZWVzIHByb2Nlc3MgbW1hcCwgd2hpbGUgYW5vdGhl ciB0aHJlYWQgaW4gdGhlIHRyYWNlZSBzdGFydHMgdG8NCmV4ZWN2ZSBhIGNoaWxkIHByb2Nlc3Ms IGJ1dCB0aGF0IGNhbm5vdCBjb250aW51ZSB1bnRpbCB0aGUNClBUUkFDRV9F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HwgMTkgKysrKystLS0tDQogZnMvZXhlYy5jICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCA0MSArKysrKysrKysrKysrKysrLS0tDQog aW5jbHVkZS9saW51eC9iaW5mbXRzLmggICAgICAgICAgICAgICAgICAgfCAgNiArKy0NCiBpbmNs dWRlL2xpbnV4L3NjaGVkL3NpZ25hbC5oICAgICAgICAgICAgICB8ICAyICsNCiBrZXJuZWwvY3Jl ZC5jICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8ICAyICstDQoga2VybmVsL3B0cmFjZS5j ICAgICAgICAgICAgICAgICAgICAgICAgICAgfCAgNCArKw0KIGtlcm5lbC9zZWNjb21wLmMgICAg ICAgICAgICAgICAgICAgICAgICAgIHwgIDMgKysNCiBtbS9wcm9jZXNzX3ZtX2FjY2Vzcy5jICAg ICAgICAgICAgICAgICAgICB8ICAyICstDQogdG9vbHMvdGVzdGluZy9zZWxmdGVzdHMvcHRyYWNl L01ha2VmaWxlICAgfCAgNCArLQ0KIHRvb2xzL3Rlc3Rpbmcvc2VsZnRlc3RzL3B0cmFjZS92bWFj Y2Vzcy5jIHwgNjYgKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKw0KIDEwIGZpbGVzIGNo YW5nZWQsIDEzMCBpbnNlcnRpb25zKCspLCAxOSBkZWxldGlvbnMoLSkNCiBjcmVhdGUgbW9kZSAx MDA2NDQgdG9vbHMvdGVzdGluZy9zZWxmdGVzdHMvcHRyYWNlL3ZtYWNjZXNzLmMNCg0KdjI6IGFk ZHMgYSB0ZXN0IGNhc2Ugd2hpY2ggcGFzc2VzIHdoZW4gdGhpcyBwYXRjaCBpcyBhcHBsaWVkLg0K djM6IGZpeGVzIHRoZSBpc3N1ZSB3aXRob3V0IGludHJvZHVjaW5nIGEgbmV3IG11dGV4Lg0KdjQ6 IGZpeGVzIG9uZSBjb21tZW50IGFuZCBhIGZvcm1hdHRpbmcgaXNzdWUgZm91bmQgYnkgY2hlY2tw YXRjaC5wb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