Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Dec 2020 13:18:49 GMT
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 5011330da72f - Cast sv_stackgap argument
Message-ID:  <202012261318.0BQDInR2009264@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/12 has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=5011330da72f1bc35fac52ec02c0ef98eae3a846

commit 5011330da72f1bc35fac52ec02c0ef98eae3a846
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2020-12-26 00:16:29 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2020-12-26 13:18:34 +0000

    Cast sv_stackgap argument
    
    to minimally intrusively handle difference between 12 and HEAD.
    On all supported architectures representation of longs and pointers
    is same.
    
    Reported by:    bdragon
---
 sys/kern/kern_exec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c
index 812d5e827093..64c9e84db07c 100644
--- a/sys/kern/kern_exec.c
+++ b/sys/kern/kern_exec.c
@@ -1505,7 +1505,7 @@ exec_stackgap(struct image_params *imgp, uintptr_t *dp)
 	    NT_FREEBSD_FCTL_ASG_DISABLE)) != 0 ||
 	    (imgp->map_flags & MAP_ASLR) == 0)
 		return;
-	imgp->sysent->sv_stackgap(imgp, dp);
+	imgp->sysent->sv_stackgap(imgp, (u_long *)dp);
 }
 
 /*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202012261318.0BQDInR2009264>