Received: by 10.223.185.116 with SMTP id b49csp1986699wrg; Sat, 17 Feb 2018 09:33:59 -0800 (PST) X-Google-Smtp-Source: AH8x2245NLGLTpxxw0a/owQyAKZ5OI7eVdhGJwpGK+bY/AFH6v8YTDq2rxnxAG90TTUmxLiQplMb X-Received: by 10.99.152.70 with SMTP id l6mr7916188pgo.87.1518888839520; Sat, 17 Feb 2018 09:33:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518888839; cv=none; d=google.com; s=arc-20160816; b=I7wGGlfvSWL2Ne4UeiyivWFGwEHgjMACE5jCluveK8NIQNcZcX4txXJvOzDDhiI3ZQ F5iOExMJx87x6vR1pElDSlpnQ56jE96U7VyKagXhD4kz40IxattkZXmK0L9oEFlBRaWX sQjIL5o9zXNUXvRYftLbnjjho01sIGbcyHtV9Gb7a8Soyh+miUZ3X+olfLBV92QJeaJy sdJ7WHDdM+AoumenP0/4R+VcdbxYmKVdMS/FNVoLgw9nQf/UU+vg7XVZZ7cfPpPqeYqE 5M0sEaokshAAGFiufjhnMczRLJ3BnKtcuINeBnmrXt8+PPAuOGVppBpOz0/2f3TIgtgN mBxw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=d0ee9QzTlwFvXutFTFlRkfJA4T+LgNPaoqY8g03PyTw=; b=J73fD+JciAckTgpqcgeTUzV7Br+Up1H/W9kpzEbBnY7HAfMm1bvF2bQ2g2QxEHBWA/ chrOPuxSMnXMGRD4DZ7lZbHkLBhud5+LpEyMLtt0sc0qBoEyryuU5L/0LxFG4VeylfvB Bm1VMpfQ2ko+g0muO35Ps3d8rgtomOU167ZnOUULtOTBDd2YV8qJDuX/smxtZWTRSTn/ l/0RxqeGn8wxVqK32Eo8F6eX0bXtrLlGUbcbqBGGflZ4LGAPZLsIwWxrmwb8GBM3evly KVyd8Gq3qM1ye3kfSd29TuGvEiRhBUFRPbvTc7T5OUgrHJ0ZIFLoljpk9qPOQQXSqN3n kxtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@landley-net.20150623.gappssmtp.com header.s=20150623 header.b=Msf+7QLQ; 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 x10si600993pfj.54.2018.02.17.09.33.44; Sat, 17 Feb 2018 09:33:59 -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; dkim=pass header.i=@landley-net.20150623.gappssmtp.com header.s=20150623 header.b=Msf+7QLQ; 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 S1751173AbeBQRdA (ORCPT + 99 others); Sat, 17 Feb 2018 12:33:00 -0500 Received: from mail-vk0-f52.google.com ([209.85.213.52]:38347 "EHLO mail-vk0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751106AbeBQRc5 (ORCPT ); Sat, 17 Feb 2018 12:32:57 -0500 Received: by mail-vk0-f52.google.com with SMTP id x135so1904128vkd.5 for ; Sat, 17 Feb 2018 09:32:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=landley-net.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=d0ee9QzTlwFvXutFTFlRkfJA4T+LgNPaoqY8g03PyTw=; b=Msf+7QLQrFzxKeWZpAT2l8XyBUgCNl7ehPEGc96WaRTVisZvMShP/+qCk/V/8f2OF5 u34O60I934ApYgH4iLVECpB6F/q1QQyS8SBbptQiCjja3zTuwRfJ2k5OoDQAGbOqKLVs xL7hEatfZ5BjnP59re8RmxGlmpRqAiVFfeFvQB5bN63rizjfWDPprZkA1h/yh17/TVmJ MQiJBCRUeoPKIFEApX74WADIbXWVdDi/+zzJXcVudoEGvteYf0YLU6YYWyLVk22jk0Ub UNJlUqBGu1X9+KsKjq7QOC58euz0w2CKWeR9VEz0uhKNFIREPGD9cADa6/ti5GeSqw9B huTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=d0ee9QzTlwFvXutFTFlRkfJA4T+LgNPaoqY8g03PyTw=; b=mR+UOwqldPWZkY/49ui1pQPuRjhFWYsy8CkAb73oE1AKhBQd7brKxQuWrR0US/sws3 JoDqkHidg5Lt3rwWCBfBNXJu8rM4PfpvQS0OnR04dCQpYRDNIye+l1/2ZFUGG6/HjSZV DFceUEaMVfJQq8ah00Dt/oOf9lu3Fb1Pc50f7uUaYeJPa2A6ROQO+63GMCzW85lkfr5F o4JyAGfBtwhODdWsKGk+BFc3i4AMF//OPd5HVfKeE3b5j18+S/TgR3UUHnMPXre19zFG wHCwS/XAJucxy6wqwDe/Tihb6Ck2g/nFc+SsCz9yiCWFG3m8epWfD+dPgMLPPcKA/ziF KufQ== X-Gm-Message-State: APf1xPAz3T6nFxPRe3Ezzj/DmnrEKNNtLYLm3eL/itImTLiuIJ1ENoLr EYPmnALgb36ZaiKpdQGN60mQ6A== X-Received: by 10.31.108.21 with SMTP id h21mr7226570vkc.26.1518888776647; Sat, 17 Feb 2018 09:32:56 -0800 (PST) Received: from [192.168.43.158] ([172.58.140.73]) by smtp.googlemail.com with ESMTPSA id 82sm5919047vkh.35.2018.02.17.09.32.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 17 Feb 2018 09:32:56 -0800 (PST) Subject: Re: [PATCH v3 01/15] Documentation: add newcx initramfs format description To: hpa@zytor.com, Victor Kamensky Cc: Taras Kondratiuk , Al Viro , Arnd Bergmann , Mimi Zohar , Jonathan Corbet , James McMechan , initramfs@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org, xe-linux-external@cisco.com References: <1518813234-5874-1-git-send-email-takondra@cisco.com> <1518813234-5874-2-git-send-email-takondra@cisco.com> <72480de8-e6d6-5125-e647-08815eb9f6a7@landley.net> From: Rob Landley Message-ID: Date: Sat, 17 Feb 2018 11:32:51 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/16/2018 06:00 PM, hpa@zytor.com wrote: > Introducing new, incompatible data formats is an inherently *very* > costly operation; unfortunately many engineers don't seem to have a good grip > of just *how* expensive it is (see "silly embedded nonsense hacks", "too > little, too soon".) So your argument is we should use the _existing_ cpio format that supports xattrs? You keep bringing up the embedded world as a thing you don't understand and is thus bad. I remember when you dismissed "I would like to constrain my cross-compiling dependencies to a minimal set" as a... what did you call it, a silly academic exercise? (Googles...) https://lkml.org/lkml/2008/2/15/548 > Cpio itself is a great horror show of just how bad this gets: That's not what you said last time? http://lkml.iu.edu/hypermail/linux/kernel/0112.2/1540.html > Introducing a new incompatible data format without strong justification Here's you suggesting a new format when initramfs first went in, because you disliked _both_ tar and cpio: http://lkml.iu.edu/hypermail/linux/kernel/0112.2/1587.html Seriously, there is a "why cpio rather than tar" section of https://www.kernel.org/doc/Documentation/filesystems/ramfs-rootfs-initramfs.txt with links to the messages. (www.uwsg became lkml in the links, I should submit a patch fixing that, it redirected 6 months ago...) We've _had_ this argument already. You are not bringing up _new_ arguments. This patch set is because people want xattrs in initramfs. I still don't personally understand why they want this, but they do. We need to still support the existing file format for the forseeable future, and we might as well fix y2038 while we're there (treating it as unsigned buys us a lot of decades, but as long as we're bumping the version number anyway...). Otherwise it tries to be the minimal set of changes to get us there. (My first stab at this was dealing with sparse files, but runs of zeroes gzip pretty well and tmpfs could always make itself sparse after the fact...) > Doing it under the non-justification of expedience ("oh, we can share most> > of the code") is aggravated engineering malpractice. Coming from the guy who added perl as a build dependency to every project he maintained simultaneously (the linux kernel, your bootloader, klibc), that seems a lot more like an opinion than an objective metric. > It is entirely possible that the modern posix tar/pax format is too complex In the link above you declared it too complex in 2001. Partly because the gnu tar and pax formats aren't really the same format. > to be practical in this case – that would be justifying a new format. But > then you are taking the fundamental cost of breakage, and then the new format > definitely should not be replicating known defects of another format and > without at least some thought about how to avoid it in the future. Didn't Linus flame more than one developer for ripping things out and replacing them with a new untested thing rather than leaving a trail of breadcrumbs from a known working thing to another known working thing? Or has the right way to do it changed since the 2.5 development cycle? Strangely the poor souls suffering under the burden of cpio to use initramfs today haven't been screaming out their agony in a detectable way. (They're mad the kernel doesn't give better feedback about why init failed to launch and it either paniced or fell through to the fallback ROOT=, my patch to make devtmpfs_mount work for initramfs was trying to fix the "you pointed the kernel at a root filesystem directory which it cpio'd up but there was /dev/console in it so your init has no stdin/stdout/stderr and dies immediately because of it" problem. And the recent thread about "please don't add a third knob to make initramfs be tmpfs instead of ramfs" was another corner case of that). And I have half an INITRAMFS_VERBOSE patch around here somewhere to printk() a lot more status (and I need to update the initramfs documentation I wrote to help people have an easier time using it...) But that's not about archive format. That's kernel userspace bringup being persnickety. The silent majority you speak for on this archive format issue is pretty darn silent. Was this recorded as a problem for you before somebody suggested changing it? I tend to be public about https://twitter.com/landley/status/964620648050982912 and collect links to other people's concerns when I notice... Or is this just your opinion? Rob