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()?

Well, kernel/kmod.c and all other places call system calls via _syscallX()
macro, i.e. actually doing int 0x80 trap. Why do *they* do it that way?

regards,
Tigran.



-
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.061 / U:0.376 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site