From patchwork Tue Oct 24 06:23:53 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 116898 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp5452372qgn; Mon, 23 Oct 2017 23:22:51 -0700 (PDT) X-Received: by 10.99.109.14 with SMTP id i14mr14186661pgc.355.1508826171247; Mon, 23 Oct 2017 23:22:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508826171; cv=none; d=google.com; s=arc-20160816; b=ICo/zb1beU266EGGM22wj3SftP++BGvTT1SYa2N6JmIw2oq2cu2+KuxqgoctZ1buv8 EHW9qSOOiIH0EFCCqu8phGP6NmppwHQNyNFyPbi0+oWg0+nIZ9d/wJZT5JlSDnQQ8AMC 3JbVLkT9WS5aXilRB0/B1FtYn6ToB9yRVmoOdUUVJWYPgTS1VXAE4trcPLWdr4PtcQv/ uDJMw98PsQGC0OtRNwVHv9vReEi/Rx8/M3zste53ajMtPadeI1iPKkD9doW7cJ6BrU0T WCBpXBLx4fhNZjGRGI5cdYQjetq2AZTEaYTguZrtMtFX10jFyOwQEXxVposfepl3+Y6L QCwQ== 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=RSOPKrnwZQUp23GGxKdfE5Ro5wKjTYCGPMeVxwKAZ5t7jMCQNa4OqbCK1Qorz/Y4d/ rjECXzm9WS5RM5aaAJGcmjHqe5LAjBF0Y8VuoUik/g/B7JNef0KlyzHUtgIQKjOzPyuo mfYNjZvyP75KNX2nJs/mrRaoUpbipEfCJVKPthegGUuj9jWYY5urQLQHycaWUnafZTxG k4QY6uXQc9RHR8Hswt51IcGgXkPszecDVdSZxV8hbYNyqOeRcjg64S/Jk+dMQsh4vgDv aBAFPqkBEgWK6mlyOqBb+k+w0hEsni8TM6h8OSJ3D5pZveBQ14Ubi/+HKKuWgwbTUJGr yXhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jp+/AazU; 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 w9si6512516pfk.551.2017.10.23.23.22.51; Mon, 23 Oct 2017 23:22:51 -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=jp+/AazU; 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 S932236AbdJXGWt (ORCPT + 27 others); Tue, 24 Oct 2017 02:22:49 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:53664 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932204AbdJXGWT (ORCPT ); Tue, 24 Oct 2017 02:22:19 -0400 Received: by mail-pg0-f68.google.com with SMTP id s2so13708575pge.10 for ; Mon, 23 Oct 2017 23:22:19 -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=jp+/AazUtsdj68N9nrgtVuFNLe1DiP3kM9NBPwwfnvHQ39SQJ9fzq5oEOuX6kBRGIO 8xkEMC4rt6dN3diKrtIGh7ZatntQQaxkp4UaKhsU6gaDt7DBgE5sKZ3Xo0eGtfifuQlw PMbJXaapkwqLVlPCOqaB8N+wGPy8SDg2m47Gc= 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=d9pvABRbZ6uG793l2YmI605DiCm4dBMtn8WbEmiAkWNf8ajG/yfiJO+a6ngQa4vpCq qd1AeONciY0r4XSfC7NW0qnGc/NvNwXZDbSbyckU7ujyb9QnKvF3tC03wfg3/1Qc3+Dv zVCun97VnYb6pD+9eNj9EpWt2rRiv7DBkuZK60Quc/S38t60MSpsGZs+0PWTO317osX/ AWZCddg/WhuuqjyknlD3V4SnVc5U5nyJtiZ4k6L7s5lzOXxxF8+zZMMe9UxMe5PfU2dm Pwofbxc/pUqntCeZYanZs6zkk4ziaifWxEx1wj/2dBvgVSWZRqh7F9mVvdnx2trd+ZKN Ehpg== X-Gm-Message-State: AMCzsaXcLYJNPOqSC0YZfyy+KoWxqQVrwR8A7KHrZKUQTfwzTfA5Ue94 NOeR7tlBxigGCzHJVMcO5Nkx/Q== X-Google-Smtp-Source: ABhQp+QVZFpb8/RYXA5DuYn3rNbdwP+zGjEYDnkhKL/NNcXfgjxilrTRHn2B7XBg4glUf2DWb7F+1g== X-Received: by 10.98.14.195 with SMTP id 64mr15347518pfo.197.1508826139275; Mon, 23 Oct 2017 23:22:19 -0700 (PDT) Received: from linaro.org ([121.95.100.191]) by smtp.googlemail.com with ESMTPSA id g5sm13017821pgq.94.2017.10.23.23.22.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 23 Oct 2017 23:22:18 -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 v6 09/10] arm64: enable KEXEC_FILE config Date: Tue, 24 Oct 2017 15:23:53 +0900 Message-Id: <20171024062354.22621-10-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20171024062354.22621-1-takahiro.akashi@linaro.org> References: <20171024062354.22621-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