Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp2628078ybf; Mon, 2 Mar 2020 12:29:20 -0800 (PST) X-Google-Smtp-Source: ADFU+vutWiCkrRjILUSHY8KRtTyQVwfRs5DH2gKH33Yr53qGh8ubHVCiiwaSNNs7LVQLicrvva7z X-Received: by 2002:a05:6808:103:: with SMTP id b3mr175656oie.46.1583180960693; Mon, 02 Mar 2020 12:29:20 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1583180960; cv=pass; d=google.com; s=arc-20160816; b=MSVBhc99NSkhMxnd/v6pX7UTFwS/PXI+Ts4uu9jc3yJ+10CLVd5+E2Q48LlZrkXFm9 f7JP5OuXg8JuyWPDfX/VKRc8jceAdKEmmuQZFqfEkS/Fi+XjExKuuHI49grmjaiZP+Fl 2sOGD0j1yevg9dHQZ55Sn98Whx9JSJow9g7/AXASLjVF0G/qImMTfgmL3u7LgWAkt2ih 8O/nOF2oL16q79mzYPn/sXBeSit70Tcv2tJMBb/6YmG3NGa8Nl1m0OO5B/nvdh3wDa1t AoFHhzl0khjMTR8NZTvbXWl63GvWBeBfq3meSFEytgTYUbKGKR3lA5lMt8V/zN+6BOI6 bI3Q== 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=9WItZN0YFIgwuGDkDEsDC/sqmYi0bb5gVZBC8nxRJ/E=; b=V075qaFx9ndSMM9EUdCTMGIdQhik0EmY9QTYNncseqb9L+4eiy05eubdYNTv6NHINg 9v53LgX9hRmzJUxzlxpJALdjqmjWw+l/isxGmYxPDVVIunxHKyb9CpfIr3x11iKhuqcP gbrZCvyN0T1hWMC1yFfKLFNYQIjZXLE8JOW7tB/327SlmbkfZaPyy7I4xzBeL7DFkxhw h7OYAJSg8VjhRWkjY4WFKp0Iv1G4jSaqDxipZqgVioaF473qAeyqsP1gQYvT8sNYf3EY gy6MnaIvypfS021+YMsNZ3FP1/F3wCyeedfB1iUYWmQkJlZMv1DXh3xdCO0ZikIflQDu lCKA== 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 z62si6516321oiz.271.2020.03.02.12.29.08; Mon, 02 Mar 2020 12:29:20 -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 S1726740AbgCBU3C (ORCPT + 99 others); Mon, 2 Mar 2020 15:29:02 -0500 Received: from mail-oln040092064044.outbound.protection.outlook.com ([40.92.64.44]:44199 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725911AbgCBU3B (ORCPT ); Mon, 2 Mar 2020 15:29:01 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fTNljQOlo/VItxs1j0Fi5N+zMmwEKrqF/1+8tFozmgzXtESspeEJpb5VmBpIcZfahl5fah5AsvmqWXqLH7zLFuSEGuTQacFAM3r3xW06rKdQi+2l4IG8jEGKHcJxoVJ2pTCwVHsyCPqKHqOLSPU6gSG0MgGE4slDpOuhQzKZeHq1RJZeDyXL2nI8H43HRmWPVxD4nklr7H+xrmNy8ye4UHV4X/GmJsH+NwGV1yyZp8yiX/8JTD7x2Ka00HVwdQLIFLmTU8N+Ap2/eUfkVwnhauiBNyMwGO8sdMvXlgAIjS7ilBQ71fSQEReTtLfy1WrZokLUoNQBrLGqK2jiYVkFZw== 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=9WItZN0YFIgwuGDkDEsDC/sqmYi0bb5gVZBC8nxRJ/E=; b=Q9hvojDEjJ1G9f9SF1D5LgoYkcXymvG3skAbRhSbRQLgG1JG418+RTblZpn4Hc6MpdbAIaru5L0g/nknkpDNhEPEbE4yXu3M8AmabzDrzaUpmv18de10p380TRRpuabCTW+20xmtemAknc6Ug47hy8ZSjSROwGi2RrKbGGAufIkLKAT9cAI9vtZUATBmgk4eFE9i0DDivNVw9ziQ6Ez2L818yyBIkAfWdxoYus4tdvpWb4AJ1DHvz5sQj7W+tTJPcc/P06a/L/dHG5nYyEysRUVXByJT2OZIN2kRcL5PLcCmneafQSwlAgQF0PEIfOf0CIBwi/qA/szYW+wfBo1LDw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none Received: from HE1EUR01FT058.eop-EUR01.prod.protection.outlook.com (2a01:111:e400:7e18::35) by HE1EUR01HT174.eop-EUR01.prod.protection.outlook.com (2a01:111:e400:7e18::124) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2772.15; Mon, 2 Mar 2020 20:28:56 +0000 Received: from AM6PR03MB5170.eurprd03.prod.outlook.com (10.152.0.58) by HE1EUR01FT058.mail.protection.outlook.com (10.152.0.218) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2772.15 via Frontend Transport; Mon, 2 Mar 2020 20:28:56 +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; Mon, 2 Mar 2020 20:28:56 +0000 Received: from [192.168.1.101] (92.77.140.102) by AM0PR0102CA0023.eurprd01.prod.exchangelabs.com (2603:10a6:208:14::36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2772.15 via Frontend Transport; Mon, 2 Mar 2020 20:28:54 +0000 From: Bernd Edlinger To: Jann Horn , Christian Brauner CC: "Eric W. Biederman" , James Morris , 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 , Kees Cook , 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" , linux-security-module Subject: Re: [PATCHv3] exec: Fix a deadlock in ptrace Thread-Topic: [PATCHv3] exec: Fix a deadlock in ptrace Thread-Index: AQHV8M6l6N/OOmCoxkO4zYjKB9YU8Kg1wMQA Date: Mon, 2 Mar 2020 20:28:56 +0000 Message-ID: References: <20200301185244.zkofjus6xtgkx4s3@wittgenstein> <87a74zmfc9.fsf@x220.int.ebiederm.org> <87k142lpfz.fsf@x220.int.ebiederm.org> <875zfmloir.fsf@x220.int.ebiederm.org> <5e5d45a3.1c69fb81.f99ac.0806@mx.google.com> 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: AM0PR0102CA0023.eurprd01.prod.exchangelabs.com (2603:10a6:208:14::36) To AM6PR03MB5170.eurprd03.prod.outlook.com (2603:10a6:20b:ca::23) x-incomingtopheadermarker: OriginalChecksum:787DD6075D33EEEDAEE3E26861DF4223AC06363B82E577E006F6A557BB55324F;UpperCasedChecksum:2B76CB72DBD1AAE991D4CB4B16B2532DEF00E963AA4A4A30B3351A60950B7833;SizeAsReceived:9897;Count:50 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [8hP23OIvzx9SHL5EUzvkrbLR1Am349/n] x-microsoft-original-message-id: <2413bf2b-6663-892d-4898-3ff2cc543d30@hotmail.de> x-ms-publictraffictype: Email x-incomingheadercount: 50 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: b9ae2766-c41a-4bd8-5934-08d7bee854a8 x-ms-traffictypediagnostic: HE1EUR01HT174: x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: SKuFG1FQpeLCmrj5VXY87qA6kKnLO/nBsr9IKsmshVGR34OdWvSQyhaIPBlFhLTEL6e+xF34B2obzfLm48T7UAyCV4nmj+KmkY/jYgUdt6JHmLL5Z3sQptdTmVRAjB3BF4mGBnXdIVONfpf7T+H37Ln8tC8Zf1wPU2WZUDcTCaR8FhAwADkIkRfBpwkdzpvP x-ms-exchange-antispam-messagedata: +jwvXQKamDUFGuKNA03o7tEV+/tc4QqAg7aKpBanW2ksZ6pDii2n+opRdV2pDmq9eHWso+4egPZ902wAp4S0BblV+N5V0Czy2DQZH1mbO9NuPb2RN1F1atay1BJl7akmtY4QnLWEp5Mp4zqrhz71Pw== x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="utf-8" Content-ID: <273077F5A4E6CE4C8F92F03DD763FF0F@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: b9ae2766-c41a-4bd8-5934-08d7bee854a8 X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Mar 2020 20:28:56.1301 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1EUR01HT174 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gMy8yLzIwIDk6MTAgUE0sIEJlcm5kIEVkbGluZ2VyIHdyb3RlOg0KPiAtLS0gYS9pbmNsdWRl L2xpbnV4L2JpbmZtdHMuaA0KPiArKysgYi9pbmNsdWRlL2xpbnV4L2JpbmZtdHMuaA0KPiBAQCAt NDQsNyArNDQsMTEgQEAgc3RydWN0IGxpbnV4X2JpbnBybSB7DQo+ICAJCSAqIGV4ZWMgaGFzIGhh cHBlbmVkLiBVc2VkIHRvIHNhbml0aXplIGV4ZWN1dGlvbiBlbnZpcm9ubWVudA0KPiAgCQkgKiBh bmQgdG8gc2V0IEFUX1NFQ1VSRSBhdXh2IGZvciBnbGliYy4NCj4gIAkJICovDQo+IC0JCXNlY3Vy ZWV4ZWM6MTsNCj4gKwkJc2VjdXJlZXhlYzoxLA0KPiArCQkvKg0KPiArCQkgKiBTZXQgYnkgZmx1 c2hfb2xkX2V4ZWMsIHdoZW4gdGhlIGNyZWRfY2hhbmdlX211dGV4IGlzIHRha2VuLg0KDQpPb3Bz LCBtaXNzZWQgdG8gdXBkYXRlIHRoaXMgY29tbWVudCwgc2hvdWxkIGJlICJ3aGVuIHRoZSBjcmVk X2d1YXJkX211dGV4IGlzIHRha2VuIi4NCg0KSSdsbCBzZW5kIGEgbmV3IHBhdGNoIGxhdGVyLg0K DQpCZXJuZC4NCg0KPiArCQkgKi8NCj4gKwkJY2FsbGVkX2ZsdXNoX29sZF9leGVjOjE7DQo+ICAj aWZkZWYgX19hbHBoYV9fDQo+ICAJdW5zaWduZWQgaW50IHRhc286MTsNCj4gICNlbmRpZg0K