From patchwork Tue Oct 10 06:36:18 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 9995127 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5A08960216 for ; Tue, 10 Oct 2017 06:50:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4A8A727DCD for ; Tue, 10 Oct 2017 06:50:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3F3C127E5A; Tue, 10 Oct 2017 06:50:49 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id CA41C27DCD for ; Tue, 10 Oct 2017 06:50:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=mWX9DSmONFHcWdub0NKPtG508GTody7eadAwCl+X+y8=; b=uOi2Xsn398fiMapqeGMpvB6/62 uCapzKILC75S6Xt8GpATD8Bff1xYTqh189jlDczvJIdEsIdEskm2oCrnHGn8Pzkmr1djy+WgYUX+J 9GYwzv1ykwNCD5b6mysVh+D3nDic5Sov5uFx9A65b1Tpwgpy58iSmsTLxqFGy9rzYSSfuRHqAsHK4 dETLBVuCT/QDZYdlT3htupwHbuAH7CIOoO16yKzYMEwiziMhsCWyy13lyNo1mP8TQTBKujIzeXC9T IYzY6LmRP41jHowP5sXQfd7faTrYsa4+EmQm/QXHoQ88a4LdBFzm5MwduihpZDkNen1XprtBuRsUO 7PfraYew==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1e1oNC-00064X-Gs; Tue, 10 Oct 2017 06:50:38 +0000 Received: from mail-pf0-x229.google.com ([2607:f8b0:400e:c00::229]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1e1o8u-0005xE-Mk for linux-arm-kernel@lists.infradead.org; Tue, 10 Oct 2017 06:36:14 +0000 Received: by mail-pf0-x229.google.com with SMTP id p87so7193196pfj.3 for ; Mon, 09 Oct 2017 23:35:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=LfjyO5OybSisJOU4rvyfBiASP38tRI2/fuL2HzcwuHs=; b=UG8NySGiMkVGNobKUj8nFkQ3UgjL01WVIF+c1gTtXN7lm74H9FmRd5nzcvrsnMSNTf 6ykRd8iGK7k1vbK6vDSlFLQMp3f0Jqv92E/Q6ua8YXCVaCUYOTAz9Q5iLum5367ChDUR BbVqEPV0CGnF0wf1RD7SsVZ0dnEO9BZQhWv88= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=LfjyO5OybSisJOU4rvyfBiASP38tRI2/fuL2HzcwuHs=; b=f1KF4U9QcXwr9Dz1ztPSqyjyfa6KJISroBnRgD4+wzX36ScFt6S1oSKxnHbIfwbOUl g2aB9E84gLYsk+bv4kXP7mE5EK972YiGLBLySKrdqoHlyQvRFUuZxY8A1RTpOkCik+Ur nj5yurZYbFFc615t4VW4hfyR175dQFmxZrdVEUYrLEsAjApI+tpcm9wndIIIX3UKHSms pWTPKhTB7vc7KVrII32qP2xdbTlMSLnBrAvIn31UYL4L+a+Vba7ZquRa8Zwkek7MQ38d 2n8RWs4362kp2mcsF0bSo4H62DFL3wBbBYH3zxuaLpVCeLFezZEFfPQ6MtWW9gyGPC6k Te0g== X-Gm-Message-State: AMCzsaVubWyIsRpd5E8snbOXaCzngh7Uvtn6QGgKzokwlVNgqB4j8tqo T9kRzF+3dT0+i62XAsGF4jt9NA== X-Google-Smtp-Source: AOwi7QBd+S3AHbuqwp7knbYGFOj25XFVyGfZ9aG3G8YThqC6i27JGIwznHgY+yIyBRkIWrcTYFi5rg== X-Received: by 10.98.86.135 with SMTP id h7mr12307511pfj.216.1507617331931; Mon, 09 Oct 2017 23:35:31 -0700 (PDT) Received: from linaro.org ([121.95.100.191]) by smtp.googlemail.com with ESMTPSA id i187sm17699788pfc.19.2017.10.09.23.35.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Oct 2017 23:35:31 -0700 (PDT) From: AKASHI Takahiro To: catalin.marinas@arm.com, will.deacon@arm.com, bauerman@linux.vnet.ibm.com, dhowells@redhat.com, vgoyal@redhat.com, herbert@gondor.apana.org.au, davem@davemloft.net, akpm@linux-foundation.org, mpe@ellerman.id.au, dyoung@redhat.com, bhe@redhat.com, arnd@arndb.de, ard.biesheuvel@linaro.org, julien.thierry@arm.com Subject: [PATCH v5 09/10] arm64: enable KEXEC_FILE config Date: Tue, 10 Oct 2017 15:36:18 +0900 Message-Id: <20171010063619.6303-10-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20171010063619.6303-1-takahiro.akashi@linaro.org> References: <20171010063619.6303-1-takahiro.akashi@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171009_233553_482013_C4585EC0 X-CRM114-Status: GOOD ( 11.86 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: AKASHI Takahiro , kexec@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Modify arm64/Kconfig and Makefile to enable kexec_file_load support. Signed-off-by: AKASHI Takahiro Cc: Catalin Marinas Cc: Will Deacon --- arch/arm64/Kconfig | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 0df64a6a56d4..e37be8a59a88 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -757,6 +757,28 @@ config KEXEC but it is independent of the system firmware. And like a reboot you can start any kernel with it, not just Linux. +config KEXEC_FILE + bool "kexec file based system call" + select KEXEC_CORE + select BUILD_BIN2C + ---help--- + This is new version of kexec system call. This system call is + file based and takes file descriptors as system call argument + for kernel and initramfs as opposed to list of segments as + accepted by previous system call. + + In addition to this option, you need to enable a specific type + of image support. + +config KEXEC_VERIFY_SIG + bool "Verify kernel signature during kexec_file_load() syscall" + depends on KEXEC_FILE + select SYSTEM_DATA_VERIFICATION + ---help--- + Select this option to verify a signature with loaded kernel + image. If configured, any attempt of loading a image without + valid signature will fail. + config CRASH_DUMP bool "Build kdump crash kernel" help