job [Mon, 8 Aug 2022 14:10:10 +0000 (14:10 +0000)]
Set rsync connection timeout to 15 seconds.
OK sthen@
bluhm [Mon, 8 Aug 2022 12:06:30 +0000 (12:06 +0000)]
To make protocol input functions MP safe, internet PCB need protection.
Use their reference counter in more places.
The in_pcb lookup functions hold the PCBs in hash tables protected
by table->inpt_mtx mutex. Whenever a result is returned, increment
the ref count before releasing the mutex. Then the inp can be used
as long as neccessary. Unref it at the end of all functions that
call in_pcb lookup.
As a shortcut, pf may also hold a reference to the PCB. When
pf_inp_lookup() returns it, it also incements the ref count and the
caller can handle it like the inp from table lookup.
OK sashan@
aoyama [Mon, 8 Aug 2022 11:27:18 +0000 (11:27 +0000)]
Change branch condition inverted to realize original intention in
comment.
Found by Tetsuya Isaki at NetBSD and nono project, during
investigating work-in-progress NetBSD/luna88k.
It originally comes from Mach luna88k port, more than 30 years ago:-)
Tested by me, "That's much better!" miod@
fcambus [Mon, 8 Aug 2022 09:25:13 +0000 (09:25 +0000)]
Build llvm-cov in base.
Since llvm-profdata is in base as well, we can now produce reports from
coverage data without having to install the devel/llvm port.
OK gnezdo@
deraadt [Mon, 8 Aug 2022 01:53:01 +0000 (01:53 +0000)]
Before ypconnect(2) addition, "getpw" was a horrible "hole" that triggered
on libc trying to open /var/run/ypbind.lock, so pledge had to BYPASSUNVEIL
accesses to this file. We accepted the opening of that file for a small
period for build cross-over, but that waiting period ends now.
guenther [Sun, 7 Aug 2022 23:56:06 +0000 (23:56 +0000)]
Start to add annotations to the cpu_info members, doing I/a/o for
immutable/atomic/owned ala <sys/proc.h>. Move CPUF_USERSEGS and
CPUF_USERXSTATE, which really are private to the CPU, into a new
ci_pflags and rename s/CPUF_/CPUPF_/. Make all (remaining) ci_flags
alterations via atomic_{set,clear}bits_int(), so its annotation
isn't a lie. Delete ci_info member as unused all the way from
rev 1.1
ok jsg@ mlarkin@
miod [Sun, 7 Aug 2022 19:40:48 +0000 (19:40 +0000)]
Use PMAP_PREFER_ALIGN() == 0 rather than !defined(PMAP_PREFER) to enable the
fast path in the pager code; this benefits most mips64 platforms.
ok kettenis@ mpi@
miod [Sun, 7 Aug 2022 19:39:25 +0000 (19:39 +0000)]
Move fallback PMAP_PREFER definitions from uvm_map.c to uvm_pmap.h for them
to be available to other files. NFC
ok kettenis@ mpi@
op [Sun, 7 Aug 2022 07:43:53 +0000 (07:43 +0000)]
zap extra space in usage added by mistake in last commit.
deraadt [Sun, 7 Aug 2022 03:22:29 +0000 (03:22 +0000)]
Modern EFI systems tend to want larger EFI Sys partitions, they play
games in there, in particular during BIOS upgrade sequences.
ok krw kettenis dv
deraadt [Sun, 7 Aug 2022 01:32:12 +0000 (01:32 +0000)]
sync
bluhm [Sun, 7 Aug 2022 00:57:43 +0000 (00:57 +0000)]
Fix fallout from netlock removal in media ioctl. The bridge does
not support media parameter, so just skip these ioctls. Do not
release a netlock that was not taken.
panic found and fix tested by Michael Graves; OK mvs@
bluhm [Sat, 6 Aug 2022 23:35:30 +0000 (23:35 +0000)]
Use NI_MAXHOST and NI_MAXSERV constants to allocate temporary strings
for saddr_ntop() and inet_ntop(). This avoids truncation warnings
and is better than arbitrary size values with 64 or 128 bytes.
OK deraadt@
schwarze [Sat, 6 Aug 2022 19:04:49 +0000 (19:04 +0000)]
Improve HISTORY and add AUTHORS.
In particular, mention the 4.0BSD and v8/Tahoe APIs that were
supported until OpenBSD 5.4 and that matter for the evolution
of RE functions in the BSD libc.
Joint work with and OK jsg@.
Regarding authorship of the v8 functions, Russ Cox writes
near the end of https://swtch.com/~rsc/regexp/regexp1.html :
"While writing the text editor sam in the early 1980s, Rob Pike
wrote a new regular expression implementation, which Dave Presotto
extracted into a library that appeared in the Eighth Edition.
Pike's implementation incorporated submatch tracking into an efficient
NFA simulation but, like the rest of the Eighth Edition source, was
not widely distributed. Pike himself did not realize that his
technique was anything new.
Henry Spencer reimplemented the Eighth Edition library interface
from scratch, but using backtracking, and released his implementation
into the public domain. It became very widely used, eventually
serving as the basis for the slow regular expression implementations
mentioned earlier: Perl, PCRE, Python, and so on. (In his defense,
Spencer knew the routines could be slow, and he didn't know that a
more efficient algorithm existed. He even warned in the documentation,
"Many users have found the speed perfectly adequate, although
replacing the insides of egrep with this code would be a mistake.")
Pike's regular expression implementation, extended to support
Unicode, was made freely available with sam in late 1992, but the
particularly efficient regular expression search algorithm went
unnoticed." [...]
op [Sat, 6 Aug 2022 17:11:36 +0000 (17:11 +0000)]
add a -t flag to change the request timeout
original diff from Alfred Morgan (alfred [at] 54 dot org)
ok florian@ and manpage tweaks by me.
bluhm [Sat, 6 Aug 2022 15:57:58 +0000 (15:57 +0000)]
Clean up the netlock macros. Merge NET_RLOCK_IN_SOFTNET and
NET_RLOCK_IN_IOCTL, which have the same implementation. The R and
W are hard to see, call the new macro NET_LOCK_SHARED. Rename the
opposite assertion from NET_ASSERT_WLOCKED to NET_ASSERT_LOCKED_EXCLUSIVE.
Update some outdated comments about net locking.
OK mpi@ mvs@
krw [Sat, 6 Aug 2022 14:48:33 +0000 (14:48 +0000)]
Refactor readdoslabel() into a more readable form using various
helper functions.
The refactored code ensures disklabels are read from/written to
disk only from/to unused space or an OpenBSD partition. This
prevents accidental damage to filesystems that start immediately
following an MBR or GPT.
The refactored code also finds the disklabel present on the
i386/amd64 floppyXX.img, rather than spoofing the media as a
single MSDOS partition.
Tweak and positive comments from jmatthew@
semarie [Sat, 6 Aug 2022 13:44:04 +0000 (13:44 +0000)]
blist: use swblk_t type (defined in sys/blist.h)
reduce the diff with DragonFlyBSD by using swblk_t and u_swblk_t types.
while here, move bitmap type (u_swblk_t) to u_int64_t on all archs. it makes the
regress the same on 64 and 32bits archs (and it success on both).
ok mpi@
semarie [Sat, 6 Aug 2022 13:31:13 +0000 (13:31 +0000)]
remove swblk_t type from sys/types.h
- it is currently unused (except in some regress)
- it is non-standard
- it shouldn't have been visible in first place
ok jca@ mpi@ todd@ deraadt@
jsg [Sat, 6 Aug 2022 12:09:59 +0000 (12:09 +0000)]
mention tascodec(4)
kettenis [Sat, 6 Aug 2022 12:00:18 +0000 (12:00 +0000)]
tascodec(4)
schwarze [Sat, 6 Aug 2022 11:05:23 +0000 (11:05 +0000)]
Delete the ridiculous first three sentences of BUGS
and fix some minor markup nits:
get rid of useless .Tn macros and add one missing .Fn macro.
No objection from jsg@.
jsg [Sat, 6 Aug 2022 11:03:14 +0000 (11:03 +0000)]
add arch to Dt
jsg [Sat, 6 Aug 2022 10:51:30 +0000 (10:51 +0000)]
add arch to Dt
jsg [Sat, 6 Aug 2022 10:44:46 +0000 (10:44 +0000)]
remove comma on last Xr
jsg [Sat, 6 Aug 2022 10:42:37 +0000 (10:42 +0000)]
simplaudio -> simpleaudio
kettenis [Sat, 6 Aug 2022 09:42:13 +0000 (09:42 +0000)]
Fix backpointer.
ok jsg@
kettenis [Sat, 6 Aug 2022 09:40:55 +0000 (09:40 +0000)]
aplaudio(4), apldma(4), aplmca(4) and aplnco(4)
kettenis [Sat, 6 Aug 2022 08:59:28 +0000 (08:59 +0000)]
Prevent buffer overflow in OF_getpropintarray().
ok jsg@
jsg [Sat, 6 Aug 2022 03:12:19 +0000 (03:12 +0000)]
match recent Intel CPUs in fw_update(8)
Intel CPUs mostly used to have processor name strings of the form
cpu0: Intel(R) Pentium(R) M processor 1.60GHz ("GenuineIntel" 686-class) 1.60 GHz, 06-0d-06
cpu0: Intel(R) Core(TM) i7-5600U CPU @ 2.60GHz, 2494.61 MHz, 06-3d-04
recent CPUs use
cpu0: 11th Gen Intel(R) Core(TM) i5-1130G7 @ 1.10GHz, 30009.37 MHz, 06-8c-01
cpu0: 12th Gen Intel(R) Core(TM) i5-12400, 4390.71 MHz, 06-97-02
cpu0: 12th Gen Intel(R) Core(TM) i7-1260P, 1995.55 MHz, 06-9a-03
change pattern used to handle this
also covers oddities such as
cpu0: Genuine Intel(R) CPU @ 600MHz, 600.10 MHz
cpu0: Genuine Intel(R) CPU @ 1.00GHz, 1000.13 MHz, 06-26-01
cpu0: Genuine Intel(R) CPU L2400 @ 1.66GHz ("GenuineIntel" 686-class) 1.67 GHz, 06-0e-08
test chips use "Genuine Intel(R) CPU 0000"
afresh1 [Fri, 5 Aug 2022 18:01:40 +0000 (18:01 +0000)]
Support wildcards in fw_update patterns
Up to two wildcards, since we have to work around the way ksh does things.
Tweaks and suggestions from kn@ and halex@
tb [Fri, 5 Aug 2022 17:19:09 +0000 (17:19 +0000)]
fix error message
tb [Fri, 5 Aug 2022 17:12:32 +0000 (17:12 +0000)]
Use the FAIL macro instead of fprintf(stderr, "FAIL: ...\n");
tb [Fri, 5 Aug 2022 17:08:02 +0000 (17:08 +0000)]
Make the bogokey[] global static const.
tb [Fri, 5 Aug 2022 17:06:17 +0000 (17:06 +0000)]
Move CBB_init() to a consistent place.
tb [Fri, 5 Aug 2022 17:03:33 +0000 (17:03 +0000)]
Consistently initialize failure to 1 at the top of the function and
clear it right before the done label.
miod [Fri, 5 Aug 2022 16:59:50 +0000 (16:59 +0000)]
Fix bounds check in ucc_add_key(); ok anton@
tb [Fri, 5 Aug 2022 16:51:11 +0000 (16:51 +0000)]
Consistently check for CBB_init() failure.
beck [Fri, 5 Aug 2022 14:46:52 +0000 (14:46 +0000)]
Remove overly aggressive trust check in legacy verifier that breaks
p5-IO-Socket-SSL regress and regress/sbin/iked/live
Still passes the mutt regress that this was intended to fix.
ok tb@
bluhm [Fri, 5 Aug 2022 13:57:16 +0000 (13:57 +0000)]
The netlock for SIOCSIFMEDIA and SIOCGIFMEDIA ioctl is not necessary.
Legacy drivers run with kernel lock, interface media is MP safe or
has kernel lock. Assert kernel lock in ix(4) and ixl(4).
OK kettenis@
kettenis [Fri, 5 Aug 2022 13:25:43 +0000 (13:25 +0000)]
Skip disabled nodes.
robert [Fri, 5 Aug 2022 12:52:35 +0000 (12:52 +0000)]
put ci_mutex_level inside DIAGNOSTIC
schwarze [Fri, 5 Aug 2022 09:15:28 +0000 (09:15 +0000)]
Among published AT&T UNIX releases, a shutdown(8) command was contained
in PWB/UNIX 1.0 (July 1977) and in System III (1982),
but not in v7 (Jan 1979) nor in 32v (May 1979).
According to the Australian UNIX User Group Newsletter Vol. I No. I
https://www.tuhs.org/Archive/Documentation/AUUGN/AUUGN-V01.1.pdf ,
(October 1978), Letter from John Lions on page 20, UNIX/TS 1.0 (late
1978 or early 1979) also contained an implementation of shutdown(8).
So it is unlikely it came from the CSRC and more likely it was
invented either by the PWB or by the USG group.
Since we don't know for sure, only cite the first public release.
It was a mistake to say "appeared in 4.0BSD". That release only
contained a stub manual page (without a DESCRIPTION), and the
file man8/BUGS in 4.0BSD mentions it without giving details,
presumably trying to indicate it wasn't really available yet.
The is no shutdown(8) implementation in BSD before 4.1cBSD.
OK jsg@
tb [Fri, 5 Aug 2022 08:51:35 +0000 (08:51 +0000)]
Remove most of the indirection introduced in previous and instead fetch
the appropriate tls_extension_funcs pointers for client and server from
libssl and reach into them directly.
ok jsing
djm [Fri, 5 Aug 2022 05:01:40 +0000 (05:01 +0000)]
don't prompt for FIDO passphrase before attempting to enroll the
credential, just let the enroll operating fail and we'll attempt
to get a PIN anyway. Might avoid some unneccessary PIN prompts.
Part of GHPR#302 from Corinna Vinschen; ok dtucker@
jsg [Fri, 5 Aug 2022 00:53:57 +0000 (00:53 +0000)]
change some 4.4BSD references to earlier releases
ok schwarze@
bluhm [Thu, 4 Aug 2022 18:05:09 +0000 (18:05 +0000)]
Use 16 bit variable to store more fragment flag. This avoids loss
of significant bits on big endian machines. Bug has been introduced
in previous commit by removing the =! 0 check.
OK mvs@
schwarze [Thu, 4 Aug 2022 15:38:33 +0000 (15:38 +0000)]
Add HISTORY and AUTHORS.
In https://minnie.tuhs.org/pipermail/tuhs/2020-January/019955.html ,
Brian Walden wrote (which looks like a reliable source to me):
"GWRL stands for Gottfried W. R. Luderer, the author of cut(1) and
paste(1), probably around 1978. Those came either from PWB or USG,
as he worked with, or for, Berkley Tague. Thus they made their way
into AT&T commercial UNIX, first into System III and the into System
V, and that's why they are missing from early BSD releases as they
didn't get into Research UNIX until the 8th Edition.
[...]
I knew Dr. Luderer [...]
I also briefly worked for Berk when he was the department head
for 45263 in Whippany Bell Labs before moving to Murray Hill."
Omission pointed out by daniel@.
Joint work with jsg@.
OK jsg@ daniel@.
claudio [Thu, 4 Aug 2022 13:44:07 +0000 (13:44 +0000)]
Once all files from argv have been read the main process can unveil to
the cachedir and if output files are written to outputdir. In -f mode
the unveil can be read-only in normal operation rwc is required because
the main process writes the RRDP files and also does the cleanup at the
end of the run.
Input from tb@ and mestre@, OK tb@
nicm [Thu, 4 Aug 2022 12:06:09 +0000 (12:06 +0000)]
Change g and G to go to top and bottom of menu, GitHub issue 3286.
stsp [Thu, 4 Aug 2022 11:50:51 +0000 (11:50 +0000)]
SWITCH section in ifconfig(8) no longer exists; point people at VEB instead
schwarze [Thu, 4 Aug 2022 11:50:46 +0000 (11:50 +0000)]
Correct a markup mistake found with mandoc -T lint:
Use .Vt instead of .Tn for mode_t and dev_t.
While here, also use .Fa rather than .Va for st_rdev (as usual
for struct fields), and correctly mark up st_mode and S_IFMT.
schwarze [Thu, 4 Aug 2022 11:31:18 +0000 (11:31 +0000)]
For clarity and consistency, refer to ".Bx 4.0" rather than ".Bx 4".
Also, mention /usr/ucb/man because /usr/bin/man did not provide -f in 4.0BSD.
schwarze [Thu, 4 Aug 2022 11:14:46 +0000 (11:14 +0000)]
Use ".Bx 4.0" rather than ".Bx 4" for clarity and consistency.
Both are correct, but "4.0" avoids the misunderstanding that we were
talking about any unspecified 4.xBSD release, and it is much more widely
used in our manuals.
Discussed with jsg@ in the context of other manual pages.
tb [Thu, 4 Aug 2022 09:28:31 +0000 (09:28 +0000)]
Add some glue to fetch the tlsext functions from the tls_extensions[]
table rather than calling the functions directly.
tb [Thu, 4 Aug 2022 09:27:36 +0000 (09:27 +0000)]
Make tlsext_*_{build,needs,parse}() functions static
None of these functions are used outside of ssl_tlsext.c. The only reason
they are prototyped in the header is for the use of tlsexttest.c. Rather
than having a big pile of useless copy-paste in the header, we can adapt
the test to avoid using these functions directly.
ok jsing
kn [Thu, 4 Aug 2022 09:16:53 +0000 (09:16 +0000)]
Default to softraid on boot-device iff found
root on softraid on sparc64 currently requires explicitly passing the volume
name as part of the boot arguments, e.g.
boot-file=sr0
boot-file=sr0a:/bsd
or
{ok} boot my-devalias sr0:
(ofwboot always probes for softraid devices, assembles them but continues
to ignore such volumes unless specified.)
This is inconsistent with softraid support on other platforms and has
further drawbacks when it comes to sysupgrade logic.
Unless an explicit root disk was given, make ofwboot default to the softraid
volume on the boot device to make root on softraid work out of the box
without having to set variables or pass arguments in OpenBoot.
Eventually, ofwboot's disk discovery and softraid assembly machinery will be
fixed and boot-file won't be misused for softraid purposes anymore.
Remove the quirky softraid paragraph from boot_sparc64(8) now that it
is purely optional, expecting users from now on to either leave boot-file
empty or pass a kernel filename alone.
Tested on T4-2 guest domains with and without root on softraid.
Feedback claudio kettenis stsp
OK kettenis (previous diff)
OK stsp
jsing [Thu, 4 Aug 2022 08:06:48 +0000 (08:06 +0000)]
Mop up key_len assignments.
Remove unnecessary conditions for XTS mode, since we know which are XTS.
Also use bytes rather than bits / 8.
ok tb@
jsing [Thu, 4 Aug 2022 08:02:31 +0000 (08:02 +0000)]
Mop up EVP_CIPH_FLAG_FIPS usage.
LibreSSL does not do FIPS and nothing else sets or checks these.
ok tb@
jsing [Thu, 4 Aug 2022 08:00:11 +0000 (08:00 +0000)]
Remove various aesni_* defines to aes_* functions.
A number of the AES-NI functions are #defines to an aes_* function - remove
these and just use the AES variant directly.
ok tb@
robert [Thu, 4 Aug 2022 07:16:49 +0000 (07:16 +0000)]
add openbsd-73-syspatch.pub to the sets
robert [Thu, 4 Aug 2022 07:15:33 +0000 (07:15 +0000)]
add 7.3 syspatch pubkey
jsg [Thu, 4 Aug 2022 06:20:24 +0000 (06:20 +0000)]
change some 4.4BSD references to earlier releases
ok schwarze@
jsg [Thu, 4 Aug 2022 04:01:48 +0000 (04:01 +0000)]
cu first appeared outside of Bell Labs in PWB/UNIX 1.0 before v7
mention tip in 4.1c while here
with and ok schwarze@ ok nicm@
tb [Wed, 3 Aug 2022 20:17:38 +0000 (20:17 +0000)]
Add workarounds for some symbols that are hidden under !LIBRESSL_INTERNAL
until the next bump exposes new symbols that we can use.
tb [Wed, 3 Aug 2022 20:16:06 +0000 (20:16 +0000)]
Prepare to provide PKCS12 accessors
In order to be able to make pkcs12/ opaque, we need an entire family of
accessors. These are in a particularly nasty tangle since this was done
in about a dozen steps while sprinkling const, renaming functions, etc.
The public API also adds backward compat macros for functions that were
in the tree for half a day and then renamed. Of course some of them got
picked up by some ports.
Some of the gruesome hacks in here will go away with the next bump, but
that doesn't mean that the pkcs12 directory will be prettier afterward.
ok jsing
job [Wed, 3 Aug 2022 16:54:30 +0000 (16:54 +0000)]
Since ts(1) is line-based, always using line buffering
makes sense millert@
yep deraadt@
kettenis [Wed, 3 Aug 2022 13:42:16 +0000 (13:42 +0000)]
Add aplaudio(4) and aplmca(4). The aplmca(4) driver controls the hardware
block that takes data from apldma(4), serializes it and sends it out on
the i2s ports. The aplaudio(4) driver ties together aplmca(4) and various
codecs to present an audio(4) interface to the system.
This is still WIP, but good enough to play back audio on the speaker in the
M1 mini.
ok patrick@
kettenis [Wed, 3 Aug 2022 13:36:51 +0000 (13:36 +0000)]
Clear active state when we attach.
ok patrick@
nicm [Wed, 3 Aug 2022 13:27:48 +0000 (13:27 +0000)]
Do not crash when searching for .* with extremely long lines. Reported
by Torbjorn Lonnemark, GitHub issue 3272.
claudio [Wed, 3 Aug 2022 08:56:23 +0000 (08:56 +0000)]
Add comment that NEXTHOP_FLAPPED is only set on oldstate of a nexthop.
jsg [Wed, 3 Aug 2022 08:28:19 +0000 (08:28 +0000)]
tail(1) first appeared outside of Bell Labs in PWB/UNIX 1.0
with and ok schwarze@
jsg [Wed, 3 Aug 2022 08:16:50 +0000 (08:16 +0000)]
sed(1) first appeared outside of Bell Labs in PWB/UNIX 1.0
it did not start in the PWB group
"The talk said that tools like grep and sed came from PWB,
but that's not true. They were original"
"The flow from PWB back to the main research line was a trickle at best.
We had bad NIH in 1127."
Rob Pike
https://minnie.tuhs.org/pipermail/tuhs/2020-February/020329.html
The 4.4BSD version was written by Diomidis Spinellis
credited in csrg/admin/admin/contrib
"In 1992, as a bored PhD student, I reimplemented sed(1) and contributed
it the unencumbered BSD version that was then being put together"
https://www.spinellis.gr/blog/FreeBSD.html
with and ok schwarze@
claudio [Wed, 3 Aug 2022 08:16:05 +0000 (08:16 +0000)]
Fix a modify after free error in kroute_remove()
knexthop_validate() will modify the kroute the nexthop points to.
Because of this knexthop_validate() needs to be called before the
to be removed kroute is freed. Move the code into kroute_remove[46]
so the order is correct.
Problem found and fix tested by sthen@.
OK sthen@ tb@
sashan [Wed, 3 Aug 2022 08:16:04 +0000 (08:16 +0000)]
Bug was reported by Chriss Cappucio. It has turned out my earlier change
to pf_lb.c was not complete. We must add a test to determine number of
addresses defined by pool, so we don't treat pool definition
172.16.0.0/16 as a single IP address in pool. If pool is defined as
172.16.0.0/16, then we don't want to fall back to PF_POOL_NONE. Missing
this measure in pf_map_addr() may cause pf_get_sport() to enter infinite
loop when source ports translation become depleted for the first address
found in pool (like 172.16.0.1), because the bug prevents pf_map_addr()
to move to next address in pool (like 172.16.0.2).
while investigating issue I've also noticed an oddity for small random
pools such as 192.168.1.32/28. One would expect the addresses for nat
will be randomly picked from range .32 - .47 in this case. however the
random selection yield significantly more (like 20%) addresses ending by .32
In order to fix it we make random pool to use arc4random_uniform(~mask + 1)
instead of current arc4random().
feedback by claudio@
tested by hrvoje@
claudio [Wed, 3 Aug 2022 08:11:18 +0000 (08:11 +0000)]
Fix possible NULL dereference in knexthop_validate().
kroute_match() may return NULL so setting kn->ifindex should only
be done if the kroute is valid. Also set the ifindex to 0 in
kroute_detach_nexthop().
Based on a bigger diff which is OK tb@ and sthen@
jsg [Wed, 3 Aug 2022 07:54:47 +0000 (07:54 +0000)]
make(1) first appeared outside of Bell Labs in PWB/UNIX 1.0
it did not start in the PWB group
"PWB did not create make; Stu Feldman did it in research." Doug McIlroy
https://minnie.tuhs.org/pipermail/tuhs/2015-November/007572.html
with and ok schwarze@
jsg [Wed, 3 Aug 2022 07:43:45 +0000 (07:43 +0000)]
we have spell(1) via 4.4BSD
discussed with schwarze@
jsg [Wed, 3 Aug 2022 07:38:09 +0000 (07:38 +0000)]
deroff(1) first appeared outside of Bell Labs in PWB/UNIX 1.0
it did not start in the PWB group
"Lorinda also wrote deroff" Doug McIlroy
https://minnie.tuhs.org/pipermail/tuhs/2015-September/007510.html
our version came from 4.4BSD after the Caldera relicense
with and ok schwarze@
op [Wed, 3 Aug 2022 07:35:04 +0000 (07:35 +0000)]
some love for patch regress
* t3 doesn't was fixed anymore
* add a comment describing t19
* add t20 (reversal application of a diff that creates a one-line file)
ok stsp@
op [Wed, 3 Aug 2022 07:30:37 +0000 (07:30 +0000)]
fix locate_hunk in empty files
if `first_guess' is zero then main() assumes that locate_hunk has failed
and aborts the patch operation. Instead, make sure to return 1 (the
line number) so that the patch operation can continue.
Issue originally found by Neels Hofmeyr in the regress suite of the diff
implementation for got, where the tests assume that applying a diff with
`patch' and then again with `patch -R' yields back the original file.
ok stsp@
op [Wed, 3 Aug 2022 07:25:44 +0000 (07:25 +0000)]
fix dwim for reversed patches
patch(1) fails to recognize the reversal application of a patch that
cerates a file. since an empty context always matches, the idea is to
run the dwim ("do what I mean") code also when locate_hunk succeeds but
the patch would create a file and the match is on the first line.
fixes the (disabled) test t3.
ok stsp@
jsg [Wed, 3 Aug 2022 05:54:50 +0000 (05:54 +0000)]
recognise IDT 92HD95/92HD95B now sold as TSI 92HD95B
https://frame.work/blog/solving-for-silicon-shortages
jsg [Wed, 3 Aug 2022 03:14:23 +0000 (03:14 +0000)]
drm/i915/adlp: Fix register corruption after DDI clock enabling
From Imre Deak
59207e63801fbcd39ca68df6e2ba5ae90f76c0c3 in mainline linux
cheloha [Wed, 3 Aug 2022 00:23:14 +0000 (00:23 +0000)]
dmesg(8): don't accept positional arguments
dmesg(8) doesn't use any positional arguments. If we see any, it's a
usage error.
ok florian@, "Sure" deraadt@ millert@
miod [Tue, 2 Aug 2022 20:15:28 +0000 (20:15 +0000)]
Correctly detect xmem operations faulting on missing pages on 88110.
These must be handled as write faults rather than read faults, since xmem
performs both a read and a write, and unlike on 88100, we don't have an easy
bit to check.
This solves libcrypto spinning on its locks on 88110.
tb [Tue, 2 Aug 2022 20:01:12 +0000 (20:01 +0000)]
Add missing closing bracket in usage
job [Tue, 2 Aug 2022 18:09:20 +0000 (18:09 +0000)]
Add --contimeout functionality.
Input from deraadt@
OK claudio@
deraadt [Tue, 2 Aug 2022 17:37:18 +0000 (17:37 +0000)]
Strange argument padding is no longer neccessary, remove this BUGS section
ok guenther
deraadt [Tue, 2 Aug 2022 17:00:15 +0000 (17:00 +0000)]
1) The yp_bind/yp_unbind and internal _yp_dobind/_yp_unbind sequences shared
dom_binding structs between threads, which is unsafe -- example, dom_vers
signalled retry events, and structs+socket would get deallocated in _yp_unbind.
Change all yp_first (and similar) functions to understand that _yp_dobind now
provides a private dom_binding and socket, which must be released using
_yp_unbind. Use similar methods in the one-step yp_all function.
2) domainname caching in get* is not neccessary now that the domainname cannot
change relative to ypconnect(2)'s decisions.
Many fields in dom_binding struct become unused, so delete them.
ok jmatthew, also tested by miod
deraadt [Tue, 2 Aug 2022 16:59:29 +0000 (16:59 +0000)]
1) The yp_bind/yp_unbind and internal _yp_dobind/_yp_unbind sequences shared
dom_binding structs between threads, which is unsafe -- example, dom_vers
signalled retry events, and structs+socket would get deallocated in _yp_unbind.
Change all yp_first (and similar) functions to understand that _yp_dobind now
provides a private dom_binding and socket, which must be released using
_yp_unbind. Use similar methods in the one-step yp_all function.
2) domainname caching in get* is not neccessary now that the domainname cannot
change relative to ypconnect(2)'s decisions.
Many fields in dom_binding struct become unused, so delete them.
ok jmatthew, also tested by miod
deraadt [Tue, 2 Aug 2022 16:47:16 +0000 (16:47 +0000)]
The Xr to ypbind 3 doesn't help improve anyone's understanding of how the
YP libc/protocol/ypserv|ypldap->ldapd situation works. Delete it.
deraadt [Tue, 2 Aug 2022 16:45:00 +0000 (16:45 +0000)]
delete incorrect comment: yp_unbind is not called by passwd
mpi [Tue, 2 Aug 2022 14:04:06 +0000 (14:04 +0000)]
Bring back the direct map optimization when PMAP_PREFER isn't defined.
PMAP_PREFER is checked to prevent cache aliasing issues when the physical
page is mapped at different virtual addresses.
This speeds up file-based mmap faults.
ok kettenis@
schwarze [Tue, 2 Aug 2022 11:55:51 +0000 (11:55 +0000)]
If the body of a man(7) .MT or .UR block is empty, do not emit a warning.
Leaving the body empty is legitimate in this case if the author only
wants to display a mail address or URI without providing a link text.
Output modules already handle this correctly: terminal output shows
just the URI without an accompanying text, HTML output uses the URI
for *both* the href= attribute and as the content of the <a> element.
The documentation was also wrong and claimed that an .MT or .UR block
with an empty body would produce no output. As explained above,
this isn't true.
Bogus warning reported by
Alejandro Colomar <alx dot manpages at gmail dot com>.
nicm [Tue, 2 Aug 2022 11:09:26 +0000 (11:09 +0000)]
Add a third state "all" to allow-passthrough to work even in invisible
panes, from Sergei Grechanik in GitHub issue 3274.
deraadt [Tue, 2 Aug 2022 11:04:25 +0000 (11:04 +0000)]
some ports bootstraps, and go internals, need a bit more time to adapt
to the padded syscalls going away.
schwarze [Tue, 2 Aug 2022 10:59:51 +0000 (10:59 +0000)]
Reorganize the tests that require custom command line options
such that they don't abort the whole test suite if one of them fails.
nicm [Tue, 2 Aug 2022 09:23:34 +0000 (09:23 +0000)]
Fix validation of missing percentage arguments.
mestre [Tue, 2 Aug 2022 09:07:34 +0000 (09:07 +0000)]
shamelessly missed to unveil(_PATH_BSHELL, "x") which is required to run the
commands inside usbhidaction(1)'s `conf' file.
reported and fix tested by Hector Velasco < tech ! ogroth . com >