Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5047705yba; Wed, 10 Apr 2019 10:10:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqzxef6wqJfu5s8IzWQXKfrUFETij1ack9CSeTEua38A1IG/oL3U+Clf77JdwARWQ0S0dcuf X-Received: by 2002:a62:1a06:: with SMTP id a6mr44686316pfa.18.1554916242335; Wed, 10 Apr 2019 10:10:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554916242; cv=none; d=google.com; s=arc-20160816; b=nQLfx21lyrS9dPjpyNY0Lja/zM2mO7k7nic+y9MQEJoKh/j1XlwZTgizxW4wwodvZN WBfFd9V567d3ZM57ZKVaYKgcNwGNbQgEAjem1PgwIftBUG775Fovuhn/pTrYRb8+X1wH GlaoLBggrXWwrh1nkJPmt0HaOvdSTpL/1QKOQ9JOjQQNlyTjakgSMB/VIbjsmWrMak2b 60b7ukt8YV993dn/+mLnfkORs0YWxkkNOvaUVYzqYeqMpWGSYrULOu1AZgkyiJlaixgP eEKWBpHW/EvLZXZFnvRumIb8ICb79TheqXSRo6FzLb2Wxtrz7X0HHcTlXmGnVMy7r/b9 Z4HQ== 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=EOOzgOmnaW9PWM1ThtEHEbDTMZ3kGVHOn2+NNi5Gr40=; b=tgmrxvsoXadmuw+B9qk3cMEh60srWpESFFvFKIOkmPKcQIJbgxU/iZ73iF3Nl5Mnop xo9jfiw0e0IQ0U1fB9m+cMM9m5s27TLZSoHBr9ZOPAQKCT5d1vObvxhrkvkC8mD09IUN Z9x76xz9CbDVuYNQ8F/Wf84W+UY0PVRw9Ltr4lHBhz6U/PWgBQ/bj2bBB0UkpLoMVjxg SE4y9sMDNDPC9dssVITgIW0FrwXsY5jMHU54KX/KDdfwuAlfpIA66OGV3ZjNPMewAKDZ pwVgiTGDFNscY5GDWdCNaKsFBeUX4OvuTo5RAf7w78p8LpG161SaDv46+Cx3tXySr9G9 JBwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=jO0olwCU; 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 k15si31814360pll.142.2019.04.10.10.10.25; Wed, 10 Apr 2019 10:10:42 -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=jO0olwCU; 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 S1730654AbfDJPpI (ORCPT + 99 others); Wed, 10 Apr 2019 11:45:08 -0400 Received: from mail-ua1-f65.google.com ([209.85.222.65]:44197 "EHLO mail-ua1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729463AbfDJPpI (ORCPT ); Wed, 10 Apr 2019 11:45:08 -0400 Received: by mail-ua1-f65.google.com with SMTP id p13so922180uaa.11 for ; Wed, 10 Apr 2019 08:45:07 -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=EOOzgOmnaW9PWM1ThtEHEbDTMZ3kGVHOn2+NNi5Gr40=; b=jO0olwCUmQkkI1+UF+TH3pc/VdIW42NCfyqi4pVYh0vexHpxwwY110t7HxlD3kSVrQ RHuZDOs8QheyCF5zbqqnai3cB0/tAjohu+Hdrzm2D58eUSaMZuirE6al7j5xLaNTnGYx TD+k5xm7dte+cGWrAZkqXLB5WF/TcuCWzHld4/qSq8RNmoLTsSFWfo2GbSddF4IWwgKR 11LVYFGEAJmSoqg+tvdwmb2bBuxXnS8tBGerYJPG/39vD2iZZtiClf+aSSyozDzUIKS9 a6Lzz2GFyxt5Ez0+ld/Z/7G9Iyf8sDTgwVa1cn2iBy82VCYnLJbitOTc9hKh2ub+WOl8 eRXA== 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=EOOzgOmnaW9PWM1ThtEHEbDTMZ3kGVHOn2+NNi5Gr40=; b=fb0DeXsCAvnFRInqsQkk+h6uKJqLEvy6QFL6ileyX5ynnx6ZQzP2OOwYPBuW/R6Q0u VN5SWja4ARZ1uDoJshaqIe8o2fAuz61i2ElwjVm9vIyVJ1BFcaUSP+cFGfnRC28JgWDa zKo2WW45x2SZVOeb4lOsClemc1c4idl6PtuPp021rqX3r1Wg7AyLCblt5sh5scVBwmW1 hrUSqFTMooBs6JQHOvXN5GTMK1t+sezprYIl+lczBLWkau8kwCZBjX4tCH25jxdT9PDw Ew7YVMQ1x7Sk55Bumb2aqSJvK+pvsIahFxF0GAZVYvPLF7Rs5Bh+wEjcK9K796/I7aqH ojXQ== X-Gm-Message-State: APjAAAWRPY4f4LXkgFbE8n4x7wvISvM5/OjkdovRBLpiIwlBIrA3AaW2 MWgVp+KYT+B9PYg4vJdeU81LLjVRF9BXGl1tXtbOkg== X-Received: by 2002:a9f:2c09:: with SMTP id r9mr21462395uaj.56.1554911106679; Wed, 10 Apr 2019 08:45:06 -0700 (PDT) MIME-Version: 1.0 References: <20190320163116.39275-1-joel@joelfernandes.org> <79b6bdbc-890a-5a51-7fa1-aec57889046a@opersys.com> In-Reply-To: From: Daniel Colascione Date: Wed, 10 Apr 2019 08:44:54 -0700 Message-ID: Subject: Re: [PATCH v5 1/3] Provide in-kernel headers to make extending kernel easier To: Olof Johansson Cc: Karim Yaghmour , Joel Fernandes , Linux Kernel Mailing List , Qais Yousef , Dietmar Eggemann , Manoj Rao , Andrew Morton , Alexei Starovoitov , atish patra , Daniel Colascione , Dan Williams , Greg Kroah-Hartman , Guenter Roeck , Jonathan Corbet , Kees Cook , Android Kernel Team , "open list:DOCUMENTATION" , "open list:KERNEL SELFTEST FRAMEWORK" , linux-trace-devel@vger.kernel.org, Masahiro Yamada , Masami Hiramatsu , Randy Dunlap , Steven Rostedt , Shuah Khan , Yonghong Song 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 Wed, Apr 10, 2019 at 8:16 AM Olof Johansson wrote: > Anyway, see my other reply just now -- CPIO + a filesystem view, and > providing said cpio archive in debugfs for those who want to copy it > off themselves might be something that fits everybody. I don't think it's worth increasing the complexity of the kernel for the sake of a little userspace convenience. By including the headers in the kernel, we solve an important coordination problem --- but we should solve this problem in the simplest possible way, pushing whatever complexity possible to userspace, which is more flexible and which evolves faster. Providing a compressed archive is fine. The user burden is not large: it's just extracting an archive from a standard container format. The kernel has no special advantageous way of doing this job. If userspace wants to cache extraction, it can hash the compressed archive itself and use the result as a key: it's only 3MB. But extracting the archive every time is fine. We're not talking about a huge amount of data, and I don't see a need for the kind of long-term caching that would require revalidation. As for cpio vs tar: IME, people are much more familiar with the latter, and they're both omnipresent on unixish systems. I think it's fine to rely on a tool that's been part of POSIX for over 30 years.