> On Dec 5, 2018, at 8:38 AM, Jason Thorpe <thor...@me.com> wrote:
> 
> 
> 
>> On Dec 5, 2018, at 8:27 AM, Christos Zoulas <chris...@zoulas.com> wrote:
>> 
>> 
>> This patch:
>> 
>> https://www.netbsd.org/~christos/kmem_expose_address.diff
> 
> PK_KMEM should only be set if mm_open returns 0.  There's a case where 
> mm_md_open can return an error and PK_KMEM is still set.

Also, should PK_KMEM be inherited across fork?  What if a process opens 
/dev/kmem, and then forks/execs a helper to do the work, passing the file 
descriptor along with it?  #CanOfWorms

-- thorpej

Reply via email to