Subject: CVS commit: syssrc
To: None <source-changes@netbsd.org>
From: Bill Sommerfeld <sommerfeld@netbsd.org>
List: source-changes
Date: 08/30/2000 06:59:21
Module Name:	syssrc
Committed By:	sommerfeld
Date:		Wed Aug 30 03:59:21 UTC 2000

Modified Files:
	syssrc/sys/compat/common [netbsd-1-5]: compat_util.c
	syssrc/sys/compat/hpux [netbsd-1-5]: hpux_file.c
	syssrc/sys/compat/ibcs2 [netbsd-1-5]: ibcs2_misc.c ibcs2_stat.c
	syssrc/sys/compat/linux/common [netbsd-1-5]: linux_file.c
	    linux_misc_notalpha.c
	syssrc/sys/compat/svr4 [netbsd-1-5]: svr4_stat.c svr4_stream.c

Log Message:
Pull up:
syssrc/sys/compat/common/compat_util.c                  1.16
syssrc/sys/compat/hpux/hpux_file.c                      1.14
syssrc/sys/compat/ibcs2/ibcs2_misc.c                    1.52
syssrc/sys/compat/ibcs2/ibcs2_stat.c                    1.16
syssrc/sys/compat/linux/common/linux_file.c             1.29
syssrc/sys/compat/linux/common/linux_misc_notalpha.c    1.58
syssrc/sys/compat/svr4/svr4_stat.c                      1.40
syssrc/sys/compat/svr4/svr4_stream.c                   1.40,1.41

Approved by thorpej and jhawk.

Emulation stackgap sanity checks, based partly on fixes from
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.

Add range checks to svr4_stream.c


To generate a diff of this commit:
cvs rdiff -r1.14 -r1.14.12.1 syssrc/sys/compat/common/compat_util.c
cvs rdiff -r1.13 -r1.13.18.1 syssrc/sys/compat/hpux/hpux_file.c
cvs rdiff -r1.47 -r1.47.4.1 syssrc/sys/compat/ibcs2/ibcs2_misc.c
cvs rdiff -r1.14 -r1.14.4.1 syssrc/sys/compat/ibcs2/ibcs2_stat.c
cvs rdiff -r1.28 -r1.28.4.1 syssrc/sys/compat/linux/common/linux_file.c
cvs rdiff -r1.53.4.1 -r1.53.4.2 \
    syssrc/sys/compat/linux/common/linux_misc_notalpha.c
cvs rdiff -r1.37.4.1 -r1.37.4.2 syssrc/sys/compat/svr4/svr4_stat.c
cvs rdiff -r1.38 -r1.38.4.1 syssrc/sys/compat/svr4/svr4_stream.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.