Re: access_ok inside kernelspace

Tigran Aivazian (tigran@sco.COM)
Tue, 19 Oct 1999 11:25:13 +0100 (BST)


On Tue, 19 Oct 1999, Matthew Wilcox wrote:
> Submit a patch to turn them all into sys_foo() instead.

No. Because the comment says clearly "no function calls":

/*
* we need this inline - forking from kernel space will result
* in NO COPY ON WRITE (!!!), until an execve is executed. This
* is no problem, but for the stack. This is handled by not letting
* main() use the stack at all after fork(). Thus, no function
* calls - which means inline code for fork too, as otherwise we
* would use the stack upon exit from 'fork()'.
*

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/