]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: selftests: Verify that reads to inaccessible guest_memfd VMAs SIGBUS
authorSean Christopherson <seanjc@google.com>
Fri, 3 Oct 2025 23:26:06 +0000 (16:26 -0700)
committerSean Christopherson <seanjc@google.com>
Fri, 10 Oct 2025 21:25:30 +0000 (14:25 -0700)
commit505f5224b197b77169c977e747cbc18b222f85f9
treec08b20b19f40e55e9de015cac08446a8b5c726a9
parent19942d4fd9cf022b28a9afb432a6338dcf96fc2f
KVM: selftests: Verify that reads to inaccessible guest_memfd VMAs SIGBUS

Expand the guest_memfd negative testcases for overflow and MAP_PRIVATE to
verify that reads to inaccessible memory also get a SIGBUS.

Reviewed-by: Ackerley Tng <ackerleytng@google.com>
Tested-by: Ackerley Tng <ackerleytng@google.com>
Reviewed-by: Lisa Wang <wyihan@google.com>
Tested-by: Lisa Wang <wyihan@google.com>
Link: https://lore.kernel.org/r/20251003232606.4070510-14-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
tools/testing/selftests/kvm/guest_memfd_test.c