Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2026973rwb; Fri, 12 Aug 2022 10:33:49 -0700 (PDT) X-Google-Smtp-Source: AA6agR6nbnMd7/RnyPMQiuyCelgjZYAmF6cWUn/er95+PDMIsbYFOIBY1jWmVVgQlDlTAeipg9it X-Received: by 2002:a05:6402:341:b0:440:86a2:8272 with SMTP id r1-20020a056402034100b0044086a28272mr4455433edw.70.1660325629111; Fri, 12 Aug 2022 10:33:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660325629; cv=none; d=google.com; s=arc-20160816; b=Y6WJQBkHAoTiiyDserRjhbhdvm4qIUm/DnwrZURbsZSNgr98SQyVKPbh/2Hnh6rP1G 0mL+fkcF52cxMBRFwLMwQx6FjCAZcemkyTR2bsiWgCIKKrwIXbUX8fw0XGehyNPFA4kS 0o6jSbhAdHajpmgYss+MPmkLbBDreALsdCsGtqyknU646oY140f7rkcxMfJOn+kKx0P9 e6Pk3e4M8dM0sgGVGemOsF5rzz7F5Vp8xzva6PX6KtzOhh8EcfIrF/XjQYCg6uanbpkV BbKkC4SGqQtPpgST1p8fFSaKZP3wNdtG9E42OCldjuOQDeBEy0dw7hshF2qnrw1RM5gG GizA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:dkim-signature; bh=XZjtB7m6BM8AVhGJqivBSe/7V5icuzmK/CCVIama6jM=; b=m7VMgnuy71xoL+KRKr/NN4qqQ3UG8pV9dGImgq4c8zSxAlthRhCzu1zCTYkESeDl11 ngXlHL+vOtHkfQIQryK+B2OYxBB/r+rJBEJgWjXwTPSHoJU5fajaPxjt/ohfw38i+Byr bI67ejRowzsIJG66qaA+fgLWcd0hJfc90WpDFR49aAZvtuk/m+vqsYjDn6lIKXZlTsKs CTndJZqLyCQXRujKnYvputK0fMvj6Yeifx67pcEuwHc2s0yzAqWzCUJF3XOd4leRf3Gm Clfm58t1RTHWFjIkZ/WSNbNy4aA/F2/bCCbrok6rBd0IK/d06NKFgU36EkhXwkrGP43n BSMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=a7EnxMAW; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e18-20020a17090658d200b00730e93aa2ddsi2387376ejs.903.2022.08.12.10.33.23; Fri, 12 Aug 2022 10:33:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=a7EnxMAW; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239056AbiHLRKW (ORCPT + 99 others); Fri, 12 Aug 2022 13:10:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237564AbiHLRKU (ORCPT ); Fri, 12 Aug 2022 13:10:20 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 08F09DEFF; Fri, 12 Aug 2022 10:10:18 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 458965D92B; Fri, 12 Aug 2022 17:10:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1660324217; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=XZjtB7m6BM8AVhGJqivBSe/7V5icuzmK/CCVIama6jM=; b=a7EnxMAWHDQ7qxPyrbYQ5fcbQMBTp2uWL0w2+8GQKwLJzELA/gM4X8VIWmlQRSkY4OG5Yi pqeAMyEiq/tTq4ZJqJ+KxyCh9/+RQI9PCBIw+Aedr6JaGjK5oSMcb5di3bIVAnJJBeBC4a ofe/FDsDHQpdjMnJ2qztwgZYre8fYU8= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1660324217; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=XZjtB7m6BM8AVhGJqivBSe/7V5icuzmK/CCVIama6jM=; b=FKbQeBcNh1ssOnHGq/YFnDeFNTrgMI7ojeVuiOdvXg32EfSn8MN3RO8eVvHyVdy3dYSm7u lAuDs4f+3HMR4GAg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 37B0C13AAE; Fri, 12 Aug 2022 17:10:17 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id YMGNDXmJ9mIOCAAAMHmgww (envelope-from ); Fri, 12 Aug 2022 17:10:17 +0000 Date: Fri, 12 Aug 2022 19:10:11 +0200 From: Borislav Petkov To: Stefan Berger Cc: kexec@lists.infradead.org, devicetree@vger.kernel.org, linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, nayna@linux.ibm.com, nasastry@in.ibm.com, mpe@ellerman.id.au, Jonathan McDowell , Mimi Zohar Subject: Re: [PATCH v7 3/6] x86/kexec: Carry forward IMA measurement log on kexec Message-ID: References: <20220812164305.2056641-1-stefanb@linux.ibm.com> <20220812164305.2056641-4-stefanb@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220812164305.2056641-4-stefanb@linux.ibm.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 12, 2022 at 12:43:02PM -0400, Stefan Berger wrote: > From: Jonathan McDowell > > On kexec file load, the 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 and ARM64 both achieve this using device tree with a > "linux,ima-kexec-buffer" node. x86 platforms generally don't make use of > device tree, so use the setup_data mechanism to pass the IMA buffer to > the new kernel. > > Signed-off-by: Jonathan McDowell > Signed-off-by: Borislav Petkov > Reviewed-by: Mimi Zohar # IMA function definitions > Link: https://lore.kernel.org/r/YmKyvlF3my1yWTvK@noodles-fedora-PC23Y6EG Is there any particular reason to keep sending a patch which is already upstream? -- Regards/Gruss, Boris. SUSE Software Solutions Germany GmbH GF: Ivo Totev, Andrew Myers, Andrew McDonald, Martje Boudien Moerman (HRB 36809, AG Nürnberg)