summaryrefslogtreecommitdiff
path: root/sys/compat/ibcs2/ibcs2_exec_coff.c
AgeCommit message (Collapse)Author
2018-12-29Retire compat_ibcs2, as discussed on tech-kern@. FreeBSD did the samemaxv
recently.
2017-07-28Make sure we move forward over the buffer.riastradh
From Ilja Van Sprundel.
2017-07-28Make sure we have enough space in the buffer before reading it.riastradh
From Ilja Van Sprundel.
2017-07-28Check for NUL termination within the buffer we have.riastradh
From Ilja Van Sprundel.
2013-10-25Remove a variablemartin
2010-07-22Add more debugging printfschristos
2009-06-29Convert 67 namei call sites to use namei_simple, in these functions:dholland
check_console, veriexecclose, veriexec_delete, veriexec_file_add, emul_find_root, coff_load_shlib (sh3 version), coff_load_shlib, compat_20_sys_statfs, compat_20_netbsd32_statfs, ELFNAME2(netbsd32,probe_noteless), darwin_sys_statfs, ibcs2_sys_statfs, ibcs2_sys_statvfs, linux_sys_uselib, osf1_sys_statfs, sunos_sys_statfs, sunos32_sys_statfs, ultrix_sys_statfs, do_sys_mount, fss_create_files (3 of 4), adosfs_mount, cd9660_mount, coda_ioctl, coda_mount, ext2fs_mount, ffs_mount, filecore_mount, hfs_mount, lfs_mount, msdosfs_mount, ntfs_mount, sysvbfs_mount, udf_mount, union_mount, sys_chflags, sys_lchflags, sys_chmod, sys_lchmod, sys_chown, sys_lchown, sys___posix_chown, sys___posix_lchown, sys_link, do_sys_pstatvfs, sys_quotactl, sys_revoke, sys_truncate, do_sys_utimes, sys_extattrctl, sys_extattr_set_file, sys_extattr_set_link, sys_extattr_get_file, sys_extattr_get_link, sys_extattr_delete_file, sys_extattr_delete_link, sys_extattr_list_file, sys_extattr_list_link, sys_setxattr, sys_lsetxattr, sys_getxattr, sys_lgetxattr, sys_listxattr, sys_llistxattr, sys_removexattr, sys_lremovexattr All have been scrutinized (several times, in fact) and compile-tested, but not all have been explicitly tested in action. XXX: While I haven't (intentionally) changed the use or nonuse of XXX: TRYEMULROOT in any of these places, I'm not convinced all the XXX: uses are correct; an audit might be desirable.
2007-12-08Remove cn_lwp from struct componentname. curlwp should be usedpooka
from on. The NDINIT() macro no longer takes the lwp parameter and associates the credentials of the calling thread with the namei structure.
2007-12-08ANSIfy most of the function definitions in sys/compat (but not ndis).dsl
All by the magic of sed ...
2007-12-04Remove all the __Pdsl
2007-10-19machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.had
2007-04-22Change the way that emulations locate files within the emulation root todsl
avoid having to allocate space in the 'stackgap' - which is very LWP unfriendly. The additional code for non-emulation namei() is trivial, the reduction for the emulations is massive. The vnode for a processes emulation root is saved in the cwdi structure during process exec. If the emulation root the TRYEMULROOT flag are set, namei() will do an initial search for absolute pathnames in the emulation root, if that fails it will retry from the normal root. ".." at the emulation root will always go to the real root, even in the middle of paths and when expanding symlinks. Absolute symlinks found using absolute paths in the emulation root will be relative to the emulation root (so /usr/lib/xxx.so -> /lib/xxx.so links inside the emulation root don't need changing). If the root of the emulation would be returned (for an emulation lookup), then the real root is returned instead (matching the behaviour of emul_lookup, but being a cheap comparison here) so that programs that scan "../.." looking for the root dircetory don't loop forever. The target for symbolic links is no longer mangled (it used to get the CHECK_ALT_xxx() treatment, so could get /emul/xxx prepended). CHECK_ALT_xxx() are no more. Most of the change is deleting them, and adding TRYEMULROOT to the flags to NDINIT(). A lot of the emulation system call stubs could now be deleted.
2007-03-04Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.christos
2006-07-23Use the LWP cached credentials where sane.ad
2006-05-14integrate kauth.elad
2005-12-11merge ktrace-lwp.christos
2005-05-29- sprinkle const.christos
- add XXXUNCONST to the emul_find() pbuf argument free'ing. XXX: this needs an api change. - avoid variable shadowing.
2005-02-26nuke trailing whitespaceperry
2004-09-17There's no need to pass a proc value when using UIO_SYSSPACE withskrll
vn_rdwr(9) and uiomove(9). OK'd by Jason Thorpe
2003-11-19Previous fix was incomplete; did not handle negative values.christos
It is best to use size_t's when dealing with sizes, so that testing for negative ones, is not needed.
2003-11-18avoid integer type truncation. be picky about integer computation overflow.itojun
inspired by ftp://ftp.openbsd.org/pub/OpenBSD/patches/3.3/i386/011_ibcs2.patch
2003-11-05limit malloc so that corrupted executables don't allocate a lot of memory.christos
2003-08-08- GC all the setup_stack functionschristos
- add one for linux/i386
2003-06-29Back out the lwp/ktrace changes. They contained a lot of colateral damage,fvdl
and need to be examined and discussed more.
2003-06-28Pass lwp pointers throughtout the kernel, as required, so that the lwpid candarrenr
be inserted into ktrace records. The general change has been to replace "struct proc *" with "struct lwp *" in various function prototypes, pass the lwp through and use l_proc to get the process pointer when needed. Bump the kernel rev up to 1.6V
2002-10-05count executable image pages as executable for vm-usage purposes.chs
also, always do the VTEXT vs. v_writecount mutual exclusion (which we previously skipped if the text or data segment was empty).
2002-09-27remove trailing \n in panic(). approved perry.provos
2001-11-13add RCSIDs (including regeneration of files as appropriate)lukem
2001-10-30- Add a new vnode flag VEXECMAP, which indicates that a vnode hasthorpej
executable mappings. Stop overloading VTEXT for this purpose (VTEXT also has another meaning). - Rename vn_marktext() to vn_markexec(), and use it when executable mappings of a vnode are established. - In places where we want to set VTEXT, set it in v_flag directly, rather than making a function call to do this (it no longer makes sense to use a function call, since we no longer overload VTEXT with VEXECMAP's meaning). VEXECMAP suggested by Chuq Silvers.
2000-12-01put executable format specific code from ibcs2_exec.c to separatejdolecek
files ibcs2_exec_coff.c, ibcs2_exec_elf32.c, ibcs2_exec_xout.c as appropriate