Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp3119169lqo; Tue, 21 May 2024 07:26:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUk+Qj5tc5QtUHzEzEKLss4dnutbk0JAW0WkABU6tZjxP9skGg77U+ADzrI87ult+LZSPniJQrwkZLp58cL7wJV7Hi0FMnFxzCiHGen8Q== X-Google-Smtp-Source: AGHT+IH96uomO8p59b7ZlbH1AnYZZ13IEUD9wL/athrPvhGxVsjQ5qUJYjje0ZQRB2rMiFdoG+Lf X-Received: by 2002:a05:6a20:d807:b0:1af:f927:55db with SMTP id adf61e73a8af0-1aff9275760mr30285057637.59.1716301600780; Tue, 21 May 2024 07:26:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716301600; cv=pass; d=google.com; s=arc-20160816; b=QpySvYpYUA3MoJMU3yrQxwO6Y5PcGaUpuTiFJgVeSSeRzNhHIHcR4SWPYgPSuYti3v ZoUVRlWsmehVXovTcXLWV6ytCzh6yM/LDGg8J0N+aVuIT0Vcc0AoghP95SnSSr830rOr en/wH6vMDj9aZjFV1BekTX1A7GiJ/HRSAeKlXIyRkQuS1GywQsqjFlGhDfS/9I1O04Rt whtgXSTOanmt44wqj6erwYNRmwMnl+MyFbNnDimyaVkRP3sEvoUlK2rAK8yAoMdih9FW kzDqA5jI64bnLvvq3NJ5bMsq+M5MOqC7ShlyHcn+bFV6PW4o5MeFSXvO9Epyzsk7nUW1 g+bg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:user-agent:references:in-reply-to :date:cc:to:from:subject:message-id:dkim-signature:dkim-signature; bh=29QgOre2G6DNUK/9IK/OB7syHSYRhGbKAtyPJJbFf2I=; fh=YzsT43EHd9HD5A6MxMXlZoLdWI4jcz6fjLfMiv4JsoA=; b=EeLqpByMrTZ6wmKp64MWca8i8W+qOUnWoVglP8W7rYnE0uhO6Fgq/+09npGXgSmD0W ICJvFA1l6Tsd6i8WbWMHwQsJkYjasfpk4yZk3bYFAEgTYIdG6NzT5YOG3mtLPlEPuxkI t8ssrD99DFfsrIPm5bxrgcIicAyN9pRYX99BpCJ4j2Zv7EGyEI9fPUbkUW+6pvab0Eh6 PVXuW7cD1G7I/uGac3MIww1GIROKPMBFXKeJg1uzuVzeb9lqxu3rmQGSchJI4u1Td0mG rTSgGzAfH1mXIwm0XEEKtvsJWIhrqek6TAlIE/fb/NlUJaOouFVWbm0ri5CIs5BKiFSM V2iA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@hansenpartnership.com header.s=20151216 header.b=hKdhyU7g; dkim=pass header.i=@hansenpartnership.com header.s=20151216 header.b=hKdhyU7g; arc=pass (i=1 spf=pass spfdomain=hansenpartnership.com dkim=pass dkdomain=hansenpartnership.com dkim=pass dkdomain=hansenpartnership.com dmarc=pass fromdomain=hansenpartnership.com); spf=pass (google.com: domain of linux-kernel+bounces-185070-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185070-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=hansenpartnership.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 41be03b00d2f7-662f18a12aesi6460383a12.852.2024.05.21.07.26.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 07:26:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-185070-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@hansenpartnership.com header.s=20151216 header.b=hKdhyU7g; dkim=pass header.i=@hansenpartnership.com header.s=20151216 header.b=hKdhyU7g; arc=pass (i=1 spf=pass spfdomain=hansenpartnership.com dkim=pass dkdomain=hansenpartnership.com dkim=pass dkdomain=hansenpartnership.com dmarc=pass fromdomain=hansenpartnership.com); spf=pass (google.com: domain of linux-kernel+bounces-185070-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185070-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=hansenpartnership.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id D60E2B2563C for ; Tue, 21 May 2024 14:14:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A817F7F7D3; Tue, 21 May 2024 14:13:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=hansenpartnership.com header.i=@hansenpartnership.com header.b="hKdhyU7g"; dkim=pass (1024-bit key) header.d=hansenpartnership.com header.i=@hansenpartnership.com header.b="hKdhyU7g" Received: from bedivere.hansenpartnership.com (bedivere.hansenpartnership.com [96.44.175.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 46C677F490; Tue, 21 May 2024 14:13:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=96.44.175.130 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716300833; cv=none; b=YZSy/OvjNSeDQZ0r0Yw6ih0bL/QKuqpVxZLB1zVPI0n2MgJh2o4XU1MuAU22oz3FLCIAV4uei4N+xyhKIAuDmjsRLyPJQMKPLF04HeKiksslXt+YugfcTMgUbURLrNfVE9O0wxw9RUHPlnxVdJVCf88CeRBfKAT1hWB990YfqBE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716300833; c=relaxed/simple; bh=hICR39jC/rtypA7CGipOBlXUxk7CPTosvfiEBMKeYQw=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=o4lpm0ILzQ/itvsecp0sj0QGQbymeJ4Z7jXRAUtC6Va1pYEt7TtokcVUbyAqoJAa//E0cnhOubGCWrTN1scqbt3CZ+0MbxHdJx9OnKosEib2kiTw4lh3ZHitnaMOW8PFIltrKixwUtnCPNx9umq4WG7+q2K11tzSypjO1IFAbOg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=HansenPartnership.com; spf=pass smtp.mailfrom=HansenPartnership.com; dkim=pass (1024-bit key) header.d=hansenpartnership.com header.i=@hansenpartnership.com header.b=hKdhyU7g; dkim=pass (1024-bit key) header.d=hansenpartnership.com header.i=@hansenpartnership.com header.b=hKdhyU7g; arc=none smtp.client-ip=96.44.175.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=HansenPartnership.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=HansenPartnership.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=hansenpartnership.com; s=20151216; t=1716300830; bh=hICR39jC/rtypA7CGipOBlXUxk7CPTosvfiEBMKeYQw=; h=Message-ID:Subject:From:To:Date:In-Reply-To:References:From; b=hKdhyU7guQxWzoC89oEBKj2f+GC6rmiQcrinFXd16Wa72r/f8ZpijL7AumuM8o+r6 Og6Y8bnl6anGdpFNoH/srSRXBP8lNd6d1EigenRaKa1QgzV+C4Jpr2J2t3yOM/ke3R eKxGAdl6TMyrE2bhRs0yUat0EAx8B1iNvWirs7mA= Received: from localhost (localhost [127.0.0.1]) by bedivere.hansenpartnership.com (Postfix) with ESMTP id E1D43128716B; Tue, 21 May 2024 10:13:50 -0400 (EDT) Received: from bedivere.hansenpartnership.com ([127.0.0.1]) by localhost (bedivere.hansenpartnership.com [127.0.0.1]) (amavis, port 10024) with ESMTP id kiRxAjhcGZ42; Tue, 21 May 2024 10:13:50 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=hansenpartnership.com; s=20151216; t=1716300830; bh=hICR39jC/rtypA7CGipOBlXUxk7CPTosvfiEBMKeYQw=; h=Message-ID:Subject:From:To:Date:In-Reply-To:References:From; b=hKdhyU7guQxWzoC89oEBKj2f+GC6rmiQcrinFXd16Wa72r/f8ZpijL7AumuM8o+r6 Og6Y8bnl6anGdpFNoH/srSRXBP8lNd6d1EigenRaKa1QgzV+C4Jpr2J2t3yOM/ke3R eKxGAdl6TMyrE2bhRs0yUat0EAx8B1iNvWirs7mA= Received: from lingrow.int.hansenpartnership.com (unknown [IPv6:2601:5c4:4302:c21::a774]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (Client did not present a certificate) by bedivere.hansenpartnership.com (Postfix) with ESMTPSA id A89F412870E5; Tue, 21 May 2024 10:13:49 -0400 (EDT) Message-ID: <854fa2e1634eb116b979dab499243e40917c637c.camel@HansenPartnership.com> Subject: Re: [PATCH] tpm: enable HMAC encryption for only x86-64 and aarch64 From: James Bottomley To: Jarkko Sakkinen , linux-integrity@vger.kernel.org Cc: keyrings@vger.kernel.org, Peter Huewe , Jason Gunthorpe , Mimi Zohar , David Howells , Paul Moore , James Morris , "Serge E. Hallyn" , linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org Date: Tue, 21 May 2024 10:13:45 -0400 In-Reply-To: References: <20240521130921.15028-1-jarkko@kernel.org> <236606947b691049c650bdf82c37324084662147.camel@HansenPartnership.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.4 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 7bit On Tue, 2024-05-21 at 17:02 +0300, Jarkko Sakkinen wrote: > Secondly, it also roots to the null key if a parent is not given. So > it covers all the basic features of the HMAC patch set. I don't think that can work. The key file would be wrapped to the parent and the null seed (and hence the wrapping) changes with every reboot. If you want a permanent key, it has to be in one of the accessible permanent hierarchies (storage ideally or endorsement). The spec has a mechanism for deriving the key from a permanent handle if the system doesn't have it in-place. I do have patches to use that because that's the way most sealed objects and keys are generated today. I'll post them (although there'll be a bit of fixing up to do). Regards, James