Re: [PATCH 1/2] x86/pkeys: copy pkey state at fork()

From: Ingo Molnar
Date: Mon Oct 29 2018 - 02:36:32 EST



* Daniel Micay <danielmicay@xxxxxxxxx> wrote:

> > I suppose we could add a new flag for pkey_get() or something.
>
> That would work, since I can apply the workaround (disabling the
> feature in child processes) if I get EINVAL. The flag wouldn't need to
> do anything, just existing and being tied to this patch so I have a
> way to detect that I can safely use MPK after fork.

A new flag for the pkey_alloc() syscall, right?

Thanks,

Ingo