Re: access_ok inside kernelspace

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


Alan,

So, can one summarize that:

a) modules should call system calls via sys_call_table[] wrapped (if
necessary, i.e. if there is no user memory access) in
setfs(getds())/setfs(old_fs).

b) non-modules should call them usually via sys_XXX() functions, except
special cases where they use inlined _syscallX() in order not to make a
function call (stack issues).

Regards,
Tigran.

On Tue, 19 Oct 1999, Alan Cox wrote:

> > > For the generic case (ie including non PC) Im not actually sure you can assume
> > > a syscall can make a syscall.
> >
> > do you mean the above 'calling sys_*() function directly' case, or the
> > _syscallX() case?
>
> The _syscallx() case
>
>

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