jsg [Sun, 20 Feb 2022 15:21:15 +0000 (15:21 +0000)]
John P. Wittkowski -> John P. Wittkoski
matches adb.c and adb(4)
jsg [Sun, 20 Feb 2022 15:01:03 +0000 (15:01 +0000)]
Wildire -> Wildfire
jsing [Sun, 20 Feb 2022 13:47:53 +0000 (13:47 +0000)]
Test OBJ_obj2txt() with NULL and short buffers.
dtucker [Sun, 20 Feb 2022 03:47:26 +0000 (03:47 +0000)]
Aproximate realpath on the expected output by deduping leading slashes.
Fixes test failure when user's home dir is / which is possible in some
portable configurations.
deraadt [Sun, 20 Feb 2022 00:09:29 +0000 (00:09 +0000)]
sys/proc.h requires sys/signal.h (will become visible when sys/param.h
is removed)
deraadt [Sat, 19 Feb 2022 23:57:09 +0000 (23:57 +0000)]
The suspend/resume code sleeps-not-allowed phases are protected with
cold=2. Use the same strategy in a a similar phase during hibernate.
deraadt [Sat, 19 Feb 2022 23:56:18 +0000 (23:56 +0000)]
tsleep() prints a stack trace when cold==2. The suspend/resume code has
phases where sleeps are not allowed, and this used to discover it.
msleep() needs the same check.
jsg [Sat, 19 Feb 2022 23:45:51 +0000 (23:45 +0000)]
don't refer to disks as daughter devices
ok jmc@
krw [Sat, 19 Feb 2022 22:08:27 +0000 (22:08 +0000)]
The 'e' command of the simple editor has not provided editing of
'interleave' or 'rpm' since the disklabel fields d_interleave and
d_rpm were 'recycled' to make room for duid's in April, 2010.
jsing [Sat, 19 Feb 2022 16:00:57 +0000 (16:00 +0000)]
Add memory BIO small I/O tests.
jsing [Sat, 19 Feb 2022 16:00:14 +0000 (16:00 +0000)]
Remove references to performance issues caused by frequent memmove().
ok inoguchi@ tb@
jsing [Sat, 19 Feb 2022 15:59:12 +0000 (15:59 +0000)]
Reduce memmoves in memory BIOs.
Currently, a read/write memory BIO pulls up the data via memmove() on each
read. This becomes very expensive when a lot of small reads are performed,
especially if there is a reasonable amount of data stored in the memory
BIO.
Instead, store a read offset into the buffer and only perform a memmove()
to pull up the data on a write, if we have read more than 4096 bytes. This
way we only perform memmove() when the space saving will potentially be of
benefit, while avoiding frequent memmove() in the case of small interleaved
reads and writes.
Should address oss-fuzz #19881.
ok inoguchi@ tb@
jsg [Sat, 19 Feb 2022 13:09:36 +0000 (13:09 +0000)]
certificiate -> certificate
jsg [Sat, 19 Feb 2022 12:23:45 +0000 (12:23 +0000)]
mininumu -> minimum
jsg [Sat, 19 Feb 2022 10:17:39 +0000 (10:17 +0000)]
remove outdated contact details for ActivCard and CRYPTOCard
jsg [Sat, 19 Feb 2022 09:12:09 +0000 (09:12 +0000)]
remove redundant swap encryption text
visa [Sat, 19 Feb 2022 08:33:28 +0000 (08:33 +0000)]
Use installboot(8) in install.md of armv7.
OK kettenis@ deraadt@
jsing [Sat, 19 Feb 2022 08:11:16 +0000 (08:11 +0000)]
Provide a struct bio_mem for memory BIO specific data.
In order to fix and improve the memory BIO, we need to be able to track
more than just a single BUF_MEM *. Provide a struct bio_mem (which
currently only contains a BUF_MEM *) and rework the internals to use this
struct.
ok inoguchi@ tb@
afresh1 [Sat, 19 Feb 2022 02:19:42 +0000 (02:19 +0000)]
Ignore sitelib in perl snippet
All base tools should be doing that and I forgot.
While here remove the no longer necessary TERM handler,
it was only needed so a TERM signal would still trigger the END block.
jsg [Fri, 18 Feb 2022 23:17:13 +0000 (23:17 +0000)]
Avoid gendered language in man pages when not referring to a specific
person. Rewrite or use singular they.
ok thfr@ sthen@ daniel@ ian@ job@ kmos@ jcs@ ratchov@ phessler@ and
others I'm likely missing on an earlier version.
feedback tj@, feedback and ok jmc@
deraadt [Fri, 18 Feb 2022 22:54:13 +0000 (22:54 +0000)]
apmd should replace /etc/random.seed for hibernate-resumes (and also
chmod 600 the file to remove the t-bit that the bootblocks set when
the file is used)
comments from naddy
deraadt [Fri, 18 Feb 2022 20:20:23 +0000 (20:20 +0000)]
sync
krw [Fri, 18 Feb 2022 19:26:40 +0000 (19:26 +0000)]
writelabel() only needs one prototype.
krw [Fri, 18 Feb 2022 17:45:43 +0000 (17:45 +0000)]
Move prototypes for checklabel(), readlabel() and parselabel()
into disklabel.c since editor.c and dkcksum.c have no need to
know.
jsing [Fri, 18 Feb 2022 17:30:13 +0000 (17:30 +0000)]
Clean up and simplify memory BIO code.
This is a first pass that uses sensible and consistent names for variables.
Call the BIO 'bio' (instead of 'a', 'b', 'bp', or 'h'), drop a bunch of
unnecessary casts, simplify some logic and add additional error checking.
With input from and ok tb@
millert [Fri, 18 Feb 2022 17:02:06 +0000 (17:02 +0000)]
Enable TLS verify by default for outbound "smtps://" and "smtp+tls://".
This restores the documented behavior that was broken by the fix
for opportunistic TLS. OK semarie@.
millert [Fri, 18 Feb 2022 16:57:36 +0000 (16:57 +0000)]
Revert changes to use the new libtls signer api
There are bugs in the new libtls signer that can lead to a crash.
OK tb@ jsing@
krw [Fri, 18 Feb 2022 16:16:11 +0000 (16:16 +0000)]
No need for makebootarea() prototype as makebootarea() perished with NUMBOOT in
2015 (r1.211).
robert [Fri, 18 Feb 2022 15:22:22 +0000 (15:22 +0000)]
shut apmd up while the battery is coming to the full capacity when charging
to avoid filling up syslog with unnecessary information
ok tb@
visa [Fri, 18 Feb 2022 10:52:32 +0000 (10:52 +0000)]
Build gpioctl(8) on riscv64.
OK kettenis@
visa [Fri, 18 Feb 2022 10:51:43 +0000 (10:51 +0000)]
Add mpfgpio(4), a driver for the PolarFire SoC MSS GPIO controller.
Feedback and OK kettenis@
jsg [Fri, 18 Feb 2022 10:24:32 +0000 (10:24 +0000)]
prefer https links in man pages
ok gnezdo@ miod@ jmc@
kettenis [Fri, 18 Feb 2022 09:04:38 +0000 (09:04 +0000)]
Convert KVA allocation to km_alloc(9).
ok mpi@
dlg [Fri, 18 Feb 2022 03:22:27 +0000 (03:22 +0000)]
dont bother running ethernet multicast ioctl handlers.
while here turn ENETRESET into 0 in the ioctl path. there's no
hardware to reset.
mlarkin [Fri, 18 Feb 2022 02:21:24 +0000 (02:21 +0000)]
Extra whitespace removal. No code change.
ok jsg@
jsg [Fri, 18 Feb 2022 02:20:33 +0000 (02:20 +0000)]
update 21c3 link
jsg [Fri, 18 Feb 2022 02:11:56 +0000 (02:11 +0000)]
remove squatted link
jsg [Fri, 18 Feb 2022 02:07:15 +0000 (02:07 +0000)]
remove dead link
jsg [Fri, 18 Feb 2022 01:41:17 +0000 (01:41 +0000)]
grammar/reword
ok jmc@
dlg [Fri, 18 Feb 2022 01:27:39 +0000 (01:27 +0000)]
fix inverted check of running when changing tunnel rdomain.
you should only be able to change the tunnel rdomain when the
interface is down. i was accidentally make sure you could only
change the rdomain when the interface was up.
dlg [Fri, 18 Feb 2022 00:46:42 +0000 (00:46 +0000)]
only unwind multicast when in learning mode.
found by bluhm@ when he ran the regress tests.
jca [Fri, 18 Feb 2022 00:39:18 +0000 (00:39 +0000)]
Hint: people who want to use ubsan can use the ubsan_minimal runtime
Input & ok gnezdo@
jsg [Fri, 18 Feb 2022 00:15:53 +0000 (00:15 +0000)]
grammar
jsing [Thu, 17 Feb 2022 18:51:58 +0000 (18:51 +0000)]
Add tests for memory BIO.
deraadt [Thu, 17 Feb 2022 17:22:22 +0000 (17:22 +0000)]
remove unused include files
deraadt [Thu, 17 Feb 2022 17:17:09 +0000 (17:17 +0000)]
If S4 is not available, use S5 for the ACPI-transitions in hibernate support.
A bunch of servers work now.
Really close to a 3-line diff...
ok kettenis
phessler [Thu, 17 Feb 2022 16:28:37 +0000 (16:28 +0000)]
binutils-2.17 does not have ld or gas available for the aarch64, powerpc64, or
riscv64 family of platforms, so we don't try to build there.
However we mis-nested the arch check, causing some unintended side effects,
most notably installing binutils-2.17's ar(1) which overwrote the
intended llvm-ar(1).
Fix the if nesting so it only applies where intended.
tested on aarch64 by me, powerpc64 by gkoehler@, and riscv64 by jca@
OK miod@ robert@ gkoehler@ jca@
jsg [Thu, 17 Feb 2022 14:08:11 +0000 (14:08 +0000)]
new sentence, new line
jsg [Thu, 17 Feb 2022 12:24:08 +0000 (12:24 +0000)]
remove some dead/squatted links
djm [Thu, 17 Feb 2022 10:58:27 +0000 (10:58 +0000)]
check for EINTR/EAGAIN failures in the rfd fast-path;
caught by dtucker's minix3 vm :) ok dtucker@
nicm [Thu, 17 Feb 2022 09:58:47 +0000 (09:58 +0000)]
Add a window-resized hook which is fired when the window is actually
resized which may be later than the client resize, GitHub issue 2995.
bluhm [Thu, 17 Feb 2022 09:24:56 +0000 (09:24 +0000)]
Regenerate ppport.h of Term::ReadKey using Devel::PPPort 3.64 to
avoid -Wno-compound-token-split-by-macro warnings from clang 13.
OK afresh1@
jsg [Thu, 17 Feb 2022 05:32:09 +0000 (05:32 +0000)]
drm/amd/pm: fix hwmon node of power1_label create issue
From Yang Wang
dcd1c46634697d200c7012d5047302355dce098f in linux 5.15.y/5.15.24
a8b1e8636a3252daa729762b2e3cc9015cc91a5c in mainline linux
jsg [Thu, 17 Feb 2022 05:29:41 +0000 (05:29 +0000)]
drm/i915: Populate pipe dbuf slices more accurately during readout
From Ville Syrjala
ac14a51c31693e11947f9b4e36c84558368fe089 in linux 5.15.y/5.15.24
85bb289215cf37e05e9581b39b114db1293f9ecd in mainline linux
jsg [Thu, 17 Feb 2022 05:26:18 +0000 (05:26 +0000)]
drm/i915: Allow !join_mbus cases for adlp+ dbuf configuration
From Ville Syrjala
8d6a31b83cddd5c3429def795ba7ec8fdaf4541d in linux 5.15.y/5.15.24
8fd5a26e43859547790a7995494c952b708ab3b5 in mainline linux
jsg [Thu, 17 Feb 2022 05:23:06 +0000 (05:23 +0000)]
drm/amdgpu/display: change pipe policy for DCN 2.0
From Alex Deucher
c1af59449d80a4f642dbe64fd8be7c1ce86fc2cf in linux 5.15.y/5.15.24
6e7545ddb13416fd200e0b91c0acfd0404e2e27b in mainline linux
jsg [Thu, 17 Feb 2022 05:20:32 +0000 (05:20 +0000)]
drm/amd/display: Correct MPC split policy for DCN301
From Zhan Liu
a277422a8d975966de1bd3351cc6cfd8718a166d in linux 5.15.y/5.15.24
ac46d93235074a6c5d280d35771c23fd8620e7d9 in mainline linux
jsg [Thu, 17 Feb 2022 05:17:30 +0000 (05:17 +0000)]
drm: panel-orientation-quirks: Add quirk for the 1Netbook OneXPlayer
From Raymond Jay Golo
9696125fb3ca1660d28a0aef53bcaa1a20a02bdb in linux 5.15.y/5.15.24
d3cbc6e323c9299d10c8d2e4127c77c7d05d07b1 in mainline linux
rob [Thu, 17 Feb 2022 03:12:34 +0000 (03:12 +0000)]
Writes to the ps_flags field of struct process should be atomic.
Ok deraadt@ guenther@
jsg [Thu, 17 Feb 2022 00:47:47 +0000 (00:47 +0000)]
remove unused defines
jsg [Thu, 17 Feb 2022 00:21:40 +0000 (00:21 +0000)]
reduce includes
jsg [Thu, 17 Feb 2022 00:11:21 +0000 (00:11 +0000)]
reduce includes
ok deraadt@
deraadt [Wed, 16 Feb 2022 20:20:36 +0000 (20:20 +0000)]
rev 1.4 was wrong to put potential IO operations after _GTS.
re-creating the original (2 weeks ago) order of last-minute-disk-parking
needs a different approach, hmm.
nicm [Wed, 16 Feb 2022 18:55:05 +0000 (18:55 +0000)]
Support more mouse buttons when the terminal sends them, GitHub issue
3055.
deraadt [Wed, 16 Feb 2022 17:07:05 +0000 (17:07 +0000)]
sync
jmc [Wed, 16 Feb 2022 16:47:26 +0000 (16:47 +0000)]
sync the description for mviic(4);
deraadt [Wed, 16 Feb 2022 16:44:17 +0000 (16:44 +0000)]
return unique errors (I chose some errno values.. ) for the various
failure modes. Also, pack the code a little bit, easier to read.
visa [Wed, 16 Feb 2022 13:19:33 +0000 (13:19 +0000)]
Add missing FILTEROP_MPSAFE flag to fifoexcept_filtops.
OK mpi@
visa [Wed, 16 Feb 2022 13:18:08 +0000 (13:18 +0000)]
Reduce code duplication in FIFO event filters.
OK mpi@
visa [Wed, 16 Feb 2022 13:16:10 +0000 (13:16 +0000)]
Reduce code duplication in socket event filters.
OK mpi@
visa [Wed, 16 Feb 2022 13:07:36 +0000 (13:07 +0000)]
Add mpfiic(4), a driver for the PolarFire SoC MSS I2C controller.
OK kettenis@
florian [Wed, 16 Feb 2022 10:35:57 +0000 (10:35 +0000)]
According to RFC 2132, 2. BOOTP Extension/DHCP Option Field Format
ASCII data should not include trailing NUL but we MUST delete trailing
NULs on receiving.
Jan Vlach ( janus AT volny.cz) reported that Microsoft DHCP server
sends the domain name option with a trailing NUL which the installer
put into /etc/myname as a trailing ^@ which smtpd does not like.
Fix some whitespace while here.
Input & OK millert
sashan [Wed, 16 Feb 2022 08:46:11 +0000 (08:46 +0000)]
nat-to round-robin without a pool should fallback to POOL_NONE
bug reported by giovanni@
OK giovanni@
jsg [Wed, 16 Feb 2022 08:01:32 +0000 (08:01 +0000)]
unifdef PROC_PC
ok guenther@ rob@
jmc [Wed, 16 Feb 2022 07:17:41 +0000 (07:17 +0000)]
hyphenate "8-byte";
deraadt [Wed, 16 Feb 2022 07:13:09 +0000 (07:13 +0000)]
if the lids indicate we are not supposed to wakeup, return EAGAIN rather
than scheduling an acpi thread
dlg [Wed, 16 Feb 2022 06:54:08 +0000 (06:54 +0000)]
document endpoint mode
deraadt [Wed, 16 Feb 2022 06:47:28 +0000 (06:47 +0000)]
If the lid is closed, suspend_finish() now returns EAGAIN, so go to the top
and restart the suspend all over again. This was previously done by issuing
a task to the acpi thread, but this is simpler.
(I want to try to duplicate these tests earlier in the resume path...)
deraadt [Wed, 16 Feb 2022 06:41:27 +0000 (06:41 +0000)]
change MD gosleep() and sleep_finish() to return int, the MI code will be
able to react to this suitably.
anton [Wed, 16 Feb 2022 06:23:42 +0000 (06:23 +0000)]
Currently, wskbd_set_mixervolume() only adjusts the volume of the first
attached audio device, i.e. audio0. This approach does not work well
while using additional audio devices equipped with physical volume keys
since those would only affect the volume of audio0.
Instead, correlate audio and ucc devices attached over USB in order to
adjust the volume of the correct audio device. This is done by passing a
cookie from the common point of attachment which is later used to
correlate the audio and wskbd device.
The same approach could be adopted for audio and wskbd devices attaching
on a different bus. Keep in mind that it's of importance to make use of
and increment the same global cookie identifier to avoid collisions.
Makes the volume keys on my Logitech G435 Headset do the right thing.
ok ratchov@
anton [Wed, 16 Feb 2022 06:21:18 +0000 (06:21 +0000)]
Make room for a cookie argument passed to audio_attach_mi(). Currently
unused but intended to be used to correlate audio and wskbd devices.
ok ratchov@
dlg [Wed, 16 Feb 2022 04:25:34 +0000 (04:25 +0000)]
check pf rule "set prio" values consistently.
consistently means we do the check in pf_rule_copyin() so both
DIOCADDRULE and DIOCCHANGERULE have the prio values checked. this in
turn prevents invalid prio values getting set on a rule via
DIOCCHANGERULE.
this was caught by a kassert in the ifq priq code firing.
Reported-by: syzbot+a8f8e24a44b441e71d93@syzkaller.appspotmail.com
ok sashan@
gnezdo [Wed, 16 Feb 2022 04:12:48 +0000 (04:12 +0000)]
Add libclang_rt.ubsan_minimal to comp set
ok jca@
gnezdo [Wed, 16 Feb 2022 03:49:40 +0000 (03:49 +0000)]
Plug ubsan_minimal into gnu/lib/libclang_rt build
ok jca@
gnezdo [Wed, 16 Feb 2022 03:48:55 +0000 (03:48 +0000)]
Add ifdefs to build ubsan_minimal on OpenBSD
ok jca@
dlg [Wed, 16 Feb 2022 02:22:39 +0000 (02:22 +0000)]
prevent (re)opening of tun/tap interfaces that are being destroyed.
if an open tun (or tap) device is destroyed via the clone destroy
ioctl (eg, like what ifconfig destroy does), there is a window while
the open device is being revoked on the vfs side that a third thread
can come and open it again. this in turn triggers a kassert in the
ifconfig destroy path where it expects the
device to be closed.
fix this by having tun_dev_open check for the TUN_DEAD flag that
the destroy function sets. this still relies on the kernel lock for
serialisation.
Reported-by: syzbot+5df2ad232f5f8b671442@syzkaller.appspotmail.com
ok visa@
dlg [Wed, 16 Feb 2022 02:13:43 +0000 (02:13 +0000)]
take a quick run at updating the manpage for the rewritten driver.
dlg [Wed, 16 Feb 2022 01:45:31 +0000 (01:45 +0000)]
fill in support for rx prio handling.
dlg [Wed, 16 Feb 2022 01:25:45 +0000 (01:25 +0000)]
rewrite vxlan to better fit the current kernel infrastructure.
the big change is removing the integration with and reliance on
bridge(4) for learning vxlan endpoints. we have the etherbridge
layer now (which is used by veb, nvgre, bpe, etc) so vxlan can
operate independently of bridge(4) (or any other driver) while still
dynamically learning about other endpoints.
vxlan now uses the udp socket upcall mechanism to receive packets.
this means it actually creates and binds udp sockets to use rather
adding code in the udp layer for stealing packets from the udp
layer.
i think it's also important to note that this adds loop prevention
to the code. this stops a vxlan interface being used to transmit a
packet that was encapsulated in itself.
i want to clear this out of my tree where it's been sitting for
nearly a year. noone seems too concerned with the change either
way.
ok claudio@
rob [Tue, 15 Feb 2022 23:16:00 +0000 (23:16 +0000)]
Reintroduce ps state flag 'c' indicating chrooted process (via PS_BITS).
Ok deraat@
deraadt [Tue, 15 Feb 2022 21:17:12 +0000 (21:17 +0000)]
Since acpitoshiba brightness button processing no longer plays games
with AML parsing outside the acpi thread, the locking-release dance
around wsdisplay_{suspend,resume} can be removed
ok kettenis
kettenis [Tue, 15 Feb 2022 21:13:39 +0000 (21:13 +0000)]
Defer the actual setting of the display brightness to the acpi thread.
ok deraadt@
deraadt [Tue, 15 Feb 2022 16:54:48 +0000 (16:54 +0000)]
when the MI suspend code encounters problems, we need a way to
reset the MD state before bailing out. New MD function sleep_abort()
does that.
nicm [Tue, 15 Feb 2022 13:11:29 +0000 (13:11 +0000)]
Add an option (default off) to control the passthrough escape sequence.
Like set-clipboard and allow-rename it is safer to forbid this by
default.
nicm [Tue, 15 Feb 2022 13:03:02 +0000 (13:03 +0000)]
Do not create a buffer from an OSC 52 response if we have not sent a
query.
claudio [Tue, 15 Feb 2022 12:24:55 +0000 (12:24 +0000)]
com at acpi like com at isa needs com_active() for suspend/resume support.
Fixes my com0 issues after zzz and ZZZ.
OK kettenis@ miod@
jsg [Tue, 15 Feb 2022 12:04:44 +0000 (12:04 +0000)]
unifdef __OpenBSD__
kn [Tue, 15 Feb 2022 11:54:19 +0000 (11:54 +0000)]
Backout previous "Unwire with map lock held" (commitid: SsVz7dLGFgR21kFe)
The (known) lock order reversals which now occur more reliably and much
earlier on WITNESS boots with this diff knock out syzcaller reports since
syzcaller stops at the first "crash report":
https://syzkaller.appspot.com/bug?id=
81b39e970cd2eb21b97d1b31746c693e300fd2dd
jsg [Tue, 15 Feb 2022 10:36:59 +0000 (10:36 +0000)]
unifdef OpenBSD
ok miod@
jsg [Tue, 15 Feb 2022 10:30:23 +0000 (10:30 +0000)]
consistently use __linux__