6b88a0fc51
FreeBSD-SA00:42. Change stackgap_alloc to bounds-check the allocation vs. the stack gap, returning NULL if there isn't room for the allocation. Change emul_find() to check for a NULL return from stackgap_alloc() and convert that into ENAMETOOLONG. Reorder various emulation syscalls so that all *_CHECK_ALT_{EXIST,CREAT} calls (which turn into emul_find() under the covers come *after* small, fixed-size stackgap_alloc() calls. Clean up ibcs2 {get,set}groups. |
||
---|---|---|
.. | ||
Makefile | ||
Makefile.inc | ||
compat_exec.c | ||
compat_util.c | ||
compat_util.h | ||
gen_errno_tables.awk | ||
kern_exit_43.c | ||
kern_info_09.c | ||
kern_info_43.c | ||
kern_ipc_10.c | ||
kern_resource_43.c | ||
kern_sig_13.c | ||
kern_sig_43.c | ||
kern_xxx_12.c | ||
sysv_ipc_14.c | ||
sysv_msg_14.c | ||
sysv_sem_14.c | ||
sysv_shm_14.c | ||
tty_43.c | ||
uipc_syscalls_43.c | ||
vfs_syscalls_12.c | ||
vfs_syscalls_43.c | ||
vm_12.c | ||
vm_43.c |