| Age | Commit message (Collapse) | Author |
|
in a row, and we need to try to read the next block, and have passed a
non-NULL cookie pointer to VOP_READDIR, ensure that we free the cookie
buffer before re-doing VOP_READDIR, so that we don't leak memory.
This fix is similar to nfs_serv.c revisions 1.115 + 1.124.
This should fix the long-standing problem observed by e.g. using Linux-
emulated programs to take backup of servers, which is one of the problems
which were reported in PR#42661.
Thanks to pooka@ for the hints for traversing the VOP* layer.
|
|
other than "accident", i hereby declare that reason invalid)
|
|
|
|
Henning Petersen in PR 42732.
|
|
found by cppcheck and reported by Henning Petersen in PR 42720.
|
|
|
|
|
|
|
|
involves setregs and vmcmds). Should result in no code differences.
|
|
with a version based on puffs. User functionality remains the same.
|
|
Fixes part of PR/31358
The other parts are rather too intrusive to be fixed as in the PR.
|
|
|
|
unsigned long.
|
|
|
|
long/netbsd32_long to match linux definition.
|
|
uninitialized fields by explicitly using memset in the conversion
routines.
|
|
|
|
|
|
- Use cached curlwp->l_fd, instead of p->p_fd.
- Inline selscan/pollscan.
|
|
Onno van der Linden. Also, remove redundant arguments (seems that
was_zombie was not used since rev 1.177 ?).
|
|
|
|
|
|
them in the tree).
|
|
- Addresses the issue described in PR/38828.
- Some simplification in threading and sleepq subsystems.
- Eliminates pmap_collect() and, as a side note, allows pmap optimisations.
- Eliminates XS_CTL_DATA_ONSTACK in scsipi code.
- Avoids few scans on LWP list and thus potentially long holds of proc_lock.
- Cuts ~1.5k lines of code. Reduces amd64 kernel size by ~4k.
- Removes __SWAP_BROKEN cases.
Tested on x86, mips, acorn32 (thanks <mpumford>) and partly tested on
acorn26 (thanks to <bjh21>).
Discussed on <tech-kern>, reviewed by <ad>.
|
|
|
|
|
|
|
|
but used elsewhere -- gcc-4.4.1 doesn't like it and I doubt it
had any effect
|
|
|
|
do it for you.
|
|
|
|
can be called from kernel, too.
Change needed for zfs device node creation, until we have propoer devfs.
Oked by ad@.
|
|
EINVAL when file descriptor does not refer to a directory.
|
|
|
|
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.
|
|
- dynamically calculate the cpu mask size,
- return it upon success,
- fix generated cpu mask.
|
|
|
|
|
|
Do the needed conversions in sendmsg/recvmsg syscalls, and adjust
their definitions accordingly.
|
|
msg_controllen size, when converting the control message buffer from
native (previous version was missing the linux_cmsghdr size).
|
|
native one.
|
|
buffers with ktrace(1), just like the native functions.
|
|
|
|
|
|
|
|
While here, cleanup ifdef out argument types.
|
|
- alpha: add missing _uid member to SIGCHLD structure.
- amd64: add missing typedef, and fix padding size.
- arm: add missing linux_siginfo definition.
|
|
|
|
|
|
amd64.
|