lkml.org 
[lkml]   [2001]   [Nov]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: null pointer questions
Hi,

Ken Ashcraft wrote:

> Why does it matter if 0 is a valid user space or not? If I make the call
>
> copy_from_user(0, user_ptr, 4);
>
> the null pointer is the kernel address, not the user address. Can you
> clarify please?

Sorry, I misunderstood you. The kernel address has to be a valid address
of course, otherwise the behavior is undefined.

bye, Roman
-
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-03-22 13:12    [W:0.080 / U:2.452 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site