hastings [Thu, 10 Mar 2022 07:12:13 +0000 (07:12 +0000)]
Inform fw_update(8) about mtw(4) pattern.
ok jsg@
tb [Thu, 10 Mar 2022 04:39:49 +0000 (04:39 +0000)]
Simple regress for NULL deref reported by Guido Vranken and fixed in
bn_exp2.c r1.13.
jsg [Thu, 10 Mar 2022 03:09:55 +0000 (03:09 +0000)]
authentcation -> authentication
jsg [Thu, 10 Mar 2022 01:56:02 +0000 (01:56 +0000)]
tansformed -> transformed
jsg [Thu, 10 Mar 2022 01:45:30 +0000 (01:45 +0000)]
immediatly -> immediately
jsg [Thu, 10 Mar 2022 01:39:55 +0000 (01:39 +0000)]
verion -> version
jsg [Thu, 10 Mar 2022 00:55:50 +0000 (00:55 +0000)]
unsusual -> unusual
jsg [Wed, 9 Mar 2022 22:39:12 +0000 (22:39 +0000)]
spelling/wording
ok afresh1@
bluhm [Wed, 9 Mar 2022 19:22:19 +0000 (19:22 +0000)]
Update libexpat to 2.4.7. Relevant for OpenBSD are bug fixes #572
#577 and other changes #577 #579 #575 #574 #569 #571. No library
bump necessary.
tested and OK tb@
claudio [Wed, 9 Mar 2022 17:29:52 +0000 (17:29 +0000)]
Change the logic around rounding up the needed memory for sysctls since
the network state can change between the two sysctl calls. Adding 10%
extra works for larger routing tables but can be too little on smaller
tables to hold even a single extra message. Instead of that add at least
1024 bytes or 10% (whichever is bigger) and round the size up to the next
page. With this there are no more sporadic errors in the bgpd integration
tests.
OK sthen@
jsg [Wed, 9 Mar 2022 13:50:41 +0000 (13:50 +0000)]
bandwith -> bandwidth
espie [Wed, 9 Mar 2022 12:27:51 +0000 (12:27 +0000)]
fix a minor bug that's going to become more relevant: mark cwds as
"already" extracted like meta information, so that they end in partial
packages
jsg [Wed, 9 Mar 2022 12:19:25 +0000 (12:19 +0000)]
Idenfitier -> Identifier
stsp [Wed, 9 Mar 2022 11:38:51 +0000 (11:38 +0000)]
Improve stability of roaming on iwn(4), in particular with wpa_supplicant.
Clear HT-related rxon flags in firmware when switching away from RUN
or ASSOC state. This avoids fatal firmware errors.
When starting a scan, set link state down and clear ic_bss before
sending the scan command to the device, not after.
tested by mbuhl@ on eduroam
ok mbuhl@
mortimer [Wed, 9 Mar 2022 00:09:45 +0000 (00:09 +0000)]
Arm is not ready for unwinding yet. Disable unwind info generation for now.
ok deraadt@
bluhm [Tue, 8 Mar 2022 22:30:38 +0000 (22:30 +0000)]
In IPsec policy replace integer refcount with atomic refcount.
OK tobhe@ mvs@
nicm [Tue, 8 Mar 2022 22:14:25 +0000 (22:14 +0000)]
With -f use percentages of window size not pane size, GitHub issue 2866.
nicm [Tue, 8 Mar 2022 21:58:37 +0000 (21:58 +0000)]
Fix user hooks (which are strings not arrays).
sashan [Tue, 8 Mar 2022 20:46:01 +0000 (20:46 +0000)]
merge iack_mtx, upd_c_mtx, del_mtx, ins_mtx and upd_mtx mutexes into single
mutex st_mtx. This simplifies pf(4) state handling in pfsync(4). It also
makes it more reliable.
OK bluhm@
anton [Tue, 8 Mar 2022 19:32:41 +0000 (19:32 +0000)]
also use the device name in ucc_intr() debug output
nicm [Tue, 8 Mar 2022 18:31:46 +0000 (18:31 +0000)]
Add remain-on-exit-format to set text shown when pane is dead.
claudio [Tue, 8 Mar 2022 17:20:52 +0000 (17:20 +0000)]
Add a sleep when starting the bgpd daemons so that there is less chance
for a connection collision.
tb [Tue, 8 Mar 2022 16:59:25 +0000 (16:59 +0000)]
Some more c99 initializers for consistency and readability
visa [Tue, 8 Mar 2022 16:13:08 +0000 (16:13 +0000)]
Make cad(4) handle rxr ioctl.
hastings [Tue, 8 Mar 2022 15:08:01 +0000 (15:08 +0000)]
Enable mtw(4) in the build for amd64.
Firmware is available via fw_update(8).
ok stsp@
tb [Tue, 8 Mar 2022 13:02:42 +0000 (13:02 +0000)]
Avoid leak of roa in rtr_parse_ipv{4,6}_prefix()
If the length checks trigger, roa is leaked. Pull the length checks
above the allocation, which makes more sense and avoids additional
free(roa).
ok claudio
claudio [Tue, 8 Mar 2022 12:58:57 +0000 (12:58 +0000)]
No need to print fetchtable twice in this error message.
anton [Tue, 8 Mar 2022 12:47:33 +0000 (12:47 +0000)]
use the device name in debug output
nicm [Tue, 8 Mar 2022 12:01:19 +0000 (12:01 +0000)]
Add argument to refresh-client -l to forward clipboard to a pane. GitHub
issue 3068.
nicm [Tue, 8 Mar 2022 11:28:40 +0000 (11:28 +0000)]
Add formats for client and server UID and user (for multiuser setups).
claudio [Tue, 8 Mar 2022 07:50:34 +0000 (07:50 +0000)]
Start bgpd in rdomain 1 a bit earlier to avoid session establishment
conflicts.
jmatthew [Tue, 8 Mar 2022 06:56:14 +0000 (06:56 +0000)]
Handle rxrinfo ioctl.
ok dlg@
hastings [Tue, 8 Mar 2022 06:05:58 +0000 (06:05 +0000)]
Add missing byteswap to mtw_write_cfg().
Fixes loading firmware on big-endian machines.
ok stsp@, jmatthew@
deraadt [Tue, 8 Mar 2022 04:03:19 +0000 (04:03 +0000)]
sync
jsg [Tue, 8 Mar 2022 00:13:19 +0000 (00:13 +0000)]
remove files used by isa radio drivers removed in 2016
lm700x: az, rt
tc921x: sfr
pt2254a: sfr, sf2r
jsg [Mon, 7 Mar 2022 23:40:53 +0000 (23:40 +0000)]
remove WD33C93 SCSI code
used by wdsc on sgi (removed in 2021)
ok krw@
deraadt [Mon, 7 Mar 2022 21:43:00 +0000 (21:43 +0000)]
grow diskspace
dv [Mon, 7 Mar 2022 18:52:16 +0000 (18:52 +0000)]
vio(4): use NULL instead of 0 with sc_{rx,tx}_mbuf pointer array.
ok millert@, deraadt@
dv [Mon, 7 Mar 2022 14:17:47 +0000 (14:17 +0000)]
Resolve clang unused-but-set warnings in vmd's vioscsi.c.
A few of the vioscsi functions have debug logging in DPRINTF's and
are the only use of some declared variables. This tucks any debug-only
variables into the DPRINTF or behind an #if DEBUG.
ok from deraadt@ caveated I don't add code before any declarations.
visa [Mon, 7 Mar 2022 13:02:53 +0000 (13:02 +0000)]
Prevent deadlock in cad_down()
Introduce an rwlock to serialize cad(4) ioctl operations so that
cad_down() can release NET_LOCK() temporarily when invoking barriers.
This releasing prevents a possible deadlock with the taskq barrier.
The deadlock was pointed out by witness(4).
In addition, release NET_LOCK() when allocating memory in cad_up()
to reduce the risk of ill effects.
nicm [Mon, 7 Mar 2022 11:52:09 +0000 (11:52 +0000)]
Pass client when adding menu item, GitHub issue 3103.
kettenis [Mon, 7 Mar 2022 11:08:13 +0000 (11:08 +0000)]
Since AIC2 uses 4 interrupt cells we need to adjust the code that handles
the "msi-ranges" property and converts it into a proper interrupt descriptor
for MSIs.
ok jsg@
ratchov [Mon, 7 Mar 2022 09:04:45 +0000 (09:04 +0000)]
Switch internal sample representation to 24-bit fixed-point
Note that this also changes the default file encoding to 24-bit.
ratchov [Mon, 7 Mar 2022 08:58:33 +0000 (08:58 +0000)]
Switch internal sample representation to 24-bit fixed-point.
The default device precision doesn't change (yet), i.e. we still
request the usual 16-bit mode, when available. Hardware supporting
24-bit samples only gets end-to-end 24-bit processing by default.
ok kettenis
stsp [Mon, 7 Mar 2022 08:13:13 +0000 (08:13 +0000)]
rename net80211 ioctl struct ieee80211_channel to struct ieee80211_chaninfo
ioctls should use dedicated names for their structs, but SIOCG80211ALLCHANS
duplicated struct ieee80211_channel. We cannot make changes to the kernel's
version of ieee80211_channel while an ioctl is squatting on the struct name.
Helpful guidance from deraadt@
Tested in a ports bulk build by sthen@, and tested by Mikhail.
ok sthen@
bcook [Mon, 7 Mar 2022 04:11:24 +0000 (04:11 +0000)]
bump for LibreSSL 3.5.1
chrisz [Sun, 6 Mar 2022 22:08:51 +0000 (22:08 +0000)]
Add JMICRON JMB58x ahci
ok dlg@
kettenis [Sun, 6 Mar 2022 19:35:22 +0000 (19:35 +0000)]
Simple move firmware subdirectory in place as suggested by deraadt@
Improved chicken scratches from tb@
kettenis [Sun, 6 Mar 2022 19:09:29 +0000 (19:09 +0000)]
Fetch bwfm(4) firmware from the EFI System Partition on Apple Silicon
devices and copy it into the right directory on the ramdisk such that it
can be used in the installer. And copy it in place at the end of the
install procedure such that it is available for use in the newly installed
system.
ok deraadt@
kettenis [Sun, 6 Mar 2022 18:52:47 +0000 (18:52 +0000)]
Look for firmware for Apple Silicon devices in /etc/firmware/apple-bwfm.
ok deraadt@
bluhm [Sun, 6 Mar 2022 15:24:50 +0000 (15:24 +0000)]
Usually we check ipsec_in_use as shortcut to avoid IPsec lookups,
but that does not work when coming from tcp_output() as inp != NULL.
This seems to be done to block packets from sockets with options
in inp_seclevel. But instead of doing the route lookup, go directly
to ipsp_spd_inp() where the socket policy checks are done. Calling
rtable_l2() before the shortcut also costs a bit, do it when needed.
OK tobhe@
deraadt [Sun, 6 Mar 2022 15:12:00 +0000 (15:12 +0000)]
oops, typo, spotted by Mikhail
kettenis [Sun, 6 Mar 2022 12:16:27 +0000 (12:16 +0000)]
Convert KVA allocation to km_alloc(9).
ok mpi@
jsg [Sun, 6 Mar 2022 08:40:34 +0000 (08:40 +0000)]
remove unused usbdev and btbus attributes
deraadt [Sat, 5 Mar 2022 17:00:14 +0000 (17:00 +0000)]
Add an activate() function with DVACT_QUIESCE & DVACT_RESUME hooks
(this has succesfully unhibernated a server machine)
ok dlg
deraadt [Sat, 5 Mar 2022 16:58:35 +0000 (16:58 +0000)]
Improve wording for trying S5 instead of S4
jsing [Sat, 5 Mar 2022 14:16:13 +0000 (14:16 +0000)]
Add test coverage for i2a_ASN1_OBJECT()
aoyama [Sat, 5 Mar 2022 11:03:30 +0000 (11:03 +0000)]
Move initial ROM console related codes into separated luna88k/romcons.c
file.
No functional change, tested by me.
jsg [Sat, 5 Mar 2022 10:43:32 +0000 (10:43 +0000)]
#if INET6 -> #ifdef INET6 to be consistent
jsg [Sat, 5 Mar 2022 09:50:49 +0000 (09:50 +0000)]
remove fddi leftover
no binary change
bket [Sat, 5 Mar 2022 07:13:48 +0000 (07:13 +0000)]
Fix typo in comment
OK tb@
aoyama [Sat, 5 Mar 2022 06:59:12 +0000 (06:59 +0000)]
Move CPU-CMMU association report into #ifdef DEBUG section.
This was useful in early days of porting OpenBSD to LUNA-88K, but now
more detailed information is shown in dmesg.
Tested by me.
afresh1 [Fri, 4 Mar 2022 22:53:05 +0000 (22:53 +0000)]
Put back local patch to avoid regenerating tests
This was r1.2 and accidentally lost in the update to Devel::PPPort 3.64.
kettenis [Fri, 4 Mar 2022 22:34:41 +0000 (22:34 +0000)]
Add support for the BCM4387. The firmware for this variant uses a new scan
command, which is indicated by the "scan_ver" firmware variable.
ok patrick@
bluhm [Fri, 4 Mar 2022 21:09:03 +0000 (21:09 +0000)]
in_addmulti() is only called from ioctl(2) or setsockopt(2). Wait
for malloc(9) to make the system call reliable.
OK mvs@
bluhm [Fri, 4 Mar 2022 20:35:10 +0000 (20:35 +0000)]
in_pcbinit() is called during boot. There malloc(9) cannot fail,
but would panic instead of waiting. Remove needless error handling.
OK mvs@
deraadt [Fri, 4 Mar 2022 18:14:20 +0000 (18:14 +0000)]
fix year, from mikhail
gnezdo [Fri, 4 Mar 2022 16:46:23 +0000 (16:46 +0000)]
Report versioned lib.so in cc --print-file-name given short name
E.g. `cc --print-file-name libc.so` reports /usr/lib/libc.so.96.1
This is a complement of the major.minor finding logic in DriverUtils.
`ld -lc -L/usr/lib` currently find the libraries with this logic.
To make things more obviously related the code was extracted into a
function which was copied over verbatim.
fine with mortimer@
ok patrick@
claudio [Fri, 4 Mar 2022 11:01:15 +0000 (11:01 +0000)]
Make the regress test more reliable by starting the bgpd instances further
apart from each other. bgpd's connection collision avoidance is not optimal
and in that case the regress test timeous out before the session is up.
tb [Fri, 4 Mar 2022 08:47:53 +0000 (08:47 +0000)]
Document LOGIN_SETRTABLE
ok deraadt millert tedu
tb [Fri, 4 Mar 2022 05:37:21 +0000 (05:37 +0000)]
Revert previous and add LOGIN_SETENV and LOGIN_SETRTABLE
Instead of only adding LOGIN_SETENV and LOGIN_SETRTABLE, LOGIN_SETALL
also includes LOGIN_SETLOGIN, which had the unintended side effect of
breaking logname(1).
ok deraadt tedu
deraadt [Fri, 4 Mar 2022 01:46:07 +0000 (01:46 +0000)]
Only provide the .gz file if timestamp is >= the non-gzip file. Make
sure it is a regular file. Use the timestamp of the non-gzip file as
the last-modified timestamp, as proposed by claudio.
ok claudio bluhm millert
krw [Thu, 3 Mar 2022 19:10:13 +0000 (19:10 +0000)]
r1.241 was the culprit. Unrevert r1.240.
florian [Thu, 3 Mar 2022 18:54:07 +0000 (18:54 +0000)]
Use LDNS_RCODE define; no functional change
krw [Thu, 3 Mar 2022 16:52:07 +0000 (16:52 +0000)]
Revert r1.241 and r1.240 which may have broken softraid.
claudio [Thu, 3 Mar 2022 13:10:53 +0000 (13:10 +0000)]
Stub rde_send_kroute() reminded by tb@
claudio [Thu, 3 Mar 2022 13:06:15 +0000 (13:06 +0000)]
Move rde_send_kroute() from rde_generate_updates() to prefix_evaluate().
rde_generate_updates() should only handle RIB updates and the logic
for rde_send_kroute() may change in the future.
Refactor code to simplify it a bit and make it clear that to delete a
prefix from the FIB only the prefix/len is needed.
OK tb@
tb [Thu, 3 Mar 2022 11:29:05 +0000 (11:29 +0000)]
Pull a len == 0 check up before malloc(len) to avoid implementation
defined behavior.
ok deraadt inoguchi
claudio [Thu, 3 Mar 2022 11:19:41 +0000 (11:19 +0000)]
Remove the labelid from struct kroute_full. It was never really used.
The label is passed as a string in kroute_full.
Ok tb@
sdk [Thu, 3 Mar 2022 10:12:08 +0000 (10:12 +0000)]
Pick correct firmware directory. Read the target kernel version and use
the release directory for everything except -current.
OK afresh1@
nicm [Thu, 3 Mar 2022 08:24:12 +0000 (08:24 +0000)]
Allow optional arguments.
tb [Thu, 3 Mar 2022 08:06:57 +0000 (08:06 +0000)]
Do not write out terminating NUL in i2a_ASN1_OBJECT()
The conversion to CBB made us write out an extra NUL since we no longer
use the return value of i2t_ASN1_OBJECT() (which returns strlen(data))
but rather the size of the CBB (which includes a terminal NUL) to write
out data.
Issue found by anton via an openssl-ruby test failure.
ok jsing
deraadt [Wed, 2 Mar 2022 23:27:43 +0000 (23:27 +0000)]
struct stat from early file inspection was being used after actual file
open() which means the stat could refer to the wrong file. Mostly this
relates to st_size use. This bug could mean that httpd sends new files
truncated to the old length, saying "I am sure you have the correct file now"?
Could have other bad effects.
ok tb millert bluhm
bluhm [Wed, 2 Mar 2022 21:30:58 +0000 (21:30 +0000)]
Use NULL instead of 0 for pointer.
bluhm [Wed, 2 Mar 2022 20:16:43 +0000 (20:16 +0000)]
Merge two comments describing the locks into one.
tb [Wed, 2 Mar 2022 19:52:19 +0000 (19:52 +0000)]
Simplify .gz handling a bit
Combine strlcpy + strlcat into a single snprintf and remove a few
unnecessary parentheses.
ok deraadt millert
tb [Wed, 2 Mar 2022 17:53:03 +0000 (17:53 +0000)]
Unwrap a line
krw [Wed, 2 Mar 2022 17:47:11 +0000 (17:47 +0000)]
Abstract the memory allocation, scsibus_softc data copying and
flag setting bits of creating a scsi_link into scsi_alloc_link().
Shrinks the bloated scsi_probe_link() a bit, makes it possible to
eventually create a useable scsi_link even when scsi_probe_link()
can't attach a device.
Developed from part of a diff submitted by Scott Nicholas via
tech@.
tb [Wed, 2 Mar 2022 17:45:39 +0000 (17:45 +0000)]
whitespace
jsing [Wed, 2 Mar 2022 17:39:56 +0000 (17:39 +0000)]
Provide additional ASN1_OBJECT test coverage.
claudio [Wed, 2 Mar 2022 16:51:43 +0000 (16:51 +0000)]
Adapt prefix_adjout_update() the same way as prefix_adjout_withdraw()
and to the accounting in the function.
OK tb@
kettenis [Wed, 2 Mar 2022 16:35:49 +0000 (16:35 +0000)]
The firmware for the bwfm(4) variants in Apple Silicon Macs has variants
for different module types, module vendors and module revisions. Make
our driver use the same naming scheme as Asahi Linux.
ok patrick@
claudio [Wed, 2 Mar 2022 14:49:25 +0000 (14:49 +0000)]
Correct prefix_adjout_destroy() prototype
claudio [Wed, 2 Mar 2022 14:44:46 +0000 (14:44 +0000)]
Refactor prefix_adjout_withdraw()
Just pass the prefix to be withdrawn to the function and move the lookup
up. Adjust how the various accounting vars are updated so that the
values are decremented in the right cases. Do the same accounting dance
for prefix_adjout_destroy(). Adjust rde_up_flush_upcall() to directly
call prefix_adjout_withdraw() without calling it via up_generate_updates().
OK tb@
krw [Wed, 2 Mar 2022 13:58:08 +0000 (13:58 +0000)]
Move the code obtaining the LUN 0 scsi_link used to determine the
LUNs available to a target into scsi_get_target_luns(). Clearer
code and prep for future changes.
No functional change.
Extracted from a larger diff submitted by Scott Nicholas via
tech@.
jsg [Wed, 2 Mar 2022 13:09:56 +0000 (13:09 +0000)]
drm/i915/dg2: Print PHY name properly on calibration error
From Matt Roper
d064d0c39405a7f0fc76d9b70ce9fb3bf434fe05 in linux 5.15.y/5.15.26
28adef861233c6fce47372ebd2070b55eaa8e899 in mainline linux
jsg [Wed, 2 Mar 2022 13:07:51 +0000 (13:07 +0000)]
drm/edid: Always set RGB444
From Maxime Ripard
143dafa60aa7f0894a8f1b63b001e3a6f30169a0 in linux 5.15.y/5.15.26
ecbd4912a693b862e25cba0a6990a8c95b00721e in mainline linux
jsg [Wed, 2 Mar 2022 13:06:03 +0000 (13:06 +0000)]
drm/i915: Fix bw atomic check when switching between SAGV vs. no SAGV
From Ville Syrjala
0726fca0b6cc26a9ee6b0a0ac8984b8be0c62fb8 in linux 5.15.y/5.15.26
ec663bca9128f13eada25cd0446e7fcb5fcdc088 in mainline linux
jsg [Wed, 2 Mar 2022 13:04:05 +0000 (13:04 +0000)]
drm/i915: Correctly populate use_sagv_wm for all pipes
From Ville Syrjala
1b4445e09df83c397343ef8ab6b3ab560a4831ff in linux 5.15.y/5.15.26
afc189df6bcc6be65961deb54e15ec60e7f85337 in mainline linux
jsg [Wed, 2 Mar 2022 13:01:22 +0000 (13:01 +0000)]
drm/i915: Widen the QGV point mask
From Ville Syrjala
7782e3c4e5390d217604a73a095db14d48c8b714 in linux 5.15.y/5.15.26
3f33364836aacc28cd430d22cf22379e3b5ecd77 in mainline linux