Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8631675imu; Thu, 15 Nov 2018 14:56:54 -0800 (PST) X-Google-Smtp-Source: AJdET5fNQ+z1sBlmi9fqNCUkDgh7fzx43zR/3HkGVScDbvmk2cEuI0rUZ3f7g3ousxOy1vDhQs0R X-Received: by 2002:a17:902:b282:: with SMTP id u2mr8326412plr.89.1542322614160; Thu, 15 Nov 2018 14:56:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542322614; cv=none; d=google.com; s=arc-20160816; b=TLvldYZDQB+eOE+1gnVCGD3AAUq+AQZ0OYTEzUsFxrYBM+0rQy3CiD8HnoNuECsl5e fXI+b5WBs2O9BeUMv6vz/MnWc4Kdc0pMHOBjqANc00J0SL23/YBpLbcKg6klj4ojLA0r kLG78dty+U+aIcvVlifss+HJcLvEhYSZToXDLeXR2e6QJs9REB+ixx+vxGM/p+kHE1Up oDz4tZA/xRXVVYLJONrtCxsRZSYqoirHgyUMPzCUuU9A1kW5hpAewps8AuNNKXEwajcI H2G3mB64K/n2DihD3JvcCeVghSKuHs0EtD340nGgeoVtpiiGKCtBBOnwltJMlqPMIit9 GEkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=wifu2TFnSrkHVD3/3cDa4n80vSTYZPUiKO5AYiFAMvU=; b=uRlQb8oIG75f+pJlZJEhwFJ0GyT12G1Hc0Tx/3zdoRKd+c8iYuASzeWsDjg8MYgR6h QV23WvEtcZUaDRcizcG9pv7HGakDWjQOV7fjwsukPLHrvzNYt7I8QjCh+2onhi+9QPJ7 GDSPXZfskbn2YH7YD424lvCirQwpn/qEXs7d/9XyzoxOK23K40KBmP2h/ZsA4OM9CdF0 CvRxgbFl9BbBXqukM/DE/IbUs3m+lTWLOJU3J7KYDxz9bg6/MFc0urQbiJn/RjJzDzyR DFQXInuKNZup3XXG4Xmjr/GZc5wOMWy6BFWSfaqK7CBT8NVEkRBdAuDG1z2Hv4KlfQdf ja+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Qx9p3jrW; 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 33si1778727plu.169.2018.11.15.14.56.36; Thu, 15 Nov 2018 14:56:54 -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; dkim=pass header.i=@kernel.org header.s=default header.b=Qx9p3jrW; 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 S1726414AbeKPJER (ORCPT + 99 others); Fri, 16 Nov 2018 04:04:17 -0500 Received: from mail.kernel.org ([198.145.29.99]:46134 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725860AbeKPJER (ORCPT ); Fri, 16 Nov 2018 04:04:17 -0500 Received: from localhost (unknown [64.114.255.97]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1484E2087A; Thu, 15 Nov 2018 22:54:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1542322468; bh=513lJT3+D3TEhbepbnqBXvyewmlNkqoZFXXgi6AlAgY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Qx9p3jrWzQqZrHP5jUsSbO1eOwQSVcYcpjZMs8i7IvVhfH+F5282h3Jxk6nVcQ1+q w7Spf6i5YGtvOwYZIVVCBrtvFOqqU6Rr0nEPwOLSASpzVQh+gSFKqr4Uuk9JtSlolk 9XRXXaJuXa7l6ZfIY3BQFdjVL0WwxOiWxVnyeg7U= Date: Thu, 15 Nov 2018 14:54:27 -0800 From: "gregkh@linuxfoundation.org" To: Andrew Morton Cc: chouryzhou , "tkjos@google.com" , "arve@android.com" , "tkjos@android.com" , "dave@stgolabs.net" , "devel@driverdev.osuosl.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH V4] binder: ipc namespace support for android binder Message-ID: <20181115225427.GA25874@kroah.com> References: <5FBCBE569E134E4CA167B91C0A77FD610198F8FA41@EXMBX-SZMAIL022.tencent.com> <20181115143349.44e1942213b61a4818bcbf02@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20181115143349.44e1942213b61a4818bcbf02@linux-foundation.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 15, 2018 at 02:33:49PM -0800, Andrew Morton wrote: > On Mon, 12 Nov 2018 09:37:51 +0000 chouryzhou(周威) wrote: > > > Currently android's binder is not isolated by ipc namespace. Since binder > > is a form of IPC and therefore should be tied to ipc namespace. With this > > patch, we can run multiple instances of android container on one host. > > > > This patch move "binder_procs" and "binder_context" into ipc_namespace, > > driver will find the context from it when opening. For debugfs, binder_proc > > is namespace-aware, but not for binder dead nodes, binder_stats and > > binder_transaction_log_entry (we added ipc inum to trace it). > > > > ... > > > > drivers/android/binder.c | 133 ++++++++++++++++++++++++++++++++---------- > > include/linux/ipc_namespace.h | 15 +++++ > > ipc/namespace.c | 10 +++- > > 3 files changed, 125 insertions(+), 33 deletions(-) > > Well, it's mainly an android patch so I suggest this be taken via the > android tree. > > Acked-by: Andrew Morton > A number of us have talked about this in the plumbers Android track, and a different proposal for how to solve this has been made that should be much more resiliant. So I will drop this patch from my queue and wait for the patches based on the discussions we had there. I think there's some notes/slides on the discussion online somewhere, but it hasn't been published as the conference is still happening, otherwise I would link to it here... thanks, greg k-h