🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #14291

Re: [PATCH net-next v1] ptp: kvm: x86: Leak clock_pair page if changing its encryption fails

#14291
From: patchwork-bot+netdevbpf
Date: Tue, 10 Nov 2026 23:20
26 lines
8880 bytes
Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@kernel.org>:

On Thu,  5 Nov 2026 11:43:08 -0500 you wrote:
> In a confidential guest, kvm_arch_ptp_init() shares the clock_pair page
> with the host using set_memory_decrypted(), and kvm_arch_ptp_exit()
> makes it private again with set_memory_encrypted() before freeing it.
> 
> The untrusted host can make either call fail and leave the page shared.
> Both paths still free the page: the init error path with __free_page(),
> and kvm_arch_ptp_exit() after only a WARN_ON(). The page allocator can
> then hand a page the host can still access to an unrelated user.
> 
> [...]

Here is the summary with links:
  - [net-next,v1] ptp: kvm: x86: Leak clock_pair page if changing its encryption fails
    https://git.kernel.org/netdev/net/c/6a01fb125ba6

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID: <179435280642.110597.5760305396342479169.git-patchwork-notify@kernel.org>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-360717-linux-kernel-netdev=dewy.ru
References: <20261105164324.23501-2-oss.patchbox@gmail.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-360717-linux-kernel-netdev=dewy.ru
From: patchwork-bot+netdevbpf@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v1] ptp: kvm: x86: Leak clock_pair page if
 changing
 its encryption fails
Date: Tue, 10 Nov 2026 23:20:06 +0000
Organization: Usenet Network
Message-ID: <179435280642.110597.5760305396342479169.git-patchwork-notify@kernel.org>
References: <20261105164324.23501-2-oss.patchbox@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="727525"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:EMcQvwTcfjD/orXmavRTUl3+gxw= sha256:zNTL2TWyJ65am3wDNCVDvSGUySo7lU2CzBvQ0EvwAJo=
	sha1:InQyH+hRd/T/0Sq/33UWHR7wHGU= sha256:vb1RTKNhGdLaocU86Fo/g/t520jCoifha9Y+qB6efuE=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id D420C113DA8; Wed, 11 Nov 2026 02:20:46 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.401
X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1,
	DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=kernel.org
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id BEIiTETKY5wq;
	Wed, 11 Nov 2026 02:20:42 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-360717-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id EFDC5113DA3; Wed, 11 Nov 2026 02:20:33 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by tor.lore.kernel.org (Postfix) with ESMTP id 9256565F7F; Tue, 10 Nov 2026 23:20:13 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1794352809;
	b=h8XOzdqKlIT4eq/Tf94WaMYHKkUqsmcc4aMjZbeYVSKUTSM0sLV5D0FiletleapXB7FY
	 tIUMYkVwQsBiSmcMCJzq78paVPiu6geIzPCcFG7p+RV9MWYULSoxYPCm6ODVNLCwKM6f3
	 2CVVtoeaI7wpmGeEXC+ZpallCc+VyrsKul7HlNPtnIPd136Lm/7LbURc1Ttr67SoOqIvf
	 3KNmayGGJp1FB29Qc6v8zhuHbvyrP0BnWqPLDM9c5Nyt11bmSAOsBeDsTCMosKAadN8Kr
	 rLyz+1U9c9sX6G7s5GeBKDmrzTmMcweujmxWBXZKa/PM/3MeCnWbhL1Ql/ATV7MMQvA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794352809;
	h=X-Original-To:Received:Received:DKIM-Signature:Received:Content-Type:
	 X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=XEP6ocZvL9ys5RIqSXCixODEf8oZBXKHCkfuVpPFBfg=;
	b=IwoSB5y92IGTJuHEqTtKy2aQrNMLuu03a98SpS2IMUQJyrg0Aqlfehl32KtUGUtVwNSH
	 xrfBNLFIEKMY3Dm+NG22XiL5txbMAu0rVHCfqW0k7JHl8YidADacgjMvASjsxpIvEG5BW
	 c4wHyDoDB15KZDgI9iwuOi052FxP1KPD5HlC65H+3KGeVhOHaidH1n7F5L7K5ttzem5w/
	 IlYUT+inBHXL1D16VUfQVhR6owyTaRtr6JhAGut1BDgFX0EqBT1yerGshFwdBBikrOnxz
	 LOPxIOt+LEjP/bEzhL8EADVdby3QImn8tlNnqoqJmgCNMaoeCpD9mn2/cgafeDXVgPA==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=SVEFk3xA;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id EDAD6606A33F;
	Tue, 10 Nov 2026 23:20:08 +0000 (UTC)
X-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=SVEFk3xA
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1794352808;
	b=ozJuHHMEUCTmkMKp/MLr793B8ylY7fEwGs6YFK315cSCbW8dUJ8Uu+IgkUuyyDVm7CuV
	 5vbpMplYJtUZb6ZgxtFyYFOMXVZWuVOQLZzYn/ZE28GJUXsrPKap96ley2DRn/ZXIIVFY
	 X+JYYwOWLcztFnB96CQtOv+lvvyb3j3TAXzgMBYoeHpsTR6LdwdFnGIrhBZASt2mUL5EU
	 SZacs74ctdkNNYWTQ6oOHYJzw9NKy03Uxeu1mki6xyZOKQC8uymDuqH5q/Fdxl5Sb3Msg
	 WJbw5j3oQgNL/GfwMmSCjCA1hvycdUCAWwVj109tY4N+p2xoTfSNfDhYKC2nq4PJ0aw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794352808;
	h=Received:DKIM-Signature:Received:Content-Type:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=XEP6ocZvL9ys5RIqSXCixODEf8oZBXKHCkfuVpPFBfg=;
	b=e5gQzJavI+AtWTsrnhhgGjRjBfBK7D/MPzhkDdWpsSibPpe8/3vQFRK2FEECIB+v7+zs
	 p2OY6mLqQw9wcXbekDKYJYiekGunqGpHoVxsWSu74oGeXRq8pJ8UD89mqSniezVFNqftv
	 8fR9zcKZoWCiBzp7GBUuxdeuHU85kMYJ53RG2+qpbv4aIhfWtdBZ+KWJh5stqy19m+wwr
	 q+3A2W5leafqB+63UG6a6zNv7HEIUF7klD4vFzg0DdoDJHtJZ92LbBxVy+Enr1vi5kiN6
	 /xZj446XGyGmf5idXhB+Fp6tk8UVU8CKqFYs2YYg63JfQdjAIjf/lGil/ZPmYQBBp4w==
X-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=SVEFk3xA;
	arc=none smtp.remote-ip=100.103.45.18
X-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 154E0606A330;
	Tue, 10 Nov 2026 23:20:08 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id E24561F0093D;
	Tue, 10 Nov 2026 23:20:07 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1794352807;
	bh=XEP6ocZvL9ys5RIqSXCixODEf8oZBXKHCkfuVpPFBfg=;
	h=Subject:From:Date:References:In-Reply-To:To:Cc;
	b=SVEFk3xA6q78Cx6OyUgnpm/1B8AeilaXOPf9WTbNpMlm3iHtmIPSlbDhrXRkyHWGA
	 B6ORQf2L9yQ/+Lkm7hRvoUMuYkAArMl/kxq0WteO6l72be6sOBmHCpMOPMGowQ7VJO
	 Daw31fVLvynYvUfVhLdvgd8psGVomCHiHUfC81Zco9W3sgMvVNtkVlb4jQsSx+rZjM
	 0ORPrq/fzSwRnIQ9SaesG36i/SrGRL4PWaBF6rUEPqDnZXK/HcdwCjDUB/YK7nqRkI
	 CQt9SmE1JdDNMR8YndkIoYnc5rgPTvwmlXkfHWkH1k9PHx0F6bkmNrLakkqa1xUHGO
	 WxmiN6gHW4u0g==
X-Received: from [10.30.226.235] (localhost [IPv6:::1])
	by aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org (Postfix) with ESMTP id D819939E8A40;
	Tue, 10 Nov 2026 23:20:07 +0000 (UTC)
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-In-Reply-To: <20261105164324.23501-2-oss.patchbox@gmail.com>
X-Cc: richardcochran@gmail.com, andrew+netdev@lunn.ch, davem@davemloft.net,
 edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com,
 jpiotrowski@linux.microsoft.com, netdev@vger.kernel.org,
 linux-coco@lists.linux.dev, linux-kernel@vger.kernel.org