From patchwork Mon Oct 2 06:14:30 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 114553 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp325941qgn; Sun, 1 Oct 2017 23:13:23 -0700 (PDT) X-Received: by 10.98.134.206 with SMTP id x197mr13667779pfd.26.1506924803659; Sun, 01 Oct 2017 23:13:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1506924803; cv=none; d=google.com; s=arc-20160816; b=KexgWrd4Ve0DmyP8usxSudwFcWfGR+be2unECShlxuy+nF0p53cB60nWMOlGOwTlBn TbVGiKGCSfMR0nxbFqAPELhyoC/Rwn+Ywmj2bHbqQGnOZL8cgsK5yijMdf+UhEY0qLbU gliOFzxo1jfJkW1wgr+UcHhFna1Ss75BjW0VdOQJfZxU38lG2Q6gwA7U9o1vID4n63cf FrtbbLsgAzZCJspZuU8mnEuCib73RXlbtVAwo79/aQ8RU3CcXvTW0cdSmE2tT+/0BzkD xOU3QrVc2qanGsANDCEiLkcuVfzO92dIjiSNcBndyUWrXUa1POAUPmL/SJ1UmScNZ5ry +CrQ== 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=bojCz2xMQg5jh5HoMEJbSopWqeL8Xb6Om2uK+mWJwkmwdblhl4D7aHq7cT/DIyyGSb Ux9Yfb0Cd/8YZnFyw55R633Hh+JKgyWn9F6VOc+Ed9BPiv9y5DU/hRCtA8l6OgvdHzR4 WHn335OKXDYmEMq+vfOaJbDrpWF3UQ84k60BG5O8IdWCpqPUuKPqKDjnYcPB0l92WczQ ZXxsWFgNnMGdzb/RTLC6ydQQys5zusBTlGwnkp7UgxruzBXSlpM62w3l0bpYGloxvUTM lqpTHEsBjQ3N6crwdCGKIdEIwP8Gq1hY3J9Wd4xz7MlRrQxu94YXsHE6lklwLbLIOVox sX9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ys+EZI2U; 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 t17si1715286plo.623.2017.10.01.23.13.23; Sun, 01 Oct 2017 23:13:23 -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=Ys+EZI2U; 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 S1751560AbdJBGNU (ORCPT + 26 others); Mon, 2 Oct 2017 02:13:20 -0400 Received: from mail-pg0-f49.google.com ([74.125.83.49]:49751 "EHLO mail-pg0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751514AbdJBGNQ (ORCPT ); Mon, 2 Oct 2017 02:13:16 -0400 Received: by mail-pg0-f49.google.com with SMTP id v13so2491199pgq.6 for ; Sun, 01 Oct 2017 23:13:16 -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=Ys+EZI2Ul+1yQQrXEfgu5b/P/+guVO+8jFvMNtxV36KBORcDJdJ9JVVf3AH8GCARio KgxbGy3MsjV4PvUQDY98E5OQe57JJWxxAFr77pmTnjtoeaPIqW1jzcSIoXeP9nwsCaJ/ ifCZ7xMN+yFPAhkfwjh4SRQ06o3kDkJUqDmk4= 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=VFwuXh9DFP5X0qdFG1LKMYZv7A26Sd1TzvPSynpLGaW6voGYLtchIFE8FgGDRhUQfl mvfMNPTplQKR7Te2397kI9883K87zhnFMqemdVhxIkYMwtaCnjYFYfFz+HIfkGNEVILi QqJVlzt715rxDpL+wYuAfZcqSlcAYWAXQewQDIiTfNvHRI8F6j3pIGt0hWfn2oHb5DPr w6WUrxvv1uHBNkuKn+17eKmwnJSJfHQlLu1w2app/gW6gx6i9QTG6PeXu7a8upcnzxZT HrG3RHrNlmHJzvQkjyaLz38z6geimnG8EvuWpmdQXvidxEmLeCTPgCbBEk6ix3luOiqc G61g== X-Gm-Message-State: AMCzsaVDMIC2+y9RNrqid1j7rWlF1/FY0LGX2ZuANhnP0kvo4IrxAotH sqpssUn2z7DEjSwjDGj6s/eEXg== X-Google-Smtp-Source: AOwi7QC0QJO8F4xrrj/+4cA4NnLOln5ZvMABt9LcUSnmwuLumBbCqud3JIJ/VyklFYGvlG1jqJScnA== X-Received: by 10.84.217.131 with SMTP id p3mr6123572pli.126.1506924795612; Sun, 01 Oct 2017 23:13:15 -0700 (PDT) Received: from linaro.org ([121.95.100.191]) by smtp.googlemail.com with ESMTPSA id 207sm15333578pfu.0.2017.10.01.23.13.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 01 Oct 2017 23:13:15 -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 Cc: kexec@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, AKASHI Takahiro Subject: [PATCH v4 09/10] arm64: enable KEXEC_FILE config Date: Mon, 2 Oct 2017 15:14:30 +0900 Message-Id: <20171002061431.11117-10-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20171002061431.11117-1-takahiro.akashi@linaro.org> References: <20171002061431.11117-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