lkml.org 
[lkml]   [2016]   [Jul]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Minor PKRU bug?
From
Date
On 07/09/2016 02:27 PM, Andy Lutomirski wrote:
> is_prefetch in arch/x86/mm/fault.c can be called on a user address
> that's not readable due to PKRU. This could break it. You might need
> to add a get_user_exec or similar.

Thanks for the heads-up. I think I'll just need a version that does
something along the lines of stac/clac, but with PKRU.

I think I can do it with an "_exec" variant of probe_kernel_address(),
but it's a bit messy.

\
 
 \ /
  Last update: 2016-07-12 18:21    [W:1.276 / U:0.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site