Hi Arjan,
Thanks for your reply. See below.
Arjan van de Ven wrote:
On Mon, 2006-06-19 at 16:18 -0400, Elad Lahav wrote:
Security considerations set aside, is it possible to run kernel code
with a user-supplied stack?
not really; just think of what happens when that stack page ends up
residing in swap... where do you get the stack space from to swap the
page back in ? ;-)
Can't you lock the supplied memory region in main memory?
I would like to use the stack of the current process to execute a system
call, in order to bypass the 4K kernel stack-size restriction
how would a user supplied stack fix that? (hint: even if you user-supply
it it'll still be 4Kb in size ;=)
Is this limit enforced by the kernel? I thought it only had to do with
the amount of space allocated by the kernel for its stack.
Thanks again,
Elad
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/