Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5147097yba; Wed, 10 Apr 2019 12:23:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqxR8V8MRn46yb0faGE4MRrGjTeDmAyTVi4t6d4jVk70RdUMfge009vaF4kIxeWylAGEsnlf X-Received: by 2002:a17:902:3183:: with SMTP id x3mr46059221plb.170.1554924223385; Wed, 10 Apr 2019 12:23:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554924223; cv=none; d=google.com; s=arc-20160816; b=VurvWDqdYqinYNhpNmLwIvrMyYTmBf9EQ5oqQxHEFlLPRiLyXn2SVzkRrRF04DhueH pqoUML8mKviUTzX7xWVel7mgOeBApD6WOxTGUvCrIzZaUFrPoOUEjP7zKEA4saB0CwKH e5xIuI4rFrOJNFr4BZFviOn2uVEZmDT9xJ3cWAWTFDEp7CDIwQhT0MK0muoFc3XMaAwY 1Baqc++Ff4qtlEaDL6cm426BHuwO84caKb5Jo7Rm6sY+7E5WsjWQWFaYWgF0bq6yqKqi BbG11VWFqde4ii3Pi9OGW8s6gdvQpnecFwRdwumimtuGwXP/7T9yewEZQRLqmmAQHbSG tn3w== 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; bh=Yg1CRWpDLdkT8DcNZ4/1Kt/Rhj0AKjem9XJsrZeWYb4=; b=GYfrJz2CTK3AdN/QLgqL7bJzyw92HKs0xMc4d4EE5lA3I8u53O/gjgu7GxsQ4R9k/C w2uCVdtlCl/srYdxeP7FO45AQmeQnBFQLnXqb8Yl2SM8IgbTM+oXdwfESBA21yGXeN8e tyZqJp8ZIIOB+e1GhYLbjVlngL8XAct+d5mVlrVsRThsaGSYSLezuPEbGGTCWlBd4BPG QX/73qH1t5o4q4kyTkz8uUz1yKVJ47eGkZJ3AOr8eFcTTKgAABX9MNEzYD4K9JYKy4xx XSCeO1zhopsSkja3S1TUoSb4S2la409qupzifvIjZMr35SbDRj+FZE9291zA7hPrv07t chow== 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 12si32217996pgu.111.2019.04.10.12.23.26; Wed, 10 Apr 2019 12:23:43 -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 S1726624AbfDJTTf (ORCPT + 99 others); Wed, 10 Apr 2019 15:19:35 -0400 Received: from mail-qt1-f196.google.com ([209.85.160.196]:36790 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726073AbfDJTTf (ORCPT ); Wed, 10 Apr 2019 15:19:35 -0400 Received: by mail-qt1-f196.google.com with SMTP id s15so4287938qtn.3; Wed, 10 Apr 2019 12:19:34 -0700 (PDT) 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=Yg1CRWpDLdkT8DcNZ4/1Kt/Rhj0AKjem9XJsrZeWYb4=; b=lauKN18AGDfCEExEDyPVOa6Uh3GT+LQZQj/aeAOz7VFiWFFaOL0w+MUEUCBJHzGgil w/xQGaxhbSpedYNvNYUqkJomuVauywfUYmzsV0H4jqAOxB6mYU6kBaFMIK6m7QT+tU78 IJeNJe4AQa/hR5w5gHAgvH6tZu19NVa2RXXDOmVjhajGlbpg0cl/+uJAzn9+2WsGfCuS AqCsmmvyJqsRTwIo4XflWg9WkFHZ5jsMLbZP3LrM2cItIZCNn0WaSdP/zq687cSQmMfN SCVwL0isVUQdNVZRjtTA4dS8NFJDFCUXpR+i5RICbk5/Ft+NE2Tb01XnJa+yfEBOrQAY yz2w== X-Gm-Message-State: APjAAAUFzi5zPHKeWxYsd92EddTdEVlxTtmeM2DbmhBChPNb6vgsAUhU tYQrcPHQlnCPfmnsHMUkC3xiL2vjL9WS9wd9Yhk= X-Received: by 2002:a0c:9dcb:: with SMTP id p11mr36568433qvf.28.1554923973662; Wed, 10 Apr 2019 12:19:33 -0700 (PDT) MIME-Version: 1.0 References: <20190320163116.39275-1-joel@joelfernandes.org> <20190408203601.GF133872@google.com> In-Reply-To: From: Arnd Bergmann Date: Wed, 10 Apr 2019 21:19:17 +0200 Message-ID: Subject: Re: [PATCH v5 1/3] Provide in-kernel headers to make extending kernel easier To: Olof Johansson Cc: 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 , Karim Yaghmour , 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 5:09 PM Olof Johansson wrote: > > As far as format goes; there's clear precedent on cpio being used and > supported; we already have build time requirements on the userspace > tools with some options. Using tar would actually be a new dependency > even if it is a common tool to have installed. With a self-populating > FS, there's no new tool requirements on the runtime side either. The decision between tar and cpio directly follows from whether the headers are uncompressed in kernel space or in user space: - we use cpio for initramfs because unpacking cpio in C code is fairly simple, while unpacking tar is not (see the wikipedia page on tar). If we were to unpack it from the kernel, the initramfs code could be trivially reused. - nobody sane uses cpio in user space, since tar is already present almost everywhere, while cpio is rather obscure in comparison. Arnd