Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2358429yba; Fri, 17 May 2019 15:40:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqwABon+/8fMIJrFFDHXITMTD2q3WTwBZIcIhWT+vWtDYusv6PLTPVc3Mu0kCGS2Jn6Z9Tse X-Received: by 2002:a63:2248:: with SMTP id t8mr15635485pgm.358.1558132842067; Fri, 17 May 2019 15:40:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558132842; cv=none; d=google.com; s=arc-20160816; b=GNKdqhfAZTL1iSe5AGmxWyELyyhtViuC8N06NLxLO6gExreB6Y3RtWP2uNQFptTLbV QMcqzHT2h5y7nzSDnB2Kthlpp4LuR0G7z93VP1CjZkyrWEjtuH+S8Zx9IV0RTMcA6IOx Jxjeu21NXmAtXvgoABfpz4aSyWZnuQ78YgKd0mhTnwN5hq/bhshpSYfAUF24wd0GJOHu 1O6glgdvbsrIXXfY//cPEbSjCS/ulie0kqXSjurRGgEKkxTWLoZvF/j9rWQLimzCMwsv 7yhayAy8d26py4nFAAx6GRa2iBwcKGVSTnTLtyOE6pUc8Bs2Uco83VTVSumD+RBNjW1X tSTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:date:from:dkim-signature; bh=zm172sKuEoJHoST/QG9QtXQuShTwFrHdaf7AbMxHV/c=; b=jVycD4rMDmKO2VIQAhpn3bFdMClxDQX+UoYL+5rsBd1XWLt9Mqgb58NutXG7vI1LrS txetOQEBBaawA0KuRpXcAbm/eDlmZCM1w5RKfW59bjiR2tn63n91aVf49cApcaxxXzw3 jB1OUr46G3dG7jkJU+cv1K3OnqRsrxw2TZ4UolefpBFfx0vF6O/uzuYZFtCljNMoF3EK 6OeQilcsnO7ym0AghHIGjGe37MHMlT/hs8wcglW9vpWCYDuveRe2WNabu0ZeBc4nMN7p bTi1kH2cdN+YMau4J/8jynIESxL5CSnoyjp1lYA8T/ay58KcvkErRvaf68YiucdYqjeV zD9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=NvtUMrEE; 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 p16si9071327pgd.370.2019.05.17.15.40.27; Fri, 17 May 2019 15:40: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=fail header.i=@gmail.com header.s=20161025 header.b=NvtUMrEE; 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 S1729303AbfEQVCY (ORCPT + 99 others); Fri, 17 May 2019 17:02:24 -0400 Received: from mail-qt1-f195.google.com ([209.85.160.195]:34686 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728382AbfEQVCY (ORCPT ); Fri, 17 May 2019 17:02:24 -0400 Received: by mail-qt1-f195.google.com with SMTP id h1so9681064qtp.1; Fri, 17 May 2019 14:02:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=zm172sKuEoJHoST/QG9QtXQuShTwFrHdaf7AbMxHV/c=; b=NvtUMrEEEmOmOEaikDJJe53KWEzTe30PTlqu92ySPuycej06XQWJu+rFpdk/3OJM34 Z/nasyQM0942f/xMmRcaxJ0PTSKm40p4bsqdWHJc/dhtrVKkV/XBz4tkFW4/510XTCoV K3pS0Kb28WteLZqychrKFcRjSeeZYCuQ2yc8lKGwBSF2ipldMpcAU3mPTWy/z8YfooI5 JZYYB0RprvKbpK1U/ozZ8Xsf1SgOpBVU4Dx5qfRURfzXdP5ipFf4IFpGjaAEMt8k0vfN g1x3FVVHhUH9xIyb9Dk5mF0c6RkhD9/NYojUcLUPiO7Wdgi2UKlxtgN42mEDPoUv9nqM 9vWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:date:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=zm172sKuEoJHoST/QG9QtXQuShTwFrHdaf7AbMxHV/c=; b=MGc7TQbiHmTattsGIm5LHLfHGbIhStuXA0FTM9k6uuwAU+ewqO2sfSbB9Ebj/4HNj9 d6reKQ7ozXe/6ByT3RKfV/xXWeF+A3JRESp1TXUfnakCrIP8mzcQBj3JUna2fOoNNUYn IS4PMFbmlhho6o3HJBLttiP3L0MiX4XuEinpcG32czLXazSIXAGsB+F6XF+DfA+8PzUm Vi0nRIJLKW0mRYoWFzy2JhEU17bCa5aw4+k79J9dofM6azQ6y3aGi0IBmwPYJRnY9xi8 5cthN0dS/J+PaVXDowVX8VdaDrAa3CCCl/U+F/j3wPuQ3llptuYP5FA92AkHI73nLFks fAeA== X-Gm-Message-State: APjAAAVjBVtZpEQHOdJSX7GtbsmpjJspgQG7Yx9fyonZYDoVJR+mfJ0k +NyBBrzPqoRDmRdDFWXjJ/A= X-Received: by 2002:ac8:353a:: with SMTP id y55mr48673865qtb.95.1558126942686; Fri, 17 May 2019 14:02:22 -0700 (PDT) Received: from rani.riverdale.lan ([2001:470:1f07:5f3::b55f]) by smtp.gmail.com with ESMTPSA id e4sm4540925qkl.17.2019.05.17.14.02.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 17 May 2019 14:02:22 -0700 (PDT) From: Arvind Sankar X-Google-Original-From: Arvind Sankar Date: Fri, 17 May 2019 17:02:20 -0400 To: hpa@zytor.com Cc: Roberto Sassu , viro@zeniv.linux.org.uk, linux-security-module@vger.kernel.org, linux-integrity@vger.kernel.org, initramfs@vger.kernel.org, linux-api@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, zohar@linux.vnet.ibm.com, silviu.vlasceanu@huawei.com, dmitry.kasatkin@huawei.com, takondra@cisco.com, kamensky@cisco.com, arnd@arndb.de, rob@landley.net, james.w.mcmechan@gmail.com, niveditas98@gmail.com Subject: Re: [PATCH v3 2/2] initramfs: introduce do_readxattrs() Message-ID: <20190517210219.GA5998@rani.riverdale.lan> References: <20190517165519.11507-1-roberto.sassu@huawei.com> <20190517165519.11507-3-roberto.sassu@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 17, 2019 at 01:18:11PM -0700, hpa@zytor.com wrote: > > Ok... I just realized this does not work for a modular initramfs, composed at load time from multiple files, which is a very real problem. Should be easy enough to deal with: instead of one large file, use one companion file per source file, perhaps something like filename..xattrs (suggesting double dots to make it less likely to conflict with a "real" file.) No leading dot, as it makes it more likely that archivers will sort them before the file proper. This version of the patch was changed from the previous one exactly to deal with this case -- it allows for the bootloader to load multiple initramfs archives, each with its own .xattr-list file, and to have that work properly. Could you elaborate on the issue that you see?