Re: access_ok inside kernelspace

Ralf Baechle (ralf@uni-koblenz.de)
Wed, 20 Oct 1999 14:24:10 +0200


On Tue, Oct 19, 1999 at 01:11:26PM +0100, Tigran Aivazian wrote:

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

Nothing guarantees you that the the __NR_ numbers are valid indices into
the sys_all_table.

Ralf

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