eric [Fri, 24 Apr 2020 11:34:07 +0000 (11:34 +0000)]
strip trailing CRs at smtp level rather than io level
ok millert@
ratchov [Fri, 24 Apr 2020 11:33:28 +0000 (11:33 +0000)]
Make sure devices are properly closed in case of an error.
Fixes possible crashes if the contol device fails, while the audio
device continues to work.
patrick [Fri, 24 Apr 2020 11:27:25 +0000 (11:27 +0000)]
Whitespace fixup for imxehci(4)
claudio [Fri, 24 Apr 2020 10:34:54 +0000 (10:34 +0000)]
Check the various options that local-address gives.
schwarze [Fri, 24 Apr 2020 10:32:33 +0000 (10:32 +0000)]
Remove the deprecation notice for timegm().
The tzcode package marked it dprecated in the late 1980ies
but it is universally supported and here to stay.
Triggered by a question from Rodrigo <hruodr at gmail dot com> on misc@.
William Ahern <william at 25thandclement dot com> listed a number of
sound arguments why it shouldn't be considered deprecated, in
particular that there is no better alternative, in particular none
that is thread-safe.
While here, fix the non-standard section name "NOTES", add the
missing STANDARDS section and provide additional information in the
HISTORY section, based on inspection of C89, C11, POSIX 2008, UNIX
v4 and v5 at TUHS, Tahoe and Reno at the CSRG archives, amd the
SunOS 3.5 and 4.0 manuals on bitsavers.
Reasearch on tzcode and SunOS history done by millert@.
OK millert@ on an earlier version of this patch,
and deraadt@ agrees with the general direction.
kettenis [Fri, 24 Apr 2020 10:05:18 +0000 (10:05 +0000)]
bcmgpio(4)
kettenis [Fri, 24 Apr 2020 09:52:43 +0000 (09:52 +0000)]
Add bcmgpio(4). For now this driver only provides pinctrl functionality.
Actual gpio support (possibly including gpio(4) support) will come later.
ok jsg@
mpi [Fri, 24 Apr 2020 08:50:23 +0000 (08:50 +0000)]
Print per queue stats when dumping hardware counters in IX_DEBUG kernels.
Tested by Hrvoje Popovski.
mestre [Fri, 24 Apr 2020 07:28:37 +0000 (07:28 +0000)]
Fix typo which could lead into a double free
CID
1492713
OK deraadt@ jmatthew@
dtucker [Fri, 24 Apr 2020 03:33:21 +0000 (03:33 +0000)]
Fix incorrect error message for "too many known hosts files." bz#3149, patch
from jjelen at redhat.com.
dtucker [Fri, 24 Apr 2020 02:19:40 +0000 (02:19 +0000)]
Remove leave_non_blocking() which is now dead code because nothing sets
in_non_blocking_mode any more. Patch from michaael.meeks at collabora.com,
ok djm@
patrick [Thu, 23 Apr 2020 22:16:10 +0000 (22:16 +0000)]
Enable imxehci(4).
ok kettenis@
patrick [Thu, 23 Apr 2020 22:14:49 +0000 (22:14 +0000)]
Move imxehci(4) to sys/dev/fdt.
ok kettenis@
jmc [Thu, 23 Apr 2020 21:33:04 +0000 (21:33 +0000)]
SYNOPSIS had no matching Ek, but since it wasn;t needed, remove Bk;
while here, combine two Ar lines into one;
jmc [Thu, 23 Apr 2020 21:28:08 +0000 (21:28 +0000)]
ce examples of "Ar arg Ar arg" with "Ar arg arg" and stop the spread;
jmc [Thu, 23 Apr 2020 21:10:53 +0000 (21:10 +0000)]
replace examples of "Ic arg Ic arg" with "Ic arg arg" and stop the spread;
tobhe [Thu, 23 Apr 2020 20:17:48 +0000 (20:17 +0000)]
Add support for switching rdomain on IPsec encryption/decryption.
It can be configured per policy with the new 'rdomain' option
(see iked.conf(5)).
Only the unencrypted (inner) rdomain has to be configured, the
encrypted rdomain is always the one the responsible iked instance
is running in.
The configured rdomain must exist before iked activates the IPsec SAs,
otherwise pfkey will return an error.
ok markus@, patrick@
tobhe [Thu, 23 Apr 2020 19:57:01 +0000 (19:57 +0000)]
Support SADB_X_EXT_RDOMAIN extension in pfkey dump (-m).
ok markus@, patrick@
patrick [Thu, 23 Apr 2020 19:50:52 +0000 (19:50 +0000)]
Enable pcie_aux in addition to the other PCIe clocks on i.MX8M.
patrick [Thu, 23 Apr 2020 19:48:26 +0000 (19:48 +0000)]
Since apparently the bikeshedding over i.MX8M PCIe device tree
bindings still hasn't resulted in an upstream commit in Linux,
accept the ext_osc attribute if ext_osc exists without a value,
or if it has a value greater zero. This improves compatibility
with various device trees.
tobhe [Thu, 23 Apr 2020 19:38:08 +0000 (19:38 +0000)]
Add support for autmatically moving traffic between rdomains on ipsec(4)
encryption or decryption. This allows us to keep plaintext and encrypted
network traffic seperated and reduces the attack surface for network
sidechannel attacks.
The only way to reach the inner rdomain from outside is by successful
decryption and integrity verification through the responsible Security
Association (SA).
The only way for internal traffic to get out is getting encrypted and
moved through the outgoing SA.
Multiple plaintext rdomains can share the same encrypted rdomain while
the unencrypted packets are still kept seperate.
The encrypted and unencrypted rdomains can have different default routes.
The rdomains can be configured with the new SADB_X_EXT_RDOMAIN pfkey
extension. Each SA (tdb) gets a new attribute 'tdb_rdomain_post'.
If this differs from 'tdb_rdomain' then the packet is moved to
'tdb_rdomain_post' afer IPsec processing.
Flows and outgoing IPsec SAs are installed in the plaintext rdomain,
incoming IPsec SAs are installed in the encrypted rdomain.
IPCOMP SAs are always installed in the plaintext rdomain.
They can be viewed with 'route -T X exec ipsecctl -sa' where X is the
rdomain ID.
As the kernel does not create encX devices automatically when creating
rdomains they have to be added by hand with ifconfig for IPsec to work
in non-default rdomains.
discussed with chris@ and kn@
ok markus@, patrick@
mpi [Thu, 23 Apr 2020 18:36:51 +0000 (18:36 +0000)]
Implement builtin 'cpu' keyword.
This is useful to know which CPU recorded a given event.
While here document 'retval' and comment out 'ustack' until we have a
way to capture userland stacks.
mpi [Thu, 23 Apr 2020 18:20:07 +0000 (18:20 +0000)]
Use map keys composed of multiple arguments.
sthen [Thu, 23 Apr 2020 17:12:59 +0000 (17:12 +0000)]
"local-address" can be specified for both address families now, so
no more need for separate v4/v6 groups. ok claudio@
claudio [Thu, 23 Apr 2020 16:17:48 +0000 (16:17 +0000)]
Try to document 'no local-address'
claudio [Thu, 23 Apr 2020 16:13:11 +0000 (16:13 +0000)]
Store local-address by address family. This allows to configure both
an IPv4 and IPv6 local-address on a group and the neighbors bind to the
right local-address. Also implement 'no local-address' to reset a previously
set local address back to zero. This should help with IBGP and multihop
session config and hopefully reduce repetition in bgpd configs.
OK sthen@ benno@
krw [Thu, 23 Apr 2020 15:00:27 +0000 (15:00 +0000)]
Correctly parse "0/0" as the default route when specifying
the classless-[ms-]static-routes options in dhcpd.conf.
Brings dhcpd.conf CIDR parsing in line with dhclient.conf,
dhcp-options(5) and the command lines of various utilities.
Inconsistency noted and fix tested by Freda Bundchen. Thanks!
patrick [Thu, 23 Apr 2020 14:56:28 +0000 (14:56 +0000)]
Add support for the i.MX8MM PCIe clocks. These behave exactly like
the i.MX8MQ variant and sit in the same places.
mpi [Thu, 23 Apr 2020 14:54:12 +0000 (14:54 +0000)]
Extend map to support keys composed of multiple arguments.
Keys are still strings representing the output value.
The following example is now possible to count the number of "on CPU"
events ordered by thread ID and executable name:
# btrace -e 'tracepoint:sched:on__cpu { @[tid, comm] = count() }'
^C
@[138836, idle0]: 830941
@[161307, sshd]: 716476
@[482901, softnet]: 582008
@[104443, systqmp]: 405749
@[269230, update]: 396133
@[326533, softclock]: 316926
@[61040, sshd]: 177201
@[453567, reaper]: 119676
@[446052, ksh]: 85675
@[26270, syslogd]: 66625
@[504699, sshd]: 52958
@[446052, sshd]: 32207
@[44046, tset]: 13333
@[162960, zerothread]: 101
@[313046, ntpd]: 1
ratchov [Thu, 23 Apr 2020 14:47:20 +0000 (14:47 +0000)]
Explain in the DESCRIPTION section in which cases mixerctl should be used
joint work with jmc, thanks
benno [Thu, 23 Apr 2020 12:55:44 +0000 (12:55 +0000)]
Always initialize cachedir and outputdir.
ok job@
jsg [Thu, 23 Apr 2020 11:13:47 +0000 (11:13 +0000)]
drm/amdkfd: kfree the wrong pointer
From Jack Zhang
044a884072b4313554d910b792f46c3e1f0099a5 in linux 4.19.y/4.19.118
3148a6a0ef3cf93570f30a477292768f7eb5d3c3 in mainline linux
nicm [Thu, 23 Apr 2020 10:22:53 +0000 (10:22 +0000)]
Overrides need to be applied both before and after features in case they
change flags used to detect a feature.
mpi [Thu, 23 Apr 2020 09:14:27 +0000 (09:14 +0000)]
Make debug output less verbose.
mpi [Thu, 23 Apr 2020 07:57:27 +0000 (07:57 +0000)]
Document uvmexp.nswget without relying on implementation details.
Prompted by a question from schwarze@
ok deraadt@, schwarze@, visa@
ratchov [Thu, 23 Apr 2020 05:54:35 +0000 (05:54 +0000)]
Use "control" instead of "variable", more appropriate in this context
ok and tweaks jmc
nicm [Thu, 23 Apr 2020 05:48:42 +0000 (05:48 +0000)]
Fix a couple of memory leaks, one when creating a new pane and one when
adding formats onto the queue item.
deraadt [Thu, 23 Apr 2020 02:54:50 +0000 (02:54 +0000)]
Recent changes in usr/mdec require (substantial) growth of the ramdisk.
ok jsg kettenis, testing by kmos also
schwarze [Thu, 23 Apr 2020 00:16:59 +0000 (00:16 +0000)]
adjust section argument of .Dt macro after move from section 1 to 8;
patch from Raf Czlonka <rczlonka at gmail dot com>
jmc [Wed, 22 Apr 2020 21:39:21 +0000 (21:39 +0000)]
use a root prompt for EXAMPLES; ok ratchov
nicm [Wed, 22 Apr 2020 21:15:33 +0000 (21:15 +0000)]
Improve join-pane, move-pane and break-pane:
- There is no need for join-pane and move-pane to be different.
- break-pane can just behave like move-window if the source has only one
pane, instead of failing.
- Add -a to break-pane like move-window.
Also add missing man page bits for previous window-tree.c changes.
GitHub issue 2176.
nicm [Wed, 22 Apr 2020 21:01:28 +0000 (21:01 +0000)]
Indicate the marked pane in choose mode in reverse and add key to set
and clear it (m and M) and a key to jump to the starting pane (H).
nicm [Wed, 22 Apr 2020 20:47:00 +0000 (20:47 +0000)]
Add a session_marked format like window_marked.
sthen [Wed, 22 Apr 2020 18:18:37 +0000 (18:18 +0000)]
sync
tobhe [Wed, 22 Apr 2020 17:26:54 +0000 (17:26 +0000)]
Fix leaks in signature validation.
ok markus@
jsing [Wed, 22 Apr 2020 17:05:53 +0000 (17:05 +0000)]
Revise regress to match state transition changes.
jsing [Wed, 22 Apr 2020 17:05:07 +0000 (17:05 +0000)]
Improve TLSv1.3 state machine for HelloRetryRequest handling.
The state machine currently handles the HelloRetryRequest case by using
WITH_HRR - in other words, we're explicitly indicating when we transition
to the alternate path. The problem here is that we do not know if we're
going to receive a ServerHello or a HelloRetryRequest until we process
the message. This means that the ServerHello processing code has to handle
both types of messages.
The state machine and associated processing code becomes cleaner if we flip
this around so that we assume we are going to receive a HelloRetryRequest
and upon discovering that it is not, trigger WITHOUT_HRR and hand off to
the ServerHello processing function. In particular, this makes the logic
much more straight forward on the server side, when adding support for HRR.
With feedback from tb@
ok tb@
tobhe [Wed, 22 Apr 2020 16:52:04 +0000 (16:52 +0000)]
Log authentication verification failure with "info" priority.
ok markus@
patrick [Wed, 22 Apr 2020 15:27:26 +0000 (15:27 +0000)]
Add clock gates for OCOTP and TMU on i.MX8MQ and i.MX8MM.
schwarze [Wed, 22 Apr 2020 15:00:46 +0000 (15:00 +0000)]
mark up a function name with .Fn;
found with mandoc -Tlint
schwarze [Wed, 22 Apr 2020 14:53:13 +0000 (14:53 +0000)]
correct the description of the top line;
patch from <clematis at insiberia dot net>
eric [Wed, 22 Apr 2020 11:35:34 +0000 (11:35 +0000)]
Check for the dispatcher name in the envelope validation function.
Fixes a possible crash and caching issue when manually moving an
envelope to the queue with smtpctl discover.
ok millert@
jmc [Wed, 22 Apr 2020 11:35:03 +0000 (11:35 +0000)]
sort SEE ALSO;
kettenis [Wed, 22 Apr 2020 11:10:07 +0000 (11:10 +0000)]
Knock out a few more well-known nodes that we don't intend to attach a
driver to as well as nodes that start with a double underscore.
ok patrick@
kettenis [Wed, 22 Apr 2020 10:10:41 +0000 (10:10 +0000)]
bcmdmac(4) and bcmsdhost(4)
kettenis [Wed, 22 Apr 2020 09:48:44 +0000 (09:48 +0000)]
Add bcmsdhost(4), a driver for the Broadcom "sdhost" SD controller
found on the Raspberry Pi.
The driver was ported from NetBSD by Neil Ashford and tobhe@.
ok patrick@, tobhe@
jsg [Wed, 22 Apr 2020 09:46:09 +0000 (09:46 +0000)]
drm/amd/powerplay: force the trim of the mclk dpm_levels if OD is enabled
From Sergei Lopatin
9959d615b715972002ed1ec9961486ded26e2ef4 in linux 4.19.y/4.19.117
8c7f0a44b4b4ef16df8f44fbaee6d1f5d1593c83 in mainline linux
nicm [Wed, 22 Apr 2020 08:48:44 +0000 (08:48 +0000)]
Update the cursor position when deleting lines from screens without
history, GitHub issue 2173.
mpi [Wed, 22 Apr 2020 08:47:11 +0000 (08:47 +0000)]
Use FOREACH_QUEUE() where nothing else is required to support multi-queues.
Tested by Hrvoje Popovski and jmatthew@, ok jmatthew@
ratchov [Wed, 22 Apr 2020 08:25:27 +0000 (08:25 +0000)]
Use the same workding as in other pages.
Use "controls" instead of "variables". Use "audio device" instead of
"mixer" to refer to the sound-card.
ok jmc@
mpi [Wed, 22 Apr 2020 07:51:38 +0000 (07:51 +0000)]
Assert that ND6 timer is never set for RTF_LOCAL routes.
Such routes have a valid link-local entry that should not be overwritten.
The current assert in the timeout routine doesn't give enough information
to know where the bug is, if there is still one.
This should play better with syzkaller.
ok claudio@, visa@ as part of a larger diff
mpi [Wed, 22 Apr 2020 07:45:31 +0000 (07:45 +0000)]
Never update the ND entry (cache) corresponding to a RTF_LOCAL route.
Such route correspond to a locally configured address and the ND6
subsystem expect its link-local address to be always present.
Fix an issue reported by Julian Brost.
ok claudio@, visa@
mpi [Wed, 22 Apr 2020 07:09:40 +0000 (07:09 +0000)]
Use I40E_QUEUE_TYPE_EOL instead of hardcoding its value localy.
ok jmatthew@
nicm [Wed, 22 Apr 2020 06:57:13 +0000 (06:57 +0000)]
Change so main-pane-width and height can be given as a percentage.
jmc [Wed, 22 Apr 2020 05:38:19 +0000 (05:38 +0000)]
tweak display in previous; ok espie
jmc [Wed, 22 Apr 2020 05:37:00 +0000 (05:37 +0000)]
sort SEE ALSO;
deraadt [Wed, 22 Apr 2020 02:04:00 +0000 (02:04 +0000)]
sync
deraadt [Tue, 21 Apr 2020 23:38:36 +0000 (23:38 +0000)]
adjust for man pages
dtucker [Tue, 21 Apr 2020 23:14:58 +0000 (23:14 +0000)]
Backslash '$' at then end of string. Prevents warning on some shells.
deraadt [Tue, 21 Apr 2020 21:32:26 +0000 (21:32 +0000)]
move mixerctl and audioctl man pages to section 8, as these work
against root-only device nodes.
krw [Tue, 21 Apr 2020 19:27:03 +0000 (19:27 +0000)]
Revert r1.207. Apparently mpi(4) on sparc64 blows up if
sc_link.openings is greater than 34.
Encountered by Sigi Rudzio on his Blade 2500, who kindly did some
testing to discover that the answer is 34, not 42.
Nuke some whitespace on the way by.
tobhe [Tue, 21 Apr 2020 19:10:32 +0000 (19:10 +0000)]
Enable bcmdmac(4).
ok kettenis@
tobhe [Tue, 21 Apr 2020 18:56:54 +0000 (18:56 +0000)]
Add bcmdmac, a driver for the DMA controller found on BCM283x SoCs.
Original work by Neil Ashford and dlg@
ok kettenis@
jsing [Tue, 21 Apr 2020 17:06:16 +0000 (17:06 +0000)]
Handle TLSv1.3 key shares other than X25519 on the server side.
Previously we would only select an X25519 key share from the client,
ignoring any others. Change this so that we will select the first of the
key shares that matches one of our supported groups.
ok beck@ inoguchi@ tb@
florian [Tue, 21 Apr 2020 17:03:44 +0000 (17:03 +0000)]
unwind(8) is supposed to work in all situations, it no longer
closes its service port when resolving is not working to give asr(3) a
chance (because it falls back to asr(3) internally)
Therefore it is ok to only list 127.0.0.1 in /etc/resolv.conf.
Triggered by a question from Frantisek Holop.
OK benno
jsing [Tue, 21 Apr 2020 16:55:17 +0000 (16:55 +0000)]
Consolidate TLSv1.3 constants.
Move all of the TLSv1.3 constants to the top of tls13_lib.c. Also mark
these all as const so that they end up in .rodata rather than .data.
ok tb@
ratchov [Tue, 21 Apr 2020 14:04:17 +0000 (14:04 +0000)]
Replace parameter -> control
Audio parameter is ambigous in this context, it refers also to sample
rate, encoding, etc.
ok jmc
nicm [Tue, 21 Apr 2020 13:48:56 +0000 (13:48 +0000)]
Move the background colour to clear with (if any) up as well as the data
when scrolling, redraw problem reported by sthen@.
krw [Tue, 21 Apr 2020 13:44:29 +0000 (13:44 +0000)]
Send broadcast packets to INADDR_BROADCAST, not INADDR_ANY.
Should fix '-r' (a.k.a. release a lease) for leases without a valid
DHCP_SERVER_IDENTIFIER.
Spotted by Alexander Markert. Thanks!
ratchov [Tue, 21 Apr 2020 13:24:29 +0000 (13:24 +0000)]
The group is not optional.
Controls that belong to a group must be expressed with the group name
included. Not all control belong to a group, though.
ratchov [Tue, 21 Apr 2020 13:18:27 +0000 (13:18 +0000)]
Describe behavior when channel numbers are omitted
ratchov [Tue, 21 Apr 2020 13:13:16 +0000 (13:13 +0000)]
Use "real world" examples, like output.level.
ratchov [Tue, 21 Apr 2020 13:05:04 +0000 (13:05 +0000)]
Remove (confusing) description of non-scalar controls.
Nothing exposes such controls yet, so it's not necessary.
nicm [Tue, 21 Apr 2020 10:37:11 +0000 (10:37 +0000)]
256 and RGB features can imply AX (for aixterm colours).
stsp [Tue, 21 Apr 2020 10:34:24 +0000 (10:34 +0000)]
Work around FIFO_UNDERRUN (0x84) Tx errors being reported by iwn(4) firmware.
When this error occurs, it tends to occur multiple times in a row. Affected
frames are lost and never get transmitted, and traffic stalls for a while.
I don't understand what is causing this. I have found that it only occurs if
we ask the firmware to use its multi-rate retry table. If we send frames at
a fixed rate, it does not happen. So this can be used as a workaround until
the real problem is understood.
Since this error is particularly problematic with block ack, use a fixed Tx
rate for aggregation queues for now. All subframes contained in an aggregate
are always sent together at the same rate anyway.
ok mpi@
stsp [Tue, 21 Apr 2020 10:33:30 +0000 (10:33 +0000)]
Fix TID value set by iwn(4) in the Tx command when sending block ack requests.
ok jmatthew@ mpi@
mpi [Tue, 21 Apr 2020 08:29:27 +0000 (08:29 +0000)]
Correct cdev_ipmi_init()'s poll stub to return 0 instead of ENODEV.
poll functions shouldn't return errnos, selfalse() and seltrue() exist
for this reason :)
While here fix some comments.
ok visa@
dtucker [Tue, 21 Apr 2020 08:25:22 +0000 (08:25 +0000)]
Prevent infinite for loop since i went from ssize_t to size_t. Patch from
eagleoflqj via OpenSSH github PR#178, ok djm@, feedback & ok millert@
kettenis [Tue, 21 Apr 2020 07:58:57 +0000 (07:58 +0000)]
Add support for the additional SDHC controller found on the Raspberry Pi.
ok patrick@
kettenis [Tue, 21 Apr 2020 07:57:17 +0000 (07:57 +0000)]
Set DMA constraint based on the openbsd,dma-constraint property if
present. Make sure bus_dmamap_alloc(9) allocates memory that meets that
constraint.
ok patrick@
kettenis [Tue, 21 Apr 2020 07:54:01 +0000 (07:54 +0000)]
Add an openbsd,dma-constraint property to the /chosen node and set it
to an appropriate value for the Raspberry Pi 4.
ok patrick@
nicm [Tue, 21 Apr 2020 06:34:13 +0000 (06:34 +0000)]
Turn off the block flag to reset the state or the cursor will not be
moved back to the right place.
nicm [Tue, 21 Apr 2020 06:32:40 +0000 (06:32 +0000)]
Do not clear client pane redraw flags until the redraw actually happens.
jmatthew [Tue, 21 Apr 2020 05:49:25 +0000 (05:49 +0000)]
Commands that create objects return a 24 bit object ID, so mask off the
high 8 bits of the value we extract, in case the firmware leaves junk there.
Hrvoje Popovski has seen this with newer firmware on a ConnectX 5 card,
which now works properly.
ok dlg@
jmc [Tue, 21 Apr 2020 05:36:04 +0000 (05:36 +0000)]
tweak previous;
nicm [Tue, 21 Apr 2020 05:26:13 +0000 (05:26 +0000)]
xterm* needs XT also.
pd [Tue, 21 Apr 2020 03:36:56 +0000 (03:36 +0000)]
vmd: improve concurrency control in pause
Previous implementation hit a deadlock sometimes as the pthread_cond_broadcast
for the pause mutex could happen before pthread_cond_wait. This implementation
uses a barrier which is hit when all vpcus are paused.
ok mpi@
kettenis [Mon, 20 Apr 2020 21:52:25 +0000 (21:52 +0000)]
regen
kettenis [Mon, 20 Apr 2020 21:52:02 +0000 (21:52 +0000)]
Add Broadcom BCM2711.
ratchov [Mon, 20 Apr 2020 20:54:31 +0000 (20:54 +0000)]
Fix the example: now mixerctl uses /dev/audioctl0