lkml.org 
[lkml]   [2005]   [Apr]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Why system call need to copy the date from the userspace before using it
Tomko wrote:

> Catalin Marinas wrote:
>
>>
>> No, it is because this function checks whether the access to the user
>> space address is OK. There are situations when it can also sleep (page
>> not present).
>>
>>
>>
> what u means "OK"? kernel space should have right to access any
> memory address , can u expained in details what u means "OK"?

The user may not have any right to that memory, that means he
has no right to ask the kernel to mess with it either, even if the
kernel is authorized to do so.

Just as you can't ask a cop to jail someone. Sure, the cop has the power
to arrest, but he will check that there is reason to do so and not
automatically assume that you are right.

Helge Hafting
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-04-14 16:04    [W:0.118 / U:0.276 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site