From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oo2-f38.google.com (mail-oo2-f38.google.com [74.125.231.166]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5AC7E5304B2 for ; Thu, 1 Oct 2026 15:18:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.231.166 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790867886; cv=none; b=V6YlI5+QB75MfkIf7KOo0Q0edMgyVggoqPGE9tuVObDGGT2IE8jXQDdXon5ASgL6PwNbN79VJAp9S7urmvzyaLaBdVfLX0H957gTLWsQpWT6Qd8ZASG7/SJ35xGq2K2futIysTTqu3AIj1i6gFxzWzaQW2QckAIvWKisMy94aso= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790867886; c=relaxed/simple; bh=Q85kZEspfRbBEZSBGOjOQeRPZ7EBf2+4Hi635vpRBZA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=hO/7lHOxSzQ8aU9+yycjWybSYyg0JB2jM/U8p0zoYYDdYLMFVP0Rw9kWvJAwita6ISf52Pl9RfP+brwS4P7jTSSEyCycAEoEPGk5wpH/KF2XxRNPhoFNe7VX8ib+GQ/9RZWYFr/J+nyo1P4zzIZTB4ER4R+q6LtyfNfnH668cnQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca; spf=pass smtp.mailfrom=ziepe.ca; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b=SwUf8Ncp; arc=none smtp.client-ip=74.125.231.166 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ziepe.ca Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b="SwUf8Ncp" Received: by mail-oo2-f38.google.com with SMTP id 46e09a7af769-81f707db14cso2917930a34.2 for ; Thu, 01 Oct 2026 08:18:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1790867883; x=1791472683; darn=lists.linux.dev; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=PiIPZwDVa/FTGpS0Ac/pTVSem1bCOOPpbOCOtMlbuUk=; b=SwUf8NcpLpI5UK3qxkHaYCQBpl7dlYBZ98WNHywUWKkdBPfzO+XNlKBtTjyqh5Ac/k HXKeYA1xrKXEyB4VBeAc/Ujdl4njNAg5PWJUO7bhrmI+ri/OcamVOVEhi9iWkW9inCsT Ds3Wt6f2D/n8N/imataShW1l0t6k9Q5neBFy7LnPrRVOgAyXuFs6+z/c8pEffug0IHjH iU6ItsN2p1nDafr1PB9hUsIEV/pWfQqrGKinefioo3lGMp2yfy2hcUqUxheFpVH89dNn Z0Ayy7ftqlsUo0qqjFTu07FIcpO5+F6d3ws29g3jWqVmMz+XqDyQ0puZwiSKIR0MRCeo zsBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790867883; x=1791472683; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=PiIPZwDVa/FTGpS0Ac/pTVSem1bCOOPpbOCOtMlbuUk=; b=s3APBYq7cLFXqAFfvWlG9jk6dtrZ9LmaCiwOBeoaoVZvtUz3rNSwsRjUIA9FLGpkr9 evVyAmxURkoIfN5kK8WlISmC5fcrGoJ+fDsjPdZlEtuXx3RmSKrUf9mumOmjYtV5IpL/ IbChY/EnIvVsT7B1lG4S7PQjlexKL1m56grltKE4Tav1hnUoFpHRayyukQMELU+tDU5l j9WwepTFTzCs/h01IhM94Coe8jfB5dHQEB9sRnBPyi+5otiAQKoLDbn+XTf68IYVsM3x hFABuxOKKj4YGTyef3og2ALdZg2YFdvEXz5RzKcqW6U6ezufc9v1yzVlCHRXffgE6EZv f/yg== X-Forwarded-Encrypted: i=1; AKwUvBxSziTqL5csR/udo1hjiK1tSIPQ7G5HYiGgKBb0s4vHdzL6p7jNnlodk8Dp0Uy7UcIERmxc3ZiKCr0e@lists.linux.dev X-Gm-Message-State: AFuF++lbVfA60dU7ViKsh1ArwfrComuMwKgM5mLGaKxQYlLl3QhpFFTU 4Big/jw9BSZ0rhYSkHFpbhP3HSScXQGf9vp549I0WtLFqKskrbqLjal9tCUC0jpnhRQ= X-Gm-Gg: AYBFou0740IrJv3oXNJ4LbhwEMSp3Hsrj8nAQ/gRiDW9tFxp4s8LOwpcbUbL3+g5leC KhrIWdFNiNQaUsSDcYxWzacBM8Gxgv/L+PQ05yAHeOMADBKh5+IA3DW3X6bEBoNtTTvsXGoMajf P6e4jAPmX6p5V5VikuyjA1K6qWnSTKZkDsmbvvZ5PlBlrLF7WtzIOge0853L59JLunoML3FZbsb 3L/SH2kOWVvoVmXDXbdPxTrNn9EujWR57AFeL1UMc5bTP0RMgX3JAFlrmI4cuS+AQbiBlHqEJKZ uTweuxRvgZrHWFUswQxs4wqT6PT5c7vb1mMR4Zas6THz2LrDoXLMRvPS5s3X1lT/E3vDQ62fu89 FOzewPZNsZhnyUB5yqtlD36BgouP3cAu22Ib7Wi4dHvmtv09qw4tZ5lrCTVv0jAFnfVDCITP2lz JQHOTb+ysa2DAVsWp5aLF4oluk3tRtxLLSpM3T/h/YZ6m2 X-Received: by 2002:a05:6830:6d0b:b0:813:baf6:c644 with SMTP id 46e09a7af769-8204b2bd01cmr6068580a34.26.1790867882898; Thu, 01 Oct 2026 08:18:02 -0700 (PDT) Received: from ziepe.ca ([130.41.10.202]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-8227a56e124sm18793a34.21.2026.10.01.08.18.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Oct 2026 08:18:02 -0700 (PDT) Received: from jgg by wakko with local (Exim 4.97) (envelope-from ) id 1xCIXp-0000000ENnk-1pv5; Thu, 01 Oct 2026 12:18:01 -0300 Date: Thu, 1 Oct 2026 12:18:01 -0300 From: Jason Gunthorpe To: Roberto Sassu Cc: Yeoreum Yun , linux-coco@lists.linux.dev, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Eric Snowberg , linux-integrity@vger.kernel.org, linux-security-module@vger.kernel.org, Mimi Zohar , Roberto Sassu , Dmitry Kasatkin , Paul Moore , James Morris , "Serge E. Hallyn" , Catalin Marinas , Suzuki Poulose , Steven Price , Sami Mujawar , "Aneesh Kumar K.V" , Jiri Pirko , gongruiqi1@huawei.com Subject: Re: [PATCH RFC 0/3] security: ima: support TSM measurement registers Message-ID: <20261001151801.GC3019323@ziepe.ca> References: <20260930-ima_tgx_integration_v2-v1-0-722c35370548@arm.com> Precedence: bulk X-Mailing-List: linux-coco@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Thu, Oct 01, 2026 at 01:45:26PM +0200, Roberto Sassu wrote: > On Thu, 2026-10-01 at 13:27 +0200, Roberto Sassu wrote: > > On Wed, 2026-09-30 at 14:43 +0100, Yeoreum Yun wrote: > > > Confidential computing guests without a TPM can use TSM measurement > > > registers to record IMA measurement digests instead of TPM PCRs. > > + Gong Ruiqi, of course. We are working very seriously on this same problem too. For some time we did investigate extending tsm_mr to do more things, have a better uAPI, but that eventually evolved into the realization that tsm_mr is simply too narrowly focused. It looks like James got to this idea before we did. I agree with his remarks in the 2025 thread with Gong. So we've started work on a new comprehensive "Attestation subsytem" that will pull in all forms of ROTs, TPM, CC stuff and SPDM use cases to give a consistent user API to work with this class of HW. In many ways I view this as a rename of tsm_mr (it will eventually fully absorb it), but the name evokes the broader goal and encourages everyone to come in, not just CC world. Our overall goal would be for something like systemd to have a single uniform kernel API that allows it interwork with any ROT someone may have. A uAPI to do "Extend", "Quote", "Get Log" operations so that the existing TPM support in systemd can be improved to work on any ROT flexibly without having to hard code specific ROT behaviors into systemd. I've felt the ultimate end goal would be to make all the in-kernel tpm users go through the proposed attestation subsystem so they can have ROT and "PCR profile" agility. Certainly I've heard enough people asking for this. This is a broader topic than just IMA. For example DRTM also has to use the TPM, and other ROTs. It also brings in a global shift of how the system wide "PCR Profile" should work as post-DRTM has a different TPM locality and access to the protected DRTM-only PCRs that are normally blocked. Jiri posted his current state here: https://lore.kernel.org/r/arzr32ZDComnfmny@FV6GYCPJ69 While we plan to start with SPDM and CC topics as the initial launch Jiri has enough detailed plans now for all the main use cases, PCI SPDM, TPM, "CC PCRS", CC attestation, and Caliptra that I'm feeling confident something like this is the right way forward. Jason