Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1498849pxb; Wed, 10 Feb 2021 09:39:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJzUdZJnrC6wsCaRlvBwZw7rUkaNZ6aCdMPM/2pqNOn9f+/6fcgFNM00jeMa09lWfctavOUD X-Received: by 2002:a17:906:f0c4:: with SMTP id dk4mr3950223ejb.6.1612978774424; Wed, 10 Feb 2021 09:39:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612978774; cv=none; d=google.com; s=arc-20160816; b=zMYsZayAx+jeWxsSJap/9ckYAWQLw4mm5RONTt2TuYsLKqems1s+A2PEGzeavZe7/E 2un2xSvBNC899b47CiQa0PJjxOrrvC9WQb2j6VTKBA3PvXP6P0cwulI2xnWP/QHOJLKP UZm/QOKmpRAs7/8hZLH3AJGCmFjkxS88/3Vj50FAAspHc4fk6mIINxMzHDpzgqNrB+pF L6vHR9YaUzr2VD2Vd4XFoKhae2Ss9tqMkt4baxZnSvj6ja9yy8Lg7m2qncZhyBRQJ8BT iXNFH5lDc6oYUpjAKFDdki7fF+zsmWMXTJgxaZdznu4REH+Of5iyOdcrdlIDrjhvLM4Y Mh5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature:dkim-filter; bh=6iW/jXFaWAWQ/vudECjORFajSX6aWkb9ApB+qY8R+5s=; b=qgbVIVCOdAi52Y0VcyEo+Bb9qeHeIKJSLlBgWYpD7kBJGcgw2jBuLllJaJzWNFhIvu iq05PD9S2Yj7628ISbXqvPT8LtznwLWh+x35A9egC6IWcp7ozW4tSJM7SAr2MWah9JQj osq3q5oj6hGWGShgwFITJF57qro9pU+QMmYi+Qrp4tiPc+lTAguLw9xBdUHe1ui1ELxI JHFvxkslTy3nN/hP/JqX4+PnMmIK2mC5yBT8PN1fpj5mfm/tj4k3Gpue5Lyp3xHvSA8Y VozqxHRHtcJ74E64nGEiIWCHT1FF7GLcgj7rFHKYJCDyPqg517Mg/Y72SY54OmH9G8pA Yx7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=ZTb8yL5X; 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=linux.microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m1si1689699eje.652.2021.02.10.09.39.10; Wed, 10 Feb 2021 09:39:34 -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=@linux.microsoft.com header.s=default header.b=ZTb8yL5X; 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=linux.microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232152AbhBJRg0 (ORCPT + 99 others); Wed, 10 Feb 2021 12:36:26 -0500 Received: from linux.microsoft.com ([13.77.154.182]:58426 "EHLO linux.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232602AbhBJReG (ORCPT ); Wed, 10 Feb 2021 12:34:06 -0500 Received: from [192.168.0.104] (c-73-42-176-67.hsd1.wa.comcast.net [73.42.176.67]) by linux.microsoft.com (Postfix) with ESMTPSA id A053020B6C40; Wed, 10 Feb 2021 09:33:24 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com A053020B6C40 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1612978405; bh=6iW/jXFaWAWQ/vudECjORFajSX6aWkb9ApB+qY8R+5s=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=ZTb8yL5XLLS13AwmIB0pBulw3hYrXQ7SwfAX4H7q9qS6I+HQBCVy9jYth6WFHk3uB Xc7IAPEvtuRTX5eJ+zUIRRi/bZZwPAn0kvRAhLC7XNVAAL2oILyaf8l9xH0G8wVqTw SbGUH+X0F4AQdN5xxah0sgRaMp+OyWIF/jmjTm5g= Subject: Re: [PATCH v17 00/10] Carry forward IMA measurement log on kexec on ARM64 To: Rob Herring Cc: zohar@linux.ibm.com, bauerman@linux.ibm.com, takahiro.akashi@linaro.org, gregkh@linuxfoundation.org, will@kernel.org, joe@perches.com, catalin.marinas@arm.com, mpe@ellerman.id.au, james.morse@arm.com, sashal@kernel.org, benh@kernel.crashing.org, paulus@samba.org, frowand.list@gmail.com, vincenzo.frascino@arm.com, mark.rutland@arm.com, dmitry.kasatkin@gmail.com, jmorris@namei.org, serge@hallyn.com, pasha.tatashin@soleen.com, allison@lohutok.net, masahiroy@kernel.org, mbrugger@suse.com, hsinyi@chromium.org, tao.li@vivo.com, christophe.leroy@c-s.fr, prsriva@linux.microsoft.com, balajib@linux.microsoft.com, linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linuxppc-dev@lists.ozlabs.org References: <20210209182200.30606-1-nramas@linux.microsoft.com> <20210210171500.GA2328209@robh.at.kernel.org> From: Lakshmi Ramasubramanian Message-ID: <5c002c32-bc49-acda-c641-7b1494ea292d@linux.microsoft.com> Date: Wed, 10 Feb 2021 09:33:24 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20210210171500.GA2328209@robh.at.kernel.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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/ thanks, -lakshmi