Received: by 10.213.65.68 with SMTP id h4csp944784imn; Wed, 28 Mar 2018 16:24:44 -0700 (PDT) X-Google-Smtp-Source: AIpwx49BbJpHn2VBIRVmN9ar6pvaO9VSGOruKO42Oydz1nSnDHvre/Dy7/RhtmTjX+VHb8EKiYUv X-Received: by 2002:a17:902:7611:: with SMTP id k17-v6mr5721332pll.94.1522279484552; Wed, 28 Mar 2018 16:24:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522279484; cv=none; d=google.com; s=arc-20160816; b=HPBuHdwSw35xSAxMEQ00PHZr57KRbiFIIb2joryUU40b/CyUsOC1aBvzQ9W9Px7d9G /u/ke7vNI0cRs93oXGQRUIM6T4r5majNq7efaXoVIwURokBaVZZlG3Q8C00xDl3A0C4k hbXYLiCQhY19GyrRLrWFcn4T/Kxbj/1V0j7Eqw061qugvzhPND64JSGGrZm7Yl4CfUh5 x9VEMkXFfow77mhZzVLzEddN/f/SbNeYuqnvFvc/xTTIFc0P35J88pEtJ8C2GhFfUQI5 U0s+ZInMLFLID/vAf3DGmY22Q8B4lhmTSimGvoZq7s1k7tcQEzpZKri/35Vlm7AIM6Gg 3otA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=w7esbLxda9n+nxKAoRHDQPQE/GF1TIp/dxW/The0AVM=; b=r/r1l5gKQagSjy1C1iVKU0lk2cuGIXi83Ci/v1H1iI0u7+xW0+FiHNAyO1HQu9Aqfq UWqp8db9/wjRlLFTLw2KRX/GymeHWZ4FeuUI6G4BXICb7qKZdMJisPWF5DcDKjgCpzZ8 a/Goz6tG1YNVIgeYg6GnF1iG2tYGW1zuk9vqrG5yeBeoUkXxvytR9bcY6D5TgEime1Xy F28GtZNAaLVzMUXF/AYi/lDS4/uZdp2FKeOzIl/3wkQ8VwYFfvuU39aZEX1ZTgJ32PMd zRZI2vkZi4TPT/AcDorxQ086avkZ8gfvJjwkSK/xWKvdETLE6Punw19SwUA0XerLkBeq I5mQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=hh+E2qlw; 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=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e93-v6si4411121plk.159.2018.03.28.16.24.30; Wed, 28 Mar 2018 16:24:44 -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=@oracle.com header.s=corp-2017-10-26 header.b=hh+E2qlw; 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=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751903AbeC1XXm (ORCPT + 99 others); Wed, 28 Mar 2018 19:23:42 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:49198 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750820AbeC1XXk (ORCPT ); Wed, 28 Mar 2018 19:23:40 -0400 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w2SNHrpm161400; Wed, 28 Mar 2018 23:23:27 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=corp-2017-10-26; bh=w7esbLxda9n+nxKAoRHDQPQE/GF1TIp/dxW/The0AVM=; b=hh+E2qlwt1tg928hR23dgbLAxBS5W/1LN9peBrxzNBiI+GsR6SEjIQHFDfRAj+LAXD33 gOGFN/B14LmuGbWPBZcnxw4UOywZMgL4nhrcS7DT2Il+lqbiPsD0ypRB2PrsqwvvOqS2 uPhj7cLwJkBwB0CziLIwfY+8WjbPTP1LmBAs53KDRv+jSZQ6NChCxVNU9GXkJJFASAmv A1RXOnkoYiDDS3LYmXyhrd5+bRafEU8I+EelAgw3DrlWSSGJdOE00ZawvDW4IQJI1jqb ZEhirfuHaTzhFxUNGwaSno+3XrWg+96iGJla8uDsbwvMhtnYDxCfxPC9dOfemkiAz9eh cg== Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by aserp2120.oracle.com with ESMTP id 2h0mkj00h3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 28 Mar 2018 23:23:27 +0000 Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w2SNNQ4C016453 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 28 Mar 2018 23:23:26 GMT Received: from abhmp0011.oracle.com (abhmp0011.oracle.com [141.146.116.17]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w2SNNPHB020992; Wed, 28 Mar 2018 23:23:25 GMT Received: from [10.132.93.82] (/10.132.93.82) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 28 Mar 2018 16:23:24 -0700 Subject: Re: [REVIEW][PATCH 09/11] ipc/shm: Fix shmctl(..., IPC_STAT, ...) between pid namespaces. To: "Eric W. Biederman" Cc: Linux Containers , linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, khlebnikov@yandex-team.ru, prakash.sangappa@oracle.com, luto@kernel.org, akpm@linux-foundation.org, oleg@redhat.com, serge.hallyn@ubuntu.com, esyr@redhat.com, jannh@google.com, linux-security-module@vger.kernel.org, Pavel Emelyanov References: <87vadmobdw.fsf_-_@xmission.com> <20180323191614.32489-9-ebiederm@xmission.com> <7df62190-2407-bfd4-d144-7304a8ea8ae3@oracle.com> <87lgeio4tb.fsf@xmission.com> <1091a91e-f8ee-b091-6d95-78b33520fb2d@oracle.com> <87woxvajk9.fsf@xmission.com> From: Nagarathnam Muthusamy Message-ID: Date: Wed, 28 Mar 2018 16:18:49 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <87woxvajk9.fsf@xmission.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8846 signatures=668695 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=761 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1803280233 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/28/2018 04:04 PM, ebiederm@xmission.com wrote: > NAGARATHNAM MUTHUSAMY writes: > >> On 3/23/2018 2:33 PM, ebiederm@xmission.com wrote: >>> NAGARATHNAM MUTHUSAMY writes: >>> >>>> Thanks! >>>> >>>> Reviewed-by: Nagarathnam Muthusamy >>> Does this look like it will address the issue you have been fighting >>> with pids? >> We do use IPC shared memory but it is a single large one, shared by multiple >> levels. We are currently looking into using a similar solution based on file >> locks. >> When a new level is created, a file representing that level could be created in >> a common path which could be locked by the init process of that level. >> Parent levels could query the locking pid of that file to get the pid >> translation >> of the init process of the required level. Then it could open a file descriptor >> and use the translate_pid API for further translations. > Do you want to resend the translate_pid API with file descriptors as it > was in the lwn article? That I will apply. Sure Eric! We are currently implementing and testing the file locks + FD based approach, just to make sure it covers all the requirements. Will resend the patch with FD based translate_pid API in few days. Thanks, Nagarathnam. > > Eric