The branch main has been updated by jmg:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=740b879c6ade531adebeba7cd2f261bbe650797f

commit 740b879c6ade531adebeba7cd2f261bbe650797f
Author:     John-Mark Gurney <j...@freebsd.org>
AuthorDate: 2025-08-18 20:25:37 +0000
Commit:     John-Mark Gurney <j...@freebsd.org>
CommitDate: 2025-08-19 22:37:07 +0000

    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.
---
 sys/arm64/arm64/elf32_machdep.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/arm64/arm64/elf32_machdep.c b/sys/arm64/arm64/elf32_machdep.c
index 7cd5327b9f1b..5c81c6cdce3d 100644
--- a/sys/arm64/arm64/elf32_machdep.c
+++ b/sys/arm64/arm64/elf32_machdep.c
@@ -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;

Reply via email to