summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-06-21Don't timeout on fb_queue(9). The current process will blockhelg
indefinitely and cannot be interrupted or killed. This is consistent with how VFS system calls should behave. If the file system becomes unresponsive then the only sane solution is for the user to kill the file system daemon. Implementing the equivalent of nfs -osoft or -ointr to either timeout or allow the blocking FUSE operation to be interrupted can be considered in a future patch. ok mpi@
2018-06-21Drop redundant "node == parent node" checks from VOP_RMDIR()Visa Hankala
implementations. Rely on the VFS layer to do the checking. OK mpi@, helg@
2018-06-21Use atomic operations for updating cred structure reference countsVisa Hankala
to make crfree() and crhold() MP-safe. Make crhold() a proper function. Put the definition into file kern_prot.c to constrain the need of the <sys/atomic.h> header. While there, adjust the IPL of ucred_pool to avoid lock order problems with the kernel lock (pointed out by kettenis@). OK mpi@
2018-06-21Shuffle fields around to eliminate blanks spots resulting fromKenneth R Westerback
removing unused uvmexp fields. Reduces number of lines as well.
2018-06-21Sync aldap from ldap(1).Reyk Floeter
This also fixes the _url functions that was previously #ifdef'ed out. OK claudio@
2018-06-21split the common half of dependencies handling into SolverBase, as PkgCreateMarc Espie
only uses that
2018-06-21Fix DEBUG messageReyk Floeter
2018-06-21don't let the retguard skip region exceed the space we have reserved forMike Larkin
it in the piglet during unhibernate. Missed this block during the previous commit. We'll panic, which will likely just reboot the machine, but that's better than trashing a chunk and causing mystery errors later.
2018-06-21Grab the KERNEL_LOCK() rather than asserting that it is held.Martin Pieuchot
Prevent a panic now that some syscall are running unlocked. Found the hardway by Gregor Best.
2018-06-21Save and restore retguard area during hibernate unpack. This copies theMike Larkin
original retguard data to the piglet and bcopys it back in place immediately before resuming via the ACPI Sx trampoline. ok deraadt, guenther, tested by many.
2018-06-21Add missing comma. This fixes compilation if we enable VMM_DEBUG macro.Kevin Lo
ok deraadt@
2018-06-20On newer AMD parts, use CoreId (EBX) and NodeId (ECX) from cpuid 0x8000001eStuart Henderson
to detect smt cores. As there's no "smt id" on these like there is on Intel parts, check against other already-id'd cpus to detect which are additional smt threads on a core. jmatthew noticed some unusual (non-contiguous) numbering on an single socket EPYC 7551p but there's no indication that the actual ID numbers need to be sequential. "As long as we treat ci_core_id as just a number, that shouldn't be an issue" and OK kettenis@ ref: 54945 rev 1.14 - PPR for AMD Family 17h Models 00h-0Fh
2018-06-13Import ldap(1), a simple ldap search client.Reyk Floeter
We have an ldapd(8) server and ypldap in base, so it makes sense to have a simple LDAP client without depending on the OpenLDAP package. This tool can be used in an ssh(1) AuthorizedKeysCommand script. With feedback from many including millert@ schwarze@ gilles@ dlg@ jsing@ OK deraadt@
2018-06-20syncTheo de Raadt
2018-06-20Add support for simple one-off internal rewrites.Reyk Floeter
For example: location match "/page/(%d+)/.*" { request rewrite "/static/index.php?id=%1&$QUERY_STRING" } Requested by many. Ok benno@
2018-06-20make it possible to do @tag sthg in the same package that doesMarc Espie
@define-tag sthg
2018-06-20This might have been a good idea 20 years ago but in this day and ageFlorian Obser
the compiler is probably better at unrolling loops. style nit fcambus OK phessler
2018-06-20so tags will need to match OLD tag definitions as well as new ones.Marc Espie
we can probably get away without doing it if no tags exist (to do later)
2018-06-20Remove unused variable. Make clang happier.Kenneth R Westerback
2018-06-20dhclient.c r1.569 started writing some files before calling daemon(),Stuart Henderson
which involved doing a write_option_db() call at a different point in bind_lease(). However one of the parameters was in a variable that was also used for iterating a TAILQ so this did not have the intended contents (it was always NULL at the end of TAILQ_FOREACH*, resulting in a null deref when dhclient -L is used). Fix by using a new temporary variable. ok krw@
2018-06-20Fix formatting.helg
2018-06-20regenMartin Pieuchot
2018-06-20Unlock sendmsg(2) and sendto(2).Martin Pieuchot
These syscalls can now be executed w/o the KERNEL_LOCK() depending on the kind of socket. The current solution uses a single global mutex to serialize access to, and reference count, 'struct file'. ok visa@, kettenis@
2018-06-20Grab and/or assert for the KERNEL_LOCK() in in ktrace & pledge.Martin Pieuchot
This is required to run network syscall mostly without the KERNEL_LOCK(). ok visa@, kettenis@ as part of a larger diff.
2018-06-20tags from changed_handles will be relevant, from nowhere else...Marc Espie
2018-06-20use delete_handle here as wellMarc Espie
2018-06-20modernize pkg_delete code, we have DeleteSets, which means handleMarc Espie
so let the handle do the heavy lifting of plist loading all the time (this is also what tag solver will need)
2018-06-20move the solver autoloader into UpdateSet so that pkg_delete will beMarc Espie
able to use it.
2018-06-20Use the socket lock rather than the KERNEL_LOCK() in pfkey_sendup().Martin Pieuchot
inputs & ok visa@
2018-06-20Add bsws and arcaTrust PENsReyk Floeter
2018-06-20prepare to split half of the dependencies code into a manageable subclassMarc Espie
2018-06-20drm/i915: Disable LVDS on Radiant P845Jonathan Gray
From Ondrej Zary e88640adf6fe0709466f814a26753d78184a598c in linux 4.4.y/4.4.136 b3fb22733ae61050f8d10a1d6a8af176c5c5db1a in mainline linux
2018-06-19Rename some unused fields in struct uvmexp toKenneth R Westerback
unusedNN. Missing man page bits pointed out by jmc@. Ports source scan by sthen@. ok deraadt@ guenther@
2018-06-19add some missing punctuation, and remove some vertical whitespace;Jason McIntyre
2018-06-19SMT (Simultanious Multi Threading) implementations typically shareMark Kettenis
TLBs and L1 caches between threads. This can make cache timing attacks a lot easier and we strongly suspect that this will make several spectre-class bugs exploitable. Especially on Intel's SMT implementation which is better known as Hypter-threading. We really should not run different security domains on different processor threads of the same core. Unfortunately changing our scheduler to take this into account is far from trivial. Since many modern machines no longer provide the ability to disable Hyper-threading in the BIOS setup, provide a way to disable the use of additional processor threads in our scheduler. And since we suspect there are serious risks, we disable them by default. This can be controlled through a new hw.smt sysctl. For now this only works on Intel CPUs when running OpenBSD/amd64. But we're planning to extend this feature to CPUs from other vendors and other hardware architectures. Note that SMT doesn't necessarily have a posive effect on performance; it highly depends on the workload. In all likelyhood it will actually slow down most workloads if you have a CPU with more than two cores. ok deraadt@
2018-06-19Update update-patches description, document EDIT_PATCHESkn
OK jca
2018-06-19print process name in debug messageReyk Floeter
2018-06-19knfReyk Floeter
2018-06-19knfReyk Floeter
2018-06-19use a full stop, as per the other items; from nan xiaoJason McIntyre
2018-06-19Pass the set thru to deletion operations (we may need to solve_tags!)Marc Espie
2018-06-19syncTheo de Raadt
2018-06-19fix solve_tags to deal with the actual list of tags (match tag to tagMarc Espie
definitions)
2018-06-19Enable ldap(1) in the build.Reyk Floeter
OK deraadt@
2018-06-19sigh... define-tag still has to migrate early, so that it can be part ofMarc Espie
DependOnly
2018-06-19Changes the default mount behaviour so only the user that mounts thehelg
file system can access it unless the allow_other mount options is specified. The allow_other mount option makes the file system available to other users just like any other mounted file system. ok mpi@
2018-06-19Revert previous, there were some unintended beviour changes.Martijn van Duren
2018-06-19Plug getaddrinfo(3) memory leakJeremie Courreges-Anglas
choose_server() calls getaddrinfo(3) but never frees the result. Minimal fix that relies on getaddrinfo(3) only updating the "res" pointer if the call was successful. While here, call freeaddrinfo(3) earlier in whois(), less code and less overall memory used since whois() can recurse. ok millert@ tb@ benno@
2018-06-19Send the calling thread id, effective uid and gid, and umask to thehelg
FUSE file system. fuse_get_context(3) will now return the correct values. ok mpi@
2018-06-19describe more supported hardwareJonathan Matthew