Re: Question regarding User Space and the Kernel

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

 



Hi...
1) Can the kernel access User Address Space.
Yes
If yes thats wat i found from
net ( but it is poorly written driver if it allows the same)
then why cant the kernel directly copy data from the user . Why do we need
copy_to_user and copy_from_user.
Is it because some  protection  mechanisms.
we need to make sure the user space address is valid. It means:
1. It is within valid user space address range (in 3:1 VM split, it's 0-3 GB) 2. It is within valid segment range (mentioned in related segment descriptor)


regards,

Mulyadi


--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux