Skip to content
Commit aee3e4a4 authored by Florent Revest's avatar Florent Revest Committed by Ryan Roberts
Browse files

kselftest: vm: Fix mdwe's mmap_FIXED test case



I checked with the original author, the mmap_FIXED test case wasn't
properly tested and fails. Currently, it maps two consecutive (non
overlapping) pages and expects the second mapping to be denied by MDWE
but these two pages have nothing to do with each other so MDWE is
actually out of the picture here.

What the test actually intended to do was to remap a virtual address
using MAP_FIXED. However, this operation unmaps the existing mapping and
creates a new one so the va is backed by a new page and MDWE is again
out of the picture, all remappings should succeed.

This patch keeps the test case to make it clear that this situation is
expected to work.

Signed-off-by: default avatarFlorent Revest <revest@chromium.org>
Reviewed-by: default avatarDavid Hildenbrand <david@redhat.com>
Fixes: 4cf1fe34 ("kselftest: vm: add tests for memory-deny-write-execute")
parent ec438e07
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment