]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: s390: selftests: Verify reject memory region operations for ucontrol VMs
authorChristoph Schlameuss <schlameuss@linux.ibm.com>
Thu, 7 Nov 2024 14:10:22 +0000 (15:10 +0100)
committerJanosch Frank <frankja@linux.ibm.com>
Mon, 11 Nov 2024 12:06:07 +0000 (12:06 +0000)
commit89be2544579932a7d5cdb5e534dfd00624c5f39f
tree7a873c22c3d62cb3826a2d369710d3541d4fc10c
parent0185fbc6a2d3cf3cc346d53d91ce6fc5e58c7187
KVM: s390: selftests: Verify reject memory region operations for ucontrol VMs

Add a test case verifying KVM_SET_USER_MEMORY_REGION and
KVM_SET_USER_MEMORY_REGION2 cannot be executed on ucontrol VMs.

Executing this test case on not patched kernels will cause a null
pointer dereference in the host kernel.
This is fixed with commit:
commit 7816e58967d0 ("kvm: s390: Reject memory region operations for ucontrol VMs")

Signed-off-by: Christoph Schlameuss <schlameuss@linux.ibm.com>
Reviewed-by: Janosch Frank <frankja@linux.ibm.com>
Link: https://lore.kernel.org/r/20241107141024.238916-4-schlameuss@linux.ibm.com
[frankja@linux.ibm.com: Fixed patch prefix]
Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Message-ID: <20241107141024.238916-4-schlameuss@linux.ibm.com>
tools/testing/selftests/kvm/s390x/ucontrol_test.c