Catalin Marinas wrote:
what u means "OK"? kernel space should have right to access any memory address , can u expained in details what u means "OK"?Tomko <[email protected]> wrote:Inside the system call , the kernel often copy the data by calling copy_from_user() rather than just using strcpy(), is it because the memory mapping in kenel space is different from user space?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).
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: Why system call need to copy the date from the userspace before using it
- From: Helge Hafting <[email protected]>
- RE: Why system call need to copy the date from the userspace before using it
- From: "David Schwartz" <[email protected]>
- Re: Why system call need to copy the date from the userspace before using it
- References:
- Why system call need to copy the date from the userspace before using it
- From: Tomko <[email protected]>
- Re: Why system call need to copy the date from the userspace before using it
- From: Jan-Benedict Glaw <[email protected]>
- Re: Why system call need to copy the date from the userspace before using it
- From: Tomko <[email protected]>
- Re: Why system call need to copy the date from the userspace before using it
- From: Catalin Marinas <[email protected]>
- Why system call need to copy the date from the userspace before using it
- Prev by Date: [PATCH 1/2 - 2.6.11.7] x25 : Selective subaddress matching with call user data
- Next by Date: RE: Why system call need to copy the date from the userspace before using it
- Previous by thread: Re: Why system call need to copy the date from the userspace before using it
- Next by thread: RE: Why system call need to copy the date from the userspace before using it
- Index(es):