Index | Thread | Search

From:
"Theo de Raadt" <deraadt@openbsd.org>
Subject:
Re: update on pinsyscalls(2)
To:
Mark Kettenis <mark.kettenis@xs4all.nl>
Cc:
tech@cvs.openbsd.org
Date:
Mon, 15 Jan 2024 08:59:55 -0700

Download raw body.

Thread
Mark Kettenis <mark.kettenis@xs4all.nl> wrote:

> > How about SYS_MAXSYSCALL + some slop value, maybe 2 or 5?
> 
> That's a bit weird.  You're effectively saying we don't really care
> about the limit.  Other than limiting the size of the copyin.  So we
> might as well just do something like:
> 
>         if (npins < 1)
>                 return EINVAL;
> 	npins = MIN(npins, SYS_MAXSYSCALL);

Yeah, and that is a bit weird also.

Let's see what the first growth transition looks like.  I'll clamp at
SYS_MAXSYSCALL with E2GBIG.