Received: by 10.213.65.68 with SMTP id h4csp728680imn; Fri, 23 Mar 2018 14:43:25 -0700 (PDT) X-Google-Smtp-Source: AG47ELsnrUlj79BlEXJ3+9dRCcCz1VQaXGoTBT8eYJh2C+Eum8ck6F8xQ0/ATIBUucY1sQLBz5F5 X-Received: by 10.167.130.88 with SMTP id e24mr25450405pfn.66.1521841405174; Fri, 23 Mar 2018 14:43:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521841405; cv=none; d=google.com; s=arc-20160816; b=fH61zAkbtg+Qib1pKX8i9R0FSYPYcsWnhqJ0/XYSWKnm8g8nZhYnUu0O+hYw9oZUl8 l1Z2VJeoZ+1pFZjsdUUgZt6Ow/0dP1TC5j9QJnX1P2a3jmsIN94EXRfjIhU+h2u9ub+I OGaK6+6rsc4imxVwGth4W9Lvt44N2at29rmsXZzeARKkj4Vs6aEBVREi1fGdYX2l7X0X cIICKYFEEg31o7koWT5wRLVHwDe/lvQwEMrdvK17cde9gg0PTx8hfOJDgLVQn5F8ziA8 YUukOFhdBU1lEWHanbUPx05OqTpateAz5gja325CbkU9ubAq677Q3se2dcZmsLV28xgM IDeQ== 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:organization:from:references:cc:to:subject :dkim-signature:arc-authentication-results; bh=AAqqTZ0TgsdxyMrrZw8dXF7/+233gVQwRlPgPg2g8LM=; b=TLJxLuG5zkR5EvQZjT3QQpbcMwZgX5lAzW5d2/ZfqXOvENP0Ct4P5slJF+oZOCRgES BZw1C0cPJyOQm5oT+w47+TWVNnSr41LpedN/VZrjIQqxqGQ9N6Mb+o5F4NbST0uxYgLv EoE6qmlVWXUYt6krjkoLqYUQcvKUzkQXKsx5luHToyWqGXZn8v3DXafGxoP2Bqu4fHqv oDlJzru5vUbrPrnMBGqyQb0yE4kZwJA8G+VNzHPp/Qfe9e8cvZBWT1C6nBm0lWJTsEUS Axz8woBS7UAUna+6ytRIDQpCgZ6rVOg5XzKiRy40OiOxR8krxLGTWEXj1Kba0blXLatO aMzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=nW3ygtag; 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 x63si7356922pfi.173.2018.03.23.14.43.10; Fri, 23 Mar 2018 14:43:25 -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=nW3ygtag; 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 S1752458AbeCWVlz (ORCPT + 99 others); Fri, 23 Mar 2018 17:41:55 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:60634 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752321AbeCWVlw (ORCPT ); Fri, 23 Mar 2018 17:41:52 -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 w2NLfcLF087161; Fri, 23 Mar 2018 21:41:38 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=AAqqTZ0TgsdxyMrrZw8dXF7/+233gVQwRlPgPg2g8LM=; b=nW3ygtag4YX4JMphRn7hA+0fWG8x9yxDNbb4k8xK5i0wh8MY5tEeGBZLy1MkIT/e/5rT 25+OZMiAngOxjKoo3+/2ndSR4GDCH1cx8IJ1irvegWV9foV4tWLk/k9sOafMOfKRsetR ZLn4V38CP+6xHXpxgJRrapa82Ia2G4wBMIJPYRLBh39kmH6SHUSnvdd4iMGOdpz7dUj5 tdNaHxl5vM4vFc/Ueso+2z/mdTDm5k9mJm8QQ1jxAb8PAGi08rTBmC0+zlA1fDrqZl1S mifsph3wsv19wMwg0Vj9Cn1drR4C3I1YKEZN2n8brR50HF7Bi50in9kJ8QGYv6REcred YA== Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by aserp2120.oracle.com with ESMTP id 2gw9qk8006-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 23 Mar 2018 21:41:38 +0000 Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w2NLfbU6026901 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 23 Mar 2018 21:41:37 GMT Received: from abhmp0005.oracle.com (abhmp0005.oracle.com [141.146.116.11]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w2NLfahT008283; Fri, 23 Mar 2018 21:41:36 GMT Received: from [10.209.243.63] (/10.209.243.63) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 23 Mar 2018 14:41:36 -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> From: NAGARATHNAM MUTHUSAMY Organization: Oracle Corporation Message-ID: <1091a91e-f8ee-b091-6d95-78b33520fb2d@oracle.com> Date: Fri, 23 Mar 2018 14:41:29 -0700 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 In-Reply-To: <87lgeio4tb.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=8841 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=890 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1803230239 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Thanks, Nagarathnam. > > Eric