openbsd
3 years agomake scp(1) in SFTP mode output better match original scp(1) by
djm [Sat, 7 Aug 2021 00:08:52 +0000 (00:08 +0000)]
make scp(1) in SFTP mode output better match original scp(1) by
suppressing "Retrieving [path]" lines that were emitted to support
the interactive sftp(1) client. ok markus@

3 years agofactor out a structure duplicated between downloading and
djm [Sat, 7 Aug 2021 00:07:18 +0000 (00:07 +0000)]
factor out a structure duplicated between downloading and
crossloading; ok markus@

3 years agouse sftp_client crossloading to implement scp -3
djm [Sat, 7 Aug 2021 00:06:30 +0000 (00:06 +0000)]
use sftp_client crossloading to implement scp -3

feedback/ok markus@

3 years agosupport for "cross"-loading files/directories, i.e. downloading
djm [Sat, 7 Aug 2021 00:02:41 +0000 (00:02 +0000)]
support for "cross"-loading files/directories, i.e. downloading
from one SFTP server while simultaneously uploading to another.

feedback & ok markus@

3 years agofactor our SSH2_FXP_OPEN calls into their own function;
djm [Sat, 7 Aug 2021 00:01:29 +0000 (00:01 +0000)]
factor our SSH2_FXP_OPEN calls into their own function;
"looks fine" markus@

3 years agoprepare for scp -3 implemented via sftp
djm [Sat, 7 Aug 2021 00:00:33 +0000 (00:00 +0000)]
prepare for scp -3 implemented via sftp

3 years agolink X509_STORE_get_by_subject(3) and X509_ocspid_print(3) to the build,
schwarze [Fri, 6 Aug 2021 21:50:54 +0000 (21:50 +0000)]
link X509_STORE_get_by_subject(3) and X509_ocspid_print(3) to the build,
forgotten in earlier commits

3 years agonew manual page X509_ocspid_print(3)
schwarze [Fri, 6 Aug 2021 21:45:55 +0000 (21:45 +0000)]
new manual page X509_ocspid_print(3)
using input from tb@, and OK tb@ on an earlier version

3 years agos/updatedb(8)/locate.updatedb(8)/ in comment
tim [Fri, 6 Aug 2021 19:14:55 +0000 (19:14 +0000)]
s/updatedb(8)/locate.updatedb(8)/ in comment

OK schwarze@

3 years agoadd a roff(7) comment marking the API function X509_get_default_private_dir()
schwarze [Fri, 6 Aug 2021 19:09:56 +0000 (19:09 +0000)]
add a roff(7) comment marking the API function X509_get_default_private_dir()
as intentionally undocumented because it is trivial and unused in the wild;
OK tb@

3 years agoMark matching reportIDs as claimed.
abieber [Fri, 6 Aug 2021 17:46:45 +0000 (17:46 +0000)]
Mark matching reportIDs as claimed.

This fixes a panic that was reported on misc@ and bugs@ by
Mike <the.lists () mgm51 ! com> and
Anindya Mukherjee <anindya49 () hotmail ! com>

OK jcs@, thanks to mpi@/jcs@ for the pointers!

3 years agoCleanup, clarify and generally polish the MBR/GPT initialization
krw [Fri, 6 Aug 2021 10:41:31 +0000 (10:41 +0000)]
Cleanup, clarify and generally polish the MBR/GPT initialization
code.

'-g' is promoted to be independant of '-i'. This makes it clearer
that there are four mutually exclusive initialization options.

'-i' puts the default MBR on disk, '-g' puts the default GPT on
disk, '-u' updates the MBR boot code on disk and '-A' puts a new
set of GPT partitions on disk without overwriting 'protected'
partitions.

The last initialization option specified is the one executed, so
existing '-i -g' finger memory, etc. continue to work as before.

man page/usage feedback/tweaks from jmc@

3 years agoAdd basic support for zero width joiners, GitHub issues 1605 and 2784.
nicm [Fri, 6 Aug 2021 09:34:09 +0000 (09:34 +0000)]
Add basic support for zero width joiners, GitHub issues 1605 and 2784.

3 years agoAdd client focus hooks.
nicm [Fri, 6 Aug 2021 09:19:02 +0000 (09:19 +0000)]
Add client focus hooks.

3 years agoMake diff invocation more portable. POSIX does not require diff to have -N,
dtucker [Fri, 6 Aug 2021 09:00:18 +0000 (09:00 +0000)]
Make diff invocation more portable.  POSIX does not require diff to have -N,
so compare in both directions with just -r, which should catch missing files
in either directory.

3 years agoAnother minor fix - do not draw positions that are under the popup with
nicm [Fri, 6 Aug 2021 07:32:21 +0000 (07:32 +0000)]
Another minor fix - do not draw positions that are under the popup with
spaces, from Anindya Mukherjee. Also a typo fix from Linus Arver.

3 years agoAs tim@ spotted, a use of V4_AUTOCONF crept in when the variable name
sthen [Fri, 6 Aug 2021 07:06:34 +0000 (07:06 +0000)]
As tim@ spotted, a use of V4_AUTOCONF crept in when the variable name
was actually V4_DHCPCONF from previous use. Rename all of the V4_DHCPCONF
to V4_AUTOCONF so everything uses the new name. ok and reminder about
the installer from tb@

3 years agoadd riscv64 and octeon intro(4)
jsg [Fri, 6 Aug 2021 06:35:13 +0000 (06:35 +0000)]
add riscv64 and octeon intro(4)

3 years agoDocument "ProxyJump none". bz#3334.
dtucker [Fri, 6 Aug 2021 05:04:42 +0000 (05:04 +0000)]
Document "ProxyJump none".  bz#3334.

3 years agoTweak previous not to replace complete characters with spaces.
nicm [Fri, 6 Aug 2021 03:29:15 +0000 (03:29 +0000)]
Tweak previous not to replace complete characters with spaces.

3 years agoCorrectly draw wide characters that are partially obscured.
nicm [Fri, 6 Aug 2021 03:13:05 +0000 (03:13 +0000)]
Correctly draw wide characters that are partially obscured.

3 years agosync
patrick [Thu, 5 Aug 2021 22:35:26 +0000 (22:35 +0000)]
sync

3 years agoRemove the TableGen library from libLLVM. It's only needed for the tblgen
patrick [Thu, 5 Aug 2021 22:32:45 +0000 (22:32 +0000)]
Remove the TableGen library from libLLVM.  It's only needed for the tblgen
tools, and it also provides command line options and thus pollutes the name
space.  This fixes duplicate command line options in llvm-objdump.

Discussed with jsg@

3 years agoAfter a media link change, the media settings on the hardware need to be
mglocker [Thu, 5 Aug 2021 20:53:28 +0000 (20:53 +0000)]
After a media link change, the media settings on the hardware need to be
re-initialized, otherwise TX/RX keeps disabled.  Fixes the issue on the
RTL8153/B devices, but unfortunately not on the RTL8152 devices.  I have
no RTL8152 device available.

Tested by a few on RTL8153/B devices.

ok sthen@

3 years ago.OP is not a GNU extension but first appeared in the Documenter's Workbench,
schwarze [Thu, 5 Aug 2021 14:31:06 +0000 (14:31 +0000)]
.OP is not a GNU extension but first appeared in the Documenter's Workbench,
see https://github.com/n-t-roff/DWB3.3/blob/master/macros/man/an.sr#L33

from g dot branden dot robinson at gmail dot com
via GNU troff commit e3459327 2 Aug 2021 10:49:46 -0400

3 years agom_freem in wg_send's path where a peer has no endpoint address,
sthen [Thu, 5 Aug 2021 13:37:04 +0000 (13:37 +0000)]
m_freem in wg_send's path where a peer has no endpoint address,
fixing an mbuf leak way with wgpka (keepalive) found the hard way by Matt P.
Diff from Matt Dunwoodie, ok claudio@

3 years agoDo not freeze output in panes when a popup is open, let them continue to
nicm [Thu, 5 Aug 2021 09:43:51 +0000 (09:43 +0000)]
Do not freeze output in panes when a popup is open, let them continue to
redraw. From Anindya Mukherjee .

3 years agofor nameserver usage, show multiple addresses as "address ..."; ok benno
jmc [Thu, 5 Aug 2021 09:02:19 +0000 (09:02 +0000)]
for nameserver usage, show multiple addresses as "address ..."; ok benno
while here, Pa->Xr for resolv.conf;

3 years agouse combined u-boot-rockchip.bin in arm64 rockchip instructions
jsg [Thu, 5 Aug 2021 08:54:56 +0000 (08:54 +0000)]
use combined u-boot-rockchip.bin in arm64 rockchip instructions
instead of idbloader.img and u-boot.itb

3 years agosuperflous -> superfluous
tb [Thu, 5 Aug 2021 07:30:04 +0000 (07:30 +0000)]
superflous -> superfluous

3 years agomark up the nameserver command;
jmc [Thu, 5 Aug 2021 06:35:18 +0000 (06:35 +0000)]
mark up the nameserver command;

3 years agorework the "host relay-url" text block a little so it reads better,
jmc [Thu, 5 Aug 2021 06:33:20 +0000 (06:33 +0000)]
rework the "host relay-url" text block a little so it reads better,
and formats a bit nicer;

while here, wrap lines to <80;

3 years agosort the new nameserver text; rework it a little; sort SEE ALSO;
jmc [Thu, 5 Aug 2021 06:21:32 +0000 (06:21 +0000)]
sort the new nameserver text; rework it a little; sort SEE ALSO;

3 years agoregression test for scp -3
djm [Wed, 4 Aug 2021 21:28:00 +0000 (21:28 +0000)]
regression test for scp -3

3 years agoreference route(8) new nameserver command.
benno [Wed, 4 Aug 2021 18:19:51 +0000 (18:19 +0000)]
reference route(8) new nameserver command.

3 years agoAdd a new 'nameserver' command to route(8).
benno [Wed, 4 Aug 2021 18:17:23 +0000 (18:17 +0000)]
Add a new 'nameserver' command to route(8).
It sends nameserver proposals to resolvd(8) using the dns proposal
protocol over the route socket. Based on a seperate program
written by florian@. deraadt noticed some whitespace issues.
more fixes and ok florian@

3 years agoImprove HTTP status handling. Allow 203 as an alternative to 200 OK.
claudio [Wed, 4 Aug 2021 16:10:03 +0000 (16:10 +0000)]
Improve HTTP status handling. Allow 203 as an alternative to 200 OK.
Most other 2xx status codes are still not expected and therefor considered
an error. The GET requests issued by this code should not result in other
2xx result codes.
Also handle and ignore the 1xx Informational headers but again only 100
and 103 are handled and 101 Switching Protocols and 102 Processing are
not expected and are considered an error.
OK deraadt@

3 years agoSSL_CTX_remove_session() checks for a NULL session, avoid doing it twice.
jsing [Wed, 4 Aug 2021 12:41:25 +0000 (12:41 +0000)]
SSL_CTX_remove_session() checks for a NULL session, avoid doing it twice.

Noted by tb@ during review of a larger change.

3 years agodrm/amdgpu: Fix resource leak on probe error path
jsg [Wed, 4 Aug 2021 11:32:44 +0000 (11:32 +0000)]
drm/amdgpu: Fix resource leak on probe error path

From Jiri Kosina
fc2756cce06f9833ebabd309b5b5080ed5c56897 in linux 5.10.y/5.10.56
d47255d3f87338164762ac56df1f28d751e27246 in mainline linux

3 years agodrm/amdgpu: Avoid printing of stack contents on firmware load error
jsg [Wed, 4 Aug 2021 11:29:08 +0000 (11:29 +0000)]
drm/amdgpu: Avoid printing of stack contents on firmware load error

From Jiri Kosina
ccc7a1bb322e4169b738aa3fc8b5dfcfefdacb37 in linux 5.10.y/5.10.56
6aade587d329ebe88319dfdb8e8c7b6aede80417 in mainline linux

3 years agodrm/amd/display: ensure dentist display clock update finished in DCN20
jsg [Wed, 4 Aug 2021 11:26:06 +0000 (11:26 +0000)]
drm/amd/display: ensure dentist display clock update finished in DCN20

From Dale Zhao
63570e578094b4f0b6b8c6ac4a68195455733e31 in linux 5.10.y/5.10.56
b53e041d8e4308f7324999398aec092dbcb130f5 in mainline linux

3 years agoAdd a client-active hook, from ncfavier in GitHub issue 2803.
nicm [Wed, 4 Aug 2021 08:07:19 +0000 (08:07 +0000)]
Add a client-active hook, from ncfavier in GitHub issue 2803.

3 years agoDo not enter a tight INIT -> REQUESTING -> INIT loop when the dhcp
florian [Wed, 4 Aug 2021 05:56:58 +0000 (05:56 +0000)]
Do not enter a tight INIT -> REQUESTING -> INIT loop when the dhcp
server responds to our DHCPDISCOVER but is then slow to respond to our
DHCPREQUEST.
MAX_EXP_BACKOFF_FAST was introduced to get us quickly out of the
REBOOTING state when we switch networks and no dhcp server would NAK
our old lease but just ignore us. This is not the issue here, there is
a dhcp server willing to talk to us, it's just slow.
Problem reported, tested & OK jca

3 years agoAllow for different (but POSIX compliant) behaviour of basename(3) and
dtucker [Wed, 4 Aug 2021 01:34:55 +0000 (01:34 +0000)]
Allow for different (but POSIX compliant) behaviour of basename(3) and
prevent a use-after-free in that case in the new sftp-compat code.

POSIX allows basename(3) to either return a pointer to static storage
or modify the passed string and return a pointer to that.  OpenBSD does
the former and works as is, but on other platforms "filename" points
into "tmp" which was just freed.  This makes the freeing of tmp
consistent with the other variable in the loop.

Pinpointed by the -portable Valgrind regress test.  ok djm@ deraadt@

3 years agoDocument X509_get_default_cert_dir_env(3)
schwarze [Tue, 3 Aug 2021 19:47:39 +0000 (19:47 +0000)]
Document X509_get_default_cert_dir_env(3)
and X509_get_default_cert_file_env(3).

LibreSSL itself does not call getenv(3), but a few application programs
including epic5, fetchmail, fossil, slic3r call these functions, so in
case programmers find them in existing code, telling them what they do
seems useful.

3 years agoDocument X509_get_default_cert_area(3).
schwarze [Tue, 3 Aug 2021 18:49:30 +0000 (18:49 +0000)]
Document X509_get_default_cert_area(3).
Put it into this page because this is the code actually using it.
Despite its name and include file, it is unrelated to X.509
and unrelated to certificates: it is just the default directory
containing the library configuration file, openssl.cnf(5).

3 years agoIncrease default data bytes limit for Child SAs to 4 GB.
tobhe [Tue, 3 Aug 2021 12:46:30 +0000 (12:46 +0000)]
Increase default data bytes limit for Child SAs to 4 GB.
Lower limits lead to excessive rekeying and lost data in high performance
setups without much benefit.

Brought up by mvs@
ok patrick@ sthen@

3 years agoMake sure VM_MAXUSER_ADDRESS is aligned to a page boundary, as MI code
semarie [Tue, 3 Aug 2021 04:45:54 +0000 (04:45 +0000)]
Make sure VM_MAXUSER_ADDRESS is aligned to a page boundary, as MI code
relies upon this; sparc64 turned out to be the only platform where this
was not the case.

help, diff, and commit message from Miod Vallat
"makes sense" kettenis@

3 years agosync
deraadt [Tue, 3 Aug 2021 04:43:30 +0000 (04:43 +0000)]
sync

3 years agoregression tests for scp SFTP protocol support; mostly by Jakub
djm [Tue, 3 Aug 2021 01:05:24 +0000 (01:05 +0000)]
regression tests for scp SFTP protocol support; mostly by Jakub
Jelen in GHPR#194 ok markus

3 years agosupport for using the SFTP protocol for file transfers in scp, via a
djm [Mon, 2 Aug 2021 23:38:27 +0000 (23:38 +0000)]
support for using the SFTP protocol for file transfers in scp, via a
new "-M sftp" option. Marked as experimental for now.

Some corner-cases exist, in particular there is no attempt to
provide bug-compatibility with scp's weird "double shell" quoting
rules.

Mostly by Jakub Jelen in GHPR#194 with some tweaks by me. ok markus@
Thanks jmc@ for improving the scp.1 bits.

3 years agoMP support seems to work fine now
kettenis [Mon, 2 Aug 2021 21:46:39 +0000 (21:46 +0000)]
MP support seems to work fine now

ok deraadt@

3 years agoDon't call rtm_ifchg() in trunk_port_state().
mvs [Mon, 2 Aug 2021 21:10:55 +0000 (21:10 +0000)]
Don't call rtm_ifchg() in trunk_port_state().

The preceding trunk_link_active() already produced RTM_IFINFO message when
trunk(4) state was changed. I such case we double RTM_IFINFO message or we
produce false message when trunk(4) state was not changed.

ok florian@

3 years agoAdd memory barrier (data FENCE) before making the SBI call to issue a
kettenis [Mon, 2 Aug 2021 19:07:29 +0000 (19:07 +0000)]
Add memory barrier (data FENCE) before making the SBI call to issue a
FENCE.I instruction on the remote harts.  According to the RISC-V
ISA documentation this is necessary to make remote harts observe earlier
stores.  Also issue the local FENCE.I first; this is what both FreeBSD and
Linux does.  Seems to fix at least some of the issue we've seen running
GENERIC.MP on MP machines.

ok jca@

3 years agorkpwm(4) device tree bindings were updated to not have clock names anymore,
patrick [Mon, 2 Aug 2021 18:22:41 +0000 (18:22 +0000)]
rkpwm(4) device tree bindings were updated to not have clock names anymore,
so simply look up the first clock instead of looking for a specific one by
name.  Allows rkpwm(4) to find the clock when using a recent device tree.

From Tomasz Bielecki
ok kettenis@

3 years agoShow if add_path was used when decoding the BGP message in MRT format.
claudio [Mon, 2 Aug 2021 16:51:39 +0000 (16:51 +0000)]
Show if add_path was used when decoding the BGP message in MRT format.
This may help to spot encoding errors a bit more easily.

3 years agoShuffle conditions around to help my brain.
claudio [Mon, 2 Aug 2021 16:42:13 +0000 (16:42 +0000)]
Shuffle conditions around to help my brain.

3 years agotweaks regarding X509_LOOKUP_by_subject(3):
schwarze [Mon, 2 Aug 2021 16:29:27 +0000 (16:29 +0000)]
tweaks regarding X509_LOOKUP_by_subject(3):
* document the X509_OBJECT output parameter
* more precision regarding return values
* clarify relationship with X509_LOOKUP_ctrl(3) for the dir lookup method

3 years agonew manual page X509_STORE_get_by_subject(3)
schwarze [Mon, 2 Aug 2021 16:21:11 +0000 (16:21 +0000)]
new manual page X509_STORE_get_by_subject(3)

3 years agoDon't call cpu_setperf() when reading hw.setperf.
tb [Mon, 2 Aug 2021 15:15:47 +0000 (15:15 +0000)]
Don't call cpu_setperf() when reading hw.setperf.

"makes perfect sense to me" chris
ok gnezdo jca

3 years agoFix incorrect status code for expired mails resulting in a misleading
eric [Mon, 2 Aug 2021 12:33:34 +0000 (12:33 +0000)]
Fix incorrect status code for expired mails resulting in a misleading
bounce report.

From Erik Brens

3 years agoAdd infrastructure to build llvm-objcopy and llvm-objdump.
patrick [Mon, 2 Aug 2021 08:50:51 +0000 (08:50 +0000)]
Add infrastructure to build llvm-objcopy and llvm-objdump.

ok kettenis@ sthen@

3 years agoLeave resolv.conf to resolvd if it learned nameservers
kn [Mon, 2 Aug 2021 01:29:26 +0000 (01:29 +0000)]
Leave resolv.conf to resolvd if it learned nameservers

During install (not upgrade) the installer parses resolv.conf looking for
nameservers, FQDN and domain information;  it also prompts for nameservers
if none were found.

If DHCP is used and nameservers were found, resolv.conf gets recreated from
scratch.

Under dhclient(8) this was fine, but resolvd(8) persists learned proposals
across such file modifications and resolv.conf will thus contain a mix
between managed and manual entries -- stale duplicates which users have to
remove manually.

Do not touch resolv.conf anymore in case resolvd knows better and thus
provide a clean file for installations.

OK florian

3 years ago%i is going out of vogue, use %d instead
job [Sun, 1 Aug 2021 22:29:49 +0000 (22:29 +0000)]
%i is going out of vogue, use %d instead

also clean up a comment

OK tb@

3 years agowhitespace
kettenis [Sun, 1 Aug 2021 19:04:37 +0000 (19:04 +0000)]
whitespace

3 years agostyle(9)
kettenis [Sun, 1 Aug 2021 17:42:56 +0000 (17:42 +0000)]
style(9)

3 years agodocument X509_STORE_load_mem(3) and X509_STORE_add_lookup(3)
schwarze [Sun, 1 Aug 2021 15:37:53 +0000 (15:37 +0000)]
document X509_STORE_load_mem(3) and X509_STORE_add_lookup(3)

3 years agosync
deraadt [Sun, 1 Aug 2021 12:43:30 +0000 (12:43 +0000)]
sync

3 years agoAllow trapv2 packages to be submitted over SNMPv3.
martijn [Sun, 1 Aug 2021 11:36:48 +0000 (11:36 +0000)]
Allow trapv2 packages to be submitted over SNMPv3.

This is a type-O that snuck in when merging traphandler into snmpe.

OK jmatthew@

3 years agoSet smi_application in usm's ber as well.
martijn [Sun, 1 Aug 2021 11:30:56 +0000 (11:30 +0000)]
Set smi_application in usm's ber as well.

OK jmatthew@

3 years agoDo not abuse the IMSG_CTL_SEND_REQUEST imsg to transition to
florian [Sun, 1 Aug 2021 09:07:03 +0000 (09:07 +0000)]
Do not abuse the IMSG_CTL_SEND_REQUEST imsg to transition to
REBOOTING. There will be a few more cases internal to dhcpleased that
have nothing to do with the control socket.
While here move requesting a new lease via a call to dhclient under
ifndef SMALL, nothing on the ramdisk uses this.

3 years agoKNF
job [Sun, 1 Aug 2021 00:40:13 +0000 (00:40 +0000)]
KNF

OK benno@

3 years agosync
deraadt [Sat, 31 Jul 2021 16:39:30 +0000 (16:39 +0000)]
sync

3 years agodocument X509_LOOKUP_mem(3) in X509_LOOKUP_hash_dir(3)
schwarze [Sat, 31 Jul 2021 14:54:33 +0000 (14:54 +0000)]
document X509_LOOKUP_mem(3) in X509_LOOKUP_hash_dir(3)
and add a new manual page X509_LOOKUP_new(3)

3 years agoremove mention of BeagleV Starlight
jsg [Sat, 31 Jul 2021 10:57:55 +0000 (10:57 +0000)]
remove mention of BeagleV Starlight

"The BeagleV-Starlight prototype will not be going into mass production"
https://forum.beagleboard.org/t/the-future-of-beaglev-community/30463

3 years agoWe have defines for alert levels - use them instead of magic numbers.
jsing [Sat, 31 Jul 2021 09:31:04 +0000 (09:31 +0000)]
We have defines for alert levels - use them instead of magic numbers.

3 years agodrm/ttm: add a check against null pointer dereference
jsg [Sat, 31 Jul 2021 06:37:43 +0000 (06:37 +0000)]
drm/ttm: add a check against null pointer dereference

From Zheyu Ma
5c3d753b872a706af9317fef4edfb6b640d8a71e in linux 5.10.y/5.10.55
9e5c772954406829e928dbe59891d08938ead04b in mainline linux

3 years agoFix displaying incorrect patterns on LUNA's wscons with 1bpp
aoyama [Sat, 31 Jul 2021 05:22:36 +0000 (05:22 +0000)]
Fix displaying incorrect patterns on LUNA's wscons with 1bpp
framebuffer when Backspace is typed.

Reading data from LUNA framebuffer's 'common write plane' is not
valid.  But on 1bpp framebuffer routine attempts to read from common
write plane in macro.  That causes displaying incorrect patterns.

This bug was found on nono's LUNA-88K emulation first, then inspected
on the real hardware after I fortunately got 1bpp framebuffer.

Spotted and investigated by Isaki and Sugahara of nono procject.
Tested on my LUNA-88K2.

3 years agoAdd newline for debug printf.
mglocker [Fri, 30 Jul 2021 18:56:01 +0000 (18:56 +0000)]
Add newline for debug printf.

3 years agoIncrease static number of nframes which enables very initial ISOC support,
mglocker [Fri, 30 Jul 2021 18:05:24 +0000 (18:05 +0000)]
Increase static number of nframes which enables very initial ISOC support,
e.g. uvideo(4) with lower resolutions.

In general we might need to re-write parts of the nframes handling in the
driver, since the NetBSD nframes transfer allocation doesn't match with our
USB stack.

With this we can at least start further testing and improvement for ISOC
support.

3 years agoAdd checks when reading VRPs with a maxLength via RTR
job [Fri, 30 Jul 2021 15:34:37 +0000 (15:34 +0000)]
Add checks when reading VRPs with a maxLength via RTR

Ensure the maxLength is greater than or equal to the length of
the accompanying prefix, and less than or equal to the length
(in bits) of an IP address in the address family (32 for IPv4
and 128 for IPv6). The same checks are applied when reading VRPs
from configuration on disk.

OK claudio@

3 years agoMove the explanations related to *ptree closer together and correct
schwarze [Fri, 30 Jul 2021 15:01:40 +0000 (15:01 +0000)]
Move the explanations related to *ptree closer together and correct
the lie that *ptree is set upon success - in some cases of success,
it is set to NULL, whereas in some cases of failure, a non-trivial
tree may be returned.

beck@ pointed out that statements related to *ptree were scattered
all over the place, and this patch works for him.

3 years agofix a formatting error and add some Xr;
jmc [Fri, 30 Jul 2021 14:28:13 +0000 (14:28 +0000)]
fix a formatting error and add some Xr;
from debian at helgefjell de

removed references to rlogin etc. as no longer relevant;
suggested by djm

ok djm dtucker

3 years agofix a formatting error and mark up known_hosts consistently;
jmc [Fri, 30 Jul 2021 14:25:01 +0000 (14:25 +0000)]
fix a formatting error and mark up known_hosts consistently;
issues reported by debian at helgefjell de

ok djm dtucker

3 years agoPrint iwx(4) firmware version numbers like Linux iwlwifi does it.
stsp [Fri, 30 Jul 2021 14:09:12 +0000 (14:09 +0000)]
Print iwx(4) firmware version numbers like Linux iwlwifi does it.

Starting with major version 35 the Linux driver prints the minor version
number in hexadecimal.

Same change was made for iwm(4) in CVS commit LCM6R5u9jeF8bcXB

3 years agoRemove an unused 320k bytes DMA memory allocation from iwx(4).
stsp [Fri, 30 Jul 2021 13:56:44 +0000 (13:56 +0000)]
Remove an unused 320k bytes DMA memory allocation from iwx(4).

This allocation was left over from code inherited from iwm(4) where
it is used for transferring firmware code to the device. Devices
supported by iwx(4) use an entirely different mechanism for loading
firmware and don't need this allocation at all.

Based on a patch by zxystd from the OpenIntelWireless project.

3 years agoUse inline function for SFENCE.VMA instruction. Fixes missing "memory"
kettenis [Fri, 30 Jul 2021 13:17:33 +0000 (13:17 +0000)]
Use inline function for SFENCE.VMA instruction.  Fixes missing "memory"
clobber in the inline assembly.

3 years agoCleanup ptrace-related code; still untested.
kettenis [Fri, 30 Jul 2021 13:10:12 +0000 (13:10 +0000)]
Cleanup ptrace-related code; still untested.

3 years agoFix the transfer abort function dwc2_abort_xfer() to work again with the
mglocker [Fri, 30 Jul 2021 12:33:27 +0000 (12:33 +0000)]
Fix the transfer abort function dwc2_abort_xfer() to work again with the
recently updated code.  There, sync the hardware specific parts with the
NetBSD driver.

3 years agoFix the show rib detail output. The add_path condition was totally wrong.
claudio [Fri, 30 Jul 2021 09:45:52 +0000 (09:45 +0000)]
Fix the show rib detail output. The add_path condition was totally wrong.

3 years agodocument locate.mklocatedb as well
espie [Fri, 30 Jul 2021 09:28:26 +0000 (09:28 +0000)]
document locate.mklocatedb as well
tweaks by schwarze@ okay millert@

3 years agoAdd /etc/dhcpleased.conf
bket [Fri, 30 Jul 2021 07:00:02 +0000 (07:00 +0000)]
Add /etc/dhcpleased.conf

OK florian@

3 years agoset the name of the allocating process in struct drm_framebuffer
jsg [Fri, 30 Jul 2021 04:04:25 +0000 (04:04 +0000)]
set the name of the allocating process in struct drm_framebuffer

3 years agowhitespace
tb [Fri, 30 Jul 2021 02:47:37 +0000 (02:47 +0000)]
whitespace

3 years agoDo bounds check before assignment
tb [Fri, 30 Jul 2021 02:46:53 +0000 (02:46 +0000)]
Do bounds check before assignment

As reported by alf (alf.schlichting lemarit com) on bugs@, a bounds check
didn't trigger because it was performed after assignment, so truncation
would happen for large ranges. Fix this and clean up and simplify the code
a bit.

ok deraadt millert

3 years agoAllow relocation R_386_GOTOFF to be used from .debug_info sections. Newer
pascal [Thu, 29 Jul 2021 18:23:41 +0000 (18:23 +0000)]
Allow relocation R_386_GOTOFF to be used from .debug_info sections.  Newer
GCC versions will sometimes emit it, and we have stumbled upon it a few times
in ports.

Upstream commit: https://reviews.llvm.org/D95994
GCC bug report: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98946

ok kettenis@

3 years agomanually tag the macro names that have false positives
schwarze [Thu, 29 Jul 2021 17:31:25 +0000 (17:31 +0000)]
manually tag the macro names that have false positives

3 years agoUpdate the list of firmware files used by iwx(4).
stsp [Thu, 29 Jul 2021 17:06:21 +0000 (17:06 +0000)]
Update the list of firmware files used by iwx(4).

3 years agoImprove the description of .Fl in multiple respects and in paricular
schwarze [Thu, 29 Jul 2021 16:23:43 +0000 (16:23 +0000)]
Improve the description of .Fl in multiple respects and in paricular
improve the .Fl examples in multiple respects, including better
demonstrating long options.
Prompted by a question from espie@.
Feedback and OK jmc@.

3 years agoTreat doas with arguments as a valid SUDO variable. Allows one to
anton [Thu, 29 Jul 2021 15:34:09 +0000 (15:34 +0000)]
Treat doas with arguments as a valid SUDO variable. Allows one to
specify SUDO="doas -n" which I do while running make regress.

ok dtucker@