Received: by 10.213.65.68 with SMTP id h4csp933117imn; Wed, 28 Mar 2018 16:06:36 -0700 (PDT) X-Google-Smtp-Source: AIpwx49Y+lfw6LEG4tTMPgkTY7GUI8soNkL5MDBdkU3Xj7mBl0LYMgbJTYXwtPE1cHt/IVNk4hx2 X-Received: by 10.99.123.80 with SMTP id k16mr3866901pgn.173.1522278395949; Wed, 28 Mar 2018 16:06:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522278395; cv=none; d=google.com; s=arc-20160816; b=RlvmXLR+E2gNVIuOR0ZceGoBURCwl4egsSmSpQS19H4qcEjd25nUxFGeLzwY4ikHSa jR5JiH+udiGxwY9dQVUX5Wa7KC3/JLALwFkKcODVWzNHJMKQBpB8MQPGTcfYpJa6Zg1S v3NXEYdrNO8ulPg9B0f+CMaUm5KpJjLBlSv1rKb8XjcH2vt83NDJ9LoMzGS4TN9s0Jx4 3Bo8yQvuaVbqQw+pREwvbCg9WFZ6ooWZf5nkiItq/CAe7XUR12u5JIcoRt4/SLhZqdjJ qn67MQKx2LDwAjx0awOhoOqGrmYbo8EKCEhv72lFvgGa2oUcHLkwnYRm70B3ERa8I2Hq 0Nig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:mime-version:user-agent :message-id:in-reply-to:date:references:cc:to:from :arc-authentication-results; bh=Vb4yUtFLb2IW7dEfsRadeZJ6Pjq1azCznrRMQmVKmSw=; b=uGrnGC/uQMG+oLFnFIl9vqCua0kiuvRSAjHr9kEfFWYNpvHyYQ7hH7i+O/iw2P2gyM 8FhstwUVgv9aEsNVSFONjO4nK41uwLleeG1GPurS+RQnIeUDg1J9iiFGmx+II53pKZnf ZaR+6ALSD8oasSs/ip0jSsB5GGmKR8EwFgmYWPna+kU7Bu+TciZpkiZl5GLd05X3c+HU VatUPd9qU7qEst+rf4AQX/R6/5zSO+aBXi/mqgHOCE5tX2mORNPR72FWTxq1QwD6sljT RCuqFki07sqIcMX3H3z7BAZJsnrA3N3SI5Rjytm+IWoPrECfZc5CSQnsPBZst83D+BZ3 jLng== ARC-Authentication-Results: i=1; mx.google.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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f4-v6si3220379plm.378.2018.03.28.16.06.20; Wed, 28 Mar 2018 16:06: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; 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 S1753223AbeC1XF2 (ORCPT + 99 others); Wed, 28 Mar 2018 19:05:28 -0400 Received: from out01.mta.xmission.com ([166.70.13.231]:49180 "EHLO out01.mta.xmission.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751976AbeC1XF0 (ORCPT ); Wed, 28 Mar 2018 19:05:26 -0400 Received: from in02.mta.xmission.com ([166.70.13.52]) by out01.mta.xmission.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.87) (envelope-from ) id 1f1K8C-0008ET-Km; Wed, 28 Mar 2018 17:05:24 -0600 Received: from 67-3-145-25.omah.qwest.net ([67.3.145.25] helo=x220.xmission.com) by in02.mta.xmission.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.87) (envelope-from ) id 1f1K8C-0007P4-0Y; Wed, 28 Mar 2018 17:05:24 -0600 From: ebiederm@xmission.com (Eric W. Biederman) To: NAGARATHNAM MUTHUSAMY 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> Date: Wed, 28 Mar 2018 18:04:22 -0500 In-Reply-To: <1091a91e-f8ee-b091-6d95-78b33520fb2d@oracle.com> (NAGARATHNAM MUTHUSAMY's message of "Fri, 23 Mar 2018 14:41:29 -0700") Message-ID: <87woxvajk9.fsf@xmission.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-XM-SPF: eid=1f1K8C-0007P4-0Y;;;mid=<87woxvajk9.fsf@xmission.com>;;;hst=in02.mta.xmission.com;;;ip=67.3.145.25;;;frm=ebiederm@xmission.com;;;spf=neutral X-XM-AID: U2FsdGVkX19rVCVpAc2ye7sFYsKdvBtIFdbd3f4Pw48= X-SA-Exim-Connect-IP: 67.3.145.25 X-SA-Exim-Mail-From: ebiederm@xmission.com X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on sa06.xmission.com X-Spam-Level: *** X-Spam-Status: No, score=3.6 required=8.0 tests=ALL_TRUSTED,BAYES_50, DCC_CHECK_NEGATIVE,TR_Symld_Words,TVD_RCVD_IP,T_TM2_M_HEADER_IN_MSG, T_TooManySym_01,T_TooManySym_02,T_TooManySym_03,T_TooManySym_04, T_TooManySym_05,XMNoVowels,XMSubLong autolearn=disabled version=3.4.1 X-Spam-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * 1.5 XMNoVowels Alpha-numberic number with no vowels * 1.5 TR_Symld_Words too many words that have symbols inside * 0.7 XMSubLong Long Subject * 0.0 TVD_RCVD_IP Message was received from an IP address * 0.0 T_TM2_M_HEADER_IN_MSG BODY: No description available. * 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% * [score: 0.4873] * -0.0 DCC_CHECK_NEGATIVE Not listed in DCC * [sa06 1397; Body=1 Fuz1=1 Fuz2=1] * 0.0 T_TooManySym_05 8+ unique symbols in subject * 0.0 T_TooManySym_01 4+ unique symbols in subject * 0.0 T_TooManySym_04 7+ unique symbols in subject * 0.0 T_TooManySym_02 5+ unique symbols in subject * 0.0 T_TooManySym_03 6+ unique symbols in subject X-Spam-DCC: XMission; sa06 1397; Body=1 Fuz1=1 Fuz2=1 X-Spam-Combo: ***;NAGARATHNAM MUTHUSAMY X-Spam-Relay-Country: X-Spam-Timing: total 201 ms - load_scoreonly_sql: 0.03 (0.0%), signal_user_changed: 3.0 (1.5%), b_tie_ro: 2.1 (1.1%), parse: 0.97 (0.5%), extract_message_metadata: 14 (7.1%), get_uri_detail_list: 1.44 (0.7%), tests_pri_-1000: 7 (3.3%), tests_pri_-950: 1.15 (0.6%), tests_pri_-900: 0.99 (0.5%), tests_pri_-400: 18 (9.0%), check_bayes: 17 (8.6%), b_tokenize: 5 (2.7%), b_tok_get_all: 6 (2.8%), b_comp_prob: 1.64 (0.8%), b_tok_touch_all: 2.6 (1.3%), b_finish: 0.62 (0.3%), tests_pri_0: 146 (72.9%), check_dkim_signature: 0.44 (0.2%), check_dkim_adsp: 2.7 (1.3%), tests_pri_500: 7 (3.5%), rewrite_mail: 0.00 (0.0%) Subject: Re: [REVIEW][PATCH 09/11] ipc/shm: Fix shmctl(..., IPC_STAT, ...) between pid namespaces. X-Spam-Flag: No X-SA-Exim-Version: 4.2.1 (built Thu, 05 May 2016 13:38:54 -0600) X-SA-Exim-Scanned: Yes (on in02.mta.xmission.com) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Eric