Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1626533pxb; Wed, 10 Feb 2021 12:45:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJzpmhyx8a4+YlOs2lki2fgYVf/NMGeVz4OCavEHYpKCgzmFyUsmapVRB674gPqby9t4ocoV X-Received: by 2002:aa7:d6c2:: with SMTP id x2mr4944345edr.225.1612989929563; Wed, 10 Feb 2021 12:45:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612989929; cv=none; d=google.com; s=arc-20160816; b=095AB+1iC6YVou2indJb50zecjWPDpRjW8sFiEDTsQR+RrXtsiD9dg/vkCgJnFlauo Ey/jq7c0Vjhi2SOGq4IgW/aqtJaMbQ/kZooR32aeLF9mzTAMffthJaJp2S8qWL4sGxsH fytWpwSD8iI7DQrqbX1+KMgNkfOuV+Xw8J+XP7cCN18/XgVXWQ4kgokSEgoStvU4Q9uQ Iig/p1aW1K9w+O9Gm+JQfoaqhNJ40Mt3/QsgmUZ+WO2hABbVI5HdJJtfcraDJJiWjUGR +4MUx0qhNJrbEgjiEaXN78sYRXfrZyRLybFZThfSMjwDwFTcUQPqoZpc9XwekeyTz9/t e9rw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=1a8IQBE7rJYzZZKciUmKharoadZzfVUYC2CS7GCg4MI=; b=E3uzQSVXNxes1MMbr4srjoOncSFFrX2o+Vw9Lc5N6cKqit2Rx/I+EDhdsPtL4vpe8k ePo32q6cSxDVXUK7FB+Cxa/yvcwoO7JtkBudpfOuNBl60JesXPh6xhFXPISqfzIbZzUO Xl3jRb6qQ8TgUdJokgv6wiOYVW8EAZAxyN1pEtttH2+9xWSDikRaoroSHibZuktvEyek qwMOrWt9KqwYUSfz3Lz457IQVRGo0bE7UtLR/40kqqIVmWAY+BoZfH8ZFdTEZBZItDn1 Ev5PuaVsz+bHeMObbGoE422LISNx+RNms1pk5bfEfh/LRE1OLusXlMl29Gm9MlorgzJA Drdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=K74lobox; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v14si2210478edc.56.2021.02.10.12.45.05; Wed, 10 Feb 2021 12:45:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=K74lobox; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232059AbhBJUny (ORCPT + 99 others); Wed, 10 Feb 2021 15:43:54 -0500 Received: from mail.kernel.org ([198.145.29.99]:48384 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229834AbhBJUns (ORCPT ); Wed, 10 Feb 2021 15:43:48 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9559364EF1; Wed, 10 Feb 2021 20:43:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1612989787; bh=uLOKAWM3j/FoxqUD8GT+3TtzddPUhVZXn4EjHpRaYRU=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=K74lobox4y7gUuWJf5x9BZjKZ34y96W1chSRDGXNta6UmHLrqFFjA3wj1PI7xTRij syQ7wcueUW7+HioanlcWrFZ0mRRhCeQHaYHVrWB7vXOoZCT3QM0F6PzY0OBJCyfa2g 19AbOG0dGhyn272NCJsuCuPusha+toPskSq3/V4Y0CoDPuZ1LCvDvTk2gmKq9m+Od0 SgxkbRWyNazA1+tMMqRp6LJILmxOqLBK3AAkF2dIT5x05/aHtBSN3Lj73mFx6XTQOF EWUmv2cD4UPu3hAnoDhpMrgxWWRulqA5/PyRK28xe20b2Dpfjk2cIjNbkc51Dti93W SPnRe2Tt/v/+Q== Received: by mail-ej1-f52.google.com with SMTP id w2so6484086ejk.13; Wed, 10 Feb 2021 12:43:07 -0800 (PST) X-Gm-Message-State: AOAM532lwZ4odP6jGqshavMz1Gd8rWKnlnzkoWYuxPwFGG2CuocHh7qj JTZSMRJtFhZ6GTD2INpWq0vFwsjYiwMt3lvKQg== X-Received: by 2002:a17:906:af41:: with SMTP id ly1mr4612652ejb.525.1612989785769; Wed, 10 Feb 2021 12:43:05 -0800 (PST) MIME-Version: 1.0 References: <20210209182200.30606-1-nramas@linux.microsoft.com> <20210210171500.GA2328209@robh.at.kernel.org> <5c002c32-bc49-acda-c641-7b1494ea292d@linux.microsoft.com> In-Reply-To: <5c002c32-bc49-acda-c641-7b1494ea292d@linux.microsoft.com> From: Rob Herring Date: Wed, 10 Feb 2021 14:42:53 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v17 00/10] Carry forward IMA measurement log on kexec on ARM64 To: Lakshmi Ramasubramanian Cc: Mimi Zohar , Thiago Jung Bauermann , "AKASHI, Takahiro" , Greg Kroah-Hartman , Will Deacon , Joe Perches , Catalin Marinas , Michael Ellerman , James Morse , Sasha Levin , Benjamin Herrenschmidt , Paul Mackerras , Frank Rowand , vincenzo.frascino@arm.com, Mark Rutland , dmitry.kasatkin@gmail.com, James Morris , "Serge E. Hallyn" , Pavel Tatashin , Allison Randal , Masahiro Yamada , Matthias Brugger , Hsin-Yi Wang , tao.li@vivo.com, Christophe Leroy , Prakhar Srivastava , balajib@linux.microsoft.com, linux-integrity@vger.kernel.org, "linux-kernel@vger.kernel.org" , linux-arm-kernel , devicetree@vger.kernel.org, linuxppc-dev Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 10, 2021 at 11:33 AM Lakshmi Ramasubramanian wrote: > > On 2/10/21 9:15 AM, Rob Herring wrote: > > On Tue, Feb 09, 2021 at 10:21:50AM -0800, Lakshmi Ramasubramanian wrote: > >> On kexec file load Integrity Measurement Architecture (IMA) subsystem > >> may verify the IMA signature of the kernel and initramfs, and measure > >> it. The command line parameters passed to the kernel in the kexec call > >> may also be measured by IMA. A remote attestation service can verify > >> a TPM quote based on the TPM event log, the IMA measurement list, and > >> the TPM PCR data. This can be achieved only if the IMA measurement log > >> is carried over from the current kernel to the next kernel across > >> the kexec call. > >> > >> powerpc already supports carrying forward the IMA measurement log on > >> kexec. This patch set adds support for carrying forward the IMA > >> measurement log on kexec on ARM64. > >> > >> This patch set moves the platform independent code defined for powerpc > >> such that it can be reused for other platforms as well. A chosen node > >> "linux,ima-kexec-buffer" is added to the DTB for ARM64 to hold > >> the address and the size of the memory reserved to carry > >> the IMA measurement log. > >> > >> This patch set has been tested for ARM64 platform using QEMU. > >> I would like help from the community for testing this change on powerpc. > >> Thanks. > >> > >> This patch set is based on > >> commit 96acc833dec8 ("ima: Free IMA measurement buffer after kexec syscall") > >> in https://git.kernel.org/pub/scm/linux/kernel/git/zohar/linux-integrity.git > >> "next-integrity" branch. > > > > Is that a hard dependency still? Given this is now almost entirely > > deleting arch code and adding drivers/of/ code, I was going to apply it. > > > > I tried applying the patches in Linus' mainline branch - > PATCH #5 0005-powerpc-Move-ima-buffer-fields-to-struct-kimage.patch > doesn't apply. > > But if I apply the dependent patch set (link given below), all the > patches in this patch set apply fine. > > https://patchwork.kernel.org/project/linux-integrity/patch/20210204174951.25771-2-nramas@linux.microsoft.com/ Ideally, we don't apply the same patch in 2 branches. It looks like there's a conflict but no real dependence on the above patch (the ima_buffer part). The conflict seems trivial enough that Linus can resolve it in the merge window. Or Mimi can take the whole thing if preferred? Rob