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

From: patchwork-bot+netdevbpf

Date: Tue Nov 10 2026 - 18:23:03 EST


Hello:

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

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