summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-01-04Add -n to init-system for validation onlykn
"ldomctl init-system -n ldom.conf" only parses the configuration file and exits; it is usable as unprivileged user, no devices are opened. OK kettenis
2020-01-04be a bit more precise about what %a and %v do in paths;Ingo Schwarze
OK espie@
2020-01-04Check CMS API return value in openssl(1) cmsKinichiro Inoguchi
ok jsing@
2020-01-04Avoid leak in error path of dh_priv_decodeKinichiro Inoguchi
ok jsing@ tb@
2020-01-04New manual page OpenBSD::style(3p).Ingo Schwarze
Based on a writeup that espie@ posted to misc@ with tweaks by me and additional feedback from espie@.
2020-01-04remove unused TIOCSPGRP / TIOCGPGRP cases in drmJonathan Gray
async/SIGIO use likely came from DR1 context swapping for the "gamma" driver for 3dlabs GMX 2000, removed from the old upstream drm cvs repository in 2004: commit 1430163b4bbf7b00367ea1066c1c5fe85dbeefed Author: Dave Airlie <airlied@linux.ie> Date: Sun Aug 29 12:04:35 2004 +0000 Drop GAMMA DRM from a great height ... linux in 2005: commit 1fad99499afdd2730adb1d53413b91580b1f0662 Author: Dave Airlie <airlied@starflyer.(none)> Date: Fri Aug 5 22:40:34 2005 +1000 drm: remove the gamma driver and further remaining async bits removed from linux in 2013 with commit b0e898ac555e96e7863a5ee95d70f3625f1db5e2 Author: Daniel Vetter <daniel.vetter@ffwll.ch> Date: Thu Aug 8 15:41:23 2013 +0200 drm: remove FASYNC support pointed out by claudio@ ok visa@ kettenis@
2020-01-04remove redundant test, !keepgoing is already a condition forMarc Espie
a job getting on the errorJobs list okay millert@
2020-01-04Delete .Xrs to rsync(5) and rsyncd(5).Ingo Schwarze
If somebody wants to install these two manual pages describing the protocols, it is easy to put these two links back. Dead links reported by <Aham dot Brahmasmi at gmx dot com>. OK jmc@ florian@
2020-01-04Prevent use-after-free in uhidev_close().Martin Pieuchot
Close pipes before freeing transfers, otherwise accessing elements in pipe->queue, like in usbd_abort_pipe(), will result in a crash. Problem reported by reyk@, ok visa@
2020-01-04Convert sleep to tsleep_nsec(9) and use unique sleeping identifiers.Martin Pieuchot
ok bluhm@
2020-01-04Convert sleep to tsleep_nsec(9).Martin Pieuchot
ok bluhm@
2020-01-04UPGT_USB_TIMEOUT is specified in msec not in ticks, correct the timeoutMartin Pieuchot
value of the sleep by using tsleep_nsec(9). ok mglocker@
2020-01-04Jason suggested that stating defaults with a postfix "(on/off by default)"Ingo Schwarze
is as clear, more concise, and reads better. In a few cases, it also allows shortening text that said the same twice. Tweak and OK jmc@.
2020-01-04Eliminate some minor differences between pipe_read() and pipe_write():anton
* Sort local variables by size, name * No need to initialize error in pipe_write() ok millert@ visa@
2020-01-04Ignore 'hardware lied' interrupt in do-while loop, same as firstKenji Aoyama
time processing. That was sometimes observed when the system get heavy load, like 'make -j N build'.
2020-01-04regenJonathan Gray
2020-01-04remove AMD64 strings from pcidevsJonathan Gray
ok mortimer@ mpi@ deraadt@
2020-01-04ping(8): improve "-i wait" parsing and error-checking codecheloha
- Never accept negative values. - Cap the interval at UINT_MAX seconds to avoid strange rounding behavior at the end of the input range. - Use error messages that resemble other parts of the tree where we are able to use strtonum(3). - Leverage modf(3) for cleaner code. - Call it "-i interval" to avoid accidental visual similarity to "-w maxwait". With input from cjeker@, kettenis@, kn@. ok kn@
2020-01-04Avoid the misleading term "toggle". There are no query optionsIngo Schwarze
that toggle anything. Quite to the contrary, all those touched in this commit are idempotent. OK florian@ jmc@
2020-01-03upon return of authentication we log the username and generate an smtp-inGilles Chehade
report for the authentication result, however we use a buffer that is too small and usernames from virtual accounts may get truncated in logs. reported by Bjorn Kalkbrenner
2020-01-03timeout(9): delay thread wakeup(9) decision to end of softclock() loopcheloha
The process-context timeout(s) in question might be cancelled before we leave the loop, leading to a spurious wakeup(9). ok mpi@
2020-01-03Move code into new hv_config(), defer to commands needing itkn
This moves setup code from main() into its own function so instead of upfront it can be used only when and where needed. With the exception of `create-vdisk' all currently open /dev/hvctl; for that command I added a rather quirky goto to avoid this unneeded step, but `list-io' for example does not need /dev/hvctl at all either. So instead of adding more quirks, split as per above and clearly call hv_config() from the commands that *do* require it. This also effectively defers such privileged operations after all argv[] parsing is done, that is the code fails earlier on invalid input without file I/O for nothing. With that in, I can easily add more commands not requiring hvctl access, e.g. a dry-run configuration check. OK kettenis
2020-01-03Remove unused variabledenis
2020-01-03Sync with ospfd's database.cdenis
OK remi@
2020-01-03Sync with ospfd's hello.cdenis
OK remi@
2020-01-03Rename the pipe I/O lock routines for improved clarity. This is just aanton
mere preparation for introducing a dedicated lock per pipe pair. ok mpi@ visa@
2020-01-03Retire csignal() the last users were converted to use pgsigio(9) instead.Claudio Jeker
OK visa@ anton@
2020-01-03Fix RAID volume WWIDs for LSI controllers on sparc64kn
Some controllers generate 128 bit WWIDs for RAID volumes but only has a 64-bit field to report it to the host, so it only puts the vendor-specified part here (last half of ID string printed when sd* attaches matches sl->port_wwn in reverse). As such IDs are not IEEE NAA compliant, OpenBoot PROM -at least on SPARC- sets the highest nibble to three by convention to mark such volumes as RAID volumes so that the OS (Solaris) may identify it as such. This is the last missing piece to make booting off hardware RAID on sparc64 just work; autoconf(9) is now able to match the port WWN against the bootpath to eventually identify the volume as the root device. Feedback jmatthew deraadt OK jmatthew
2020-01-03the download resident keys option is -K (upper) not -k (lower);Jason McIntyre
ok djm
2020-01-03Fix a file descriptor close race in kqueue_register()Visa Hankala
After inserting a knote, check that the associated file descriptor still references the same file. Remove the knote if the descriptor has changed because otherwise the kqueue becomes inconsistent with the file descriptor table. There is an analogous race in fcntl(F_SETLK). It is already handled, but the code can be simplified by using the same check as in kqueue_register(). Fix inspired by DragonFly BSD OK mpi@, anton@
2020-01-03vmctl(8): fix vmctl send exit codepd
vmctl send always returned exit code 1 Patch by Benjamin Baier ok kn@
2020-01-03avoid build race condition: our make has an "expensive job" heuristicMarc Espie
which means we do stop creating other jobs as soon as we run something looking like "make" to avoid unwanted recursion, so you would never hit that. But in binutils-2.17, the developers changed all/info to do recursive makes with some of the same dependencies. Calling both at the same time becomes an obvious race, and should be fixed for no other reason than correctness. okay guenther@
2020-01-03what bozo decided to use 2020 as a future date in a regress test?Damien Miller
2020-01-03implement recent SK API change to support resident keys and PIN promptingDamien Miller
in the dummy middleware that we use for the tests. Should fix breakage spotted by dtucker@
2020-01-03timeout(9): Add timeout_set_flags(9) and TIMEOUT_INITIALIZER_FLAGS(9)cheloha
These allow the caller to initialize timeouts with arbitrary flags. We only have one flag at the moment, TIMEOUT_PROC, but experimenting with other flags is easier if these interfaces are available in-tree. With input from bluhm@, guenther@, and visa@. "makes sense to me" bluhm@, ok visa@
2020-01-03timeout(9): Rename the TIMEOUT_NEEDPROCCTX flag to TIMEOUT_PROC.cheloha
This makes it more likely to fit into 80 columns if used alongside the forthcoming timeout_set_flags() and TIMEOUT_INITIALIZER_FLAGS() interfaces. "makes sense to me" bluhm@, ok visa@
2020-01-03regenDavid Gwynne
2020-01-03add some more samsung nvme idsDavid Gwynne
2020-01-02ability to download FIDO2 resident keys from a token viaDamien Miller
"ssh-keygen -K". This will save public/private keys into the current directory. This is handy if you move a token between hosts. feedback & ok markus@
2020-01-02add sshkey_save_public(), to save a public key; ok markus@Damien Miller
2020-01-02regenmortimer
2020-01-02Add pci id for recent AMD CCP and use it in ccp(4).mortimer
ok jsg@
2020-01-02Change /dev/log to use pgsigio(9) and sigio_init(9) like it was done forClaudio Jeker
bpf(4) and tun(4) instead of using hand rolled code using csignal(). OK visa@
2020-01-02Correct information about default options: by default, +besteffortIngo Schwarze
is on, +dnsnegotiation is off, +timeout is 5s for UDP and 10s for TCP. OK florian@
2020-01-02regenanton
2020-01-02Unlock pipe(2) and pipe2(2). The kernel lock does not provide anyanton
serialization at this point since everything is protected by the pipe_lock. Thanks to tb@ and visa@ for testing; ok mpi@ visa@
2020-01-02Switch bpf to use pgsigio(9) and sigio_init(9) instead of handrollingClaudio Jeker
something with csignal(). OK visa@
2020-01-02Use newabi register names in disassembly.Visa Hankala
OK miod@
2020-01-02another simple case of a default that i missed: +adflagIngo Schwarze
2020-01-02jmc@ suggested to just say "The default is +opt" rather than repeatingIngo Schwarze
the explanation of what +opt does, improving both conciseness and clarity, so let's do this in many trivial cases, and improve some markup in the vicinity while there