Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions tools/testing/selftests/arm64/user4k/uffd-wp-init.c
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,8 @@ static void marker_window(size_t ps, size_t native)
CHECK(physical(a + i, ps) == start + i);
CHECK(((pagemap(a + i, ps) >> 57) & 1) == (i != ps));
}
/* The neighbours the write populated read zero; a read keeps their WP bit. */
CHECK(!a[2 * ps] && !a[3 * ps]);
/* An async WP fault on a populated neighbour only clears its own bit. */
a[0] = 0xa5;
for (size_t i = 0; i < native; i += ps) {
Expand Down
Loading