lkml.org 
[lkml]   [1999]   [Oct]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: access_ok inside kernelspace

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/

\
 
 \ /
  Last update: 2005-03-22 13:54    [W:0.042 / U:1.056 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site