Re: Question on Stack

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

 



Robert Love <rml@ximian.com> writes:

...
>> * Also is it always the case that ebp register stores the address of the
>> current user mode stack frame ?
>
> Yes, although you can turn off the stack frame pointer if you so choose.

You can't safely make the assumption inside module code, right?  If
you want the userland stack pointer, you can get that.  

You don't even know whether the userland binary was compiled from C,
though, so you can't really make any assumptions about the address of
the current userland stack frame.

-- 
--Ed L Cashin            |   PGP public key:
  ecashin@uga.edu        |   http://noserose.net/e/pgp/


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           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