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

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

 



On Fri, Mar 15, 2013 at 10:57 AM, Mathieu Desnoyers
<mathieu.desnoyers@xxxxxxxxxxxx> wrote:
>
> In addition to get_user_pages_fast() issues, I see that there are many
> direct callers of get_user_pages() that seem to assume that access
> checks are performed within this function.

get_user_pages() does check permissions. It looks up the vma and
checks them there, which is much more than access_ok() ever does.

>  AFAIU, on architectures that
> have a _PAGE_USER flag, this check is performed internally by pgd_bad()
> and pud_bad(), but what happens to all the others ?

Irrelevant. See above.

              Linus
--
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