Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp489989imm; Fri, 17 Aug 2018 01:16:49 -0700 (PDT) X-Google-Smtp-Source: AA+uWPz0/rQnW61UBFbUpWGWUKNTCH7hCsPrlp0ljXtLKR17x0X0HWXQUCCLZ6q8shvDhGiqj1P8 X-Received: by 2002:a17:902:1001:: with SMTP id b1-v6mr32362172pla.155.1534493809811; Fri, 17 Aug 2018 01:16:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534493809; cv=none; d=google.com; s=arc-20160816; b=hOhhBuNgsE2KeLqejmMnYph1A3UbxwN24IJQItceFn0HZ/FGWyI6m8omrkUudIM+p3 mvBf6WfXndsV3LbO0yLmradyY4AQdOW9poR90JUUlJHapJao1YRVU1hsqfEthaEM6PQe xMwfNY1GZvcZgCec/0X3TeACT/J6UD7RUuEArlX3BJ3iOkB9aLnalWjQ06tdmoEKcqTl 24xYQo5IrB7EMDtzwztNRxDcTkixt5PAMbrK9a0jO1mryVV7IMibbKeJQf/2leQqBCEI rOxeBszXYoqCYXmyTUYDaq9x0KsVRy9zRcIc5U5jsneZQaaQgK/nxTVZXS6BbSyoBcoU F54A== 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:cc:to:subject :message-id:date:from:references:in-reply-to:mime-version :dkim-signature:dkim-filter:arc-authentication-results; bh=aaOf1Qn1Ur85xeijtULGDzZzMLuKA+HC5qhcoRyye/A=; b=KHiUllnxagmlrzdELeFxYCIcxdb7C7loxMZkKny+6/4QwEUy8E+EX0eUtsN5Sse1xJ QMnWNf3F4yqx51cV/FLLnRJj52URPizgoMeHclKhRFvw/1HxzajzoGXhCoHKaM18oZDU 0o3dMO1ox1Womi4lxz5QVRhE2bisSl3K2qkaTRdUp6HLjJ9wHIMnQfeICehVMPivIJ09 dBXVoLpT/lKzaLFTNeglzxfd50koEipfz5gRHE0qgsvqYubG5zj0ewncyGO9GrIe8FOo RF1IIen05Ef7nOxVS/i8kk5K36w3ZFnEHnUkd7YgGxayAhC5ybRA8Y3mk4xW+VkhsvHs gGFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=C0VKNSzD; 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 c10-v6si1452239pgg.315.2018.08.17.01.16.33; Fri, 17 Aug 2018 01:16:49 -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=@nifty.com header.s=dec2015msa header.b=C0VKNSzD; 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 S1726664AbeHQLRz (ORCPT + 99 others); Fri, 17 Aug 2018 07:17:55 -0400 Received: from conssluserg-02.nifty.com ([210.131.2.81]:41926 "EHLO conssluserg-02.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726520AbeHQLRz (ORCPT ); Fri, 17 Aug 2018 07:17:55 -0400 Received: from mail-ua1-f48.google.com (mail-ua1-f48.google.com [209.85.222.48]) (authenticated) by conssluserg-02.nifty.com with ESMTP id w7H8F7GJ008407 for ; Fri, 17 Aug 2018 17:15:08 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-02.nifty.com w7H8F7GJ008407 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1534493708; bh=aaOf1Qn1Ur85xeijtULGDzZzMLuKA+HC5qhcoRyye/A=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=C0VKNSzDeA0/JwqsJvo8p/KCh4+rjNyOFxh5tNK4Pii5aiVALaRVweQIFOJ2QDkWU FwFuI6iFGOmZUAH80ZIXNcXNRUGgsChJ/ug8k7QQ+lM/O4oZxfndMGHRrbaR2ukIkh t/Zy5rIte+2oXnL21FcHsmJoSDlaNiaPKz/lDPonJiyws+fYlUr+pQwZG+VtSFuNg5 3hA5dQKcsJ2sNNrlPZNWRcl/EOv33jnkGH/+vA/g6kZgQ5E9NkRATeHf6/z4jotOOi yP9bsx9l4iuZEbz91Yr6Yo3LK5Di0v4hLJUjIqjB1YPrppHt1cYkXwvm+4NQ5OrKs2 VkcQTyLBHJy7Q== X-Nifty-SrcIP: [209.85.222.48] Received: by mail-ua1-f48.google.com with SMTP id k25-v6so5231716uao.11 for ; Fri, 17 Aug 2018 01:15:08 -0700 (PDT) X-Gm-Message-State: AOUpUlFxZ+vyWVu0/44StFmEztqU6C3JgqZk/p/5GMAnLeb6XHjdtedr TAUk7w7la69Lu/jnW8mnWGpYr/itbO2fBTf6lQk= X-Received: by 2002:ab0:30ce:: with SMTP id c14-v6mr22274637uam.58.1534493707419; Fri, 17 Aug 2018 01:15:07 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ab0:2642:0:0:0:0:0 with HTTP; Fri, 17 Aug 2018 01:14:26 -0700 (PDT) In-Reply-To: <20180817074747eucas1p1a70969aac4238b0c8db0d8e59f4af078~LnGev9y9l2871228712eucas1p1X@eucas1p1.samsung.com> References: <20180816161817.12267-1-andrzej.p@samsung.com> <20180817074747eucas1p1a70969aac4238b0c8db0d8e59f4af078~LnGev9y9l2871228712eucas1p1X@eucas1p1.samsung.com> From: Masahiro Yamada Date: Fri, 17 Aug 2018 17:14:26 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] Revert "kbuild: create deterministic initramfs directory listings" To: Andrzej Pietrasiewicz Cc: =?UTF-8?Q?Bj=C3=B8rn_Forsman?= , LKML , forney@google.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2018-08-17 16:47 GMT+09:00 Andrzej Pietrasiewicz : > Hi Bj=C3=B8rn, > > W dniu 17.08.2018 o 01:34, Bj=C3=B8rn Forsman pisze: >> On Thu, 16 Aug 2018 at 18:18, Andrzej Pietrasiewicz >> wrote: >>> >>> This reverts commit 9e6e0d5f2a2713402cf9dce69b9f9b516e4185d2. >>> >>> The reverted commit introduces broken builds. Even though the cpio arch= ive >>> does contain all the specified files, it seems that the kernel, while >>> populating rootfs, scans the cpio buffer linearly and fails to create >>> files whose parent directories are nonexistent at the moment of this fa= iled >>> creation. As a result, such files are not accessible when kernel boots = into >>> initramfs. >>> > > > >> >> I'm unable to reproduce it. On my system the listing is sorted so that >> it works (parent directories appear before files). I tried to run with >> LANG=3DC and it also sorts correctly. What is your LANG=3D? I think we >> better add a LANG=3DC somewhere in the kernel build system, because I >> think you have a LANG=3D that makes it sort differently. A quick fix >> would of course be to insert it right next to sort, but there may be >> other places that may break due to LANG=3D settings. >> > > Thanks for the tip. My LANG is pl_PL.UTF-8. Indeed, prefixing the "sort" > invocation in question with LANG=3DC does solve the problem. I don't feel > competent enough to say whether this is the correct place for the fix, > or if the fix should be made elsewhere. Another option is that it is the > "sort" itself that should be fixed (or the locale, or both). > > Would you be able (as the author of the patch in question) to check if > there are other locales which cause the problem? > > Thanks, > > Andrzej I cannot add LANG=3DC to the high-level of the build system at least since it would break the localization. --=20 Best Regards Masahiro Yamada