From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.221.50 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1792666484; b=49wIHPfnytf1jIoDVUyKCiaNrYzo2C8+dO2Vud0TGpFfwF9YIhxfAWTrLWY+L26JdMCz /7bA26V+ykl6CG50q7qjjlMx9orV3eurH68jnFjmqOvg7FvZ55Op7ocyyCrVwEsQru6Ri WXXQGveiYqbAQ26/n4PkBkgylyc2gd+8jKj8IwVC8RpSzgu62tHEkszOqCRov0utCGioE Om2zYXM+KZZHVAMdWCAeUIhux2jYQfC+oidu5E6FadGBDDyX+82fq+TVY34a2hsY/r4og xBVNYPb/v4Y93EMJ3FbRMBmjmY6EIQRgAh/GK9LzQrZjxz7PmX7m/+Jy3SXnMUghxWw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792666484; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; bh=wsdeMYd/7eLXCr9Ufg4dZ6+EW6LYxWJjZpkMLdZ1OLI=; b=l3fPaDpenMRaFwQwJZTD9XnFIgv8FxBTe67VBsln0MAZS0T1NZPL7ZrEWPE3YRN72AlU Gz36RFLqP3LKaEI5BF1nrnhkxfdZXR67+jxXL8aAgCJ5GwrO9To/+2mnP/Tfzh9PMRKeX nTSn2H5axA6+4Lmk79qCr4R9KD/48TfVsacnjJsdfluaa/mK582UO97WMvXPAzPG7Icv1 yCQzACr/RhvsqS8siP4/xj2NwUgPcjt/qh2d9+mzEqnWWwA2ckw0ZyRFu9dWuuTGXAD++ 8p+gynArYIW1UVTQg3srd7EpUh6afD21cp5tjInktwPr8o39Cxyu+k4/fjQH6N90fOg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=resnulli.us; spf=pass smtp.mailfrom=resnulli.us; dkim=pass header.d=resnulli.us header.i=@resnulli.us header.a=rsa-sha256 header.s=google header.b=iVzM+4Wh; arc=none smtp.remote-ip=209.85.221.50 Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.50]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F0B2B606A326 for ; Thu, 22 Oct 2026 10:54:37 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org F0B2B606A326 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=resnulli.us Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=resnulli.us Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=resnulli.us header.i=@resnulli.us header.a=rsa-sha256 header.s=google header.b=iVzM+4Wh Received: by mail-wr1-f50.google.com with SMTP id ffacd0b85a97d-48e011d370dso1353112f8f.0 for ; Thu, 22 Oct 2026 03:54:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=resnulli.us; s=google; t=1792666476; x=1793271276; darn=vger.kernel.org; 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=wsdeMYd/7eLXCr9Ufg4dZ6+EW6LYxWJjZpkMLdZ1OLI=; b=iVzM+4Wh7gDZgzymw32x+37naO3wz4NgCsioUd0xXmmYJLxHde730j8vwEBFHOigDt spQz+0mFByaQFwaDUr0c2ae1SeHnkPpIIUiMHP/cu/tOLU497pMtVgSh3Oe97yRxau59 1+aFiEk/doEVxAUQ4uQi5J3n037VefaeLSYfEBVYI0ezdQtHblQfteC+MpB14t0Yb02b crjq4VN8tYFrfN5YMd66+KGrNKNSCqW3QnCUx8AtGlqCodiHQpo5792+KihYy5FXZLYH ZumXm9uvYooJDFh1wBcflp8vYOWr5d2vJQZRxljy7S6k5IwMbVTRod9BghghqnSJwFlZ satA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792666476; x=1793271276; 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=wsdeMYd/7eLXCr9Ufg4dZ6+EW6LYxWJjZpkMLdZ1OLI=; b=Aa7eg67PyBPNLA0hm5sBl3Vn0zTEHgzAQHAxH9T0W/zk9/uIaeRuEJ7RxnaIRSL2xv YoDnzmwF2OGrQo2bxW6D0Ei3EaZy4AO+94SGwqc2p4pqoM+GigP7t3mGVUXo+Bw3RacB +RmSF2KFMZJA0Jkr+EetEjvDyAxCLDoPFpVIpY6eedVdO6YTj538BsSP/CPlMw1U/g2+ MeAr3dh6KBG4vVV73Nm++MKvVxOhFeUej7o3V3alrS8VIldRBh0dtBjqyc+k8zVi2T44 3VJVB/mzqZ/ZpLhHg7n4dx9tUFni2iWrZucthB94FLtB81c0wTTbpTjgRt+Nk3NhuUQz iEEw== X-Forwarded-Encrypted: i=1; AKwUvBzc/PD6Rd0eAkRNWjZtwN0unC3fIbbhaiL+u2qAFq3NEnKKI5elwlIJQLpLaYZO6A+CyasoVdj2Iak=@vger.kernel.org X-Gm-Message-State: AFq9FYIgj6vHfW+9+8rtNMCF2FaBIWQWgaqLERSsDI/EctACuZAobr+H cGY16CWaxYhi3K8xMh65Ui0uLWgY1++4KP2vg8JDuhdmldRhZJ09yDSeYyhjaKO2B0g= X-Gm-Gg: AYBFou13wW9P8uFK5qgttzvVZ8X0QuWGCQzDtGTw8luvCHTkDGdKg+4Tni2WFjhemPm QeiMfRpItmza9XDDi9v5380tP1oyk8zV5WJONk1Or2AMHQ7AXVcEBndis7U7+/6hj/APuzIp3Tl 0ZoQ2AS/a2MEkwK+PywSsJ2q+6AvVxFrhP9aq/kv+GvIOESGMjHm4CoMmPlVIvA+OetKVHOkKGT RB7Xl4O4VcOWvLyQtaCeTOCwCrt9NHSQ7mjjXpGFEI+Sjd76cVegenMMDpMl1ttQYT4lQ8Xx5cI k3YNWLSUES1d9cEBztSdh4JUFiT46uLK/44MhUHaZplNqVH6VQ2Sd65ALBZ5tbWPZw4SvDPaOvS VVMpZ4N55A+1Kx9uPQOtfpDWRDCpTAyfEcJJVMGuHUvt/08kE8ASPVNbDBHSHruYFgBePI/7+PB 1IsCEIqJBn4pEAcDkU9UBKRhVfyycywXHx+JjdGsLTW0Yf3kpMhylj4h6raJ2G3B/narDqrQm4q VPmeuM63yve1vtS6K4H77f21R78hkSZu1Iesj/c50RJHyHRPfheRf1nxsqcXBt/dC8= X-Received: by 2002:a05:6000:288e:b0:485:8cc8:1f5f with SMTP id ffacd0b85a97d-48e264a1f81mr10449260f8f.42.1792666476063; Thu, 22 Oct 2026 03:54:36 -0700 (PDT) Received: from localhost ([140.209.217.211]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-48e2583522esm11890881f8f.35.2026.10.22.03.54.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Oct 2026 03:54:35 -0700 (PDT) Date: Thu, 22 Oct 2026 12:54:30 +0200 From: Jiri Pirko To: Mimi Zohar Cc: Jason Gunthorpe , Dionna Glaze , Jarkko Sakkinen , linux-coco@lists.linux.dev, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, x86@kernel.org, kvm@vger.kernel.org, linux-doc@vger.kernel.org, david.quigley@intel.com, lukas@wunner.de, ksinyuk@kernel.org, rodrigo.vivi@intel.com, cedric.xing@intel.com, sameo@meta.com, James.Bottomley@hansenpartnership.com, aik@amd.com, jpiotrowski@nvidia.com, qinkun@google.com, pgonda@google.com, jic23@kernel.org, alistair.francis@wdc.com, ankita@nvidia.com, suzuki.poulose@arm.com, kas@kernel.org, rick.p.edgecombe@intel.com, elena.reshetova@intel.com, dave.hansen@linux.intel.com, sathyanarayanan.kuppuswamy@linux.intel.com, peter.fang@intel.com, roberto.sassu@huawei.com Subject: Re: [PATCH RFC 00/20] attestation: Add a common subsystem and TDX support Message-ID: References: <20261017231007.GP13920@nvidia.com> <20261019225658.GS13920@nvidia.com> <103486a4a29ecc7b72940dd051c00ae59266bd05.camel@linux.ibm.com> <20261021143529.GP3008132@nvidia.com> <8d8833fac61558a94af415143530884349584a2f.camel@linux.ibm.com> X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8d8833fac61558a94af415143530884349584a2f.camel@linux.ibm.com> Wed, Oct 21, 2026 at 09:05:09PM +0200, zohar@linux.ibm.com wrote: >On Wed, 2026-10-21 at 11:35 -0300, Jason Gunthorpe wrote: >> On Wed, Oct 21, 2026 at 10:12:34AM -0400, Mimi Zohar wrote: >> > > > I think for now we should not include a new dynamic log here, the uAPI >> > > > around this Jiri drafted can remain a future step. I don't want to >> > > > open complicated discussions about new functionality at this >> > > > stage. The whole CTLV idea in general is a big enough thing to bite >> > > > off for this series. >> > > >> > > Okay, dropping the log from this set. >> > >> > Thank you. Please keep in mind going forward, that the scarce hardware register >> > limitation (like the 4 TDX RTMRs) should be resolved (e.g. by multiplexing the >> > extension path), not by combining distinct measurement lists. >> >> I'm not sure what you mean? >> >> Since the HW doesn't support sealing the only *technical* requirement >> is the verifier can reproduce the measurement register hash. So long >> as we can get there we can do whatever. >> >> Multiplexing extension alone isn't enough. We need some scheme to >> reconstruct interleaved logs too. >> >> For example we could add an atomic sequence number for each >> extend. Every log sharing a register can report the sequence >> number. The verifier would have to globally sort all logs to confirm >> the hash. >> >> Hopefully we don't have to tackle this problem. I hope that 4 >> registers is enough for Linux. One for IMA, one for systemd, one for >> user? Plus a spare! > >Agreed, I hope you don't have to tackle it either. > >> >> Maybe we can build a multiplexed scheme on the spare? I don't know. > >To avoid interleaving the logs, AI had suggested multiplexing or virtualization >of the RTMRs. Whether is has any merit, I'll leave to you. Here's the very >short AI explanation: > >"Instead of allowing external drivers or subsystems to execute a direct, raw >extend command to a specific hardware register index, the new attestation >subsystem should act as a Hypervisor for Registers." Isn't the hypervisor what we are doing now? I mean multiple extension originators share the same register and eventually the same log. Or do you suggest to go even further having a "generic_registerX" exposed for every hw implementation allowing the user to have full abstraction? The "generic_registerX" would be always alias to something hw specific, like RTMR2 for example of TDX. > >> >> But we almost certainly need to have logs sequentially created in time >> occupying the same register. Ie IMA may take over the register from >> UEFI logging. Here we'd want to report the start/end hash values of >> the logs back to userspace so the verifier can stitch the order back >> together. >> >> It would also be nice to think about a way to restrict the registers >> to help avoid multi-user conflicts from misconfiguration. > >That would definitely be a plus. > >Mimi