[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <574F170C.7060302@sr71.net>
Date: Wed, 1 Jun 2016 10:10:36 -0700
From: Dave Hansen <dave@...1.net>
To: Jonathan Corbet <corbet@....net>
Cc: linux-kernel@...r.kernel.org, x86@...nel.org,
linux-api@...r.kernel.org, linux-arch@...r.kernel.org,
linux-mm@...ck.org, torvalds@...ux-foundation.org,
akpm@...ux-foundation.org, dave.hansen@...ux.intel.com
Subject: Re: [PATCH 7/8] pkeys: add details of system call use to
Documentation/
On 06/01/2016 09:49 AM, Jonathan Corbet wrote:
>> > + sys_pkey_alloc(0, PKEY_DISABLE_WRITE | PKEY_DISABLE_READ);
>> > + sys_pkey_mprotect(ptr, size, PROT_READ|PROT_WRITE);
>> > + something(ptr);
> That should, IMO, be something like:
>
> key = pkey_alloc(...);
> pkey_mprotect(ptr, size, PROT_READ|PROT_WRITE, key);
That is true as well. I'll fix that up as well.
Thanks for taking a look!
Powered by blists - more mailing lists