Re: [PATCH v14 12/22] selftests/vm: pkey register should match shadow pkey

2018-07-18 Thread Dave Hansen
On 07/17/2018 06:49 AM, Ram Pai wrote: > expected_pkey_fault() is comparing the contents of pkey > register with 0. This may not be true all the time. There > could be bits set by default by the architecture > which can never be changed. Hence compare the value against > shadow pkey register,

[PATCH v14 12/22] selftests/vm: pkey register should match shadow pkey

2018-07-17 Thread Ram Pai
expected_pkey_fault() is comparing the contents of pkey register with 0. This may not be true all the time. There could be bits set by default by the architecture which can never be changed. Hence compare the value against shadow pkey register, which is supposed to track the bits accurately all