summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-10-26Fix typo.Mark Kettenis
2020-10-26hook up vnodeanton
2020-10-26Add a reproducer for uvm vnode deadlock fixed in revision 1.108 ofanton
sys/uvm/uvm_vnode.c. The reproducer can trigger the deadlock in matter of seconds but only performs 100 tries by default; in order to make it a viable part of a full `make regress' run. Running it indefinitely can be done by passing the `-I' option.
2020-10-26Fix a deadlock between uvn_io() and uvn_flush(). While faulting on aanton
page backed by a vnode, uvn_io() will end up being called in order to populate newly allocated pages using I/O on the backing vnode. Before performing the I/O, newly allocated pages are flagged as busy by uvn_get(), that is before uvn_io() tries to lock the vnode. Such pages could then end up being flushed by uvn_flush() which already has acquired the vnode lock. Since such pages are flagged as busy, uvn_flush() will wait for them to be flagged as not busy. This will never happens as uvn_io() cannot make progress until the vnode lock is released. Instead, grab the vnode lock before allocating and flagging pages as busy in uvn_get(). This does extend the scope in uvn_get() in which the vnode is locked but resolves the deadlock. ok mpi@ Reported-by: syzbot+e63407b35dff08dbee02@syzkaller.appspotmail.com
2020-10-26Do not allow duplicate "location" directive.denis
Found and fix by Matthias Pressfreund <mpfr @ fn de>. Thanks.
2020-10-26Set ax_rbsize before calling malloc and use it in malloc.Martijn van Duren
OK tb@ and kn@
2020-10-26SIGQUIT handler needs to be cleared before fork like the others,Nicholas Marriott
reported by Simon Andersson.
2020-10-26add a top-level "reboot" command, for people who keep forgetting "boot reboot"Theo de Raadt
ok kn
2020-10-26Switch the pmap and PDP pools to IPL_VM, drop the PR_WAITOK flag from theMark Kettenis
PDP pool and use the single page allocator for the PDP pool. This makes pmap_destroy(9) mpsafe while preventing additional pressure on the interrupt-safe kernel map. ok mpi@
2020-10-26syncTheo de Raadt
2020-10-26In lib/libc/gen/charclass.h r1.3 guenther made cclasses const.Theo Buehler
Mark the pointer used to walk the array in ksh const as well. From Matthew Martin ok guenther
2020-10-26subagentx -> agentx; ok martijnJason McIntyre
2020-10-26Let relayd make use of libagentx. No functional change intended.Martijn van Duren
OK tb@ Enthousiasm from Mischa Peters
2020-10-26syncTheo de Raadt
2020-10-26kevent(2): ktrace the timeout before validating itcheloha
As deraadt@ has pointed out, tracing timevals and timespecs before validating them makes debugging easier.
2020-10-26The agentx API will first appear in 6.9.Theo Buehler
2020-10-26Add missing RCS tagsTheo Buehler
2020-10-26use installed include fileTheo de Raadt
ok martijn
2020-10-26make includes should be more verboseTheo de Raadt
ok martijn
2020-10-26Hook up agentx.h.Martijn van Duren
OK deraadt@
2020-10-26s/agentx_/ax_/g and s/subagentx_/agentx_/gMartijn van Duren
Requested by and OK deraadt@
2020-10-26Improve I/O functions to match Linux:Mark Kettenis
- Reverse byte order on big-endian architectures (except on sparc64) - Add memory barriers Note that sparc64 is special as we use a little-endian mapping for PCI bus space, so we shouldn't reverse the byte order there. ok jsg@
2020-10-26Document the hw.sensors.softraid0.drive sysctl.Ingo Schwarze
The text was written by an OpenBSD developer in 2018, but i do not remember by whom. Tweaks and OK deraadt@, OK kn@ stsp@
2020-10-26Initialize srl to NULL to silence gcc. There is no case where this isMartijn van Duren
uninitialized and clang doesn't trip over this. Pointed out by and OK stsp@
2020-10-26catch unset error when validation fails.Bob Beck
2020-10-26Add a safety net to ensure that we set an error on the store context.Theo Buehler
Suggested by and discussed with beck
2020-10-26If x509_verify() fails, ensure that the error is also set on the storeTheo Buehler
context. This is what is returned in SSL_get_verify_result(). Spotted and initial diff from jeremy; discussed with jsing ok beck
2020-10-26Make sure that x509_vfy_check_id() failure also sets ctx->error, not onlyTheo Buehler
ctx->xsc->error. Will be needed in an upcoming diff. from beck
2020-10-26Add a -legacy_verify flag to force use of the old validator for debuggingTheo Buehler
and testing purposes. ok beck inoguchi jsing
2020-10-26Remove trailing spaces & tabsdenis
OK martijn@
2020-10-26Fix a memory leak when parsing roa-set lists. If the prefixset_item isClaudio Jeker
already in the RB tree free the item we tried to add since the item form the RB tree is used. Memory leak found and fix provided by Felix Maurer ( felix at felix-maurer.de)
2020-10-26remove unused alpha memory barrier definesJonathan Gray
2020-10-26Remove an unneeded variable.Visa Hankala
OK kettenis@
2020-10-26use __membar() where possibleJonathan Gray
2020-10-26use lwsync and eieio for smp barriers on powerpcJonathan Gray
ok kettenis@
2020-10-26Minor man page fixes (capitalization, commas) identified by theDarren Tucker
manpage-l10n project via bz#3223. feedback deraadt@, ok jmc@
2020-10-25The GNU tbl(1) program contained in the groff package internallyIngo Schwarze
uses roff(7) tabulator settings to implement tables, and it used to leak the changed tabulator settings from tables to the subsequent roff(7) code. In mandoc/tbl_term.c rev. 1.42 (June 17, 2017), code was added to be bug-compatible with groff. In commit d0e03cf6 (Oct 20, 2020), GNU tbl(1) changed behaviour to save the tabulator settings before starting a table and restore them afterwards. Adjust mandoc for compatibility. Since mandoc implements tables without using roff(7) tabulator settings, saving and restoring tabulator settings is not needed in mandoc. Simply deleting the code that changed tabulator settings by reverting tbl_term.c rev. 1.42 is sufficient in mandoc. Also adjust the desired output of the regression tests to match the new behaviour of both groff and mandoc.
2020-10-25As done with other architectures, narrow the KERNEL_LOCK around uvm_fault()Theo de Raadt
as best we can.
2020-10-25mention that stacking disciplines is not supported,Ingo Schwarze
with wording similar to the FAQ; suggested by Filippo Valsorda <filippo at ml dot filippo dot io>; tweak and OK jca@
2020-10-25Implement a workaround for PCI devices that can't address the full 64-bitMark Kettenis
PCI address space. Needed for radeondrm(4) and amdgpu(4) since Radeon GPUs only implement 36, 40 or 44 bits of address space.
2020-10-25Serialize msgbuf access with a mutex.Visa Hankala
This introduces a system-wide mutex that serializes msgbuf operations. The mutex controls access to all modifiable fields of struct msgbuf. It also covers logsoftc.sc_state. To avoid adding extra lock order constraints that would affect use of printf(9), the code does not take new locks when the log mutex is held. The code assumes that there is at most one thread using logread(). This keeps the logic simple. If there was more than one reader, logread() might return the same data to different readers. Also, log wakeup might not be reliable with multiple threads. Tested in snaps for two weeks. OK mpi@
2020-10-25Revert accidental commit.Visa Hankala
2020-10-25Add missing firmload attribute.Visa Hankala
2020-10-25Make mapping the "I/O Space" BAR optional. POWER9 systems don't supportMark Kettenis
"I/O Space" on their PCIe host bridges and for most (all) Radeon variants there is an alternative method to access the relevant registers. ok jsg@
2020-10-25Remove trailing spaces & tabsdenis
2020-10-25Add firmload attribute to drivers that load firmware.Mark Kettenis
ok jsg@
2020-10-25syncPeter Hessler
2020-10-25add my new graphics tablet, not yet workingPeter Hessler
2020-10-25Document that abl(4) is only required on iMacs.Marcus Glocker
2020-10-25Unbreak brightness setting on MacBooks introduced by abl(4).Marcus Glocker
MacBooks already handle the brightness through the drm driver. Therefore only attach abl(4) to iMacs. Issue initially reported by James Luigy. Discussed with kettenis@, ok jung@