Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8612879imu; Thu, 15 Nov 2018 14:34:45 -0800 (PST) X-Google-Smtp-Source: AJdET5e7Q0Fn/6SqjxvXuoQrGrVgciju7qcimT/1HvAM9/TeVMpBh2rIh3LL9C+rmhRpwSSoakwg X-Received: by 2002:a63:5f41:: with SMTP id t62mr7585406pgb.76.1542321285629; Thu, 15 Nov 2018 14:34:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542321285; cv=none; d=google.com; s=arc-20160816; b=lKzKPXHCIS0TYcLhErMm4/7TTuy8Ambu1fyY2EWZWe4agl0C1gFmQBIisK9qjATtec SkN1TlS39yeLATeLdWuE34ER/WeKQ//lNWZRx5gnULKcVhQhNMlh98KYgGz+PpTDv7BY 5QtXv05JHm7/WtB4E8ab/DOqJmAHeJGLWw9BLV4YgVp0p8kHqP16NBnZ8AGoYLsdBJ1G wtMYycc/7rJMLXY8R4u9KA4OvL4YChrhA+TE4rIDiS1RJ84kPvD+mLUkglcz091RCoaO qejnJvMg+oa1d+rh7tJ5zUJRJlkSILM1E+6jN2BC1atClqJJmjzwnFVBHcL2+oa9veCm hmaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=qsxKBbihn/I2+ooNqOFgixCstdI62zjiMkzHLrJzz1Y=; b=TnCVm83Fm8qt6bR8Ja44bOzNUoHK4SeSQWnHeYBCCKJbRMa8S5cOr4XECKlgEZLUIy 5md7JbTgFHagmsLW9D8AQ+9Ygu/gfGONugUiZq1i/mV2hoNGmi9U8Q9TJGFIeTbOMbjk TMh2ajlpsWsZtkC/dsGRadGDMXdtgDLK/UtMDWDBy81j4+bSZTEP0ZJFCQ49kKy6cgka dRRJjblE9Vm02fZEL0t0+yDgiZ6qdjlWyh6cSYZXABkiPJ02A7Z35pCVrmoI+xntOSRa Jy3V4zQFPGQZwKfs/kynb+vnbAj7H0e7zdmZqxyOF8xZetgZ3VvC5TmShzqsmi1yxwtb 4XIQ== 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 d9si14633105pgv.123.2018.11.15.14.34.30; Thu, 15 Nov 2018 14:34:45 -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; 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 S1726423AbeKPInd (ORCPT + 99 others); Fri, 16 Nov 2018 03:43:33 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:42912 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725888AbeKPInd (ORCPT ); Fri, 16 Nov 2018 03:43:33 -0500 Received: from akpm3.svl.corp.google.com (unknown [104.133.8.65]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 36F0C49F; Thu, 15 Nov 2018 22:33:50 +0000 (UTC) Date: Thu, 15 Nov 2018 14:33:49 -0800 From: Andrew Morton To: =?UTF-8?B?Y2hvdXJ5emhvdQ==?= (=?UTF-8?B?5ZGo5aiB?=) Cc: "tkjos@google.com" , "gregkh@linuxfoundation.org" , "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: <20181115143349.44e1942213b61a4818bcbf02@linux-foundation.org> In-Reply-To: <5FBCBE569E134E4CA167B91C0A77FD610198F8FA41@EXMBX-SZMAIL022.tencent.com> References: <5FBCBE569E134E4CA167B91C0A77FD610198F8FA41@EXMBX-SZMAIL022.tencent.com> X-Mailer: Sylpheed 3.6.0 (GTK+ 2.24.31; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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