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: 115358 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp3401934qgn; Mon, 9 Oct 2017 23:35:56 -0700 (PDT) X-Received: by 10.159.246.11 with SMTP id b11mr11314436pls.41.1507617356380; Mon, 09 Oct 2017 23:35:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507617356; cv=none; d=google.com; s=arc-20160816; b=YVqa4xr2uUdivF3yY9qsO1TZZG7cuhXmh10I/iYGnTptDfzYeKuvk42VEhpQ50It8I rNqCpQVEaYfz1LoMY2yNyo0tcBXdCrY/nVrY5i6SNaoSUCOrS7xJbOIRuaMLEud+ui0h JQTYvIbxVKkXaNeHU+QuuD4AUjrp2QBZ4GC40waXgFolvUFmbkotN08xYtjAh++ZkxJN tuN5Qs3/D3EPo2KnyJHwVAY9hiJyzgoLmGS/2CsAJI6vYtAYamrKn8ofAJ9achyNgtqC v/fgDHbTymI7sRObJvVEqxEVSwzSxJTFlojz84mVRU3lEeMK9kHFsBwshgRyCVUQAzxU s4Rg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=LfjyO5OybSisJOU4rvyfBiASP38tRI2/fuL2HzcwuHs=; b=VxJ8pXIeji48oY2Nj5PNCsm/lA87XGV5HvlnsIhd3k9B1HZBzF9SaqFyJB5hnYAdsv cyUkeAaUO3zmCuzxT6Use1qEcVPBQUMNBorEzFjKfAm2NuRUosUXTfCTretJ4HuAZjc+ ZTZRgfyYD9UKmD35Bt1gHiwgj14bNMB7fVU7JjZxDTzAsTT07o8UUtxm6CL3WoD+Ct/z 3eAjBuWoTCmBPVQ/pWK4AarOixshpVwIZF6Jo0eYxorzFPUd7nK3vvZOJhWNHpYQEe2j VkWNNV7W64Ut69E5GNszsCD5ISxR6ziBpRjsneTCx1CanVZcgVfIhAzGJLjvEM6NHiuW gupg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UG8NySGi; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h75si8511926pfj.622.2017.10.09.23.35.56; Mon, 09 Oct 2017 23:35:56 -0700 (PDT) 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=@linaro.org header.s=google header.b=UG8NySGi; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755582AbdJJGfy (ORCPT + 26 others); Tue, 10 Oct 2017 02:35:54 -0400 Received: from mail-pf0-f174.google.com ([209.85.192.174]:44115 "EHLO mail-pf0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932108AbdJJGfc (ORCPT ); Tue, 10 Oct 2017 02:35:32 -0400 Received: by mail-pf0-f174.google.com with SMTP id x7so5942951pfa.1 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=bHKoDhVx8xqMVSLdCZNz6VLK8Q8Ph5L7efs/mPQuTkPMoatjNNeKOdwLbIazC1NwPB be3bFQ1hWv+TNIwqOQJwW4PEOVnQOCcT0rhjpvhxo1jXM/264d1LMNqPPuQnzrpCN0nc SnK+z+vYPUNayZChq4Zt/sY4eweTZlhMIW5I/aE8NIBBSzCv2npTvlggryHvLxFJxzer 3N+JXcAKD85zcIIkHSbcbkknAb/TVx7dxcUGt3is8M6IjtuDKs6KzftElIoWznOWzy+U fFiDOyAO4XLCSKsaXRU4CzZ56RRd0Yqjoaqqfbsa6t4gZSJrECJs5CDAdg7eB8vmNPtZ U8MA== X-Gm-Message-State: AMCzsaXJ7tcRvqE+bosBn2Imr7U/Qm3PxhxZqM7POlG5qU/nBSCm+nuG oRqvNuVx+guO7Y3GQ4wG5bMx6g== 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 Cc: kexec@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, AKASHI Takahiro 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> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(+) -- 2.14.1 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