On 21/05/2026 13:22, Mark Brown wrote: > On Thu, May 21, 2026 at 10:42:31AM +0100, Kevin Brodsky wrote: > >> Add a new test to ensure that atomic futex uaccess succeeds on >> memory mapped with a non-default POIndex/pkey. >> + ptr = mmap(NULL, size, PROT_READ | PROT_WRITE, >> + MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); >> + ASSERT_NE(ptr, MAP_FAILED); > Doesn't matter while there's only one test but we should probably > munmap() this when we're done.
Fair enough, I was being lazy :) A pkey_free() is also in order to be comprehensive, another wrapper to add. I considered using ../../mm/pkey-helpers.h but helpers there aren't implemented inline... Maybe refactoring for later. - Kevin

