Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp5222612imm; Tue, 31 Jul 2018 07:29:12 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdJZEUlNWKsmeh5e87+MCx67H4b98+fgYqw1PAXMGkVmvrPJxWgBVR3VrFjk8ohopneGdPZ X-Received: by 2002:a63:4703:: with SMTP id u3-v6mr20118570pga.405.1533047352278; Tue, 31 Jul 2018 07:29:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533047352; cv=none; d=google.com; s=arc-20160816; b=h4AXQAsWwaTrUwwT1+9Ii2xegjPy0Ys6i1eUG7D25/wqRz09CgsDTmafExJ2DeYFkS sZjk4+VaspPjUmwWqronSMQgedjcYt9YLH49FEtSnjLsGbj1Me17Zi2zK/OluS0euggm vz70nVj3UaSriRLTwULUL3FZFUEMfTdxEysHWmjbBPmSHDg5NoSyrgtRa7isaLKsrf3t Q0NnCOb0TVwPSnBOSn0Zc8/tfg/KGDXZXLpI0jW/imaTWGEmxjI4dWhKYrqfKbQiU/0t 3rsiCRR/b4GdA7gS/7xAmJzpT+YHD22vkkoZaDSNWFQgN7XoEIZ7UAjPhb8ZlK6VsNNO LZOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to:date :cc:to:from:subject:message-id:arc-authentication-results; bh=nazvET7ksrMyW4p45RT2IQ2WDNUxUPH7/rE1SmT+fNw=; b=VUnVKpppLdZcVLI1QHxFLa5wdKeKH5/UONqwcYohXadzlzmL9vXtkFa0A104NEDCC5 TTESpfIRugkydWK7emGxKtqhpsLceHO7V3spmLYWx46w9NeTMy10T/ffFlhpHot1g6FM su1ka23plwP7ZOxSP6XWbCo7XOzDHP5gHOWD8FgVB/YJH+ftmNqu7DMwaPA1/D5C9JZh +c1oZmV6BROsJCyp/rQuVPP809ga1pn6XG4rSowu0u6A9qmfmjct5vCT4qCXqMGDlxF5 +ouH7xjTbE3GOAgsTCIRjSLhy4C1OQZR2O5sPsbusJtSWKLnXoPmRgFBrswJJbHTMImI Hw4w== 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 a75-v6si14985210pfc.106.2018.07.31.07.28.57; Tue, 31 Jul 2018 07:29:12 -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 S1732325AbeGaQIH (ORCPT + 99 others); Tue, 31 Jul 2018 12:08:07 -0400 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:49114 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732222AbeGaQIG (ORCPT ); Tue, 31 Jul 2018 12:08:06 -0400 Received: from nctu-wireless-nat219.nctu.edu.tw ([140.113.136.219] helo=deadeye) by shadbolt.decadent.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1fkVcH-00012x-7R; Tue, 31 Jul 2018 15:27:13 +0100 Received: from ben by deadeye with local (Exim 4.91) (envelope-from ) id 1fkVc9-0006It-P3; Tue, 31 Jul 2018 22:27:05 +0800 Message-ID: Subject: Re: [RFC PATCH 0/4] file: export functions for binder module From: Ben Hutchings To: Christoph Hellwig , Christian Brauner Cc: viro@zeniv.linux.org.uk, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, arve@android.com, tkjos@android.com, maco@android.com, rlove@google.com Date: Tue, 31 Jul 2018 22:27:01 +0800 In-Reply-To: <20180730163452.GE27761@infradead.org> References: <20180730143710.14413-1-christian@brauner.io> <20180730163452.GE27761@infradead.org> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-tfUwb+k0cM6qiBuLL/Vd" X-Mailer: Evolution 3.28.2-1 Mime-Version: 1.0 X-SA-Exim-Connect-IP: 140.113.136.219 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-tfUwb+k0cM6qiBuLL/Vd Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, 2018-07-30 at 09:34 -0700, Christoph Hellwig wrote: > On Mon, Jul 30, 2018 at 04:37:06PM +0200, Christian Brauner wrote: > > Hey, > >=20 > > We currently plan on turning the Android binder and ashmem driver into = a > > module. We have seen more and more requests by users to be able to use > > the binder and ashmem features without wanting to convince each distro > > to enable it by default in their kernel. Debian already started to carr= y > > patches for turning them into modules. >=20 > Yikes. I really wish Debian would stick more to upstream rather than > picking random crap like this up. My hope is that this is a temporary bodge. The way this happened was: 1. Anbox was proposed as an addition to Debian, including the ashmem and binder drivers as out-of-tree modules. 2. It was objected that these drivers were already part of the linux package (though not currently built), and it was bad practice to add a second copy that would need separate security updates. 3. The kernel team was requested to enable these drivers. 4. I agreed to enable them as modules (like most other drivers). 5. I then discovered that they couldn't be built as modules without patching, due to these missing exports. (So how does Anbox build them as modules? Well, you're really not going to like this: https://github.com/anbox/anbox-modules/blob/master/binder/deps.c ) Ben. --=20 Ben Hutchings [W]e found...that it wasn't as easy to get programs right as we had thought. I realized that a large part of my life from then on was going to be spent in finding mistakes in my own programs. - Maurice Wilkes, 1949 --=-tfUwb+k0cM6qiBuLL/Vd Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEErCspvTSmr92z9o8157/I7JWGEQkFAltgcbUACgkQ57/I7JWG EQmACBAAtZBmjfLT0MJgb+Mz5SRH2v/SF73n/xn0cBG+G530aAwBXZuufhNMYgCE yvW2XiDveLTnKzYgNF5ZOr0gDYMhPre0RTzGtuy51DQTjKGYFM2v2/rcxJX1dEjR 4zIvM6b+fZOf47qmybo4MRET3BVUsKBX+uN2DaEua5UyliZ1q71VB/0T2dN6BTQl Y5+N0IA8GxOCETgLUl1RnKknDc6oNTmHyiPHBShW0uL1BS+msRqSuQ6rZvGqngYS O15e4nzG2dwVlbHkPN93RpscZOUfYi2pcgYMPz2Zxeyr9XfLsZDGiXEP7KzFfh0a Iv/wzFFJS4b8jmTJiJWyFUNisMlaCG/kmIOlCndW0M9vryyI8g6GkC+t7ONV5yM6 BXTDjNClFd5bx0Qhi/qUNQimARXLOSAofVXlW8AurEJZ2Dp0Urf6E35COF2NlMP6 1xRyBKrY60Zd1Wk+pKaYvd/82wPeCn+lCxTfxxhjniHWkBBvDfy0QXuaBp67DRwN krT/kq7VKtsO2YyPAWIoWAlhlSAPC5ZIHQJZEFXIz2wa6CkdA9C7LV9w/YNliXTw QrGnJKBVgV9MDaz42ocPv7+k/zFgBRg7/8vYIbUUWjXH2KiS45bZJZhXRwj/NTUk kD3OYn9EiJJH03t3NblWq0n8uKAyyzhFgbj8bxJBgtBxcx7gjqc= =GYXz -----END PGP SIGNATURE----- --=-tfUwb+k0cM6qiBuLL/Vd--