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: 9980261 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 057C06029B for ; Mon, 2 Oct 2017 06:16:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E9722209CD for ; Mon, 2 Oct 2017 06:16:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DD9A2289D6; Mon, 2 Oct 2017 06:16:22 +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 67125209CD for ; Mon, 2 Oct 2017 06:16:22 +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=mRiAszL/M01DJGZQDzf867vozC fXDuZBQA4R0Qbh3lwDUtb3KBvcHhk1oA5BjnuFyHr8+PdtHLn1XdmrGERtJZh/oNhNN44lE6ySMha YdYBLTsBE/UebnK2CfaiQw7FgEP14tlJVM3ZqD4X/2wk6Vws3/8hIzra5gGeZm5qiLj5yZi9F10hM HRsVHl87Ah6dvEc38rpXQLEmfMqBNSDtaTv1bFKdX3+0CQr/BpZSzfD7w6ddAPYyz4sNQ16JHHkxP OjPCjD+gAtDZLopDsR0w+ItHSRi2sul4AAeT5nhgBmtNRzIDsP1yERzulWZRQaoC0uzOA400cUm0p QQQ8JVoA==; 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 1dyu1V-0000Bi-HP; Mon, 02 Oct 2017 06:16:13 +0000 Received: from mail-pg0-x231.google.com ([2607:f8b0:400e:c05::231]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dytyy-000511-Hy for linux-arm-kernel@lists.infradead.org; Mon, 02 Oct 2017 06:13:45 +0000 Received: by mail-pg0-x231.google.com with SMTP id 188so2496364pgb.2 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=l57e0xLAVWCsxXSSvYviLGwMpaUZxP1BPClu9gZnAvIvT4htlgiQ7YRC3/qinmo+Ck igmL/fLAz/d1FINKW4r4rOqRktrMN27ntKby9ZOQ3x1J+1Y58zGqCPdBhrFTOK4YnUgR moM+A+oFOOO3XdVDfpUbyn0z189eQRnCaD/4ADfOgJxeoun2VqJUxvBJtDLXQV6zEpAK Ytlqf8/jMszbLmSed5xwdKXqHPi29q1EGV/+QDRAYRWGMyvBXUsVuhYikOy6YSQUge9U O8Zfq10YYKGe284czS1zFJcvJsJKRS+VM/rGNxCnurTedyBLKTw4rxIGqRi/+5LSXmdi J/+A== X-Gm-Message-State: AMCzsaXFsXCiCVJDNTNKCE0wBJV+IITj6aURCr8FU7sAWX+E9DcdYACq OoOM6ruhQTMn3pw9p8j9kuBK6A== 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171001_231337_019495_1B58C7F9 X-CRM114-Status: GOOD ( 11.55 ) 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