Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp468488imm; Fri, 17 Aug 2018 00:50:00 -0700 (PDT) X-Google-Smtp-Source: AA+uWPyx5UCXurvUKIxFzelRTWMpJq6GEs/FHLXGmzl8r9CvrAPWCK2zBNdiAuJl74BCwFnWhSgw X-Received: by 2002:a63:3c4a:: with SMTP id i10-v6mr31833850pgn.415.1534492200706; Fri, 17 Aug 2018 00:50:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534492200; cv=none; d=google.com; s=arc-20160816; b=ETClw7wE2jTSp2nwj1zCNfMtxID5ksVjKJpUW/xH9YimP/UFTqkilJ7FdDM25mp4Q/ y9D+/YBOe950FGXuiWQjjKCalVOFe/o8m+tXXjWWNGum2Y03/7Wic0Uy/NmYrCKSsyai pwt4z1Ew8zmTVIMIK3lrjUhoaeHVHD+aocbcz6p2xg/BcNHfaN/31NVhwaaJ3VRk+wV2 Kpr4ZC0E+Re3c2ObWQmw7G0LIcLiW4Sc+/QawyQo9rMOzV3EHUztnAH+hWca3TvSBo3o PiOUnMKezbVw2AVYc5Bujv1vnWpwTqt14E0S8LF/8euPFWsdu9BBVVDaa/5QM+sViZzc yBxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:message-id :content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:from:cc:to:subject:dkim-signature:dkim-filter :arc-authentication-results; bh=7nsGmHi3S5cr/KR4gh57xMJXYesuxAucxZtlz/fPZdc=; b=lMzKOsxlNxEfoU/8xycZqOZpAcWtnxuXnsk/tNCbrS4vVe830jB3qXrdi3Q+QGjXHd +fLmXLCj4qBdnotpPv0k6c3/lBG1ZwiB+Ja693LMD3r3a8KH2BsVWNEn1w58mu2EqXFE 9cPi2VyeFznNjKwV3na2u1OuFblIZV9sWr4APWwgCbIC8hZsEapmTfugoJ9fesQ63IP8 CEgr0TA4eGx6mqHH+j+tKa1T7XlKBJafDAq4AL/m1xobBtDR74SxoQgEGI4n+cOM934g 3wT+j5Su/TAN/d/okPVBEQafbnSLSyB9MG5waeiZpDSuTOwDnKIMrcFCaRUg9FLpDFE0 Du1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=FqV9N5S3; 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=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z15-v6si1534155pgf.293.2018.08.17.00.49.45; Fri, 17 Aug 2018 00:50:00 -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=@samsung.com header.s=mail20170921 header.b=FqV9N5S3; 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=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726689AbeHQKuL (ORCPT + 99 others); Fri, 17 Aug 2018 06:50:11 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:57267 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726041AbeHQKuL (ORCPT ); Fri, 17 Aug 2018 06:50:11 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20180817074748euoutp02e25ca281e3063ff6e9b941fcb63676a3~LnGf5jqyn0060100601euoutp02U for ; Fri, 17 Aug 2018 07:47:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20180817074748euoutp02e25ca281e3063ff6e9b941fcb63676a3~LnGf5jqyn0060100601euoutp02U DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1534492068; bh=7nsGmHi3S5cr/KR4gh57xMJXYesuxAucxZtlz/fPZdc=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=FqV9N5S3js65EHqpTYnXFylPzOMbZrbqrOCcDQ6rJziuJdJPIZMzeymne9u73tWpD h5UxRv7rIfdpysgb+V3NIFukOk1okD7jvegdIupEvRhsTH5sGWKYX2VNJBP8nE5n05 Szxk9dSv1wSwg8VjuGsWZD8/9/RMLRumN54k6Te4= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20180817074748eucas1p29e1dad39c46640198e595d7c3a66410f~LnGfgFCgI1474814748eucas1p2u; Fri, 17 Aug 2018 07:47:48 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id E8.9D.04806.3AD767B5; Fri, 17 Aug 2018 08:47:47 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20180817074747eucas1p1a70969aac4238b0c8db0d8e59f4af078~LnGev9y9l2871228712eucas1p1X; Fri, 17 Aug 2018 07:47:47 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20180817074746eusmtrp21dfc6053cfbf7e1daacddb1888375676~LnGehtKWp1247012470eusmtrp28; Fri, 17 Aug 2018 07:47:46 +0000 (GMT) X-AuditID: cbfec7f5-367ff700000012c6-6b-5b767da35146 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 7F.7C.04284.2AD767B5; Fri, 17 Aug 2018 08:47:46 +0100 (BST) Received: from [106.116.147.122] (unknown [106.116.147.122]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20180817074746eusmtip1551893c8c19d7b6381812a9fca92f43d~LnGeOWDX71051610516eusmtip16; Fri, 17 Aug 2018 07:47:46 +0000 (GMT) Subject: Re: [PATCH] Revert "kbuild: create deterministic initramfs directory listings" To: =?UTF-8?Q?Bj=c3=b8rn_Forsman?= Cc: LKML , forney@google.com, Masahiro Yamada From: Andrzej Pietrasiewicz Date: Fri, 17 Aug 2018 09:47:45 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprMKsWRmVeSWpSXmKPExsWy7djP87qLa8uiDf7c0bDomLmY3eLj2Svs Fpd3zWGz2HvvM6MDi8fOWXfZPRZsKvU4Mf07i8fnTXIBLFFcNimpOZllqUX6dglcGXN6ZrIW vOKpuNP8mK2BcT5XFyMHh4SAicS/11JdjFwcQgIrGCV+zljNAuF8YZRY23yFCcL5zCixcP8m 5i5GTrCOpqdf2CESy4GqFk9mg3A+MkrsfLWWCWSusECkxJGrCSANIgI2El1zX4I1MwvkShw4 +YodxGYTMJbYe7CDEcRmEVCVmPWlH6xGVCBC4siDhWBxXgFBiZMzn7CA2JwCgRKf5i1ngZgj LnHryXwmCFteonnrbGaQGyQEutklPvVMYIJoLpPoXvOCHeJqF4nd8+eyQtjCEq+Ob4GKy0j8 3wkxSEKgXmLTlz1sEPYURol7c70hbGuJw8cvsoL8xSygKbF+lz5E2FHizNnjTJBg5JO48VYQ 4hw+iUnbpjNDhHklOtqEIKqVJbZ8PQUNQkmJ1jfLGCcwKs1C8uQsJI/NQvLYLIS9CxhZVjGK p5YW56anFhvnpZbrFSfmFpfmpesl5+duYgQmldP/jn/dwbjvT9IhRgEORiUe3glrS6OFWBPL iitzDzFKcDArifDOPA8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qQluDc3Zv6z+ Vtl/gfpGE2eJ+e6SdikZm3Mf+Z+PXZLar8RSnJFoqMVcVJwIAKkrGpG8AgAA Message-Id: <20180817074747eucas1p1a70969aac4238b0c8db0d8e59f4af078~LnGev9y9l2871228712eucas1p1X@eucas1p1.samsung.com> X-CMS-MailID: 20180817074747eucas1p1a70969aac4238b0c8db0d8e59f4af078 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20180816161825eucas1p11be9cea5d622b905154590bae90a47a4 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20180816161825eucas1p11be9cea5d622b905154590bae90a47a4 References: <20180816161817.12267-1-andrzej.p@samsung.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Bjørn, W dniu 17.08.2018 o 01:34, Bjørn 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 archive >> 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 failed >> 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=C and it also sorts correctly. What is your LANG=? I think we > better add a LANG=C somewhere in the kernel build system, because I > think you have a LANG= 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= settings. > Thanks for the tip. My LANG is pl_PL.UTF-8. Indeed, prefixing the "sort" invocation in question with LANG=C 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