Displaying 1 result from an estimated 1 matches for "syf_argmask".
2004 Sep 17
1
Fwd: FreeBSD kernel buffer overflow
...thread;
> struct proc *p = td->td_proc;
> register_t orig_tf_eflags;
> u_int sticks;
> int error;
> int narg;
> int args[8];
> u_int code;
>
>
> ...
>
>
> narg = callp->sy_narg & SYF_ARGMASK; (<- you can see it's the
> only one
>check)
>
> if (params != NULL && narg != 0)
> error = copyin(params, (caddr_t)args,
> (u_int)(narg * sizeof(int)));
> else
> error = 0;
>
>
>...