RE: About the system call named "sys_mount".

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

 



Hi,

> now, i want to simplify the function according to the
> following method, but i don't know wether there is some
> potential risk.
> 1. don't to allocates memory in kernel space for each parameter.
> 2. sys_mount refer to the parameter through the memory
> pointer passed directly.

You can't refer to a user space memory directly. The reason being it
could not be in memory at the time of the call (and the kernel cannot
page fault). And thus the copy to kernel space is justified and needed.

Thanks,

Rajat

--
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