Re: [PATCH v2 3/4] kselftests/arm64: add PAuth test for whether exec() changes keys

2020-09-07 Thread Dave Martin
On Thu, Sep 03, 2020 at 11:48:37AM +0100, Boyan Karatotev wrote: > On 02/09/2020 18:08, Dave Martin wrote: > > On Mon, Aug 31, 2020 at 12:04:49PM +0100, Boyan Karatotev wrote: > >> +/* > >> + * fork() does not change keys. Only exec() does so call a worker program. > >> + * Its only job is to sign

Re: [PATCH v2 3/4] kselftests/arm64: add PAuth test for whether exec() changes keys

2020-09-03 Thread Boyan Karatotev
On 02/09/2020 18:08, Dave Martin wrote: > On Mon, Aug 31, 2020 at 12:04:49PM +0100, Boyan Karatotev wrote: >> +/* >> + * fork() does not change keys. Only exec() does so call a worker program. >> + * Its only job is to sign a value and report back the resutls >> + */ >> +TEST(exec_unique_keys) >> +

Re: [PATCH v2 3/4] kselftests/arm64: add PAuth test for whether exec() changes keys

2020-09-02 Thread Dave Martin
On Mon, Aug 31, 2020 at 12:04:49PM +0100, Boyan Karatotev wrote: > Kernel documentation states that it will change PAuth keys on exec() calls. > > Verify that all keys are correctly switched to new ones. > > Cc: Shuah Khan > Cc: Catalin Marinas > Cc: Will Deacon > Reviewed-by: Vincenzo Frascin

[PATCH v2 3/4] kselftests/arm64: add PAuth test for whether exec() changes keys

2020-08-31 Thread Boyan Karatotev
Kernel documentation states that it will change PAuth keys on exec() calls. Verify that all keys are correctly switched to new ones. Cc: Shuah Khan Cc: Catalin Marinas Cc: Will Deacon Reviewed-by: Vincenzo Frascino Reviewed-by: Amit Daniel Kachhap Signed-off-by: Boyan Karatotev --- tools/t