Re: access_ok inside kernelspace

Ingo Molnar (mingo@chiara.csoma.elte.hu)
Tue, 19 Oct 1999 11:21:50 +0200 (CEST)


On Tue, 19 Oct 1999, Matthew Wilcox wrote:

> On Tue, Oct 19, 1999 at 09:18:40AM +0200, Ingo Molnar wrote:
> > it's a bug, system calls really should work from within system calls.
>
> Ugh, really? It's going to slow down Linux/PA-RISC's syscall handler if
> we have to check whether we're already in kernel mode. What's wrong with
> calling sys_sysfs()?

... provided you are using/setting set_fs()/get_fs() properly. You'll
obviously not go through the system call handler but call sys_open() or
whatever directly from within kernel space.

-- mingo

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