summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* add_random() died years ago. additionally, remove other mistruths orderaadt2020-05-291-20/+4
| | | | repetitive statements.
* fix compilation on !HAVE_DLOPEN platforms; stub function was notdjm2020-05-291-2/+3
| | | | updated to match API change. From Dale Rahn via beck@ ok markus@
* fix exit status for downloading of FIDO resident keys; fromdjm2020-05-291-4/+4
| | | | Pedro Martelletto, ok markus@
* fix "STYLE: whitespace at end of input line"dlg2020-05-291-3/+3
|
* rndvar.h not needed herederaadt2020-05-292-4/+2
|
* Unit test for convtime. ok djm@dtucker2020-05-291-1/+20
|
* Fix multiplier in convtime when handling seconds after other units.dtucker2020-05-291-2/+3
| | | | bz#3171, spotted by ronf at timeheart.net, ok djm@.
* 3 includes not neededderaadt2020-05-291-5/+1
|
* people can't know ifq_deq_begin is discouraged unless it's actually stated.dlg2020-05-281-3/+6
|
* Enable building wsmoused on arm64 and armv7.fcambus2020-05-281-3/+3
| | | | OK deraadt@, kettenis@
* Enable building wsfontload on arm64 and armv7.fcambus2020-05-281-1/+2
| | | | OK deraadt@, kettenis@
* When calling rasops_init() in efifb_cnremap() and efifb_attach(), passfcambus2020-05-281-3/+3
| | | | | | | | | | | | | | | EFIFB_HEIGHT and EFIFB_WIDTH instead of efifb_std_descr.n{rows,cols}. Because the efifb resolution doesn't change, this ensures 'ri_emuwidth' and 'ri_emuheight' will always get the same value when we remap and later when we attach, so the text area is always displayed at the same position. This fixes display glitches happening on smaller screens or with larger fonts, which caused the content previously displayed in the area that was becoming margins when remapping to remain there. OK jsg@
* Enable scrollback in simplefb(4).fcambus2020-05-281-1/+2
| | | | OK kettenis@
* Move duplicate SA negotiation code to ikev2_sa_negotiate_common().tobhe2020-05-281-88/+40
| | | | ok patrick@
* A few stray 'ifa' overloadings.krw2020-05-282-6/+6
|
* Make generation numbers unsigned and fill them using a random numberotto2020-05-286-29/+26
| | | | | | | from the range [1..UINT_MAX] initially. On inode re-use increment and on wrap refill from the range [1..UINT_MAX-1] to avoid assigning UINT_MAX (the original value). Zero still means uninitialized. ok millert@
* Reduce 'ifa' overloading by renaming some parameters 'address'.krw2020-05-281-9/+9
|
* Reduce 'ifa' overloading by renaming proposal field from 'ifa' tokrw2020-05-283-10/+10
| | | | 'address'.
* Call cninit() after parsing boot parameter to make cninit() possibleyasuoka2020-05-281-15/+3
| | | | | | | | | | to select the VGA or the EFI framebuffer properly. Previous initializes VGA unconditionally, it caused serious problems like the video distortion and so on. As a downside of this commit, some early panic or debug messages will not be displayed. test Andrew Daugherity, jsg ok jsg kettenis
* Use MSI-X interrupts where available, and rearrange structures to allowjmatthew2020-05-281-56/+148
| | | | | | | | for multi-queue operation. Vector 0 is used for events, and the subsequent vectors are mapped to a tx and rx queue each. tested on esxi 6.7 and qemu by me, and on vmware fusion by dlg@ ok dlg@
* File allocation in socket(2) & socketpair(2) no longer need the KERNEL_LOCK().mpi2020-05-281-6/+1
| | | | | | | | Bring the two syscalls in sync with recent MP changes in the file layer. Inconsistency pointed by haesbaert@. ok anton@, visa@
* fix Include before Match in sshd_config; bz#3122 patch from Jakub Jelendjm2020-05-271-10/+21
|
* two new tests for Include in sshd_config, checking whether Portdjm2020-05-271-1/+35
| | | | | | directives are processed correctly and handling of Include directives that appear before Match. Both tests currently fail. bz#3122 and bz#3169 - patch from Jakub Jelen
* more tests after getopt_long.c rev. 1.32;schwarze2020-05-271-10/+43
| | | | OK martijn@
* This patch fixes one bug and one instance of undesirable behaviour.schwarze2020-05-271-9/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The bug, present since 4.4BSD, was that a trailing dash in an option group, when the dash is not permitted as an option letter, resulted in the whole option group being returned as an argument, even though the previous option in the group was already parsed as an option: OPTS=abc ./getopt-test -a- -c arg ===>> OPT(a)ARG(-a-)ARG(-c)ARG(arg). Instead, treat the dash as an invalid option and continue parsing options: ===>> OPT(a)ERR(?-)OPT(c)ARG(arg). The undesirable behaviour was that allowing the dash as an option letter only allowed isolated dashes ("-") and trailing dashes in groups ("-a-"), but neither middle dashes in groups ("-a-b"), even though that already partially worked in 4.4BSD, nor leading dashes in groups ("--a"), even though that works on all other BSDs and on glibc. Also, while POSIX does not require that the dash can be used as an option letter at all, arguably, it encourages that letters either be fully supported or not supported at all. It is dubious whether supporting an option letter in some positions but not in others can be considered conforming. This patch makes OpenBSD behaviour identical to FreeBSD and NetBSD, improves compatibility with glibc (except that glibc does not support isolated "-"), improves compatibility with DragonFly (except that DragonFly is buggy when the dash option letter can take an optional argument but that argument is not present), improves compatibility with Illumos and Solaris 11 (except those do not support "-" and mishandle "--a"), and restores 4.4BSD behaviour for "-a-b". In no respect i'm aware of is compatibility with any other systems reduced. For the full rationale, see my mail to tech@ on 30 Mar 2020 14:26:41 +0200. Part of the problem was originally reported by an anonymous coward on tech@ on 12 Mar 2020 03:40:24 +0200, additional analysis was contributed by martijn@, and then the OP sent the final version of the patch i'm now committing on 17 Mar 2020 19:17:56 +0200. No licensing problem here because after the commit, the file does not contain a single word written by the OP. Also, the OP told me in private mail that he intends to publish the patch under the ISC license already contained in the file and that he wishes to be known by the pseudonym "0xef967c36". OK martijn@, and no objection when shown on tech@, but commit delayed to stay clear of the release.
* Enter ddb at a trap instruction or with db_enter().gkoehler2020-05-2712-31/+355
| | | | | | | | | | Tell make that trap_subr.S needs assym.h. Fill in opal_cngetc() so I can type at the "ddb>" prompt. Add enough code to trap_subr.S to "c" continue from ddb. Give registers to ddb. Try to load symbols from initrd. ok kettenis@
* Do not call process_queued_listen_addrs() for every included filedjm2020-05-271-5/+5
| | | | from sshd_config; patch from Jakub Jelen
* fix crash in recallocarray when deleting SendEnv variables;djm2020-05-271-2/+7
| | | | spotted by & ok sthen@
* Connectionless sockets like UDP can be re-connected to a differentbluhm2020-05-271-1/+8
| | | | | | | | | address. In that case, the linking to the pf state must be dissolved as the latter still contains the old address. If it is a divert state, also remove the state as any divert state must be associated with a matching socket. Call pf_remove_divert_state() and pf_inp_unlink() from in_pcbconnect(). reported by Tim Kuijsten; OK sashan@ claudio@
* syncderaadt2020-05-271-0/+1
|
* tweak previous: remove trailing whitespace and redundant .Ppschwarze2020-05-271-6/+7
| | | | plus minor improvements to punctuation and markup
* give a full example that sets up recordingespie2020-05-271-2/+11
| | | | okay ratchov@
* Retire <machine/varargs.h>.visa2020-05-2724-413/+0
| | | | | | Nothing uses the header anymore. OK deraadt@ mpi@
* Fix pmon_iostrategy()visa2020-05-271-5/+6
| | | | | | | | | | | | If rsize is NULL, do not update the variable. Otherwise the bootloader will crash when it invokes libsa's fchmod(). This lets the bootloader work again after the recent loadrandom() change. The fix should also improve the chances of sysupgrade(8) on loongson. Note that pmon_iostrategy() does not allow writing. fchmod() will fail but does not prevent boot.
* Fix ASCII keys with send-keys -l.nicm2020-05-271-4/+9
|
* document PKCS7_dataFinal(3);schwarze2020-05-273-3/+162
| | | | tweak and OK tb@
* Document the various flavors of NET_LOCK() and rename the reader version.mpi2020-05-278-53/+62
| | | | | | | | | | Since our last concurrency mistake only ioctl(2) ans sysctl(2) code path take the reader lock. This is mostly for documentation purpose as long as the softnet thread is converted back to use a read lock. dlg@ said that comments should be good enough. ok sashan@
* Remove unneeded <stddef.h>denis2020-05-271-2/+1
|
* raise max columns and rows in efifb to 160jsg2020-05-271-3/+3
| | | | | | | | | | | This is the same change made in rev 1.21 to match the drm drivers. It was reverted as Lucas Raab reported problems with inteldrm taking over the fb with a 4k display. Lucas confirmed that this is no longer an issue. Prompted by a similar patch from John Carmack to raise the limits. ok kettenis@
* Make padding cell a valid character.nicm2020-05-272-4/+3
|
* don't limit clflush to Intel CPUsjsg2020-05-272-13/+16
| | | | discussed with deraadt@
* limit clflush before monitor errata workaround to Inteljsg2020-05-271-2/+3
| | | | no functional change as clflush is currently only done on Intel
* add support for pcap_breakloop when reading packets from files.dlg2020-05-271-1/+18
| | | | | | | | | djm pulled support in for pcap_breakloop on the bpf side of things, this makes it work when reading files too. from Caspar Schutijser lteo@ seems keen ok djm@
* set up rx so packets end up at the end of the mbuf cluster.dlg2020-05-271-6/+10
| | | | | | | | this means if something wants to m_prepend to it later on, there's probably a ton of space available for it. this is similar to the changes i made on some intel nic drivers. ok jmatthew@ and his bit of paper with a diagram of how the maths works.
* Remove support for world-writable mail spools.millert2020-05-272-89/+17
| | | | | They won't work any more due to pledge restrictions so just print an error and exit if the spool is world-writable. OK beck@
* Update comment block at the top to describe (a) the ring damage logic,deraadt2020-05-271-5/+8
| | | | and (b) the boot-time acceleration.
* Wrap some overly long lines.krw2020-05-263-8/+15
|
* Nuke a superflous local array in release_lease().krw2020-05-261-4/+3
|
* Stop requiring that .strtab has long alignment.gkoehler2020-05-261-3/+2
| | | | | | | | When ddb loads symbols, the .strtab contains char strings and doesn't need long alignment. Our bootloader provides long alignment, but I started loading symbols on powerpc64 without our bootloader. ok mpi@ guenther@ kettenis@
* Add AES-GCM mode ciphers (IANA IDs 19 and 20) for IKEv2.tobhe2020-05-268-86/+367
| | | | | | | | | They can be configured with the new ikesa enc options aes-128-gcm, aes-256-gcm, aes-128-gcm-12 and aes-256-gcm-12. Tested with Strongswan by Stephan Mendling and myself Tested with Juniper SRX by remi@ ok sthen@, patrick@