Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp955562pxa; Wed, 5 Aug 2020 17:32:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzvkPq6r3Dl9P6oDp2cWlIAIeU66DctxHQMkgWdJtzMTntMSqi1kacHgVFnYPIm3WDzvvmK X-Received: by 2002:a17:906:4a07:: with SMTP id w7mr1788547eju.269.1596673948953; Wed, 05 Aug 2020 17:32:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596673948; cv=none; d=google.com; s=arc-20160816; b=lqCXwEnU9OqogS4YPuXIntYyyvVVwZDe3vLJ7Ek9h1j9Ev4YK9z6wJA6hQbv/IXHS8 GdRyPeR/60nSflu52juX3lTRLCOT2T4NhOlzHAJcbqo+/k7HONubUrxAq0GcG/Yszw4C 0dYlCfZXzxuxc9/Ddm/8YqiCbDK4b0TxYyPG8wk7mIv2aXa77fiIluRcJ3H57DsgxWoY z0VDAqA48W7jlIFN/tzZ0iVreOiQUj6wqvsbjwovga+L2nIUue8sG8l3yVDpp59kw1PT bjfDVa/uGe7zqZgC1aTyk3xB/kIQ6h+jJdqWI8DmYtHQ4y3lXWXkooryrKNd/9ALVfAJ 4f4A== 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:from:date:dkim-signature; bh=k9ZUUoVT/rC8cRMVNQlujKR+wnRdpm96UsegNSVO9/A=; b=cS84L0HVceIL7Cy8Swr75pyJ2QcJaujHjmmNgr0ZFRafv6hL/SFp6O9mxlVCV7XpnD 0SIbUVYLW5aORGuPuihQSsgem5+bCpLkSt6JKkHo9fUcbBPXaYYpAg8ioScYwvB2pDZM mV8LjyAwW29k/vGARkyx+Pl+9nkarR/TSPcdaQ1HIC2+8RcPLvMrBiQwRj69pQA+GYkH FkDlXU97nQECXb2CmQ1rFND85Ea87qOyeMtcHGvE8q5Mc5eJLYphL7QILe2Ngi191LKs /MEFVNxRi6DI71SkYcsmp+LTa9D+S8cFtNXnw1hu8X/PY8AHGQ9tq/OrnaepK9BQKRNp ZSaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=wFJLq5LH; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f10si2215546ejc.652.2020.08.05.17.32.02; Wed, 05 Aug 2020 17:32:28 -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; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=wFJLq5LH; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726150AbgHFAau (ORCPT + 99 others); Wed, 5 Aug 2020 20:30:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725779AbgHFAas (ORCPT ); Wed, 5 Aug 2020 20:30:48 -0400 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 58F60C061574 for ; Wed, 5 Aug 2020 17:30:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=k9ZUUoVT/rC8cRMVNQlujKR+wnRdpm96UsegNSVO9/A=; b=wFJLq5LHslH58jU71H4rejyAM 4BSHcOUv4cOu16/dnhsitej9zJ/2bIvYV7mx0AaxxldC8llbrfQfDj/9AbDeHSHAedxg7zsA6ngPM U0Hy1G9c3XvprYmrBpkjTDXrmEVptIxf3uzx7EG3xu3Wyx9ff5xWigyDxyKQ3fpgbQvWmRCrzDgPM 0ZwxZdKIBvh1F0/9ugKpCj2rVlV6lWWlgra7Zm9TZu8/WvyaVBeQ1Zw069zRVchaNv+eIJrlOHkej WBk75kLTC/iUjlSSwQkCbEFFArRbc34oXZ1bOVACOCgfauSU8Tb0oAfdXx0gxpqVTTSvGze4ceeNg R5JwVCoTw==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:48850) by pandora.armlinux.org.uk with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k3Tnx-00042b-Lt; Thu, 06 Aug 2020 01:30:45 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.92) (envelope-from ) id 1k3Tnu-0005b9-Ji; Thu, 06 Aug 2020 01:30:42 +0100 Date: Thu, 6 Aug 2020 01:30:42 +0100 From: Russell King - ARM Linux admin To: Norbert Lange Cc: Arnd Bergmann , linux-kernel@vger.kernel.org, Petr Malat , Kees Cook , Adam Borowski , Sedat Dilek , Andrew Morton , Nick Terrell Subject: Re: [PATCH] arm: Add support for ZSTD compressed kernel Message-ID: <20200806003042.GB1551@shell.armlinux.org.uk> References: <20200805230555.84214-1-nolange79@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200805230555.84214-1-nolange79@gmail.com> 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 Thu, Aug 06, 2020 at 01:05:55AM +0200, Norbert Lange wrote: > diff --git a/arch/arm/boot/compressed/head.S b/arch/arm/boot/compressed/head.S > index 434a16982e34..1af01bfe6638 100644 > --- a/arch/arm/boot/compressed/head.S > +++ b/arch/arm/boot/compressed/head.S > @@ -614,7 +614,11 @@ not_relocated: mov r0, #0 > */ > mov r0, r4 > mov r1, sp @ malloc space above stack > +#if defined(CONFIG_KERNEL_ZSTD) > + add r2, sp, #0x30000 @ Context needs ~160K That's going to mess up kexec: /* * The zImage length does not include its stack (4k) or its * malloc space (64k). Include this. */ len += 0x11000; I guess we need to add this to the information provided to kexec. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!