[Prev][Next][Index][Thread]
Re: bug in sproc_syscall.c?
At Fri, 28 Jun 2002 18:25:33 -0400 (EDT),
Gopalakrishnan Suresh wrote:
>
>
> In uvm/sproc/x86/sproc_syscall.c:oskit_sproc_syscall_handler()
>
> /* Dispatch the system call */
> error = (*func)(sthread, (void*)arg_kv, rval);
>
> Shouldn't this be
>
> error = (*func)(sthread, (void*)args, rval);
You are right. Someone pointed out this bug some months ago but I
forgot to make this public.
> Or maybe it doesn't matter - because it is a single linear address space
> (without LDTs) and kernel has access to all of it?
Actually it does matter. args_kv points within a user address space
which might be switched by thread context switches!
Kota
References: