Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp3119506lqo; Tue, 21 May 2024 07:27:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUlkN4EhM+kNz09QRQ7D+t9rMmAvV95K0XQ3c6uDryKCx4y2zkyXrG7fO1aSc2ySdPjclQchyYidMdx9UT8fVGe+MVKlwouLPEvQ76S2Q== X-Google-Smtp-Source: AGHT+IG3UWa9Csq9ylG8k7Pj5KCotv/D+eGurrbNYFgh2AZqpxX6+sBrKKgyxGO8eDWENXLvE9Hy X-Received: by 2002:a50:c18a:0:b0:572:7d77:179d with SMTP id 4fb4d7f45d1cf-5752b43230fmr7558665a12.5.1716301627723; Tue, 21 May 2024 07:27:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716301627; cv=pass; d=google.com; s=arc-20160816; b=sEdxH9wNkDUhTQAvCPXDaX6J7UFvzIl+51OGM+2ET+ogY6SiMKbuRvr2X2v28U3QYO Y1qi3EOPkfnV3jixj25Fs7DAUGkj/GZqP7FkyzL4O5Fjst5De/2s1byoqHc70BVtT5VV uFKkGvUS/8ngtkQJyl72VQe9Fd/PkT3AYFEHtooep08t/eETfhUl4TA07CrBBCYy6ggW urWJjNct1Vs5J1pCCsFrPsydNlupSouZUAWzKEWjY51USghPyunv12OdCmhO8T21OxR6 KdADayrrmK8q1RzTnYnc/GeQ3+wBjRbVL7LqFrqnR98pOaGaW5Z7DDyAG5ItOQNa/ugI Zn3Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:references:subject:cc:to:from:message-id:date :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=dMM6Kelct7GWLsER+6Io+vvJcGs2KpzucuZOwqheLNE=; fh=64dYIhwwzz37P+gDK6FZDcQNHccy13NWyY25CbFvbZc=; b=XUDWt1fDkfGu8Dso+UI2TPA0+3WYVdM/Io833bL3eMsj0eyh0FP32R/Aq6qF+FGWuQ QlHG7R/9h5shtI9k+94y/qc3cK47ofm8gZ8t+JNnFjaEZBxwE/hc1cYzulygryvWgdwc RF2xU1wOnc9SeeUR89JvkGnglk1KBwKl/VKjXPPvRv9QA7EvExiG/UN5f/P/Cb/pTPks biC4yqmfeYIEAC3eqpf3S0lMmX0SKW3Q6QhA2aD1EG8oaN7buxjtWM3rqR0nd73HfEkE rbQcHfxAxPCzuXgz8y2zY2P/cs/ZhWiMB7Ntr9hA3yAxLYX2P3oqIveyN2JsuKHfqIDH uZLw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oTzoosUc; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-185093-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185093-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5782567d01fsi518307a12.509.2024.05.21.07.27.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 07:27:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-185093-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oTzoosUc; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-185093-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185093-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 724901F243C0 for ; Tue, 21 May 2024 14:27:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 44C4A130483; Tue, 21 May 2024 14:27:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="oTzoosUc" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 5FBB312FF92; Tue, 21 May 2024 14:26:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716301619; cv=none; b=rhyt1fmrehjVh9IA03EHZ+qP0JuhO/9Wjz5/OvzN3ouCxGQ+F2tiYJRG43Jfeh1ZcAK8dhHo5CapIzXS1C+BOHmQYXQriGs5xhjfc6yvqvYLvbXhbBPRBBqKvSeWp/7Ort6CQWab88W675I1uiwvDieoyPYiNHcMLaHgjw+9Ibo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716301619; c=relaxed/simple; bh=1g2QcHXVGrgKGcleBAKJcmGbMkt1SO1MJSLlE1cOLmw=; h=Mime-Version:Content-Type:Date:Message-Id:From:To:Cc:Subject: References:In-Reply-To; b=KcQSMND8CkLCBiC0JvQfa06C2lYgF3Qd77CEpZfQAfmPjYogkdgUIalP71mJDcmatON3T0p4+4UWiJdSE54anrxnQuuqofDvvPYBNRsnONvtYgTDzOuPaeD8vHM5VoUZTbM2dtG5wN/eHy0/FJXVw4W8E0Li+5bKMYnF9QQhEBw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=oTzoosUc; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8EACCC2BD11; Tue, 21 May 2024 14:26:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716301619; bh=1g2QcHXVGrgKGcleBAKJcmGbMkt1SO1MJSLlE1cOLmw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=oTzoosUcMowiKdDmdDCn3VHirfdkeXbkWRAuIezBZldov1LQpPyNftWBVWMcq3Zqw /J/wjBLNxTVoWsTIBinFzMc6K4MPZ2JZBOBQ3kO6C7S59+fOG0v+zrdmTS2r+QyQRZ H6JHusUp+xtT2YeNmXCLwbOiSNhS05SS64SGkmEi0pmojqOssWrj/0GmRe5bdBEN2A gwSNGzo05bomi/6E5ZJ+yx1i/BaSacwvDs0FvyQ0RnTtVlBd5BeFeTkpe6oB1zIub9 PAvDqGBb62/GZGe0kB++B6xIVQoz6P7ep7KyuOY3CH+QTcaVcBoZQ+VixFzYgvBJ2K L5vGMD08zSvlg== Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Tue, 21 May 2024 17:26:54 +0300 Message-Id: From: "Jarkko Sakkinen" To: "James Bottomley" , Cc: , "Peter Huewe" , "Jason Gunthorpe" , "Mimi Zohar" , "David Howells" , "Paul Moore" , "James Morris" , "Serge E. Hallyn" , , Subject: Re: [PATCH] tpm: enable HMAC encryption for only x86-64 and aarch64 X-Mailer: aerc 0.17.0 References: <20240521130921.15028-1-jarkko@kernel.org> <236606947b691049c650bdf82c37324084662147.camel@HansenPartnership.com> <854fa2e1634eb116b979dab499243e40917c637c.camel@HansenPartnership.com> In-Reply-To: <854fa2e1634eb116b979dab499243e40917c637c.camel@HansenPartnership.com> On Tue May 21, 2024 at 5:13 PM EEST, James Bottomley wrote: > 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). I'm fully aware that null seed is randomized per power cycle. The fallback was inherited from James Prestwood's original code and I decided to keep it as a testing feature, and also to test HMAC changes. If you look at the testing transcript in the cover letter, it should be obvious that a primary key is created in my basic test. BR, Jarkko