From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-yx2-f39.google.com (mail-yx2-f39.google.com [74.125.224.167]) (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 92F653EB10D for ; Mon, 28 Sep 2026 13:08:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.224.167 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790600929; cv=none; b=UXRc1+o5kXGyU1stYTdL8m1PPA1NJDDG/5a/KsTSxULay44M/cK3fiaJ9lNoSN/H9REN0C/fQbeJX1fpandgVKuRXvRMOzbE3ws69Lx3MMC7YuYlbIJKpMsSctTUcL4kWJtBRO58tvbAbW6M458eS5c+u6blPehSMDIYbBBsDHo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790600929; c=relaxed/simple; bh=HMf8sz6h2dnybYBuZGK7jThBHP4dhPBd75prPtkOxHo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=DopcPhFDT9+5r41Zw3Lt2xYJHXPbjkzXZJhS8eBT7GGhiR1bHOE68xQd/gu3IcoHpEdy80+hMAvPziFgsSNJh0wlGCB0C/4SAB+9LFlGhxmlqqyUTB4s1LpImrBzHjjRuLM4zxAB8V4aSzneMO/bvz/fuKjkgPIYu5yjYsMHAIU= 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=nmeQv4Xu; arc=none smtp.client-ip=74.125.224.167 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="nmeQv4Xu" Received: by mail-yx2-f39.google.com with SMTP id 956f58d0204a3-67534eb4effso1056338d50.1 for ; Mon, 28 Sep 2026 06:08:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1790600926; x=1791205726; 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=HMf8sz6h2dnybYBuZGK7jThBHP4dhPBd75prPtkOxHo=; b=nmeQv4XufmXnn1j5MhSDVCgfCe4BLrrF+MoaD5jdIAe++Gq0a7AQkRHlryX+kE0f5F dlkJ2md9C1E/Ipfr4wHJgqw4Qz1dVvEUKl1BDkwGBves8+HUSsk6AqxzCNLmxaQSkK4r llPtHCQA1oXnFb5xKdbynPU/RsHitb7r6Po89MEb/wvdEmHuZ6CbX3da2Sd5dvkdr1Yz 6b0PEKUGn9DpJmn41V9nJDOmdTwIfZVUlPrfDZc5F+Uv9hukfqZqEg6jroUjocPRkqrG AjWkXIBQjZbVpB4UDeB+Ls3gI7wcDTOp91WREFaBux38LSpjreVNj9WINTsYd/4J+SOX YqDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790600926; x=1791205726; 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=HMf8sz6h2dnybYBuZGK7jThBHP4dhPBd75prPtkOxHo=; b=Ih8bIR+anNtMNG0RoKISzaq+3Sc+Y4FSDPBp7j/G5NdN8S+QJaTz1beNsGTW14R11n cC83d1uc5iqHu1rBrnuUJ+aaG3+OG1o2+pKUE/yJw68hb5VrTcwRlIPHFh+y8dnO0/aZ vATBa/ouUWfVKY4GlgHyxXGx4/D0/pVtvT2OKwWGhyDEgAwWGNp8bJkTMUa3bWKA9lZT 1guX9YYD5qtxAUa0IsDtZh8PPpbt9eJhUd8VTiKHTYAoPAQm5Abyfghy+eowTp7fn60T eUzbWhAU77DOp7zZdgTwuhKd//shV6m9SXI0ODZwejyt2ujw4CJSXfa+z99njDY8TteP ctdQ== X-Forwarded-Encrypted: i=1; AKwUvBwzaF6Nx85QawNxu/LxWaz6SuIxWxw7Ew8lrBW8oVJY61HTqNht5i9wHHx8TVG4kEdQ2q8uV4OKUADZ@lists.linux.dev X-Gm-Message-State: AFuF++kvEIBEhT6MLj5D6TBdGChTIfYK3BUOAwewIAON4K19ZDzNEd/B 7Tc965unf45x6ZxK6g8ddbLyfJIAWm5kO4v12fgcuTtA1BnJHlJ57Lm2j9d9EhCR56s= X-Gm-Gg: AYBFou3QetnvuCbRJbXxId/p6luiV2RvNl8iacoFQHhZY7MxNrFLKLx+xH9ErkuXy97 k30VA54EVdGjtXtUbhWQCCDvs/jZNwceLonfWAiRKQJF2Jpg5GURIqT/tuieI2v9VTca1byi11n wcn36a/3Ki01jNckqF8JFfxUAhkCsEJukLZ0XYyh2gt3m13g+qQjIEiIp/YtFPL8CkLYsmYMwoY aanGzdcBWroCeMVwdE6RXKlq38Aj0lc/uFebxPNGJVxlrZz3cGd2Yr0hAy0OHsiphL/1vwy51bb 1CmZ61VmjP0AtoMRhs5wruwIj5pyCqC/QwBysj+gHuThq8yxNZ+pXjd0h1MVa5graWzK4em/sDJ raZ+CAcxlyTz84xoZn4L8E8Z/Iv2MMLEcn4yPdfcedB+0v9AtoNgYZ/qPFb0ytahtbdmKYv2q/a YkhZO1iPal0AUsKaT0nPxOQSbhLJ7IXhVQ44T9v/My3u2j X-Received: by 2002:a05:690e:128c:b0:675:40e7:8e58 with SMTP id 956f58d0204a3-67540e7c5aamr1608190d50.20.1790600926197; Mon, 28 Sep 2026 06:08:46 -0700 (PDT) Received: from ziepe.ca ([130.41.10.202]) by smtp.gmail.com with ESMTPSA id 956f58d0204a3-6740ef28dfasm4604200d50.11.2026.09.28.06.08.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Sep 2026 06:08:45 -0700 (PDT) Received: from jgg by wakko with local (Exim 4.97) (envelope-from ) id 1xBB63-00000006mlN-3bcU; Mon, 28 Sep 2026 10:08:43 -0300 Date: Mon, 28 Sep 2026 10:08:43 -0300 From: Jason Gunthorpe To: "Tian, Kevin" Cc: "Aneesh Kumar K.V (Arm)" , "linux-coco@lists.linux.dev" , "iommu@lists.linux.dev" , "linux-kernel@vger.kernel.org" , "kvm@vger.kernel.org" , Alexey Kardashevskiy , Bjorn Helgaas , Joerg Roedel , Jonathan Cameron , Nicolin Chen , Samuel Ortiz , Steven Price , Suzuki K Poulose , Will Deacon , Xu Yilun , Shameer Kolothum , Paolo Bonzini Subject: Re: [RFC PATCH v6 00/11] iommufd: Infrastructure for vIOMMU creation for confidential guests and guest TSM requests Message-ID: <20260928130843.GH163130@ziepe.ca> References: <20260917140159.1163281-1-aneesh.kumar@kernel.org> <20260924192054.GA16465@ziepe.ca> 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 Mon, Sep 28, 2026 at 03:35:29AM +0000, Tian, Kevin wrote: > Looks there are some resource shared between the untrust and > trust invalidation paths, as iommu->qi->q_lock is also acquired > in the trust path. I still need to understand the motivation behind, > but this can be resolved properly by exporting a helper to the > TSM driver even if it's truly required. That seems a bit suspicious from a security POV.. The secure side shouldn't be sharing anything like this with the insecure side, that's just inviting invalidation integrity attacks??? Jason