arm64: prevent panic when using syscall mux + large arg call (mmap)

if the syscall muxes are used, up to two additional arguments
may be required.  This means that the 8 required for mmap increases
up to 10 (for __syscall).

Sponsored by:   Juniper Networks, Inc.
This commit is contained in:
John-Mark Gurney 2025-08-18 20:25:37 +00:00
parent 5be78ccf7a
commit 740b879c6a

View file

@ -195,7 +195,7 @@ freebsd32_fetch_syscall_args(struct thread *td)
register_t *ap;
struct syscall_args *sa;
int error, i, nap, narg;
unsigned int args[4];
unsigned int args[6];
nap = 4;
p = td->td_proc;