Re: null pointer questions

From: Roman Zippel (zippel@linux-m68k.org)
Date: Fri Nov 02 2001 - 18:20:44 EST


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/



This archive was generated by hypermail 2b29 : Wed Nov 07 2001 - 21:00:20 EST