openbsd
23 months agoMove manpages for Qualcomm devices over to the MI directory. kettenis@ put
patrick [Thu, 10 Nov 2022 12:36:38 +0000 (12:36 +0000)]
Move manpages for Qualcomm devices over to the MI directory.  kettenis@ put
them into the arm64-specific one mostly because they were for ACPI and that
will definitely be arm64-specific.  I have committed most of the FDT ones
to the MI fdt directory.  dlg@ would be happier with those manpages in the
MI one.  There are more manpages to come as well.

23 months agoRemove hack that uses a timeout to fake interrupts now that qcpdc(4) allows
patrick [Thu, 10 Nov 2022 12:16:06 +0000 (12:16 +0000)]
Remove hack that uses a timeout to fake interrupts now that qcpdc(4) allows
us to properly establish interrupts.

The fixed IPL_BIO should probably be replaced by the highest IPL requested
by our children.

ok kettenis@

23 months agoWe need to turn a few more things on in the resume path. This makes it
kettenis [Thu, 10 Nov 2022 12:14:05 +0000 (12:14 +0000)]
We need to turn a few more things on in the resume path.  This makes it
possible to ifconfig down the interface suspend/resume and ifconfig up the
interface again afterwards in most cases.  Suspend/resume with the interface
up is still busted.

ok patrick@, stsp@

23 months agoEnable qcpdc(4)
patrick [Thu, 10 Nov 2022 12:13:22 +0000 (12:13 +0000)]
Enable qcpdc(4)

ok kettenis@

23 months agoAdd qcpdc(4), a driver for the Qualcomm Power Domain controller found on
patrick [Thu, 10 Nov 2022 12:12:53 +0000 (12:12 +0000)]
Add qcpdc(4), a driver for the Qualcomm Power Domain controller found on
Qualcomm SoCs.  This is mostly a shim torwards agintc(4).

ok kettenis@

23 months agoMove the code handling brightness keys into a task, since with
matthieu [Thu, 10 Nov 2022 12:10:54 +0000 (12:10 +0000)]
Move the code handling brightness keys into a task, since with
inteldrm(4) it requires a process context. ok kettenis@

23 months agovmd(8): import mmio decode and emulation, disabled for now.
dv [Thu, 10 Nov 2022 11:46:39 +0000 (11:46 +0000)]
vmd(8): import mmio decode and emulation, disabled for now.

The initial mmio support for vmd adds support for only specific MOV
and MOVZX instructions. Plan is to begin iterating in-tree on other
missing pieces. All functionality is gated behind an #if for now.

Only change to vmm(4) is reordering register #define's in vmmvar.h.

ok mlarkin@

23 months agoMake the power button function as a wakeup button during suspend.
kettenis [Thu, 10 Nov 2022 11:45:29 +0000 (11:45 +0000)]
Make the power button function as a wakeup button during suspend.

ok phessler@, patrick@, tobhe@

23 months agoiWe must be careful to only disable power domains that are no longer in
kettenis [Thu, 10 Nov 2022 11:44:06 +0000 (11:44 +0000)]
iWe must be careful to only disable power domains that are no longer in
use by a device.  So maintainer a counter and only disable the power
domain if it drops to zero.

ok deraadt@, tobhe@

23 months agoarm64 can suspend without PSCI support now
kettenis [Thu, 10 Nov 2022 11:23:21 +0000 (11:23 +0000)]
arm64 can suspend without PSCI support now

ok deraadt@, phessler@

23 months agoRegen
krw [Thu, 10 Nov 2022 11:02:26 +0000 (11:02 +0000)]
Regen

23 months agoA theoretical path exists where ext.data1 is not initialized by
mbuhl [Thu, 10 Nov 2022 10:47:30 +0000 (10:47 +0000)]
A theoretical path exists where ext.data1 is not initialized by
parseextcommunity but used afterwards.
Found by codechecker.
OK claudio

23 months agoPut CPUs in the lowest P-state just before the final suspend step. The
kettenis [Thu, 10 Nov 2022 10:37:40 +0000 (10:37 +0000)]
Put CPUs in the lowest P-state just before the final suspend step.  The
firmware probably does this for us on ACPI systems with proper S3 support,
but this doesn't happen on systems where we park CPUs in a low-power idle
state ourselves.

ok deraadt@

23 months agoMove bn_prime.h to the public domain.
tb [Thu, 10 Nov 2022 10:24:50 +0000 (10:24 +0000)]
Move bn_prime.h to the public domain.

It's entirely trivial.

ok beck

23 months agoNuke Vax (ra,rx) and HP-300 (hd) devices.
krw [Thu, 10 Nov 2022 09:50:00 +0000 (09:50 +0000)]
Nuke Vax (ra,rx) and HP-300 (hd) devices.

Noticed by kn@

ok millert@

23 months agoConvert amd64 clock and ipi event counters to per-cpu
jmatthew [Thu, 10 Nov 2022 08:26:54 +0000 (08:26 +0000)]
Convert amd64 clock and ipi event counters to per-cpu

ok kettenis@ jca@ cheloha@

23 months agochange default output to -a format; ok tb
deraadt [Thu, 10 Nov 2022 08:17:53 +0000 (08:17 +0000)]
change default output to -a format; ok tb

23 months agoConvert sparc64 clock event counter to per-cpu and increment using
jmatthew [Thu, 10 Nov 2022 07:08:01 +0000 (07:08 +0000)]
Convert sparc64 clock event counter to per-cpu and increment using
evcount_inc() rather than atomic operations.

ok kettenis@ jca@ cheloha@

23 months agoAdd support for per-cpu event counters, to be used for clock and IPI
jmatthew [Thu, 10 Nov 2022 07:05:41 +0000 (07:05 +0000)]
Add support for per-cpu event counters, to be used for clock and IPI
counters where the event being counted occurs across all CPUs in the
system.  Counter instances can be made per-cpu by calling evcount_percpu()
after the counter is attached, and this can occur before or after all system
CPUs are attached.  Per-cpu counter instances should be incremented using
evcount_inc().

ok kettenis@ jca@ cheloha@

23 months agoReturn error number instead of call panic().
asou [Thu, 10 Nov 2022 02:47:52 +0000 (02:47 +0000)]
Return error number instead of call panic().

ok mpi@

23 months agoIn case RSA_meth_new fails, errstr would be passed to fatalx without
mbuhl [Thu, 10 Nov 2022 00:44:12 +0000 (00:44 +0000)]
In case RSA_meth_new fails, errstr would be passed to fatalx without
initialization.
OK tb

23 months agofix build after 1.298
jsg [Thu, 10 Nov 2022 00:14:11 +0000 (00:14 +0000)]
fix build after 1.298

23 months agoalways call va_end.
mbuhl [Thu, 10 Nov 2022 00:00:11 +0000 (00:00 +0000)]
always call va_end.
ok tb

23 months agoStart migrating to one source file per line.
joshua [Wed, 9 Nov 2022 23:33:08 +0000 (23:33 +0000)]
Start migrating to one source file per line.

ok jsing@ tb@

23 months agoRemove prime_t remnant and link bn_primes test statically
tb [Wed, 9 Nov 2022 23:28:08 +0000 (23:28 +0000)]
Remove prime_t remnant and link bn_primes test statically

23 months agoSync CBS_strdup() documentation update from libcrypto.
jsing [Wed, 9 Nov 2022 23:14:51 +0000 (23:14 +0000)]
Sync CBS_strdup() documentation update from libcrypto.

23 months agosimplify expiration of 'once' rules.
sashan [Wed, 9 Nov 2022 23:00:00 +0000 (23:00 +0000)]
simplify expiration of 'once' rules.
let packet to mark 'once' rule as expired. The rule
will be removed by pfctl(8) when rules are updated.

OK kn@

23 months agoHook up gpiobl(4) to the screen burner instead of wsdisplay(4) brightness
tobhe [Wed, 9 Nov 2022 22:56:44 +0000 (22:56 +0000)]
Hook up gpiobl(4) to the screen burner instead of wsdisplay(4) brightness
control. This enables automatic screen blanking with X and wscons(4) once
wsfb(4) is fixed.

"this is fine for now" kettenis@

23 months agoMove table in bn_primes.h to a .c file and get rid of prime_t
tb [Wed, 9 Nov 2022 22:52:51 +0000 (22:52 +0000)]
Move table in bn_primes.h to a .c file and get rid of prime_t

This way we deduplicate two inclusions of the same big table and eliminate
lots of stupid casts.

input and ok many

23 months agoRemove kernel lock here since msleep() with PCATCH no longer requires it.
claudio [Wed, 9 Nov 2022 22:25:36 +0000 (22:25 +0000)]
Remove kernel lock here since msleep() with PCATCH no longer requires it.
OK mpi@

23 months agoNo more xd/xy devs.
krw [Wed, 9 Nov 2022 22:25:27 +0000 (22:25 +0000)]
No more xd/xy devs.

23 months agoSome limited setsockopt/getsockopt are allowed in pledge "stdio".
deraadt [Wed, 9 Nov 2022 22:25:08 +0000 (22:25 +0000)]
Some limited setsockopt/getsockopt are allowed in pledge "stdio".
Also allow IPPROTO_TCP:TCP_NODELAY
It is very small kernel code, and will allow some software to drop "inet"
requested by djm

23 months agoRegen
krw [Wed, 9 Nov 2022 22:18:53 +0000 (22:18 +0000)]
Regen

23 months agorevert r1.673: replace SRP with SMR in the if_idxmap.
dlg [Wed, 9 Nov 2022 22:15:50 +0000 (22:15 +0000)]
revert r1.673: replace SRP with SMR in the if_idxmap.

if the map has to be reallocated during boot, there's an smr_barrier
waiting for the old map to become unused. that barrier ends up
waiting for cpus that aren't running yet because we haven't finished
booting yet, so boot gets stuck.

found by hrvoje popovski

23 months agoConstify simplefb_formats[]; OK patrick
kn [Wed, 9 Nov 2022 22:12:40 +0000 (22:12 +0000)]
Constify simplefb_formats[]; OK patrick

23 months agoEnable qcpwm(4)
patrick [Wed, 9 Nov 2022 20:00:05 +0000 (20:00 +0000)]
Enable qcpwm(4)

ok kettenis@ mlarkin@

23 months agoAdd qcpwm(4), a driver for the PWM found on Qualcomm PMICs. This is used
patrick [Wed, 9 Nov 2022 19:59:38 +0000 (19:59 +0000)]
Add qcpwm(4), a driver for the PWM found on Qualcomm PMICs.  This is used
on the Lenovo x13s to control the display backlight brightness.

ok kettenis@ mlarkin@

23 months agoNow that dlopen() sets object->nodelete for RTLD_NODELETE, _dl_load_dep_libs()
deraadt [Wed, 9 Nov 2022 19:50:25 +0000 (19:50 +0000)]
Now that dlopen() sets object->nodelete for RTLD_NODELETE, _dl_load_dep_libs()
can consider this same as the "booting" case, and instruct lower layers to
do immutability. With this change in place, the not-yet-commited
library-immutable diff leaves 1 page of libc (malloc related) and 6
non-RTLD_NODELETE libraries mutable in chrome.
Everything else is immutable, except for the program's transient memory
allocations & file mappings.  This is an unexpected result.

23 months agoRemove xy/xd. SMD left with sparc.
krw [Wed, 9 Nov 2022 19:35:23 +0000 (19:35 +0000)]
Remove xy/xd. SMD left with sparc.

ok kn@ deraadt@

23 months agoMove input/output configuration into the correct function.
patrick [Wed, 9 Nov 2022 19:25:50 +0000 (19:25 +0000)]
Move input/output configuration into the correct function.

23 months agoImplement wakeup interrupt support. For now this is only implemented for
kettenis [Wed, 9 Nov 2022 19:18:11 +0000 (19:18 +0000)]
Implement wakeup interrupt support.  For now this is only implemented for
aplintc(4); other arm64 interrupt controllers will follow.

ok patrick@

23 months agoFix up indentation for EVP_PKEY_* defines.
jsing [Wed, 9 Nov 2022 19:18:08 +0000 (19:18 +0000)]
Fix up indentation for EVP_PKEY_* defines.

23 months agonreq could leak a http get request in case a redirect without
mbuhl [Wed, 9 Nov 2022 19:11:14 +0000 (19:11 +0000)]
nreq could leak a http get request in case a redirect without
location header was received.
OK deraadt

23 months agoRevise CBS_strdup() documentation.
jsing [Wed, 9 Nov 2022 19:05:42 +0000 (19:05 +0000)]
Revise CBS_strdup() documentation.

CBS_strdup() now internally checks if the data contains NUL, failing if it
does.

Prompted by beck@

23 months agoIn do_zzz a garbage stack value could be accessed in case a read
mbuhl [Wed, 9 Nov 2022 18:48:11 +0000 (18:48 +0000)]
In do_zzz a garbage stack value could be accessed in case a read
or write in send_command failed.
Found by codechecker.
OK deraadt

23 months agoRemove xy/xd. SMD left with sparc.
krw [Wed, 9 Nov 2022 18:46:04 +0000 (18:46 +0000)]
Remove xy/xd. SMD left with sparc.

ok kn@ deraadt@

23 months agodlopen() with RTLD_NODELETE should also set the object nodelete flag,
deraadt [Wed, 9 Nov 2022 18:44:11 +0000 (18:44 +0000)]
dlopen() with RTLD_NODELETE should also set the object nodelete flag,
so the mapping layer will know it can use mimmutable()

23 months agoSince the introduction of automatic immutable from the kernel, the munmap()
deraadt [Wed, 9 Nov 2022 18:39:35 +0000 (18:39 +0000)]
Since the introduction of automatic immutable from the kernel, the munmap()
of ld.so boot.text region is now (silently) failing because the region is
contained within the text LOAD, which is immutable.  So create a new btext
LOAD with flags PF_X|PF_R|PF_OPENBSD_MUTABLE, and place all boot.text objects
in there.  This LOAD must also be page-aligned so it doesn't skip unmapping
some of the object region, previously it was hilariously unaligned.
ok kettenis and guenther seemed to like it also
This one is for 32-bit arm, tested by phessler

23 months agoClean up EVP_PKEY_METHOD related tables and code.
jsing [Wed, 9 Nov 2022 18:25:36 +0000 (18:25 +0000)]
Clean up EVP_PKEY_METHOD related tables and code.

This is effectively the same as done for EVP_PKEY_ASN1_METHOD, although
this table only has nine entries.

ok tb@

23 months agoError out if a ROA payload contains too many ipAddrBlocks
job [Wed, 9 Nov 2022 18:17:23 +0000 (18:17 +0000)]
Error out if a ROA payload contains too many ipAddrBlocks

The ASN.1 profile in draft-ietf-sidrops-rfc6482bis section 4 specifies
that there must not be more than 2 ipAddrBlocks (one for IPv4, and one
for IPv6). Compatible with all published ROAs.

OK tb@

23 months agoClean up EVP_PKEY_ASN1_METHOD related tables and code.
jsing [Wed, 9 Nov 2022 18:17:16 +0000 (18:17 +0000)]
Clean up EVP_PKEY_ASN1_METHOD related tables and code.

Rather than messing around with an OBJ_bsearch() for a table that contains
16 entries (and a stack find for any application added methods), simply do
a reverse linear scan. This maintains the application method first
behaviour, while removing a chunk of code.

While here rename some variables and do some style clean up.

ok tb@

23 months agoAdd suspend/resume support to aplns(4).
kettenis [Wed, 9 Nov 2022 18:17:00 +0000 (18:17 +0000)]
Add suspend/resume support to aplns(4).

ok dlg@, patrick@

23 months agoSimplify the overly complex VXLOCK handling in spec_close.
claudio [Wed, 9 Nov 2022 18:12:47 +0000 (18:12 +0000)]
Simplify the overly complex VXLOCK handling in spec_close.
The code only needs to know if the vnode is exclusive locked and this
can be done on entry of the function.
OK mpi@

23 months agoAdd tests for boundary conditions of struct tm.
beck [Wed, 9 Nov 2022 18:11:45 +0000 (18:11 +0000)]
Add tests for boundary conditions of struct tm.

Struct tm is limited by it's year being an int.

23 months agondp, route, netstat: adjust ipv6 address width
kn [Wed, 9 Nov 2022 18:00:02 +0000 (18:00 +0000)]
ndp, route, netstat: adjust ipv6 address width

It has been annoying me for too long that fully specififed GUAs
(2001:0db8:3333:4444:5555:6666:7777:8888) mess up alignment.

systat(1)'s netstat is the only view that has a big enough limit and thus
never misaligns.

Unify ndp(8), route(8) and netstat(1) views to always align nicely.

Feedback OK claudio

23 months agovmm(4): treat vcpu lists as immutable, reducing complexity.
dv [Wed, 9 Nov 2022 17:53:12 +0000 (17:53 +0000)]
vmm(4): treat vcpu lists as immutable, reducing complexity.

Since vmm doesn't support hot-plug vcpus we can reduce complexity
by treating the vcpu list per vm as immutable after creation.

As a consequence, we can use the vm reference count to protect the
lifetime of the vcpus, removing the need for reference counting
individual vcpu objects. With an immutable list, we no longer need
a rwlock protecting it either.

Original diff from dlg@ that I reworked and tested.

ok dlg@, mlarkin@

23 months agoRevise ED25519 regress following API changes.
jsing [Wed, 9 Nov 2022 17:49:54 +0000 (17:49 +0000)]
Revise ED25519 regress following API changes.

23 months agoMake X25519_public_from_private() internally reachable.
jsing [Wed, 9 Nov 2022 17:45:55 +0000 (17:45 +0000)]
Make X25519_public_from_private() internally reachable.

23 months agoBefore printing the redirect URI pass it through stravis since it is
claudio [Wed, 9 Nov 2022 17:41:05 +0000 (17:41 +0000)]
Before printing the redirect URI pass it through stravis since it is
untrusted input.
OK tb@ kn@ millert@

23 months agoRename public_value to public_key for consistency.
jsing [Wed, 9 Nov 2022 17:40:51 +0000 (17:40 +0000)]
Rename public_value to public_key for consistency.

ok tb@

23 months agoRework ED25519 API.
jsing [Wed, 9 Nov 2022 17:39:29 +0000 (17:39 +0000)]
Rework ED25519 API.

BoringSSL implemented a compound private key, which includes a copy of the
public key as a performance optimisation for signing. However, this does
not readily match with how EVP works, makes the ED25519 API inconsistent
with the X25519 API, diverges from th RFC and does not align with the
OpenSSL API. Instead, the caller can readily compute the public key and
pass this in to the signing process.

ok tb@

23 months agoAdd some regress coverage for EVP_PKEY_METHOD.
jsing [Wed, 9 Nov 2022 17:15:59 +0000 (17:15 +0000)]
Add some regress coverage for EVP_PKEY_METHOD.

23 months agotimeout(9): remove TIMEOUT_KCLOCK flag
cheloha [Wed, 9 Nov 2022 17:12:50 +0000 (17:12 +0000)]
timeout(9): remove TIMEOUT_KCLOCK flag

I never should have added the TIMEOUT_KCLOCK flag.  It is redundant
and only serves to complicate the timeout(9) logic.  In every place
where we check for the flag we can just use timeout.to_kclock.

So, remove the flag from <sys/timeout.h> and rewrite all affected
logic to use the value of timeout.to_kclock instead.

ok kn@

23 months agoSort EVP_PKEY_METHOD externs.
jsing [Wed, 9 Nov 2022 17:03:53 +0000 (17:03 +0000)]
Sort EVP_PKEY_METHOD externs.

23 months agoStrip spaces at end of header lines and in chunked encoding headers.
claudio [Wed, 9 Nov 2022 16:29:58 +0000 (16:29 +0000)]
Strip spaces at end of header lines and in chunked encoding headers.
HTTP standard allows for spaces in too many places
OK millert@ tb@

23 months agoMake aplpmgr(4) work as a reset controller.
kettenis [Wed, 9 Nov 2022 16:23:51 +0000 (16:23 +0000)]
Make aplpmgr(4) work as a reset controller.

ok patrick@

23 months agoSort EVP_PKEY_ASN1_METHOD externs.
jsing [Wed, 9 Nov 2022 16:14:15 +0000 (16:14 +0000)]
Sort EVP_PKEY_ASN1_METHOD externs.

23 months agoAdd some regress coverage for EVP_PKEY_ASN1_METHOD
jsing [Wed, 9 Nov 2022 16:13:39 +0000 (16:13 +0000)]
Add some regress coverage for EVP_PKEY_ASN1_METHOD

23 months agoInline use of bn_is_prime_bpsw()
tb [Wed, 9 Nov 2022 15:33:13 +0000 (15:33 +0000)]
Inline use of bn_is_prime_bpsw()

Instead of using the BN_is_prime_fasttime_ex() API, use a direct call to
bn_is_prime_bpsw(). This increases readability and simplifies error
handling. Also put a division by two to the natural place now that we no
longer need to do Miller-Rabin rounds.

ok beck jsing

23 months agoUse nitems() instead of a terminating { NULL, NULL } entry.
krw [Wed, 9 Nov 2022 15:17:28 +0000 (15:17 +0000)]
Use nitems() instead of a terminating { NULL, NULL } entry.

23 months agoAdd missin 'e' in comment.
claudio [Wed, 9 Nov 2022 15:01:24 +0000 (15:01 +0000)]
Add missin 'e' in comment.
OK dlg@

23 months agoEnable l3vpn test
claudio [Wed, 9 Nov 2022 14:31:31 +0000 (14:31 +0000)]
Enable l3vpn test

23 months agoProperly handle L3VPN routes in kroute. This got broken while reworking
claudio [Wed, 9 Nov 2022 14:26:14 +0000 (14:26 +0000)]
Properly handle L3VPN routes in kroute. This got broken while reworking
large part of the code.
Issue reported and fix tested by Bars Bars tutbaranov (at) gmail.com
OK tb@

23 months agoFix nlri parsing of L3VPN prefixes in withdrawals.
claudio [Wed, 9 Nov 2022 14:23:53 +0000 (14:23 +0000)]
Fix nlri parsing of L3VPN prefixes in withdrawals.

L3VPN NLRI have different encoding for updates and withdraws. The withdraw
carries one dummy MPLS label that needs to be skipped. The code doing that
did adjust the lenght but did not skip the the label in the buffer and so
the parsed prefix was off by 3 bytes.
OK tb@

23 months agoShow the MPLS label of a L3VPN route in show fib output.
claudio [Wed, 9 Nov 2022 14:20:11 +0000 (14:20 +0000)]
Show the MPLS label of a L3VPN route in show fib output.
OK tb@

23 months agoImplement reading/writing pins on qcpmicgpio(4).
patrick [Wed, 9 Nov 2022 13:46:11 +0000 (13:46 +0000)]
Implement reading/writing pins on qcpmicgpio(4).

23 months agoRecommit r1.669 "Unlock SIOCIFGCLONERS"
kn [Wed, 9 Nov 2022 13:09:30 +0000 (13:09 +0000)]
Recommit r1.669 "Unlock SIOCIFGCLONERS"

OK mvs

23 months agoPush kernel lock from ifioctl() into ifioctl_get()
kn [Wed, 9 Nov 2022 13:08:36 +0000 (13:08 +0000)]
Push kernel lock from ifioctl() into ifioctl_get()

Recommit these two together:
- r1.667 "Push kernel lock into ifioctl_get()"
  locked before the switch() without unlocking in its cases
- r1.668 "Push kernel lock inside ifioctl_get()"
  locked cases individually, as intended

I messed up splitting commits, but of course, Hrvoje managed to test a
CVS checkout right inbetween those two.

OK mpi mvs

23 months agoRemove unnecessary sizeof
joshua [Wed, 9 Nov 2022 12:13:08 +0000 (12:13 +0000)]
Remove unnecessary sizeof

ok jsing@ tb@

23 months agoRemove unnecessary sizeof
joshua [Wed, 9 Nov 2022 12:10:17 +0000 (12:10 +0000)]
Remove unnecessary sizeof

ok jsing@ tb@

23 months agoNext pass of bn_prime.c cleanup
tb [Wed, 9 Nov 2022 11:31:51 +0000 (11:31 +0000)]
Next pass of bn_prime.c cleanup

Garbage collect a few pointless variables and remove a loop that wasn't
really a loop. Simplify BN_CTX handling and drop some stupid comments.

ok jsing miod

23 months agoreplace SRP with SMR in the if_idxmap.
dlg [Wed, 9 Nov 2022 10:41:18 +0000 (10:41 +0000)]
replace SRP with SMR in the if_idxmap.

when i first wrote if_idxmap i didn't realise (and no one thought
to tell me) that index 0 was special and means "no interface", so
while here use the 0th slot in the interface map to store the length
of the map instead of prepending the map with a length field.
if_get() now special cases index 0 and returns NULL directly. this
also means the size of the map is now always a power of 2, which
is a nicer fit with what the kernel malloc aprovides.

tweaks and ok visa@

23 months agoregen
mpi [Wed, 9 Nov 2022 10:27:01 +0000 (10:27 +0000)]
regen

23 months agogpt_get_fstype() doesn't modify its parameter so make said
krw [Wed, 9 Nov 2022 10:26:37 +0000 (10:26 +0000)]
gpt_get_fstype() doesn't modify its parameter so make said
parameter const.

23 months agoMark sched_yield(2) as NOLOCK.
mpi [Wed, 9 Nov 2022 10:26:28 +0000 (10:26 +0000)]
Mark sched_yield(2) as NOLOCK.

All the fields accessed in this syscall are protected by the SCHED_LOCK()
so it isn't necessary to wait for another CPU to release the KERNEL_LOCK()
before that.

ok claudio@

23 months agoadd an example for adding a cloning host route to reach a gateway which is
sthen [Wed, 9 Nov 2022 10:23:01 +0000 (10:23 +0000)]
add an example for adding a cloning host route to reach a gateway which is
outside the subnet, some hosting providers use this. info from Eric JACQUOT
ok florian kn phessler

23 months agovmm on !MULTIPROCESSOR kernels should still mark vpus with pending intrs.
dlg [Wed, 9 Nov 2022 10:19:20 +0000 (10:19 +0000)]
vmm on !MULTIPROCESSOR kernels should still mark vpus with pending intrs.

the #ifdef MULTIPROCESSOR was a little broad.

still grateful to anton and stsp for unbreaking the tree though.

23 months agodocument '=' as a pkgspec
espie [Wed, 9 Nov 2022 10:10:53 +0000 (10:10 +0000)]
document '=' as a pkgspec

23 months agotranslate Fn+(1-10,-,=) keys to F1-F12 on M1 laptops with a touchbar
robert [Wed, 9 Nov 2022 10:05:18 +0000 (10:05 +0000)]
translate Fn+(1-10,-,=) keys to F1-F12 on M1 laptops with a touchbar

ok kettenis@, miod@

23 months agoregen
robert [Wed, 9 Nov 2022 10:03:22 +0000 (10:03 +0000)]
regen

23 months agoadd a USB ID for WELLSPRINGM1_J293 to be used by aplhidev(4) to identify
robert [Wed, 9 Nov 2022 10:03:04 +0000 (10:03 +0000)]
add a USB ID for WELLSPRINGM1_J293 to be used by aplhidev(4) to identify
M1 laptops with touchbars

23 months agoFix typo in fatal error message. Patch from vapier at chromium.org.
dtucker [Wed, 9 Nov 2022 09:04:12 +0000 (09:04 +0000)]
Fix typo in fatal error message.  Patch from vapier at chromium.org.

23 months agoRemove errant colon and simplify format string in error messages.
dtucker [Wed, 9 Nov 2022 09:01:52 +0000 (09:01 +0000)]
Remove errant colon and simplify format string in error messages.
Patch from vapier at chromium.org.

23 months agoRemove old-style eeprom mentions and relevant leftover code; ok kettenis@
miod [Wed, 9 Nov 2022 07:20:12 +0000 (07:20 +0000)]
Remove old-style eeprom mentions and relevant leftover code; ok kettenis@

23 months agoMinor cleanups:
miod [Wed, 9 Nov 2022 07:11:30 +0000 (07:11 +0000)]
Minor cleanups:
- remove unused pmap_vp_remove function.
- remove obviously not-applying-to-this-situation comment in
  _pmap_kenter_pa(), copied from pmap_enter() (where it is legit).
- make the PTED_xxx accessors inline.
- actually use PTED_WIRED() rather than inlining it everywhere.

ok mpi@ kettenis@

23 months agouse Fn; from josiah frentsos
jmc [Wed, 9 Nov 2022 06:48:29 +0000 (06:48 +0000)]
use Fn; from josiah frentsos

23 months agounbreak GENERIC build on amd64; patch by anton@
stsp [Wed, 9 Nov 2022 06:32:58 +0000 (06:32 +0000)]
unbreak GENERIC build on amd64; patch by anton@

vmm.c:900:3: error: implicit declaration of function 'x86_send_ipi' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]

23 months agoDrop some dead code
tb [Wed, 9 Nov 2022 02:01:13 +0000 (02:01 +0000)]
Drop some dead code

ok jsing

23 months agorename client_global_hostkeys_private_confirm() to
djm [Wed, 9 Nov 2022 01:37:44 +0000 (01:37 +0000)]
rename client_global_hostkeys_private_confirm() to
client_global_hostkeys_prove_confirm(), as it handles the
"hostkeys-prove00@openssh.com" message; no functional change

23 months agoFix possible memory leak in BN_mpi2bn() if BN_bin2bn() fails.
tobhe [Wed, 9 Nov 2022 01:05:45 +0000 (01:05 +0000)]
Fix possible memory leak in BN_mpi2bn() if BN_bin2bn() fails.

found with CodeChecker
feedback from millert@
ok tb@