Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp698844img; Mon, 18 Mar 2019 12:12:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqzAjj/gB/5FQ62KIkMWSGvscjw+v9bv7JfmLLIDpl4DhX+x4o5QLj8fA3L1d8qjC0irfWRI X-Received: by 2002:a17:902:8d89:: with SMTP id v9mr21721622plo.254.1552936365168; Mon, 18 Mar 2019 12:12:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552936365; cv=none; d=google.com; s=arc-20160816; b=j7vbmUsNecmzlhe9qtex7xuC6vobl+W0fFmznlQjKDICaEAZozAniJfB5ybtgAVmlA Zb9wpbcGeVH0wqJcvSYJelQaJag8gn4BOJaPuOkP3KpKOAogcWpLvNsXIr9pMl9wxuW9 ggpGjTmFBBzRlxYw36+cKLmwa4Ur8l9Vvvc7JkWaU91UAhuv0LqM0cnpnK8HYmW6C0C7 kRlKW7s2SYpZDJ5rwhxP0Uk5CllxYoZJFtPpwgX3WVUZyAs6AaDYBqoWiE6DA6CRrPIb ZqvvFg35JprQmMeKcWrrPl8EwwURUveuqtfQwY7qeLrrittRjxleqe74d2SVswNBQAam w2sA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=JoDVYGN3p0uUP69FKJYNO6I1tI51AT9N5qPr8sxvnZE=; b=P0HcoPYmQF0W8OdSygsh8AffTGH3irv/1ty3l4mOGDvej7m4DOVT38CV2SoMZ8o9aa dt8cXfrYGg1SqcdA4zrPTBFnxWuOrYCu14KdVLU7o4wmuJE6a92Sd+CFUKcDvIb4+YVJ B6sV44RxgmLL0gdHfW5vw1Q6BBJppYwyfmzJY/fg0cuXChHwQ4WnVHQSdXmUgJsaigFE VeGv5kc13b4JWAOy8NYrkR6eRVQx2i+TKJbWiZqIUzjgo8KJdFva1ZkNEJjx/apt0mVO E6XmvWyKu5XUjCAt20AWohgiUIeiVI5te7QjNqXwPToFcdG14PSCdyA0FXzhYlz0rdG3 NQGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=mIgE4Gyb; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s68si9672442pgb.199.2019.03.18.12.12.29; Mon, 18 Mar 2019 12:12:45 -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=@google.com header.s=20161025 header.b=mIgE4Gyb; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727028AbfCRTLh (ORCPT + 99 others); Mon, 18 Mar 2019 15:11:37 -0400 Received: from mail-oi1-f194.google.com ([209.85.167.194]:47007 "EHLO mail-oi1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726916AbfCRTLg (ORCPT ); Mon, 18 Mar 2019 15:11:36 -0400 Received: by mail-oi1-f194.google.com with SMTP id x188so1783828oia.13 for ; Mon, 18 Mar 2019 12:11:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=JoDVYGN3p0uUP69FKJYNO6I1tI51AT9N5qPr8sxvnZE=; b=mIgE4GybGcQbN4cBEJLSUN2zTD9SvJz1Nw5WHwNPHkIm4rGvF5/NYm/hlC4zOmykdg jAbKZus00QVw6XUA4pC3pr6fPPhJxgJDOw885lw5InVIKANXDtXzcqOiX5TuX0BFJmdt MCCApZGl6pwCdxIsqDZZeVHfSM8ztihxFm67lpsZcwbxlUPo9lXg1lLFk515wusrS+UA qQZHH/+YEEfkp8VgQLLDTZWGMOSvZ/LyhANFdL4a93AvOAr465xDi/DaStgRUT+Pia6K e1CrJDI1jBTmE7/PcA/ty55DXW1pc3s7Hx2zd4CNySdk0Ro4dgw8u3RtLhXz3QC0NWV/ /viA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=JoDVYGN3p0uUP69FKJYNO6I1tI51AT9N5qPr8sxvnZE=; b=mVCDKIBjV4zcBY2HceJuJ/QmrMku8t3DPyJIZGtHwXWUoLjfrs3dZ4Nb2ysiaiG+uz v9hbfldoWTlN6trg3dTcWyor1g9fiFf+ePSCWAdZfC6t71qfgTm3EQ7CsIMFQAKBipeK m6IhahkXwhzYuAbvVg2VkgIfabW2cY/oDQDv50iYh52gTx5gXH/7f5kKg0hymxdR9qyR h7AZau80GLbzC2UYyTYeZb7c3/LuYYin/MxvCDxliOJhCgozST01iC8y0rvQ+NkQixWM C9CKzTL4XqoqnfBdxH6F7zmvAKUlLvygAm9dlNRZwpc+sYKktGCur1QJrtMCTYNwBUym kpRQ== X-Gm-Message-State: APjAAAVacuTvSMbg0ljqwEjkoDt8Yaod6Qi4Uf/ktaPo6zy0K+rk9nSA 4BMqdKntZS+FvYHsvqw4Nt3B0chPvAMy0Qph9TKmVCKGCLA= X-Received: by 2002:aca:550c:: with SMTP id j12mr313915oib.52.1552936295646; Mon, 18 Mar 2019 12:11:35 -0700 (PDT) MIME-Version: 1.0 References: <20190301160856.129678-1-joel@joelfernandes.org> <20190307150343.GB258852@google.com> <20190307152303.GA9819@kroah.com> <20190318185742.109dee5c@alans-desktop> In-Reply-To: <20190318185742.109dee5c@alans-desktop> From: Daniel Colascione Date: Mon, 18 Mar 2019 12:11:23 -0700 Message-ID: Subject: Re: [PATCH v4 1/2] Provide in-kernel headers for making it easy to extend the kernel To: Alan Cox Cc: Greg KH , Joel Fernandes , Geert Uytterhoeven , Linux Kernel Mailing List , Andrew Morton , Alexei Starovoitov , atish patra , Dan Williams , Dietmar Eggemann , Guenter Roeck , Jonathan Corbet , Karim Yaghmour , Kees Cook , Android Kernel Team , "open list:DOCUMENTATION" , =?UTF-8?Q?open_list=3AKERNEL_SELFTEST_FRAMEWORK_=3Clinux=2Dkselftest=40vger=2Eke?= =?UTF-8?Q?rnel=2Eorg=3E=2C_linux=2Dtrace=2Ddevel=40vger=2Ekernel=2Eorg=2C_Manoj_Rao_=3Clin?= =?UTF-8?Q?ux=40manojrajarao=2Ecom=3E=2C_Masahiro_Yamada_=3Cyamada=2Emasahiro=40socio?= =?UTF-8?Q?next=2Ecom=3E=2C_Masami_Hiramatsu_=3Cmhiramat=40kernel=2Eorg=3E=2C_qais=2Eyous?= =?UTF-8?Q?ef=40arm=2Ecom=2C_Randy_Dunlap_=3Crdunlap=40infradead=2Eorg=3E=2C_Steven_Ros?= =?UTF-8?Q?tedt_=3Crostedt=40goodmis=2Eorg=3E=2C_Shuah_Khan_=3Cshuah=40kernel=2Eorg=3E=2C?= Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 18, 2019 at 11:58 AM Alan Cox wrote: > > > I think the compressed tarball is much simpler/easier overall. If > > someone really wants the filesystem, they just uncompress it into a > > tmpfs mount. It's much less moving kernel code to worry about. > > There is an even simpler approach. The people who want this for whatever > strange reason are Android folks. Android lives on flash, so all they have > to do is put the headers in a flash file system that is updated with the > kernel and mount it wherever they like. Simple matter of a bit of > devicetree no ? Did you read the rest of the thread? We talked a lot about the problems with filesystem-based approaches. It's not just "Android folks" who want BPF-based tools to Just Work, and it's not "strange" to want that --- what's strange is this reflexive opposition to a pragmatic feature (one that nobody has to use) that will make a lot of system analysis cases Just Work. There's nothing wrong with having the kernel describe itself, and there's no reason to push tons of error-prone metadata tracking to userspace when the kernel can just talk about itself in a guaranteed-correct manner. Every argument against this work is also an argument against /proc/config.gz. Completely unsurprisingly, /proc/config.gz is in practice super useful.