Age | Commit message (Collapse) | Author | |
---|---|---|---|
2003-12-19 | Add a check for time not flowing monotonically and just don't change | Todd C. Miller | |
p->p_rtime in this case instead of zeroing it; based on an idea from nordin@. Also add a printf about microtime() not being monotonic for this case (from miod@) #ifdef DIAGNOSTIC. This version OK otto@ | |||
2003-12-18 | add new hw sysctls, cpuspeed and setperf to control cpu frequency. | Ted Unangst | |
convert longrun support to use new sysctls. add enhanced speedstep support, based on code by Michael Eriksson. idea, help testing & ok deraadt@ | |||
2003-12-17 | Use SLIST macros instead of rolling our own. Idea from and partly | Todd C. Miller | |
based on changes from FreeBSD. | |||
2003-12-15 | Fix some sign issues that fell out from the change of rlim_t to unsigned. | Todd C. Miller | |
Also add a check for a negative result when subtracting microtime(&now) from runtime and simply treat this as zero. This should *not* happen but due to an apparent bug in microtime on dual clock machines, it does. The microtime bug is currently being examined. Based on a diff from miod@ with help from otto@; ok deraadt@ otto@ | |||
2003-12-15 | workaround a clock tick handling bug that the rlimit code just exposed. | Theo de Raadt | |
2003-12-11 | regen now that [gs]etpriority(2) take id_t, not int. | Todd C. Miller | |
2003-12-11 | Add id_t type as per POSIX and use it for [gs]etpriority(2). | Todd C. Miller | |
OK henning@ and deraadt@ | |||
2003-12-11 | POSIX says rlim_t should be unsigned so make it u_quad_t. Also add | Todd C. Miller | |
POSIX-mandated RLIM_SAVED_MAX and RLIM_SAVED_CUR defines. On OpenBSD these are identical to RLIM_INFINITY as allowed by POSIX. OK deraadt@ | |||
2003-12-10 | missed in previous commit | Todd C. Miller | |
2003-12-10 | regen after poll(2) change | Todd C. Miller | |
2003-12-10 | Add an nfds_t type as per POSIX and also add pollfd_t like Solaris has. | Todd C. Miller | |
2003-12-03 | Pass -Wsign-compare and avoid a potential malloc(0); ok henning@ | Todd C. Miller | |
2003-12-02 | Check array index before using it; from Tim Robbins via Niels. | Todd C. Miller | |
2003-11-23 | Check correct array index KERN_VNODE; from Alistair Kerr | Todd C. Miller | |
Closes PR 3571 as per on icb. | |||
2003-11-20 | Correct bounds check in semop(2) and semctl(2) | Todd C. Miller | |
2003-11-18 | don't leave test code enabled, spotted Dries Schellekens | Ted Unangst | |
2003-11-18 | add lightwight reader/writer locks from art@. we will be using these | Ted Unangst | |
later. have been looked over for quite some time now. | |||
2003-11-18 | faster pools. split pagelist into full, partial, and empty so we find what | Ted Unangst | |
we're looking for. change small page_header hash table to a splay tree. from Chuck Silvers. tested by brad grange henning mcbride naddy otto | |||
2003-11-08 | typos from Jonathon Gray; | Jason McIntyre | |
2003-11-03 | verify exec headers before attempting malloc. reported by Georgi Guninski. | Ted Unangst | |
2003-11-03 | use arc4random_bytes | Ted Unangst | |
2003-10-31 | allocate at least as much elements as requested in hashinit | Markus Friedl | |
fixes pr 3537, based on patch from daniel@nofsk.nofsk.au.eu.org ok millert@, deraadt@, tedu@ | |||
2003-10-26 | per deraadt@ request, don't permit insanely large stackgap values. | Ted Unangst | |
2003-10-24 | refactor stackgap sysctl. prompted by a bug report from Michael Coulter. | Ted Unangst | |
ok deraadt@ markus@ | |||
2003-10-12 | Linux shmat allows lookup of segments that are marked as removed so | Todd C. Miller | |
our Linux compat should too. From marius aamodt eriksen | |||
2003-10-08 | originally from cb@netbsd.org, adapted by provos | Nikolay Sturm | |
itojun@ ok fix a race condition between path resolution in userland and the subsequent namei(): inform the kernel portion of valid filenames and then disallow symlink lookups for those filenames by means of a hook in namei(). with suggestions from provos@ also, add (currently unused) seqnr field to struct systrace_replace, from provos@ | |||
2003-10-03 | Merge tty_attach() in ttymalloc() and tty_detach() in ttyfree(). The need for | Miod Vallat | |
separate tty registering is gone now that sparc has switched to wscons, and this makes the code less error-prone. Also, remove tests for ttymalloc() failure, since it uses M_WAITOK. ok millert@ deraadt@, tested by various people as well besides me... | |||
2003-10-03 | Bring several fixes from FreeBSD to our current pipe implementation: | Miod Vallat | |
- when allocating or growing a pipe buffer is not possible, do not panic but report the error and handle it correctly. (1.73) - "The pipe_write() code was locking the pipe without busying it first in certain cases, and a close() by another process could potentially rip the pipe out from under the (blocked) locking operation." (from Al Viro, 1.81) - "Remove test in pipe_write() which causes write(2) to return EAGAIN on a non-blocking pipe in cases where select(2) returns the file descriptor as ready for write. This in turns causes libc_r, for one, to busy wait in such cases. Note: it is a quick performance fix, a more complex fix might be required in case this turns out to have unexpected side effects." (1.141) | |||
2003-09-23 | Limit "proc: table is full" messages to once every 10 seconds which helps ↵ | Todd C. Miller | |
when there is a fork bomb going on. From NetBSD (jdolecek) | |||
2003-09-23 | Replace select backends with poll backends. selscan() and pollscan() | Todd C. Miller | |
now call the poll backend. With this change we implement greater poll(2) functionality instead of emulating it via the select backend. Adapted from NetBSD and including some changes from FreeBSD. Tested by many, deraadt@ OK | |||
2003-09-23 | regen (Prepare for conversion of select backend -> poll) | Todd C. Miller | |
2003-09-23 | Prepare for conversion of select backend -> poll | Todd C. Miller | |
2003-09-09 | fix potential int overflow found by blexim at hush.com. restrict root to | Ted Unangst | |
setting max sems to sane values. ok deraadt@ | |||
2003-09-07 | Regen | Miod Vallat | |
2003-09-07 | No COMPAT_10 SYSVSHM syscalls on sparc64; ok deraadt@ | Miod Vallat | |
2003-09-01 | match syscallargs comments with reality | Henning Brauer | |
from Patrick Latifi <patrick.l@hermes.usherb.ca> ok jason@ tedu@ | |||
2003-08-26 | fix sys_clock_settime. hint from nordin@ ok deraadt@ | Ted Unangst | |
2003-08-23 | remember to reset exec_maxhdrsz after lkm load/unload. ok fgsch@ | Ted Unangst | |
2003-08-23 | remove native emulations from emulsw. you can't change them and probably | Ted Unangst | |
aren't interested, so keep them out of the sysctl. ok deraadt | |||
2003-08-23 | knf | Theo de Raadt | |
2003-08-23 | allow disabling a emul after enabling it; tedu@ ok. | Federico G. Schwindt | |
2003-08-21 | emulation is now controlled by sysctl. changes: | Ted Unangst | |
add e_flags to struct emul. this stores on/off and native flags. check for emul enabled in check_exec(). gather all the emuls into a emulsw so a sysctl can find them. create sysctl. move maxhdrsiz calcualation into init_main so it cleans up sys_execve codepath. teach sysctl utility to grok kern.emul hierarchy. requested and ok deraadt@ some comments from mickey@ | |||
2003-08-21 | sys/types.h is not really needed with sys/param.h; ok mickey@ | Kevin Lo | |
2003-08-20 | Move the nsem sanity checks where they belong (before the malloc call). | Todd C. Miller | |
This was missed when that code got restructured/re-ordered. Problem reported by blexim AT hush d0t com. OK deraadt@, tedu@, henning@ and miod@ | |||
2003-08-18 | spelling in comment, jonathon gray | Ted Unangst | |
2003-08-17 | unused var | Ted Unangst | |
2003-08-15 | change arguments to suser. suser now takes the process, and a flags | Ted Unangst | |
argument. old cred only calls user suser_ucred. this will allow future work to more flexibly implement the idea of a root process. looks like something i saw in freebsd, but a little different. use of suser_ucred vs suser in file system code should be looked at again, for the moment semantics remain unchanged. review and input from art@ testing and further review miod@ | |||
2003-08-14 | constify vfsops; tedu@ ok | Michael Shalayeff | |
2003-08-12 | src argument to m_copyback() can be a const; itojun@ ok | Michael Shalayeff | |
2003-08-11 | constify constant consts | Michael Shalayeff | |