From patchwork Fri Sep 15 10:59:31 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 112719 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp471221qgf; Fri, 15 Sep 2017 03:58:46 -0700 (PDT) X-Received: by 10.84.199.170 with SMTP id r39mr27172402pld.375.1505473126651; Fri, 15 Sep 2017 03:58:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505473126; cv=none; d=google.com; s=arc-20160816; b=UmoWa0YAbjr3QkFHk+8nOaXvtqj4HPBmXf8jVm7HRXpjKt0d58+HfnL7dY/6AbmdBp Gowv6F1nB3gr2rcVZL5kKk3jZQoVKMhMADuL5LO6EEnIzqG+AvWWVyoHWwdSRoveuM+8 uGvp2BXbscfTpEy6SQzaCLWCWzhcq60jGBaT5Ygu1z1y4NEsgxksO3MD69MoE9pLgmws IZedydhmUR8vXMxgVkEYAaXojgXmBC3QZnm/FUie9HDLLLsNBRpi40sbdp6byXoic6Np 3ERtgTDiWi4ileSNfs7TCsWEyz++ADUycKxogCh4dsJYODVOJBOr5wyhFtRxFvMapLPQ R6fw== 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=6N1HRUBXR+9BAp84bModHeDJ1qralue1O2AZ+ahcyEA=; b=GU0S2nCszYtuZi29IdrqpPBGpXW5Ef+zq7NwrCQzkblyt1+4UZmqAhAU43Ro52uojB GgyZ2L17/0+7oX3X27izfZg/cZe8rFmzcsd7FpA/+9uEwpP8Of+YBBzK+6gBNKSHlL3m w63S/j61bP6s4U8WZAWUhXuf2hWN9nrQ+sZa689wv/lUwjQQ4mWjtvV0zQd2XPcL2/1v K2QJlpL6MT99o2oEkMJL2FU80aly+GCxFJLK+fYUElk+9Z0HWA4MLtgr+QmfNokOHfO6 k4E0qPMR1xoE554nTvh0pctkMvmVPFxMtu5psB0Gwyjd0hjfwZA4JRBBsCIqTRYXJEwj Wpjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=H3nXgznr; 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 a9si475163pgf.107.2017.09.15.03.58.46; Fri, 15 Sep 2017 03:58:46 -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=H3nXgznr; 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 S1751753AbdIOK6n (ORCPT + 26 others); Fri, 15 Sep 2017 06:58:43 -0400 Received: from mail-pf0-f177.google.com ([209.85.192.177]:55226 "EHLO mail-pf0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751724AbdIOK6k (ORCPT ); Fri, 15 Sep 2017 06:58:40 -0400 Received: by mail-pf0-f177.google.com with SMTP id d187so1251384pfg.11 for ; Fri, 15 Sep 2017 03:58:40 -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=6N1HRUBXR+9BAp84bModHeDJ1qralue1O2AZ+ahcyEA=; b=H3nXgznrpY1BwgDjFxnDQU8wsyKODj1ZXkuwpiX2emspuMMPsEpFvgGie4n10CkcbW Wba3NshdCDkn6AULQsdx6eje+j0TSWhvSFpoccVWbZyTFj046xMCuVIgu2d2sy9h6p8r CmHPGgEdH9JmaXamN2Rff00DyR0VHmRnsICZI= 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=6N1HRUBXR+9BAp84bModHeDJ1qralue1O2AZ+ahcyEA=; b=G93GM1SUkjoRbU46+kZdVlYizfZ69R0/h5djqKXSepxMVV/upbGfzY3qI+/Z5aMbrn Lz8spf38OmlfN/oDwhgMMoZ25lu90zjHAvwnkzCTQRa9IopW2qp0bJRDGvRzn7rpUERn shiZewKmAY+KUAbGs216SRqn/44fKNq3LEdk7hF60btuuXE3qwDFV15XTpLoyLWN1+1k us+jO7JV5GQNV0Jw01jfr13v0iH58Utg3Bong+umRqKkqAO3+QR/UtdYPxN7Tn+tB4Vv Nh7kK7atAVTvLDffK7ep2nNqO5wMkOlQo8uShdYzutUQ1RKTs4yj+CNUTfDN3U+cQOiH 6Ziw== X-Gm-Message-State: AHPjjUhcjoQQyuvJeD6tcURqnNOznolBK2ka3KhBM2rMCZn6kLvlukd4 VVXP3RbzNAzYWq5P X-Google-Smtp-Source: ADKCNb4hDRLE4dSTNyY2SM+lKfEcOlQgK3WC/l3sVy5FMTEM1Pb7XgR3IIK6NZeRckSFoXZHccAZVw== X-Received: by 10.99.115.30 with SMTP id o30mr24635942pgc.447.1505473120018; Fri, 15 Sep 2017 03:58:40 -0700 (PDT) Received: from linaro.org ([121.95.100.191]) by smtp.googlemail.com with ESMTPSA id o30sm1706852pgc.83.2017.09.15.03.58.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 15 Sep 2017 03:58:39 -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 v3 09/10] arm64: enable KEXEC_FILE config Date: Fri, 15 Sep 2017 19:59:31 +0900 Message-Id: <20170915105932.25338-10-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20170915105932.25338-1-takahiro.akashi@linaro.org> References: <20170915105932.25338-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 dfd908630631..fa7299f08cc6 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -756,6 +756,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