summaryrefslogtreecommitdiff
path: root/sys/kern
AgeCommit message (Collapse)Author
2011-08-28lockmgr() wants to use a different address for the wchan when drainingPhilip Guenthe
the lock, but a change in member ordering meant it was using the same address. Explicitly use different members instead of mixing address of member and address of the lock itself. ok miod@
2011-08-23iPrevent that a socket splicing timeout error in one direction isAlexander Bluhm
also added to the other direction. ok mikeb@
2011-07-30When using rthreads, the thread that calls exit will be the last one toJoel Sing
actually exit. This means that the main thread will exit and free the process group, which results in the thread dereferencing a null pointer when it is woken back up. Avoid this by checking that the ps_pgrp is not null before deferefencing it. Also expand the ps_session macro to avoid hiding the dereference. ok tedu@
2011-07-28Kill integer from pointer warning when compiling with MALLOC_DEBUG.Ryan Thomas McBride
ok kettenis
2011-07-26No need to byte-swap d_checksum just before setting it to zero.Kenneth R Westerback
ok matthew@
2011-07-25two more syscall functions that should have returned int, not pid_tTed Unangst
2011-07-25Make sure vfsp is not used uninitialized in the mount -o update case;Miod Vallat
ok krw@ matthew@
2011-07-25sys_wait4 properly returns int. ok deraadtTed Unangst
2011-07-22Doh, fix a memory leak when an invalid file descriptor is passed to aMatthew Dempsky
*at(2) function. ok guenther@, thib@
2011-07-18Allocations fit if [the end of free space] >= [the end of allocated space].Ariane van der Steldt
Change > in comparison to >=.
2011-07-18Fix uvm_pmr_alloc_piglet.Ariane van der Steldt
A wrong check could cause the piglet allocator to attempt to extract memory from a range in which the alignment caused it not to fit.
2011-07-18Revert vnd(4) to its older less strict behavior.Matthew Dempsky
Verified by deraadt@ to fix distrib/sgi/iso.
2011-07-18syncMatthew Dempsky
2011-07-18Add support for UTIME_OMIT and UTIME_NOW to utimensat(2), add theMatthew Dempsky
futimens(2) system call, and refactor futimes(2) to share the same code. (As with other openat(2) system call stuff, this is not exposed to userland yet.) naddy@ pointed out rsync expects UTIME_* if openat(2) is available tweaks and ok guenther@; tested by naddy@ in a bulk build
2011-07-14Add support for AT_REMOVEDIR to unlinkat(2), and switch sys_rmdir() toMatthew Dempsky
use it. ok tedu@, guenther@
2011-07-12Fix typo that caused fchownat(2) and fchmodat(2) to try to dereferenceMatthew Dempsky
symbolic links even when the AT_SYMLINK_NOFOLLOW flag is passed. noticed by naddy@ testing gnulib ok deraadt@ and presumably tedu@ (who wrote a similar diff)
2011-07-11Revert art@'s moving around of the KERNEL_LOCK()/KERNEL_UNLOCK() calls,Philip Guenthe
as it causes hangs in some ports, including libsigsegv's configure script confirmed by krw@, landry@
2011-07-11Add hibernate_read_block and fix a couple of typos in the previous commit.Mike Larkin
2011-07-09syncMatthew Dempsky
2011-07-09Fix up previous diff: use COMPAT_O48 instead of COMPAT_48, add optionMatthew Dempsky
to GENERIC, wrap compat_o48_sys_getdirentries() with an appropriate #ifdef, and use struct compat_o48_sys_getdirentries_args instead of struct sys_getdirentries_args.
2011-07-09syncMatthew Dempsky
2011-07-09More syscalls.master cleanup:Matthew Dempsky
sys_osigaltstack() is 7 years old and no longer needed; all glory to the sys_sigaltstack()! sys_ogetdirentries() is about 9 months old, but still acceptable within our release cycle; move from STD to COMPAT_48 to make this clearer for tedu@ next year. sys_sbrk() and sys_sstk() are completely obsolete: all they do is return ENOSYS. ok guenther@
2011-07-09Call (temporarily, until we have RLE page encoding) uvm_pmr_zero_everythingMike Larkin
on suspend to ensure we get good zlib compression. Add MI signature block (hibernate_info) comparison routine
2011-07-09Extract hibernate_write_signature and hibernate_clear_signature to the MIMike Larkin
hibernate code, and add chunk range overlap checking.
2011-07-09Add support for the O_CLOEXEC and O_DIRECTORY flags introduced inMatthew Dempsky
POSIX Issue 7. Requested by oga@ (and maybe djm@); ok guenther@
2011-07-09Extract MI pmap function hibernate_enter_resume_mapping, refactor old i386Mike Larkin
resume pmap code to match. Add hibernate deflater and inflater and cache flush routines. Code is not presently called or automatically built.
2011-07-09begone, fucking rotten appletalk shit. ok roomHenning Brauer
2011-07-09Add zlib reset, alloc, and free functions for hibernate image compressionMike Larkin
2011-07-09syncTheo de Raadt
2011-07-09mark an obsolete call with the release we killed it; reminded by teduTheo de Raadt
2011-07-09syncTheo de Raadt
2011-07-09Remove COMPAT_25. The one piece moved by COMPAT_LINUX moves there.Theo de Raadt
ok guenther
2011-07-09Separate some MD and MI bits and a bit of refactoring to make subsequentMike Larkin
commits easier. Work in progress, hibernate will still not work for you. ok deraadt@
2011-07-08Add F_DUPFD_CLOEXEC.Matthew Dempsky
"Sure" deraadt@
2011-07-08no reason to zero pages we are about to mark dirtyAriane van der Steldt
2011-07-08Ensure all pages in pmemrange can be marked as dirty.Ariane van der Steldt
It'd be a very bad idea to hand out dirty pages as zeroed, just because we came back from hibernate. No callers at the moment, will be called on hibernate resume path.
2011-07-08Remove COMPAT_OLDSOCK since no nothing sets MSG_COMPAT anymore.Theo de Raadt
The song and dance for handling 16-bit af_family on big-endian machines remains untouched. ok claudio miod tedu guenther
2011-07-08Support sending struct info to kdump. So far for struct stat andOtto Moerbeek
struct sockaddress; mostly from freebsd. ok deraadt@ tedu@ nicm@
2011-07-08down to one compat option...Ted Unangst
2011-07-08regen syscallsTed Unangst
2011-07-08remove all traces of COMPAT_09 and COMPAT_10. ok deraadtTed Unangst
2011-07-08keep the fdplock around copyout in pipe. ok matthewTed Unangst
2011-07-08new priority queueing implementation, extremely low overhead, thus fast.Henning Brauer
unconditional, always on. 8 priority levels, as every better switch, the vlan header etc etc. ok ryan mpf sthen, pea tested as well
2011-07-08Put in RLE logic for hibernate compressor.Ariane van der Steldt
These have the potential to compress 1MB of physmem into 1 byte. This works by noting the page is not in use and therefor skipping it. Needed by mlarkin@ for hibernate. No callers yet.
2011-07-08Change pig allocator to a highest-address selection.Ariane van der Steldt
Add piglet allocator, which does a lowest-address selection. No callers yet, needed by mlarkin@ for hibernate voodoo.
2011-07-08Include PIPEX in kernel by default. And add new sysctl variableYASUOKA Masahiko
`net.pipex.enable' to enable PIPEX. By default, pipex is disabled and it will not process packets from wire. Update man pages and update HOWTO_PIPEX_NPPPD.txt for testers. discussed with dlg@, ok deraadt@ mcbride@ claudio@
2011-07-08Move uvm_pmr_alloc_pig to kern/subr_hibernate.cAriane van der Steldt
No callers, no functional change.
2011-07-08Move uvm_pmr_zero_everything() to subr_hibernate.Ariane van der Steldt
This function will probably die before ever being called from the in-tree code, since hibernate will move to RLE encoding. No functional change, function had no callers.
2011-07-08Move hiballoc to hibernate.h, subr_hibernate.cAriane van der Steldt
Next few commits will move other hibernate-specific functionality, like the pig-allocator, to subr_hibernate. No functional change, no callers either.
2011-07-08syncMatthew Dempsky