Re: [PATCH v2 6/6] selftests/mm: remove local __NR_* definitions

From: Dave Hansen
Date: Thu Feb 13 2025 - 10:13:05 EST


On 2/13/25 00:04, John Hubbard wrote:
>
> 2) I'm unable to reproduce what you saw, because in ALL cases (before
> or after the commit, and with or without a revert), I get the same
> results on my Intel test machine:
>
>     $ ./protection_keys_64
>     has pkeys: 0
>     running PKEY tests for unsupported CPU/OS
>
> ...so that's why I'm attaching a patch, in case you can verify that a
> revert fixes it.

The revert fixes it for me, thanks!

You probably just have hardware without pkey support. This isn't 100%
definitive, but you can check:

cat /proc/cpuinfo | grep ospke

If that doesn't match the "flags" line, then your hardware doesn't have
support in the first place and the message is totally expected.