]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
x86/hyperv: Fix output argument to hypercall that changes page visibility
authorMichael Kelley <mhklinux@outlook.com>
Wed, 26 Feb 2025 20:06:06 +0000 (12:06 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Apr 2025 12:37:38 +0000 (14:37 +0200)
commit83fa62a06e403f529cc37e0a27b2c1542d365dcb
tree2755efd4242f49e79cfb025ea7b8a3f141955149
parente7d8c5703238c8712b03598945a0686a9c6d4909
x86/hyperv: Fix output argument to hypercall that changes page visibility

[ Upstream commit 09beefefb57bbc3a06d98f319d85db4d719d7bcb ]

The hypercall in hv_mark_gpa_visibility() is invoked with an input
argument and an output argument. The output argument ostensibly returns
the number of pages that were processed. But in fact, the hypercall does
not provide any output, so the output argument is spurious.

The spurious argument is harmless because Hyper-V ignores it, but in the
interest of correctness and to avoid the potential for future problems,
remove it.

Signed-off-by: Michael Kelley <mhklinux@outlook.com>
Reviewed-by: Nuno Das Neves <nunodasneves@linux.microsoft.com>
Link: https://lore.kernel.org/r/20250226200612.2062-2-mhklinux@outlook.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
Message-ID: <20250226200612.2062-2-mhklinux@outlook.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/x86/hyperv/ivm.c