From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795946813; b=i2UwyGX08cpFspRUjfv000TObkFkSDVGw1qvhezE7FcvTQg/W3BkrNFDve9sWL2F4gAH brNsEahimMTG/VTQLCIG4zaZSGm+EoVKsCj/b5lIUFxQ5vbWW32eAGd2VWoniLc+JX+g4 DcESb/kece97aA1PeufZFIyD8Yyg+frWWPk7To2/MmSQju8laK/FfHuJG5lZxflV1x3Tx 5e9ZLNT3wpUyLQRSEHHfzyjq08Sf8eTRzmtGWEXFhyKiMYSyFLKD4RZFvv/DbsWX/KDuN PAhRsF3RH+UwtbonHBUdVQrY2mLL2lQh1sIFqCZ2rwZPwqyX1FOoxW0g8UtQEhzhDwA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795946813; h=Received:DKIM-Signature:Received:Date:Message-ID:From:To:Cc:Subject: In-Reply-To:References:User-Agent:MIME-Version:Content-Type: X-SA-Exim-Connect-IP:X-SA-Exim-Rcpt-To:X-SA-Exim-Mail-From: X-SA-Exim-Scanned; bh=MqhbB1jf4ZOCIn6AjL5TnLRPukQvPSoIOAD/aXqbP7I=; b=jGBAjdQjOwwEhvQx3p1MaheQSi/EOH+Xep3sRXC7D4sUrQNm1DCkxLNUS+TqGYP/UN8D IHyHO9Bqb5uYtqiISukLgec3HdKOO7Gk3u5wqqq6kUPuWQGgVXu9zNZh+WGi9QBhSQRyN 2STeQYY2OOguTqiPPt3ihOMEd9qYsJCilhu82c3dy42QPhc0q1U99u47WajbsRX/fP7cH RIU765KZ3ffETPOiJiREOpztTUOEajaUn/0bQJlE7YN56+MnA/vdJ3HTXuBvmwkuhBFYJ +E9xzdin1U8TlnE5hf1eLTTmG3xEPXBBdL1r5dTuFa65IYcL5s3tR3eWJbgTXeZuw0g== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=aXCHzxGL; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BC698606A31C for ; Sun, 29 Nov 2026 10:06:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=aXCHzxGL Received: by smtp.kernel.org (Postfix) with ESMTPSA id 438351F00896; Sun, 29 Nov 2026 10:06:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795946813; bh=MqhbB1jf4ZOCIn6AjL5TnLRPukQvPSoIOAD/aXqbP7I=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=aXCHzxGLAp9NBTShm03cbTgNGUHCKaucvtHWC/xmOhonp6ZHnnTZaYbaJ52tZ4qZB OYzu5KqxWx/CMr9ne8n3dByK0ACpFzRb+ZxFRM9/+nsLuXcif90yODDURIZHmy7gcF xPQ1ISqar8LidRGzFEpsjv/Ky6h77M+dkXKRW8FSW2NIbqkLhBKBBMjvE0MdpA6M8Q tf5jnjDylE7GbsuJqkch1+k8wJrHjzfer0JMghFyV5IaWSdljgrM5fhS7diWitrSc4 uLk+VLKSi44/YWApz/IHUftifebtdAgcU+qSjYPX03lSf6oM2bpbJICGNO2ALzhYGt 6Wy53I9wJk21g== Received: from sofa.misterjones.org ([185.219.108.64] helo=lobster-girl.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xXbo2-00000004bsn-3Ycr; Sun, 29 Nov 2026 10:06:50 +0000 Date: Sun, 29 Nov 2026 10:07:42 +0000 Message-ID: <87jylwne6p.wl-maz@kernel.org> From: Marc Zyngier To: Fuad Tabba Cc: Thomas Gleixner , Radu Rendec , Zenghui Yu , Lorenzo Pieralisi , Steven Price , Suzuki K Poulose , "Aneesh Kumar K . V" , Will Deacon , Fuad Tabba , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 4/5] irqchip/gic-v3-its: Zero ITTs reused from the ITT pool In-Reply-To: <20261127120623.891129-5-fuad.tabba@linux.dev> References: <20261127120623.891129-1-fuad.tabba@linux.dev> <20261127120623.891129-5-fuad.tabba@linux.dev> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/30.1 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: fuad.tabba@linux.dev, tglx@kernel.org, radu@rendec.net, yuzenghui@huawei.com, lpieralisi@kernel.org, steven.price@arm.com, suzuki.poulose@arm.com, aneesh.kumar@kernel.org, will@kernel.org, tabba@google.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false On Fri, 27 Nov 2026 12:06:22 +0000, Fuad Tabba wrote: > > Commit b08e2f42e86b5 ("irqchip/gic-v3-its: Share ITS tables with a > non-trusted hypervisor") moved sub-page ITTs from kzalloc_node() to a > genpool. An ITT freed back to the pool goes to the next device as the > previous one left it. MAPD is then UNPREDICTABLE: "When V == 1, the > specified ITT does not contain all zeros" (IHI 0069H.b, 5.3.10). > > Zero every ITT that comes from the pool. The ITS then no longer needs > the pages added to the pool zeroed, so drop __GFP_ZERO from their > allocation. A pKVM guest shares each new pool page with the host, > though, and pkvm_set_memory_decrypted() doesn't zero what it shares, so > the host now sees that page's old contents. I really don't see what this pKVM comment adds to the reasoning, and it reads like an AI leftover. By definition, if we don't zero the pages, we see the old content. If pKVM needs to prevent this, it can do it itself, but that has nothing to do with the driver. Thanks, M. -- Jazz isn't dead. It just smells funny.