Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp586951ybl; Wed, 14 Aug 2019 02:52:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqypEyfWqSTbpHcEQ7qx5htMf+8UmdZBlOzL21q7Urbm6Dyivh1pq6nO7FYWVLCEqNDqUvkp X-Received: by 2002:a63:590f:: with SMTP id n15mr38350077pgb.190.1565776355217; Wed, 14 Aug 2019 02:52:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1565776355; cv=pass; d=google.com; s=arc-20160816; b=djaLXKwu0zVLrpeyrT+neaFB+VZJeruXssf9HAnYRS2RPgHh1vKTl/PMdP2qQBzTcg cD6pVyp/WdtzvrwPhvy9rrh7KAlMpX7nEUqMWnwJtzYzK+gn4BcUu6lt0lhieWM8xfof dN/AKdqTHM7ScoQNxj6uccchuQoOk4KmpoE/G1EzbsQOd9FGWhaodqsyqhREJB1g6u9t QwJcGYpYTgHca/gdVDopo0tPnIY/LkjeKJCW5EV0gqLKMmCR9+EUXk9vUUHHd6tIEx7i ZjbWF6zpA/VIR2vD55xjX7R/HNykfhE7mMGSh+QCjPF8hiERBzuF883ULKvB2/i5Z5Tn eLEw== 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:user-agent:content-language:accept-language:in-reply-to :references:message-id:date:thread-index:thread-topic:subject:cc:to :from:dkim-signature; bh=QFUyq921WRy9WQzWlBZuwEpU0NpSxRB9HJrKw7rxQkA=; b=YOF4IYhaxJRMpw5CPXiFEMaogtVfgmduGcqz76ywD0iQ1wZiaNHcICgv4DF+nX+z+F Sy8Pjrlxg17uAEfVacgS0qpteO0b2CMYyQJquBjpfmGAvsQ465HesNXs7xTzlK2BWL5K nA6wp6M/vqQ2sVJRnKmRr0yeWjK4Xbc9S9JZhZUujdEehMh+7Js/qN8FXpj39WdL3erG BKgtfR4dFSLtzcnhzfDyn6ATiUXVUrJEu+c1JkMREz7VMaRQEbmPjlikBH4GFp8cZD5V czRlWq286B5Ovw3L8qJxayw34I40NQhJhkELOujB2WpxWMTeNlqKleHdgYBrQtAdPFOA R9LA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector2 header.b=LPRq1AFI; arc=pass (i=1 spf=pass spfdomain=virtuozzo.com dkim=pass dkdomain=virtuozzo.com dmarc=pass fromdomain=virtuozzo.com); 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=virtuozzo.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i69si68754091pge.366.2019.08.14.02.52.18; Wed, 14 Aug 2019 02:52:35 -0700 (PDT) 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; dkim=pass header.i=@virtuozzo.com header.s=selector2 header.b=LPRq1AFI; arc=pass (i=1 spf=pass spfdomain=virtuozzo.com dkim=pass dkdomain=virtuozzo.com dmarc=pass fromdomain=virtuozzo.com); 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=virtuozzo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726934AbfHNJuJ (ORCPT + 99 others); Wed, 14 Aug 2019 05:50:09 -0400 Received: from mail-eopbgr60128.outbound.protection.outlook.com ([40.107.6.128]:5822 "EHLO EUR04-DB3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725280AbfHNJuI (ORCPT ); Wed, 14 Aug 2019 05:50:08 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Y40dmh2T6Dqf0ZQTWWxmjjiRYx3Z/GNNvPo+tOPubMLOg6IZnX1Uj3MBm2I72B++EhoXe+eL7tPcBcal3yBDqkT6balpq1UgB7Zspl04eXTp0DSA4UZk4Yq6XucYYKnp+AhYlnvz0ow/7e7hdSPcEPbLG85pHM9jKS7OetBbLZCaDKuxPKNNMh5OM3U27s1S28gdXniQZwjziVIUQHfoOzSJlTkpvUdcohu6LWeBS5cCZ4qtDxYwNjIIbxdR2k70iHy2vtvFCvF1dcqyPXwrlYj8OVhKB2nsBpRhy+yoWA5zOhvoQ1jemUCBFnmmwDzMKiwMFwQG0tyvf+Y8MpszzQ== 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=QFUyq921WRy9WQzWlBZuwEpU0NpSxRB9HJrKw7rxQkA=; b=EQdBPwxdqcrlYitH7di9D36XelhT4JjTk0ZyVadO1p0CUStFTqUC9f4aTEgJ+Z2brP7ZxzE+1oGhuYUm9O/boNMNd3yaag/t4jEkLCHfH3y6KSsdql9RefaSulyCpdcoG/Q9taB5fkLZo/vIefceR78y8mtKg7lDI9LzHv17KeLElfLWdvW5i8kIJVnNBoIoVp2InurxFb32J1jtFEpZpQpNPu2lGsaHB/Ce8/AEUFbfHr61zAi+c/4TxTIbgYzYcGXvrAS+hfYmtgGqKdfxFkLkISdSM5bRpeKvEUTDeGJvUwgIJmrcG9UyVj+wYum95r8fF/Ty+bd+qpCUZSYAnQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=virtuozzo.com; dmarc=pass action=none header.from=virtuozzo.com; dkim=pass header.d=virtuozzo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=virtuozzo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=QFUyq921WRy9WQzWlBZuwEpU0NpSxRB9HJrKw7rxQkA=; b=LPRq1AFICWkhCnTSBuo2DZF/Q2CoBU0srASzou4LAJA62kLaHmSHAb6ncRb0TMiep2IpVmgK8eRAjEz5vlesJCvcGyCh5/B7vkJ05lVd9aoMfCzCArNaG6JcuxPGai72WRXdztv1Sxy+0FsnnMtDurMXfQXXkZvGKDNXBJGh+ys= Received: from DB7PR08MB4618.eurprd08.prod.outlook.com (20.178.85.31) by DB7PR08MB3497.eurprd08.prod.outlook.com (20.177.120.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2157.21; Wed, 14 Aug 2019 09:50:03 +0000 Received: from DB7PR08MB4618.eurprd08.prod.outlook.com ([fe80::5d1c:472f:6617:588]) by DB7PR08MB4618.eurprd08.prod.outlook.com ([fe80::5d1c:472f:6617:588%4]) with mapi id 15.20.2157.022; Wed, 14 Aug 2019 09:50:03 +0000 From: Pavel Emelianov To: Adrian Reber , Christian Brauner , Eric Biederman , Jann Horn , Oleg Nesterov , Dmitry Safonov <0x7f454c46@gmail.com> CC: "linux-kernel@vger.kernel.org" , "Andrei Vagin (C)" , Mike Rapoport , Radostin Stoyanov Subject: Re: [PATCH v6 1/2] fork: extend clone3() to support setting a PID Thread-Topic: [PATCH v6 1/2] fork: extend clone3() to support setting a PID Thread-Index: AQHVUoWksLQOkg3SykaYXzh+RjIGOg== Date: Wed, 14 Aug 2019 09:50:03 +0000 Message-ID: <6a65c4c4-6860-b042-a0bf-b3f8e9b277af@virtuozzo.com> References: <20190812200939.23784-1-areber@redhat.com> In-Reply-To: <20190812200939.23784-1-areber@redhat.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [91.193.176.213] user-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 x-clientproxiedby: HE1PR1001CA0023.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:3:f7::33) To DB7PR08MB4618.eurprd08.prod.outlook.com (2603:10a6:10:34::31) authentication-results: spf=none (sender IP is ) smtp.mailfrom=xemul@virtuozzo.com; x-ms-exchange-messagesentrepresentingtype: 1 x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 05e546ba-0bcc-4426-376c-08d7209cc762 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020);SRVR:DB7PR08MB3497; x-ms-traffictypediagnostic: DB7PR08MB3497: x-ld-processed: 0bc7f26d-0264-416e-a6fc-8352af79c58f,ExtAddr x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7691; x-forefront-prvs: 01294F875B x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(346002)(396003)(366004)(136003)(39850400004)(376002)(199004)(189003)(66476007)(76176011)(14454004)(229853002)(66556008)(7736002)(53546011)(6116002)(65826007)(66946007)(186003)(64756008)(31696002)(64126003)(386003)(6506007)(26005)(36756003)(11346002)(3846002)(65806001)(486006)(6436002)(65956001)(66446008)(52116002)(446003)(8936002)(2906002)(476003)(86362001)(2616005)(66066001)(31686004)(102836004)(110136005)(7416002)(53936002)(54906003)(58126008)(478600001)(14444005)(71190400001)(316002)(25786009)(4326008)(5660300002)(71200400001)(81156014)(81166006)(8676002)(305945005)(6246003)(256004)(6486002)(6512007)(99286004);DIR:OUT;SFP:1102;SCL:1;SRVR:DB7PR08MB3497;H:DB7PR08MB4618.eurprd08.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: virtuozzo.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: XvCNGUI+y/FJWzoiIA+yiZ62jPnxeW9SrWuHbyaqgopqgLreWQLElmYxxzSfSEJh8CjL0jE3Y9EA1ht/5PDUet7U1XkrhN88tnc/F3w3NfLIwKbJ6LQveVUuLglrnAiSnJfPNg3h4RDMJtnyxP9XWgMAOBa9xmjISNNjVi3yYrz3hPry7wusHl192lFVvNt0WUV4V9jChilLJXIF8RVekqg0BBl5mnWUcPvItVEUxHxQhlSwVOLxqEYJFZmij1JgWXLSplI/ccSdmLA3elxtsQ4BsyQeXQMKoDWRyEuh8ta/AIeRpA3pABCddjeWNNtEoruJKVUMUIIFYsJO/MTde752ZLmsIXvs6nWkrhOU+buSTut8at9+VsGwYXe+z6Cu2PJspwt6AbxHLfUxEvcCRM+7YztHe0LidtzQYfWfRY4= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="utf-8" Content-ID: <5252D31F39EF0E449266327E109DC250@eurprd08.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 05e546ba-0bcc-4426-376c-08d7209cc762 X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Aug 2019 09:50:03.0662 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: ZMr4OHF4+wd51YMErE8BaLEQML+FdDpZPmuZITlIcvkY3YOj9j53Jh2NokC0zCr2mhalVnbl/zkHNKrO47nb/w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR08MB3497 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gOC8xMi8xOSAxMTowOSBQTSwgQWRyaWFuIFJlYmVyIHdyb3RlOg0KPiBUaGUgbWFpbiBtb3Rp dmF0aW9uIHRvIGFkZCBzZXRfdGlkIHRvIGNsb25lMygpIGlzIENSSVUuDQo+IA0KPi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