Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp279338ybz; Fri, 24 Apr 2020 16:02:35 -0700 (PDT) X-Google-Smtp-Source: APiQypLJcOZdKH2JA732ufQ5tXoah9I2DoTqmdbaYH4UUPOCFAhOOcwoEOAzkLyYF2BAj8Y7Hl9s X-Received: by 2002:a05:6402:1bc8:: with SMTP id ch8mr9424193edb.53.1587769355227; Fri, 24 Apr 2020 16:02:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587769355; cv=none; d=google.com; s=arc-20160816; b=iRWymbFV5LPOyFa9EgrbUt98DydiOXKRwjvVfomP8zA4wd0Qb2zeBlpgMC9GPXe447 nf5wZWSaZ1z99fbQQw/p074J4HsUm+AXPObVTBRZVIQtnNdF2sZOPmiZZPUVaiHMfJzS /8kKgyVi45fJxRJMClPsbZ0R9xm6pA84Um2a8755cfTmKWcYUNJaz6fZSZRYKaUEYFVe SRBOsbYQXQSpNffF5MrcuRIqY0RaBnsyq/g+h1bdgLU/tdx71rOfq28MKZt1/xR2BlOz HkztPk898jUASKppYpYuMfBUOlaJ8fu/7g0IKhKeJ9V0HjMtL2kaRtRTBHVeA8Lv4/p0 EDVA== 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:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=7Se39CZGgxBRpxXFmainpyGgRXXGPDRD7YWEB5iVbVc=; b=LGNQdkkfkcOogWOI1rZOe/4avwHm7H+qXRXVP75Me+H/A331JJjmGg0qCkUDGgKv5G ehf0BspQgWOF9pknO2JSB78vSJSZQO+LAQHViRbukWK49pi1gHBSTufkiVzLbFjQCsF1 QshfFyx2YQmUTWuc0JKySYE/YTBE/tr9UhrWCdiOLzE3R+ZAgavbFFdWSgaYizFKURiv n95GUGQXMLLX103+vv+TxagKZVrdul/JOhvTlHDcBAkP0Nql0YvnjDy6R42SYCOl+n5r 3C2msgPey4uKTbEP63RcQLCZ4v1fLsPbGBdZABY8mydOUYudWX5zsNUUJT4yvC/sQ70o A/BA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d13si2862280eds.361.2020.04.24.16.02.11; Fri, 24 Apr 2020 16:02:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726053AbgDXXAt (ORCPT + 99 others); Fri, 24 Apr 2020 19:00:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:60308 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725874AbgDXXAs (ORCPT ); Fri, 24 Apr 2020 19:00:48 -0400 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EFDAB20736; Fri, 24 Apr 2020 23:00:47 +0000 (UTC) Date: Fri, 24 Apr 2020 19:00:46 -0400 From: Steven Rostedt To: Masami Hiramatsu Cc: Borislav Petkov , Kees Cook , LKML , Ingo Molnar , Andrew Morton Subject: Re: [BUGFIX PATCH 1/1] bootconfig: Fix to remove bootconfig data from initrd while boot Message-ID: <20200424190046.0471c3b5@gandalf.local.home> In-Reply-To: <158774605193.7423.573803007569761807.stgit@devnote2> References: <158774604073.7423.11492815214537711118.stgit@devnote2> <158774605193.7423.573803007569761807.stgit@devnote2> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 25 Apr 2020 01:34:12 +0900 Masami Hiramatsu wrote: > If there is a bootconfig data in the tail of initrd/initramfs, > initrd image sanity check caused an error while decompression > stage as follows. > > [ 0.883882] Unpacking initramfs... > [ 2.696429] Initramfs unpacking failed: invalid magic at start of compressed archive > > This error will be ignored if CONFIG_BLK_DEV_RAM=n, > but CONFIG_BLK_DEV_RAM=y the kernel failed to mount rootfs > and causes a panic. > > To fix this issue, shrink down the initrd_end for removing > tailing bootconfig data while boot the kernel. > > Fixes: 7684b8582c24 ("bootconfig: Load boot config from the tail of initrd") > Signed-off-by: Masami Hiramatsu > Cc: stable@vger.kernel.org > --- Thanks Masami! I pulled this into my urgent queue. -- Steve