Re: [RFC PATCH (resend)] block layer zero-copy: missing access_ok() check

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx>
Date: Fri, 15 Mar 2013 10:21:41 -0700

> Adding linux-arch. Guys, can you check your architectures?
 ...
>> * sparc: access_ok missing in get_user_pages_fast,
>>   -> no indication of any _PAGE_USER flag.

Well, access_ok() returns 1 unconditionally on sparc64.  I can add a
call there if you want.  :-)

And that's because the user virtual address space is %100 segregated
from the privileged one.  There are no "user address ranges"
vs. kernel ones.

For example, we can and do give 64-bit processes the full 64-bit
virtual address space for user mappings.

The page tables, outside of swapper_pg_dir, only map user pages.
--
To unsubscribe from this list: send the line "unsubscribe linux-arch" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel]     [Kernel Newbies]     [x86 Platform Driver]     [Netdev]     [Linux Wireless]     [Netfilter]     [Bugtraq]     [Linux Filesystems]     [Yosemite Discussion]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]

  Powered by Linux