Re: Question on asmlinkage

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

 



Just a few pointers for everyone to look further:

a.   kernel space is (for Intel x86) Ring0, and userspace is Ring3,
and so when u make transition between these two - u are subjected to
HARDWARE control on how the stack space can be used.   So Intel manual
(System Programming 3a specifically) is useful to read.

b.   The keyword is "stack switching" (there exists a difference
between 32bit vs 64bit).   Look it up - chapter 5 (interrupt and
exception handling).

c.   Essentially, kernelspace should always be protected from
userspace manipulation, and so the stack registers for userspace is
NOT used in kernelspace.   And switch context occurred, the entire
registers set is restored/saved into memory.

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