vsize_t is not always u_long :-)

This commit is contained in:
christos 2016-09-03 12:20:58 +00:00
parent 127090f73c
commit 1fcaa19698
2 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: kern_pax.c,v 1.55 2016/05/27 16:35:16 christos Exp $ */
/* $NetBSD: kern_pax.c,v 1.56 2016/09/03 12:20:58 christos Exp $ */
/*
* Copyright (c) 2015 The NetBSD Foundation, Inc.
@ -57,7 +57,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: kern_pax.c,v 1.55 2016/05/27 16:35:16 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: kern_pax.c,v 1.56 2016/09/03 12:20:58 christos Exp $");
#include "opt_pax.h"
@ -632,7 +632,7 @@ pax_aslr_rtld_offset(struct exec_package *epp, vaddr_t align, int use_topdown)
}
void
pax_aslr_stack(struct exec_package *epp, u_long *max_stack_size)
pax_aslr_stack(struct exec_package *epp, vsize_t *max_stack_size)
{
if (!pax_aslr_epp_active(epp))
return;

View File

@ -1,4 +1,4 @@
/* $NetBSD: pax.h,v 1.24 2016/05/25 20:07:54 christos Exp $ */
/* $NetBSD: pax.h,v 1.25 2016/09/03 12:20:58 christos Exp $ */
/*-
* Copyright (c) 2006 Elad Efrat <elad@NetBSD.org>
@ -88,7 +88,7 @@ int pax_segvguard(struct lwp *, struct vnode *, const char *, bool);
#ifdef PAX_ASLR
void pax_aslr_init_vm(struct lwp *, struct vmspace *, struct exec_package *);
void pax_aslr_stack(struct exec_package *, u_long *);
void pax_aslr_stack(struct exec_package *, vsize_t *);
uint32_t pax_aslr_stack_gap(struct exec_package *);
vaddr_t pax_aslr_exec_offset(struct exec_package *, vaddr_t);
voff_t pax_aslr_rtld_offset(struct exec_package *, vaddr_t, int);