CVSROOT:        /cvs
Module name:    src
Changes by:     guent...@cvs.openbsd.org        2023/05/11 13:35:50

Modified files:
        lib/libc/arch/amd64/sys: syscall.S 

Log message:
Retguard addition in commit 72pYktDvmJhq7OyF was based on the understanding
that the removal of the off_t padding, amd64 syscalls no longer passed a 7th
or later argument.  We overlooked that syscall(2) bumps the arg count by one,
so six argument calls like SYS_sysctl still pass an argument on the stack.

So, repush the 7th argument so it's at the expected stack offset after the
retguard register is pushed.

problem reported and ok bluhm@

Reply via email to