Received: by 10.223.176.46 with SMTP id f43csp121560wra; Thu, 25 Jan 2018 18:41:33 -0800 (PST) X-Google-Smtp-Source: AH8x224onw3uFJgMajJockAZqGT6OrJDkAid4C0vUQL51USzSHRKWTiZr+Ljcq+jIB7VXP/b7mry X-Received: by 2002:a17:902:b094:: with SMTP id p20-v6mr13360593plr.391.1516934493175; Thu, 25 Jan 2018 18:41:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516934493; cv=none; d=google.com; s=arc-20160816; b=zARvQY/ZezniAVaDNxJ0hcD5BL4hsE6uRviW/cawdkSucxksqKJKkmD/v//0Xi7fb2 RE+/pyCHHTqV1cn4xKS5sBlw3YdlgiFdeY1G2i7vfxZzHcaCRPEQXk2oBk3M+JHv77VX 2QIkVYv+ugariNAYz4ETkV5jRzqNXeNu+itPR9aIQ9SgFMGSp0j8/akGKmTUmpPsCrfI DqLlaaYu0dVZPQ3ldX4iSnBpN3Kd0pX6nN/pZENcWbD+M0WfLb6a1MhUmYZc1pTLLwc6 3ZWy+U1d6q7MNfHUY+zKH7f14Odjvcg67Z4/JotIwYI5SPzAEJNrbhsqsZnJo6gNtYKj 8+NA== 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=ZExr67sahsevP0Dy2UXwLIvVHxSBMpkamCPG5T114oE=; b=LQbrGjAxeLOjivHYn7UWWHdQ+Sh6CRHOou3hWk7GkLJ2/9k2AtIHUQmZe6pyVwNm6b zlYjeU1+KpDK6AOdec/TJSV9+EGVxv5RwfwC1h46tS/1Nb9qphBwnDaCKgbkSVRVxeYW G9LtJ5sumtUWILfNoPeCeWN7oHksCJ9wG9IPrtkygN0Qgu495MEbPEPxUxWAwPPhijsX e3yaOHRv6hBKURW79DNNcTS3cwwPDpkEbyWcukmALGBVA3ez1bWB4hMgB6uG9vDwTXap eFIMnq29IjDvM1DDoqn+bzV4wb09srHSMtneYLNgNwNpBcQoeBPPE2Qiuix+X0ai7D4g G9Dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@landley-net.20150623.gappssmtp.com header.s=20150623 header.b=Mc/5Fxjx; 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 x70si2363679pgd.590.2018.01.25.18.41.18; Thu, 25 Jan 2018 18:41:33 -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=Mc/5Fxjx; 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 S1751934AbeAZCkg (ORCPT + 99 others); Thu, 25 Jan 2018 21:40:36 -0500 Received: from mail-io0-f171.google.com ([209.85.223.171]:42037 "EHLO mail-io0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751919AbeAZCkd (ORCPT ); Thu, 25 Jan 2018 21:40:33 -0500 Received: by mail-io0-f171.google.com with SMTP id 25so10224808ioj.9 for ; Thu, 25 Jan 2018 18:40:33 -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=ZExr67sahsevP0Dy2UXwLIvVHxSBMpkamCPG5T114oE=; b=Mc/5FxjxzFgcgC9pxNqWbyzBVOoX8rtOOlGAWljvWb2Ocjybj4GVlSKF5yEv21pDe5 9vhYUJDcktbskDdXDRUKD26+mPaGaY8m6pclRq2X7s6JdqFWj+Dy9xJL1d421oXTGMiq BflEj7ECPKkxLY9OPXgE1kcP0zMOULi2dHoX3n4c+qLAymhRjOKn+scBoAtO2ebFJ9Xk jT/h4uzj4W+mfRzVliAZskwNSs3K/n9cdHy6I8JiNWLaJ+Rm59Eof+bvFbyMp6/fWvR2 zHs0E9BTBjSTTo+djHdJztd6E/5jaKuABnWOkn+dYWCZdxIbQKoXf6Xb8i+1+JfQxRRD ko/Q== 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=ZExr67sahsevP0Dy2UXwLIvVHxSBMpkamCPG5T114oE=; b=hdlNm6mA0NBOm68sazXT+KI1axwMJIb+0bRPlSXSPng/Zvjm1cEvnCi3eiJOkZ1bCA vbFXqc/px8J6R2dQKk71oDouC1amsOXGSGeK9Q8RkP84Td6xLKyA/9z6F5f7XjJIZOi0 svBnyEtnI+v6xwBz0fh8LGIiKppTPe1zqrm6jlntnWzQN38jl/RWrtcH45glKgJP9i6n ZsMvYY01DExmPFhyWTy/Dj5zW7kFvb1aWB3Ex04MQ+s88Gt5glxtEbVC0QNTVknM7f3T KXjIgLPBvbhizBHimL8N/p4zCl5yRC/58fXyywT4e0kxl7WFXt3X6v/p3URK8S+IEMNB DN7A== X-Gm-Message-State: AKwxyteGBqWdjI1hvdFrl7yG3jWDzQ07bRI5gDHOsFM8xg2i/i6aFz5c F+/ipZbM5rX9eCaFOB9WAlRGOg== X-Received: by 10.107.14.199 with SMTP id 190mr14032344ioo.43.1516934432694; Thu, 25 Jan 2018 18:40:32 -0800 (PST) Received: from [192.168.42.25] ([172.58.120.191]) by smtp.googlemail.com with ESMTPSA id p124sm86257ite.11.2018.01.25.18.40.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Jan 2018 18:40:32 -0800 (PST) Subject: Re: [PATCH v2 11/15] gen_init_cpio: add newcx format To: Taras Kondratiuk , "H. Peter Anvin" , Al Viro , Arnd Bergmann , Mimi Zohar , Jonathan Corbet , James McMechan Cc: initramfs@vger.kernel.org, Victor Kamensky , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org, xe-linux-external@cisco.com References: <1516850875-25066-1-git-send-email-takondra@cisco.com> <1516850875-25066-12-git-send-email-takondra@cisco.com> From: Rob Landley Message-ID: Date: Thu, 25 Jan 2018 20:40:25 -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: <1516850875-25066-12-git-send-email-takondra@cisco.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/24/2018 09:27 PM, Taras Kondratiuk wrote: > diff --git a/usr/gen_init_cpio.c b/usr/gen_init_cpio.c > index 7a2a6d85345d..78a47a5bdcb1 100644 > --- a/usr/gen_init_cpio.c > +++ b/usr/gen_init_cpio.c > @@ -10,6 +10,7 @@ > #include > #include > #include > +#include You're adding an assert? Really? > fputs(s, stdout); > - offset += 110; > + assert((offset & 3) == 0); > + offset += cpio_hdr_size; Why? Rob