summaryrefslogtreecommitdiff
path: root/sys/kern
AgeCommit message (Collapse)Author
2016-04-28fix logic bug in deciding if we have UVM_PLA_NOWAIT or not in buf_realloc_pagesBob Beck
noticed by miod@
2016-04-26copy_statfs_info() is not only used by ufs, but by other filesystems too,Martin Natano
so make sure that all members of mp->mnt_stat.mount_info are copied. ok stefan
2016-04-26fix off by one in vfs_vnode_print - found by miodBob Beck
ok deraadt@, krw@
2016-04-25remove systrace remnantsTed Unangst
2016-04-25boom goes the dynamiteTed Unangst
2016-04-25simplifies the check for allowing only promisesSebastien Marie
reductions. ok deraadt@
2016-04-25removes an unneeded check on flags (used historically when tame(2) was usingSebastien Marie
bitflags) ok deraadt@ jca@
2016-04-15remove ml_filter, mq_filter, niq_filter.David Gwynne
theyre currently unused, so no functional change.
2016-04-08add m_purge for freeing a list of mbufs linked via m_nextpktDavid Gwynne
this tweaks m_freem so it returns the m_nextpkt from the mbuf it freed, like how m_free returns the m_next from the mbuf it frees. ok mpi@
2016-04-07Share clone bitmap between aliased vnodes. This prevents duplicate cloneMartin Natano
instance numbers being handed out for the same minor device. ok mikeb
2016-04-06correct the order of arguments to m_get in m_dup_pktDavid Gwynne
2016-04-05Increase size of the clone bitmap (revised diff after revert). I haveMartin Natano
tested this with fuse _and_ drm on amd64 and macppc. Also tested with cloning bpf (not in the tree) on macppc. ok mikeb "looks correct to me" millert The original commit message is as follows: Increase size of the clone bitmap. A limit of only 64 device clones turned out to be too low for the upcoming work on cloning bpf. The new limit is 1024 device clones. As part of the size increase, the bitmap has been changed to be allocated separately to avoid bloating all device nodes, as suggested by guenther, millert and deraadt. ok millert mikeb
2016-04-01Revert the clone bitmap enlargement changeMike Belopuhov
2016-03-31Increase size of the clone bitmap. A limit of only 64 device clonesMartin Natano
turned out to be too low for the upcoming work on cloning bpf. The new limit is 1024 device clones. As part of the size increase, the bitmap has been changed to be allocated separately to avoid bloating all device nodes, as suggested by guenther, millert and deraadt. ok millert mikeb
2016-03-30regeneratePhilip Guenther
2016-03-30Add getlogin_r syscall that checks and returns errors like userspacePhilip Guenther
getlogin_r() API; keep existing syscall as getlogin59 for temporary compat. ok kettenis@ deraadt@
2016-03-29In setlogin(), don't change anything on error.Philip Guenther
ok deraadt@ krw@ zhuk@ jca@ millert@
2016-03-29- packet must keep reference to statekeyAlexandr Nedvedicky
this is the second attempt to get it in, the first attempt got backed out on Jan 31 2016 the change also contains fixes contributed by Stefan Kempf in earlier iteration. OK srhen@
2016-03-29Use a macro to check if a thread has a sibling.Martin Pieuchot
Note that without locking a thread cannot claim that it is part of a multi-threaded process using this macro. Suggested by miod@, ok guenther@
2016-03-29add back $OpenBSD$Jonathan Gray
2016-03-28regenMark Kettenis
2016-03-28Make sure that a thread that calls sched_yield(2) ends up on the run queueMark Kettenis
behind all other threads in the process by temporarily lowering its priority. This isn't optimal but it is the easiest way to guarantee that we make progress when we're waiting on an other thread to release a lock. This results in significant improvements for processes that suffer from lock contention, most notably firefox. Unfortunately this means that sched_yield(2) needs to grab the kernel lock again. All the hard work was done by mpi@, based on observations of the behaviour of the BFS scheduler diff by Michal Mazurek. ok deraadt@
2016-03-27When pulling and unmounting an umass USB stick, the file systemAlexander Bluhm
could end up in an inconsistent state. The fstype dependent mp->mnt_data was NULL, but the general mp was still listed as a valid mount point. Next access to the file system would crash with a NULL pointer dereference. If closing the device fails, the mount point must go away anyway. There is nothing we can do about it. Remove the workaround for the EIO error in the general unmount code, but do not generate any error in the file system specific unmount functions. OK natano@ beck@
2016-03-26add newline on the end of the failure messageBob Beck
ok deraadt@
2016-03-25Free some more space in kernel - for network code, of course - by removalVadim Zhukov
of three unused FS-related functions. okay mpi@ and beck@
2016-03-25Silences compiler warnings, about used uninitialized variables. These lengthsSebastien Marie
are passed uninitialized to free(9) only when pointers are NULL. found by jsg@ ok deraadt@
2016-03-24set ticks 15 seconds before its value wraps.David Gwynne
this helps us identify issues around ticks wrap in 15 minutes instead of 240ish days. the change is inspired by something freebsd did as a result of a ticks change they made that went horribly wrong. lots of people said they wanted this
2016-03-22dont mix up the len and flats argument to MCLGETI in m_dup_pktDavid Gwynne
2016-03-22allow fpathconf() in stdio mode, since it is an innocuous queryTheo de Raadt
system call. discussed with semarie and everyone else during the 5.9 lock.
2016-03-21Rename the system call sendsyslog2 to sendsyslog. Keep the old oneAlexander Bluhm
as osendsyslog for a while. The three argument variant is the only one that will stay. input kettenis@; OK deraadt@
2016-03-20Update ticks in hardclock().Masao Uebayashi
OK mikeb@
2016-03-19Remove the unused flags argument from VOP_UNLOCK().natano
torture tested on amd64, i386 and macppc ok beck mpi stefan "the change looks right" deraadt
2016-03-17Replace curcpu_is_idle() by cpu_is_idle() and use it instead of rollingMartin Pieuchot
our own. From Michal Mazurek, ok mmcc@
2016-03-17KNF: Remove a blank line.Masao Uebayashi
2016-03-17- add realloc_pages to move a buffer's physmem from one range to another.Bob Beck
- modify B_DMA handling to be in vfs_biomem.c - change buffer allocation to try allocations with NOWAIT and to throw away clean pages if allocation fails - allocate with WAITOK only if you can't throw away enough pages to succeed "probably sound" deraadt@
2016-03-16Expose new audio ioctls that do one thing only: start and stop DMA,Alexandre Ratchov
set and get parameters. This is much simpler. ok semarie, armani, tweaks from jmc
2016-03-15pledge: wl_paths: resolvpath() logic errorSebastien Marie
prepend chroot value *after* canonization and not before.
2016-03-15pledge: wl_paths: corrects a memory leak in error code path and an evaluationSebastien Marie
order ("a += b > c" is the same as "a += (b > c)" which is wrong here) ok jca@
2016-03-15Remove now unused legacy uiomovei() function.Stefan Kempf
All its callers got reviewed and converted to use uiomove() properly. ok deraadt@
2016-03-14Change a bunch of (<blah> *)0 to NULL.Kenneth R Westerback
ok beck@ deraadt@
2016-03-13keep disabled wl_paths for now. the expensiveness impact need to be betterSebastien Marie
considered. ok deraadt@
2016-03-13reenable wl_paths (whitelisted-paths) in pledge(2)Sebastien Marie
2016-03-13pledge: replace #if 0 printf with DNPRINTF macroSebastien Marie
2016-03-13pledge: let wl_paths works well with chrootSebastien Marie
it factorizes path resolution in resolvpath() function, and use it in sys_pledge() and pledge_namei(). please note that wl_paths is still disabled.
2016-03-13corrects on off-by-one error in pledge_namei()Sebastien Marie
- rewrite canonpath() to not require extra byte before shrinking - make canonpath() error not fatal for the caller (proposition from tedu@) ok millert@ tedu@ deraadt@
2016-03-12When vfs_busy() is sleeping, it uses RW_SLEEPFAIL and will fail.Alexander Bluhm
So if vop_generic_revoke() does not unmount because the mount point is busy, this could result in a mount point without a valid device. It is better to check and sleep in a loop to avoid a corrupt mount point. OK natano@ krw@
2016-03-11increase size of oldpids to 128 to prevent mod bias when idx wraps.Ted Unangst
from Michal Mazurek
2016-03-11pledge: define the meaning of passing NULL to one arguments of pledge(2) as "ISebastien Marie
don't want to change the current value" it changes only the `request' argument behaviour when NULL is passed: previously it was traited as "" was passed. with help from jmc@ for man-page OK tb@ on previous version
2016-03-10Start some refactoring in here. this gets bufadjust outBob Beck
of the hibernate path and starts preparing for some other work in here
2016-03-09remove handling of vaxTheo de Raadt