Quantcast
Channel: lkml.org : Vaidyanathan Srinivasan
Viewing all articles
Browse latest Browse all 890

Re: [PATCH v2 11/17] selftests/x86/ldt_gdt: Prepare for access bit ...

$
0
0
Linus Torvalds writes: (Summary) wrote:

[...]

foreign mm.
That sounds wrong.
That sounds wrong.
We actually had some very serious reasons why get_user_pages_fast() needed to check access_ok().
needed to check access_ok().
I happen to forget what those reasons were, though. My mind may be going.
My mind may be going.
But I think it was something like "you could walk off the page tables because the undefined address range generates nonsensical values for the pgd_offset() functions" etc.
the pgd_offset() functions" etc.
But maybe the regular get_user_pages() has some other way to protect against that.
against that.
Linus
Linus
Linus

Viewing all articles
Browse latest Browse all 890

Trending Articles