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
patrick [Mon, 2 Aug 2021 08:50:51 +0000 (08:50 +0000)]
Add infrastructure to build llvm-objcopy and llvm-objdump.
ok kettenis@ sthen@
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
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@
kettenis [Sun, 1 Aug 2021 19:04:37 +0000 (19:04 +0000)]
whitespace
kettenis [Sun, 1 Aug 2021 17:42:56 +0000 (17:42 +0000)]
style(9)
schwarze [Sun, 1 Aug 2021 15:37:53 +0000 (15:37 +0000)]
document X509_STORE_load_mem(3) and X509_STORE_add_lookup(3)
deraadt [Sun, 1 Aug 2021 12:43:30 +0000 (12:43 +0000)]
sync
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@
martijn [Sun, 1 Aug 2021 11:30:56 +0000 (11:30 +0000)]
Set smi_application in usm's ber as well.
OK jmatthew@
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.
job [Sun, 1 Aug 2021 00:40:13 +0000 (00:40 +0000)]
KNF
OK benno@
deraadt [Sat, 31 Jul 2021 16:39:30 +0000 (16:39 +0000)]
sync
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)
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
jsing [Sat, 31 Jul 2021 09:31:04 +0000 (09:31 +0000)]
We have defines for alert levels - use them instead of magic numbers.
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
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.
mglocker [Fri, 30 Jul 2021 18:56:01 +0000 (18:56 +0000)]
Add newline for debug printf.
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.
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@
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.
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
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
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
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.
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.
kettenis [Fri, 30 Jul 2021 13:10:12 +0000 (13:10 +0000)]
Cleanup ptrace-related code; still untested.
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.
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.
espie [Fri, 30 Jul 2021 09:28:26 +0000 (09:28 +0000)]
document locate.mklocatedb as well
tweaks by schwarze@ okay millert@
bket [Fri, 30 Jul 2021 07:00:02 +0000 (07:00 +0000)]
Add /etc/dhcpleased.conf
OK florian@
jsg [Fri, 30 Jul 2021 04:04:25 +0000 (04:04 +0000)]
set the name of the allocating process in struct drm_framebuffer
tb [Fri, 30 Jul 2021 02:47:37 +0000 (02:47 +0000)]
whitespace
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
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@
schwarze [Thu, 29 Jul 2021 17:31:25 +0000 (17:31 +0000)]
manually tag the macro names that have false positives
stsp [Thu, 29 Jul 2021 17:06:21 +0000 (17:06 +0000)]
Update the list of firmware files used by iwx(4).
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@.
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@
anton [Thu, 29 Jul 2021 15:33:17 +0000 (15:33 +0000)]
Ensure that the kill signal undergoing testing is not ignored.
ok bluhm@
visa [Thu, 29 Jul 2021 14:11:53 +0000 (14:11 +0000)]
Fix device class.
schwarze [Thu, 29 Jul 2021 12:39:47 +0000 (12:39 +0000)]
Fix a documentation bug i introduced that tb@ pointed out:
X509_policy_check(3) never returns 2.
If validation succeeds, it always returns 1.
stsp [Thu, 29 Jul 2021 12:13:58 +0000 (12:13 +0000)]
Switch iwx(4) to -63 firmware images as shipped in iwx-firmware-
20210512.
These images contain fixes which address fragattacks vulnerabilities:
https://www.intel.com/content/www/us/en/security-center/advisory/intel-sa-00473.html
Running fw_update(1) may be required before rebooting into a new kernel.
sysupgrade(8) will take care of this.
When reporting issues, please enable 'ifconfig iwx0 debug', reproduce the
error once more, and include the full dmesg in your bug report.
Tested:
ax200: stsp, kevlo, hrvoje, jmc, Mark Patruck, Ashton Fagg
ax201: kettenis, Fredrik Engberg, Eric Auge
ok kevlo@
stsp [Thu, 29 Jul 2021 12:01:45 +0000 (12:01 +0000)]
Implement support for the BAR_FRAME_RELEASE iwx(4) firmware notification.
New firmware will generate this notification when a block ack request is
received. Older firmware passed the block ack request frame to the driver.
ok kevlo@
stsp [Thu, 29 Jul 2021 12:01:04 +0000 (12:01 +0000)]
Get Tx queues working with new iwx(4) firmware.
ADD_STA command version >= 12 implies that firmware uses an internal AUX
station for scanning. We do not configure an AUX Tx queue in this case
and data queue indices assigned by firmware shift upwards accordingly.
ok kevlo@
stsp [Thu, 29 Jul 2021 12:00:30 +0000 (12:00 +0000)]
Support the new iwx(4) firmware TLC_MNG_CONFIG command.
This command was expanded by a 4 byte max_tx_op field. As far as I can tell
the Linux driver makes no use of this field, so just initialize it to zero.
New firmware panics when we try to initialize Tx rate scaling otherwise.
ok kevlo@
stsp [Thu, 29 Jul 2021 11:58:35 +0000 (11:58 +0000)]
Support the new iwx(4) firmware session protection command.
Required for having associations succeed with new firmware.
ok kevlo@
stsp [Thu, 29 Jul 2021 11:57:59 +0000 (11:57 +0000)]
Add support for iwx(4) umac scan command version 14.
ok kevlo@
stsp [Thu, 29 Jul 2021 11:57:33 +0000 (11:57 +0000)]
Add support for iwx(4) "reduced" scan config command required by new firmware.
ok kevlo@
stsp [Thu, 29 Jul 2021 11:56:53 +0000 (11:56 +0000)]
Handle iwx(4) PHY context command version 3.
ok kevlo@
stsp [Thu, 29 Jul 2021 11:56:21 +0000 (11:56 +0000)]
New iwx(4) firmware doesn't require an AUX station to be added.
ADD_STA command version >= 12 implies that firmware uses an internal
AUX station for scanning, and firmware panics if we try to add one.
ok kevlo@
stsp [Thu, 29 Jul 2021 11:53:46 +0000 (11:53 +0000)]
Remove support for the narrow command header on the iwx(4) command queue.
This is related to the previous commit which fixed "BAD COMMAND" firmware
errors. We can no longer use old-style "narrow" commands on the command
queue with new firmware, and our current -48 firmware images don't seem
to care either way. We can simplify this code and align it with iwlwifi.
ok kevlo@
stsp [Thu, 29 Jul 2021 11:52:58 +0000 (11:52 +0000)]
Fix "BAD COMMAND" errors with new iwx(4) firmware.
Firmware API versions >= 50 reject old-style commands in group 0 with a
"BAD_COMMAND" firmware error. We must pretend that such commands were in
the LONG_GROUP instead in order for firmware to accept them.
ok kevlo@
stsp [Thu, 29 Jul 2021 11:52:11 +0000 (11:52 +0000)]
Handle iwx(4) firmware alive response version 5.
ok kevlo@
stsp [Thu, 29 Jul 2021 11:51:39 +0000 (11:51 +0000)]
Recognize "phy integration" and "num stations" TLVs found in new iwx(4)
firmware images. For now, we can simply ignore them while loading firmware.
ok kevlo@
stsp [Thu, 29 Jul 2021 11:50:57 +0000 (11:50 +0000)]
Ignore debug sections present in newer iwx(4) firmware images.
ok kevlo@
stsp [Thu, 29 Jul 2021 11:50:37 +0000 (11:50 +0000)]
Increase fixed limits for the number of iwx(4) command versions, channels,
and microcode sections. Required for loading new firmware images.
ok kevlo@
stsp [Thu, 29 Jul 2021 11:49:53 +0000 (11:49 +0000)]
Declare additional iwx(4) firmware capability and api support flags.
ok kevlo@
schwarze [Thu, 29 Jul 2021 10:13:45 +0000 (10:13 +0000)]
Document X509_STORE_set_verify_func(3), mostly using text from the
OpenSSL 1.1.1 branch, which is still under a free license, tweaked
by me.
While here, garbage collect the weird BUGS section.
patrick [Thu, 29 Jul 2021 09:19:42 +0000 (09:19 +0000)]
Change driver class from DV_DULL to DV_IFNET, so that it can be recognized
as boot interface when doing netboot. This makes auto install/upgrade work.
ok kettenis@ visa@
schwarze [Thu, 29 Jul 2021 09:14:23 +0000 (09:14 +0000)]
document X509_STORE_CTX_get0_parent_ctx(3)
schwarze [Thu, 29 Jul 2021 08:32:13 +0000 (08:32 +0000)]
document X509_STORE_CTX_set_app_data(3) and X509_STORE_CTX_get_app_data(3)
jsg [Thu, 29 Jul 2021 03:15:56 +0000 (03:15 +0000)]
drm/i915/gvt: Clear d3_entered on elsp cmd submission.
From Colin Xu
1df4fe5a8871f49d34d681ff5b7f93a84d50af4b in linux 5.10.y/5.10.54
c90b4503ccf42d9d367e843c223df44aa550e82a in mainline linux
jsg [Thu, 29 Jul 2021 03:12:14 +0000 (03:12 +0000)]
drm/amdgpu: update golden setting for sienna_cichlid
From Likun Gao
fc31b5be1383e31ca046fdd6e11e0a9a0b3a01d5 in linux 5.10.y/5.10.54
3e94b5965e624f7e6d8dd18eb8f3bf2bb99ba30d in mainline linux
jsg [Thu, 29 Jul 2021 03:09:17 +0000 (03:09 +0000)]
drm: Return -ENOTTY for non-drm ioctls
From Charles Baylis
69a603aa170e1c145b93d5d7efcca83a8b1268fe in linux 5.10.y/5.10.54
3abab27c322e0f2acf981595aa8040c9164dc9fb in mainline linux
deraadt [Wed, 28 Jul 2021 20:48:36 +0000 (20:48 +0000)]
A slightly less precise match on the ifconfig output lines works
better for rdomain or metric tuned interfaces
from leon fischer
benno [Wed, 28 Jul 2021 19:39:50 +0000 (19:39 +0000)]
add format attribute to vaararg functions.
millert@ thinks its useful.
benno [Wed, 28 Jul 2021 19:19:38 +0000 (19:19 +0000)]
reference veb(4) bridges in tpmr(4). While there improve the description.
With and ok jmc@
deraadt [Wed, 28 Jul 2021 17:39:22 +0000 (17:39 +0000)]
cleanup some md vs mi differences that accumulated
benno [Wed, 28 Jul 2021 15:45:34 +0000 (15:45 +0000)]
bump rpki-client version to 7.2
schwarze [Wed, 28 Jul 2021 14:48:09 +0000 (14:48 +0000)]
document X509_STORE_CTX_get0_policy_tree(3)
and X509_STORE_CTX_get_explicit_policy(3)
schwarze [Wed, 28 Jul 2021 14:00:33 +0000 (14:00 +0000)]
document X509_policy_tree_free(3)
schwarze [Wed, 28 Jul 2021 13:47:21 +0000 (13:47 +0000)]
consisely explain the meaning of return values rather than merely
refering to child object names defined in the standard
patrick [Wed, 28 Jul 2021 13:43:11 +0000 (13:43 +0000)]
The clocks for the Rockchip Ethernet controller need to be enabled much
earlier. So far we haven't noticed this, as we had the assumption that
all clocks are enabled anyway. On the NanoPi R4S this does not seem to
be the case, so we need to bring the clock enable code closer to the
other bringup code.
ok kettenis@
patrick [Wed, 28 Jul 2021 13:39:39 +0000 (13:39 +0000)]
On some RK3399 boards the firmware disables some of the clocks. Allow
some of those clocks to be enabled.
Noticed on the NanoPi R4S, where the Ethernet controller clocks were
surprisingly turned off.
ok kettenis@
schwarze [Wed, 28 Jul 2021 13:39:20 +0000 (13:39 +0000)]
Explain the meaning of the policy_oids input argument, correct the
description of the *pexplicit_policy output argument and make it
less technical, and drop the mention of the expected_policy_set
because the library provides no accessor function for it.
kettenis [Wed, 28 Jul 2021 13:28:04 +0000 (13:28 +0000)]
Switch to an MI implementation of kmap_atomic() and implement
kmap_atomic_prot(). Use this to unstub ttm_copy_io_ttm_page()
and ttm_copy_ttm_io_page(). This fixes suspend/resume of machines
with certain radeondrm(4) hardware.
Based on a diff from jsg@. Tested by Edd Barrett and Alf Schlichting.
ok jsg@
patrick [Wed, 28 Jul 2021 13:10:28 +0000 (13:10 +0000)]
Add RK3399 PCIe PHY reference clocks.
ok kettenis@
patrick [Wed, 28 Jul 2021 13:04:46 +0000 (13:04 +0000)]
Add RK3399 Type-C PHY clocks.
ok kettenis@
job [Wed, 28 Jul 2021 12:32:14 +0000 (12:32 +0000)]
Add more checks for ROA maxLength values
* maxLength may not be zero or negative
* maxLength can't be lower than the prefixlength of ip_addr
* maxLength can't be higher than the maximum prefix length
OK claudio@
anton [Wed, 28 Jul 2021 09:56:54 +0000 (09:56 +0000)]
Use a more descriptive name for the raw sensor which reflects the number
of battery levels the device can report.
anton [Wed, 28 Jul 2021 09:55:58 +0000 (09:55 +0000)]
Delay installation of sensors until a device with battery support is
connected. Allows sensorsd(8) to pick up hotplugged devices.
Thanks to Laurence Tratt <laurie at tratt dot net> for the report.
anton [Wed, 28 Jul 2021 07:57:10 +0000 (07:57 +0000)]
fix broken small build; ok florian@
jmc [Wed, 28 Jul 2021 07:37:04 +0000 (07:37 +0000)]
explicitely -> explicitly;
tb [Wed, 28 Jul 2021 07:36:06 +0000 (07:36 +0000)]
Fix previous: In one spot I incorrectly used Pos (unsigned short) where
I should have used Byte (unsigned char) which led to passing twice the
correct size to free.
Found & tested by bluhm with the sys/netinet/ipsec tests on i386.
nicm [Wed, 28 Jul 2021 07:06:54 +0000 (07:06 +0000)]
Make window-linked and window-unlinked window options, GitHub issue
2790.
jmc [Wed, 28 Jul 2021 05:57:42 +0000 (05:57 +0000)]
no need to talk about version 2 with the -Q option, so rewrite the
text to read better;
issue reported by debian at helgefjell de
ok djm dtucker
job [Wed, 28 Jul 2021 00:46:05 +0000 (00:46 +0000)]
Remove outdated information
deraadt [Tue, 27 Jul 2021 23:00:43 +0000 (23:00 +0000)]
sync
krw [Tue, 27 Jul 2021 18:35:30 +0000 (18:35 +0000)]
Having 'taken charge' of the interface by eliminating other
dhclient instances for the interface, check if the IPv4
AUTOCONF flag is set. If it is, go quietly into that good
night and let dhcpleased do its thing, comforted by the fact
that dhcpleased knows that a new lease has been requested.
requested, tested & ok florian@
millert [Tue, 27 Jul 2021 18:28:19 +0000 (18:28 +0000)]
POSIX mandates that -F str be treated the same as -v FS=str.
For a null string, this was not the case. Since awk(1) documents
that a null string for FS has a specific behavior, make -F '' behave
consistently with -v FS="". https://github.com/onetrueawk/awk/pull/128
florian [Tue, 27 Jul 2021 18:17:37 +0000 (18:17 +0000)]
Please muscle memory when dhclient $if is run and request a new lease.
An upcoming diff for dhclient(8) will make it exit when it discovers
an autoconf flag at startup.
"Quite a pleasing diff." deraadt@
mvs [Tue, 27 Jul 2021 17:13:03 +0000 (17:13 +0000)]
Revert "Use per-CPU counters for tunnel descriptor block" diff.
Panic reported by Hrvoje Popovski.
florian [Tue, 27 Jul 2021 14:38:36 +0000 (14:38 +0000)]
Improve markup.
Suggested by schwarze
jmc [Tue, 27 Jul 2021 14:28:46 +0000 (14:28 +0000)]
word fix; reported by debian at helgefjell de
jmc [Tue, 27 Jul 2021 14:14:25 +0000 (14:14 +0000)]
standardise the grammar in the options list;
issue reported by debian at helgefjell de
ok dtucker djm
jmc [Tue, 27 Jul 2021 14:12:41 +0000 (14:12 +0000)]
zap trailing comma in SEE ALSO;
mglocker [Tue, 27 Jul 2021 13:36:59 +0000 (13:36 +0000)]
Implemented from the Linux driver:
* Introduce split transaction order queues.
* Improve the NAK interrupt handler routine.
* Mostly move from list_move() to list_move_tail().
Those changes fix an attachment problem seen for certain devices which
are issuing NAK interrupts during split transactions, which don't get
handled correctly by the driver today. This could result in unexpected
channel halting, printing "ChHltd set, but reason is unknown", which
finally leaves the device back on a disabled USB port.
ok kettenis@
deraadt [Tue, 27 Jul 2021 13:28:25 +0000 (13:28 +0000)]
'{' and '}' are fixed parts of the 'interface' decleration', not optional.
concern raised by kn.
ok florian