From: "Theo de Raadt" Subject: Re: update on pinsyscalls(2) To: Mark Kettenis Cc: tech@cvs.openbsd.org Date: Mon, 15 Jan 2024 08:59:55 -0700 Mark Kettenis 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.