diff options
| author | John-Mark Gurney <jmg@FreeBSD.org> | 2025-08-18 20:25:37 +0000 |
|---|---|---|
| committer | Gordon Tetlow <gordon@FreeBSD.org> | 2025-09-14 00:21:16 +0000 |
| commit | 722746b39e6ecaa4eeb36005c9bd69a9bcd68528 (patch) | |
| tree | eaf96566c1ea93acc583d56e47f06e3549a1f711 | |
| parent | 0781dd1545f6ed8a12cad7c3b98cf7c36c5af36f (diff) | |
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.
Approved by: so
Security: FreeBSD-EN-25:15.arm64
(cherry picked from commit 740b879c6ade531adebeba7cd2f261bbe650797f)
(cherry picked from commit 17d87881a363c160e7e8cdb252d0261214c1a50b)
| -rw-r--r-- | sys/arm64/arm64/elf32_machdep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/arm64/arm64/elf32_machdep.c b/sys/arm64/arm64/elf32_machdep.c index de0ee9607ad1..5f35d01f9ac0 100644 --- a/sys/arm64/arm64/elf32_machdep.c +++ b/sys/arm64/arm64/elf32_machdep.c @@ -193,7 +193,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; |
