Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp554304ybg; Mon, 1 Jun 2020 08:17:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJztzXLjJupFyZ8EGGQOt0TmUhE9e1gkykGlOhDaYG8/oyio9OM73vqWxGBtpVDSVLKGD2AU X-Received: by 2002:a17:906:509:: with SMTP id j9mr19036738eja.341.1591024627848; Mon, 01 Jun 2020 08:17:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591024627; cv=none; d=google.com; s=arc-20160816; b=mCC8V6hyouokBrGUINf/DU9VZ06vs6u6J6OJw79HXofoNRQs0lB7bqZEVsTJG2TPUm 1Ps/NKg4fYWd8rDL9jlgpuGIQ1VIjbC7j/T/JtdHUt4+iGLjhEi0ZCpXf2ezMntTFrqz HRfSdsOh25tMY7CrlwLdWACGgGAMjDYcESqFIRfP72E2ijhaHeOAN+aG2Aka3kRJNEBf TRCBy3zU376DkHa3yHnyaA6gDzAYRCkW009dQdBdZq5MNmj+XhbW89QbnmHac6A5pubC cBTIsAQ8ctMJ6b49aDvN6CTZJx2LxQeEUgcxySUT21cBjZUhpDqx8zOMCiLDaHBIkGwc gNtg== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=PIZ+lVLQagv2LzCpnL+lQMbd+eEgTlAiMx0920iCwH8=; b=Ve3iGwRRg8br+a6ghny5LzScGQG5jGNU2jRPAGdMHHCS9Vd/lV0fBMC610oe3N8Kf9 kYchv0gkzmVfhX0qvlo2PxLMP4bVWXCxfbIZ+zpGExCmTBvBjvrzAilV+NEoBh60Eklc 5bAiC3Aoq7Wii1Iu5rIptP+QyPfQPTWFSgauTbQaQFJ/3B6H8iHGCpkwBEs838XdpxaP tnkw5PTaeZS+u77WpnfDs37cLALxDWCyXqOYDJkZe+dm8kQNVehUgULeJu3s4Uuiq0cl FLj/ivT10eXja7KHwN2UwGBas0KuuX3tQg/k60ouDB1lwE+fYegXmMyxAMiW/VVmY5B9 +AtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=nb3XuYt6; 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 mj1si4085583ejb.668.2020.06.01.08.16.43; Mon, 01 Jun 2020 08:17:07 -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=nb3XuYt6; 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 S1727100AbgFAPOp (ORCPT + 99 others); Mon, 1 Jun 2020 11:14:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39060 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726125AbgFAPOo (ORCPT ); Mon, 1 Jun 2020 11:14:44 -0400 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:3201:214:fdff:fe10:1be6]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 247B7C05BD43 for ; Mon, 1 Jun 2020 08:14:44 -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-Transfer-Encoding:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To: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=PIZ+lVLQagv2LzCpnL+lQMbd+eEgTlAiMx0920iCwH8=; b=nb3XuYt6KaS3K6JXq4mom4OUv A3TZiLSUAVxInYU6nTJGb47CBbnklOEMIiFr+NDU9Ywxd7l0yBkgbvoZv+38IXLERUzeeY5G1gW4q 0m4tT5oOe+EX/3o0hk3XhPCw9QGjNy2C10NZ+mstc4kHKgw+y3mKHUqW17S3E4gxwY7wf0smuFY0V 435MAU8Ebyy+9cyEiZnZWAiexKALkh1wJ3KJe+UjKbXRcbPoA3MXeKay55kExTNPJfYskmhvy8U51 TKUl+WYkhcYkE7+n/ozNKZkwRq6y532LhTz8wx/GvrHTI18cuzGIWW7YWrlcE1tjr2Dw6jnCZaqBL qYakL7EXw==; Received: from shell.armlinux.org.uk ([2001:4d48:ad52:3201:5054:ff:fe00:4ec]:48060) by pandora.armlinux.org.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jfm94-0000df-3d; Mon, 01 Jun 2020 16:14:34 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.92) (envelope-from ) id 1jfm91-0003QH-Sw; Mon, 01 Jun 2020 16:14:31 +0100 Date: Mon, 1 Jun 2020 16:14:31 +0100 From: Russell King - ARM Linux admin To: =?utf-8?Q?=C5=81ukasz?= Stelmach Cc: Kees Cook , Bartlomiej Zolnierkiewicz , Masahiro Yamada , Nick Desaulniers , linux-kernel@vger.kernel.org, AKASHI Takahiro , Ben Dooks , Thomas Gleixner , Enrico Weigelt , Ingo Molnar , linux-arm-kernel@lists.infradead.org, Marek Szyprowski Subject: Re: [PATCH 5/5] arm: kexec_file: load zImage or uImage, initrd and dtb Message-ID: <20200601151431.GN1551@shell.armlinux.org.uk> References: <20200601142754.26139-1-l.stelmach@samsung.com> <20200601142754.26139-6-l.stelmach@samsung.com> <20200601150745.GL1551@shell.armlinux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200601150745.GL1551@shell.armlinux.org.uk> 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 Mon, Jun 01, 2020 at 04:07:45PM +0100, Russell King - ARM Linux admin wrote: > On Mon, Jun 01, 2020 at 04:27:54PM +0200, Łukasz Stelmach wrote: > > diff --git a/arch/arm/kernel/kexec_zimage.c b/arch/arm/kernel/kexec_zimage.c > > new file mode 100644 > > index 000000000000..d09795fc9072 > > --- /dev/null > > +++ b/arch/arm/kernel/kexec_zimage.c > > @@ -0,0 +1,199 @@ > > +// SPDX-License-Identifier: GPL-2.0 > > +/* > > + * Kexec zImage loader > > + * > > + * Copyright (C) 2020 Samsung Electronics > > + * Author: Łukasz Stelmach > > Please credit me as part author of this - you have taken some of my > code from the userspace kexec tool (such as the contents of > find_extension_tag()) and copied it in here, so this is not all your > own work. It would also be a very good idea to indicate _where_ you copied some of this code from. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTC for 0.8m (est. 1762m) line in suburbia: sync at 13.1Mbps down 424kbps up