openbsd
3 weeks agouse rdmsr_safe() instead of rdmsr() for probing feature
semarie [Sun, 6 Oct 2024 16:24:02 +0000 (16:24 +0000)]
use rdmsr_safe() instead of rdmsr() for probing feature

the second could raise general protection fault on non-existant MSR

fix with help of jsg@
ok dv@

3 weeks agonew opt-in PATCH_QUIET aka. patch(1) -s; OK tb
kn [Sun, 6 Oct 2024 10:24:52 +0000 (10:24 +0000)]
new opt-in PATCH_QUIET aka. patch(1) -s;  OK tb

3 weeks agoTry to stay near the same line in modes if the current one is removed.
nicm [Sun, 6 Oct 2024 09:30:22 +0000 (09:30 +0000)]
Try to stay near the same line in modes if the current one is removed.

3 weeks agoremove unused axppmic_rsb_cd, axppmic at rsb uses axppmic_cd
jsg [Sun, 6 Oct 2024 03:46:48 +0000 (03:46 +0000)]
remove unused axppmic_rsb_cd, axppmic at rsb uses axppmic_cd

3 weeks agoremove unused sched_cost_load variable
jsg [Sun, 6 Oct 2024 01:50:56 +0000 (01:50 +0000)]
remove unused sched_cost_load variable

3 weeks agoremove unused wi_usb_cd, wi at usb uses wi_cd
jsg [Sun, 6 Oct 2024 01:28:39 +0000 (01:28 +0000)]
remove unused wi_usb_cd, wi at usb uses wi_cd

3 weeks agoremove unused atw_beacon_len_adjust variable
jsg [Sun, 6 Oct 2024 01:12:15 +0000 (01:12 +0000)]
remove unused atw_beacon_len_adjust variable

3 weeks agoSeperate -> Separate
jsg [Sun, 6 Oct 2024 00:13:42 +0000 (00:13 +0000)]
Seperate -> Separate

3 weeks agoMake scaling available for normal mice, too; not just for touchpads.
chrisz [Sat, 5 Oct 2024 13:27:16 +0000 (13:27 +0000)]
Make scaling available for normal mice, too; not just for touchpads.
Add reverse_scrolling to the manpage.

ok bru@

3 weeks agoSend focus events to pane when entering or leaving popup, GitHub issue
nicm [Sat, 5 Oct 2024 12:10:16 +0000 (12:10 +0000)]
Send focus events to pane when entering or leaving popup, GitHub issue
3991.

3 weeks agoremove unneeded includes
jsg [Sat, 5 Oct 2024 09:54:39 +0000 (09:54 +0000)]
remove unneeded includes

3 weeks agoerror on long locator lines, don't overflow buffers
jsg [Sat, 5 Oct 2024 01:07:38 +0000 (01:07 +0000)]
error on long locator lines, don't overflow buffers
found with afl, feedback and ok millert@

3 weeks agoRemove some debugging left behind.
nicm [Sat, 5 Oct 2024 00:35:35 +0000 (00:35 +0000)]
Remove some debugging left behind.

3 weeks agoAdd copy-mode-position-format to configure the position indicator.
nicm [Sat, 5 Oct 2024 00:32:55 +0000 (00:32 +0000)]
Add copy-mode-position-format to configure the position indicator.

3 weeks agoDocument missing window-layout-changed hook.
nicm [Fri, 4 Oct 2024 22:36:11 +0000 (22:36 +0000)]
Document missing window-layout-changed hook.

3 weeks agoAllow boot loader to run as AMD SEV guest on QEMU with EFI.
bluhm [Fri, 4 Oct 2024 22:21:28 +0000 (22:21 +0000)]
Allow boot loader to run as AMD SEV guest on QEMU with EFI.

When efibooting amd64, the boot loader rewrites the page table built
by EFI firmware to ensure that there are no read-only mappings.
The rewrite is needed for some HP EFI BIOS, that maps computrace
section read-only.
When efibooting on SEV enabled QEMU, we would have to ensure the
crypt bit is set when changing page tables.  However, there is no
need for the HP workaround when booting on QEMU (or any other VM),
so just do not modify the page table, when SEV gest mode is detected.

from Sebastian Sturm; via hshoexer@; OK kettenis@

3 weeks agoAllow kernel boot on QEMU with AMD SEV.
bluhm [Fri, 4 Oct 2024 21:15:52 +0000 (21:15 +0000)]
Allow kernel boot on QEMU with AMD SEV.

When booting an OpenBSD kernel on Linux QEMU with SEV enabled, the
hypervisor does not forward the SME feature, only the SEV bit is
set.  Therefore do not depend on SME when checking for SEV guest
mode in locore0.

from Sebastian Sturm; via hshoexer@; OK jsg@

3 weeks agoAdd -y flag to disable confirmation prompts in modes, GitHub issue 4152.
nicm [Fri, 4 Oct 2024 19:16:13 +0000 (19:16 +0000)]
Add -y flag to disable confirmation prompts in modes, GitHub issue 4152.

3 weeks agoRemove unused SIGEMT.
miod [Fri, 4 Oct 2024 19:00:27 +0000 (19:00 +0000)]
Remove unused SIGEMT.

3 weeks agoIncrease psp(4) timeouts.
bluhm [Fri, 4 Oct 2024 16:58:26 +0000 (16:58 +0000)]
Increase psp(4) timeouts.

On EPYC 9124 psp(4) seems to need more to time to respond.  Otherwise
it will not attach.  Increase timeouts for both polling during
autoconf and interrupt during normal operation.

from hshoexer@ OK mlarkin@

3 weeks agoDo not translate BSpace as Unicode, GitHub issue 4156.
nicm [Fri, 4 Oct 2024 14:55:17 +0000 (14:55 +0000)]
Do not translate BSpace as Unicode, GitHub issue 4156.

3 weeks agoRemove two MHI LOOPBACK channels, there's no need to match them.
kevlo [Fri, 4 Oct 2024 07:46:33 +0000 (07:46 +0000)]
Remove two MHI LOOPBACK channels, there's no need to match them.

Also move PCI ops registration ahead.  That way the ops will be registered
if any subsequent operations within the case processing require the ops to

See Linux commit fbb2a14afe00a5691b43cd19c946472e59e16fc6 and
515bcdf587f9911f2d5de51524cb7e048d295052

ok stsp@

3 weeks agoRework of copy mode commands ("send-keys -X") to parse the arguments so
nicm [Fri, 4 Oct 2024 07:03:08 +0000 (07:03 +0000)]
Rework of copy mode commands ("send-keys -X") to parse the arguments so
that flags may be detected propertly rather than just looking for
strings ("-O" and so on). Also add -C and -P flags to the copy commands:
-C prevents the commands from sending the text to the clipboard and -P
prevents them from adding the text as a paste buffer.

Note some of the default key bindings change to add "--" and any similar
custom key bindings using "send-keys -X" may need a similar change.

GitHub issue 4153.

3 weeks agoAs with other multiqueue drivers, print the number of queues we set up
jmatthew [Fri, 4 Oct 2024 06:37:22 +0000 (06:37 +0000)]
As with other multiqueue drivers, print the number of queues we set up
along with the interrupt and ethernet address details.

ok dlg@

3 weeks agoExpose {T,R}X desc trail and add link_enabled field to prepare VF
yasuoka [Fri, 4 Oct 2024 05:22:10 +0000 (05:22 +0000)]
Expose {T,R}X desc trail and add link_enabled field to prepare VF
support.  diff from naito.yuichiro at gmail.com

ok jan jmatthew

3 weeks agoIn rucheck() sum up the tusage from all threads to get the real current
claudio [Thu, 3 Oct 2024 10:20:05 +0000 (10:20 +0000)]
In rucheck() sum up the tusage from all threads to get the real current
runtime of the process. Also this no longer needs the SCHED_LOCK().
OK mpi@

3 weeks agoFix the clock_gettime() handler for pthread_getcpuclockid() to
claudio [Thu, 3 Oct 2024 10:18:29 +0000 (10:18 +0000)]
Fix the clock_gettime() handler for pthread_getcpuclockid() to
use the proper way to read tu_runtime.
OK mpi@

3 weeks agovio: Increase rx mbuf size with lro
sf [Thu, 3 Oct 2024 08:59:49 +0000 (08:59 +0000)]
vio: Increase rx mbuf size with lro

bluhm found that using bigger rx mbufs helps tcp splice performance if
lro is enabled. Use 4k in that case.

Also fix confusion in rx dmamap segment count. Even with lro/tso, we
only put unfragmented mbufs into the rx queue. Therefore we only need
max. 2 segments, one for the mbuf and one for the separate header for
legacy virtio devices.

OK bluhm@

3 weeks agoRemove the unused field_mod_func from EC_GROUP
tb [Thu, 3 Oct 2024 06:24:07 +0000 (06:24 +0000)]
Remove the unused field_mod_func from EC_GROUP

This was only used by the NIST method. For all other group methods it's
an uninitialized pointer (as EC_GROUP_new() still uses the malloc + set
all members to 0 idiom).

ok jsing

3 weeks agoImprove fix for shifted keys so it works for all the keys it should,
nicm [Thu, 3 Oct 2024 05:41:59 +0000 (05:41 +0000)]
Improve fix for shifted keys so it works for all the keys it should,
Stanislav Kljuhhin in GitHub issue 4146.

3 weeks agoMake EC{,PK}PARAMETERS_it static
tb [Thu, 3 Oct 2024 05:07:49 +0000 (05:07 +0000)]
Make EC{,PK}PARAMETERS_it static

They aren't used outside of this file.

3 weeks agoWe've left release mode. Time to re-enable POOL_DEBUG
tb [Thu, 3 Oct 2024 04:39:09 +0000 (04:39 +0000)]
We've left release mode. Time to re-enable POOL_DEBUG

ok deraadt

3 weeks agoFix ASN1_INTEGER_to_BN() misuse
tb [Thu, 3 Oct 2024 04:20:28 +0000 (04:20 +0000)]
Fix ASN1_INTEGER_to_BN() misuse

Same issue/leak as for BN_to_ASN1_INTEGER(). Stop reusing the elliptic
curve parameters a and b for order and cofacter. It's confusing.

ok jsing

3 weeks agoSwitch field_bits to be an int
tb [Thu, 3 Oct 2024 04:17:05 +0000 (04:17 +0000)]
Switch field_bits to be an int

ok jsing

3 weeks agoFix BN_to_ASN1_INTEGER() misuse
tb [Thu, 3 Oct 2024 04:15:52 +0000 (04:15 +0000)]
Fix BN_to_ASN1_INTEGER() misuse

You can either let this API reuse an existing ASN1_INTEGER or you can let
it allocate a new one. If you try to do both at the same time, you'll leak.

ok jsing

3 weeks agoProvide OPENSSL_INIT_NO_ATEXIT noop
tb [Thu, 3 Oct 2024 03:47:40 +0000 (03:47 +0000)]
Provide OPENSSL_INIT_NO_ATEXIT noop

The brilliant idea of installing a fragile non-idempotent cleanup atexit
handler as a library has bitten many people over time. This gets particularly
exciting when you can't control who dlopens the lib first (don't we all love
Python bindings) or if you are in a threaded context. Fake OpenSSL clones
chose not to do this but now get to carry a noop flag since people start
opting out of this madness (there's a good old tradition at work here).

ok beck joshua jsing millert miod

3 weeks agoX509V3_EXT_get_nid.3: indicate what nid means
tb [Thu, 3 Oct 2024 03:31:47 +0000 (03:31 +0000)]
X509V3_EXT_get_nid.3: indicate what nid means

3 weeks agoImprove the heuristic for detecting i2c devices. On the x1e some of the
kettenis [Wed, 2 Oct 2024 21:21:32 +0000 (21:21 +0000)]
Improve the heuristic for detecting i2c devices.  On the x1e some of the
USB controllers have an I2cSerialBusV2() (possibly defining a connection
to some sort of eUSB2 to USB2 redriver chip) but are not i2c devices
themselves.  So check if a device has MMIO resources and assume it isn't
a proper i2c device if it has those.  Makes the Type-A ports on my
vivobook work in acpi mode.

ok patrick@, mlarkin@

3 weeks agoamd64: implement a pmap_shootept() for non-MP kernels.
dv [Wed, 2 Oct 2024 18:18:27 +0000 (18:18 +0000)]
amd64: implement a pmap_shootept() for non-MP kernels.

Simplifies some of the recent INVEPT changes and mirrors the design
of other pmap tlb shootdown functions that provide simplified non-MP
implementations.

ok mlarkin@

3 weeks agoUpdate to 2024bgtz from https://github.com/JodaOrg/global-tz
millert [Wed, 2 Oct 2024 17:08:47 +0000 (17:08 +0000)]
Update to 2024bgtz from https://github.com/JodaOrg/global-tz
 o Improve historical data for Mexico, Mongolia, and Portugal.
 o System V names are now obsolescent.
 o The main data form now uses %z.

3 weeks agoMove some PCI MMIO defines from vmm(4) kernel headers to userland.
dv [Wed, 2 Oct 2024 17:05:56 +0000 (17:05 +0000)]
Move some PCI MMIO defines from vmm(4) kernel headers to userland.

vmm(4) doesn't need this information anymore. vmd(8) is the only
consumer of this information.

ok mlarkin@

3 weeks agoReorder functions.
jsing [Wed, 2 Oct 2024 15:21:39 +0000 (15:21 +0000)]
Reorder functions.

Reorder functions so that things are somewhat more logical, moving internal
functions towards the top (and removing now unnecessary prototypes).

3 weeks agoRemove err_fns and associated machinery.
jsing [Wed, 2 Oct 2024 14:54:26 +0000 (14:54 +0000)]
Remove err_fns and associated machinery.

Like all good OpenSSL code, errors was built to be completely extensible.
Thankfully, the ERR_{get,set}_implementation() functions were removed in
r1.127 of err.c, which means that the extensibility can no longer be used.

Take the first of many steps to clean up this code - remove err_fns and
associated machinery, calling functions directly. Rename so that we have
an 'err_' prefix rather than 'int_' (or nothing).

ok joshua@ tb@

3 weeks agoHook up the err regress.
jsing [Wed, 2 Oct 2024 14:50:58 +0000 (14:50 +0000)]
Hook up the err regress.

3 weeks agoAdd initial regress for the error stack and ERR_* APIs.
jsing [Wed, 2 Oct 2024 14:41:46 +0000 (14:41 +0000)]
Add initial regress for the error stack and ERR_* APIs.

3 weeks agoEnable additional CRYPTO_get_ex_new_index() tests.
jsing [Wed, 2 Oct 2024 14:12:21 +0000 (14:12 +0000)]
Enable additional CRYPTO_get_ex_new_index() tests.

It was previously possible to call CRYPTO_get_ex_new_index() with either
a negative index or a positive index that equaled or exceeded
CRYPTO_EX_INDEX__COUNT. The reimplementation of exdata treats these as
error cases.

3 weeks agoOn i386 long double is 80bit expanded to 96bits or 12 bytes. This is the
claudio [Wed, 2 Oct 2024 12:31:33 +0000 (12:31 +0000)]
On i386 long double is 80bit expanded to 96bits or 12 bytes. This is the
size that the ctftools ctfconvert uses and I think we should do as well.
Fixes regress/usr.bin/ctfdump on i386.
OK miod@

3 weeks agoAdd MSYSTEM to default update-environment.
nicm [Wed, 2 Oct 2024 11:51:15 +0000 (11:51 +0000)]
Add MSYSTEM to default update-environment.

3 weeks agoAdd a define for the socket permissions check so it can be overridden
nicm [Wed, 2 Oct 2024 11:48:16 +0000 (11:48 +0000)]
Add a define for the socket permissions check so it can be overridden
more easily (for Cgywin).

4 weeks agoModify uvmpd_scan_inactive() to access `uvmexp.pdfreed' only once.
mpi [Wed, 2 Oct 2024 10:36:33 +0000 (10:36 +0000)]
Modify uvmpd_scan_inactive() to access `uvmexp.pdfreed' only once.

ok kettenis@

4 weeks agoImprove responsiveness in OOM situations & make free target checks coherent.
mpi [Wed, 2 Oct 2024 10:24:11 +0000 (10:24 +0000)]
Improve responsiveness in OOM situations & make free target checks coherent.

Remove a change introduced in NetBSD to pageout 4 times as many pages as
required to meet the low water mark of free pages.   With todays' Gbs of
RAMs, it makes the pagedaemon hog the CPU for too long when the amount of
free pages is close to none.

ok sthen@, kettenis@

4 weeks agoReturn number of freed pages in uvm_pmr_cache_drain().
mpi [Wed, 2 Oct 2024 10:17:28 +0000 (10:17 +0000)]
Return number of freed pages in uvm_pmr_cache_drain().

ok kettenis@

4 weeks agoSwitch PV pool allocator to use km_alloc(9) instead of uvm_km_kmemalloc(9).
mpi [Wed, 2 Oct 2024 10:12:52 +0000 (10:12 +0000)]
Switch PV pool allocator to use km_alloc(9) instead of uvm_km_kmemalloc(9).

Reduce differences between pmaps & allow us to remove another deprecated
allocator.

ok phessler@, miod@

4 weeks agoNo need to check as->established before calling pfkey_remove().
claudio [Wed, 2 Oct 2024 09:45:29 +0000 (09:45 +0000)]
No need to check as->established before calling pfkey_remove().

Remove the extra checks in the caller and simplify some code because of that.
OK tb@

4 weeks agoAdding pkg_add from stdin hasn't worked in ages. It was something
tb [Wed, 2 Oct 2024 09:14:08 +0000 (09:14 +0000)]
Adding pkg_add from stdin hasn't worked in ages. It was something
we inherited from the initial implemention on FreeBSD which has
made no sense in years.

prompted by a diff by Johannes Thyssen Tishman
from espie

4 weeks agoReport shifted keys like S-A as A not as S-A in mode 1 extended keys,
nicm [Wed, 2 Oct 2024 08:06:45 +0000 (08:06 +0000)]
Report shifted keys like S-A as A not as S-A in mode 1 extended keys,
from Stanislav Kljuhhin.

4 weeks agoExtend Log->system to support the same features as BaseState->system
tb [Tue, 1 Oct 2024 18:48:29 +0000 (18:48 +0000)]
Extend Log->system to support the same features as BaseState->system

In order to support privsep in tags, we need to be able to pass some
code values in child/parent.

from espie, tested by sthen, ok giovanni

4 weeks agoUse auth_conf.method instead of auth_state.method. The latter is always 0.
claudio [Tue, 1 Oct 2024 18:33:16 +0000 (18:33 +0000)]
Use auth_conf.method instead of auth_state.method. The latter is always 0.

4 weeks agoExplicitly set peer.auth_conf.method, the auth_state value is never
claudio [Tue, 1 Oct 2024 18:31:10 +0000 (18:31 +0000)]
Explicitly set peer.auth_conf.method, the auth_state value is never
initialized in the SE so bgpctl did always see 0, auth_conf.method
is on the other hand properly shared.
OK tb@

4 weeks agoIn merge_peers also copy over the auth_conf from the new peer to the old
claudio [Tue, 1 Oct 2024 18:29:34 +0000 (18:29 +0000)]
In merge_peers also copy over the auth_conf from the new peer to the old
since that one is kept.
OK tb@

4 weeks agoFix typo in comment
claudio [Tue, 1 Oct 2024 18:28:17 +0000 (18:28 +0000)]
Fix typo in comment
OK tb@

4 weeks agoAdjust to the pfkey changes in bgpd.
claudio [Tue, 1 Oct 2024 11:50:15 +0000 (11:50 +0000)]
Adjust to the pfkey changes in bgpd.
OK tb@

4 weeks agoRework the pfkey and tcp md5 API to not depend on struct peer.
claudio [Tue, 1 Oct 2024 11:49:24 +0000 (11:49 +0000)]
Rework the pfkey and tcp md5 API to not depend on struct peer.

Instead use struct auth_config and struct auth_state in the pfkey calls
and those tcp_md5 calls where it matters.

This is preparation work to allow RTR to use TCP MD5 as well.
OK tb@

4 weeks agoAdd a way to make the preview larger in tree mode, GitHub issue 4124.
nicm [Tue, 1 Oct 2024 10:10:29 +0000 (10:10 +0000)]
Add a way to make the preview larger in tree mode, GitHub issue 4124.

4 weeks agoMake it more obvious which ruadd argument is the source and which one is
claudio [Tue, 1 Oct 2024 09:22:25 +0000 (09:22 +0000)]
Make it more obvious which ruadd argument is the source and which one is
the destination by adding const to the source pointer.

OK tb@

4 weeks agoAdjust ptrace interface to properly suport single threaded continue.
claudio [Tue, 1 Oct 2024 08:28:34 +0000 (08:28 +0000)]
Adjust ptrace interface to properly suport single threaded continue.

Introduce P_TRACESINGLE flag to instruct the trapped thread to not
wakeup the other threads (via single_thread_clear). This must be done
like this since ptrace must wake just the single thread to ensure it
runs first and gets the ps_xsig value from ptrace.

Modern gdb depends on this for multi-threaded processes, when a breakpoint
is hit gdb fixes up the trapping instruction and then single steps over
it with only that thread. After that single step gdb continues with all
threads. If all threads are run like now it is possible that one of the
other threads hits a breakpoint before the single step is done which results
in an assertion in gdb (because that is not expected).
OK mpi@

4 weeks agoUse global cursor style and colour options for modes instead of default,
nicm [Tue, 1 Oct 2024 08:01:19 +0000 (08:01 +0000)]
Use global cursor style and colour options for modes instead of default,
GitHub issue 4117.

4 weeks agoremove unused variable
jsg [Tue, 1 Oct 2024 06:46:19 +0000 (06:46 +0000)]
remove unused variable

4 weeks agodrm: Expand max DRM device number to full MINORBITS
jsg [Tue, 1 Oct 2024 06:41:22 +0000 (06:41 +0000)]
drm: Expand max DRM device number to full MINORBITS

From Michal Winiarski
e615cd84dcf834e83b333bfb690fc2032b3fdb85 in linux-6.6.y/6.6.53
071d583e01c88272f6ff216d4f867f8f35e94d7d in mainline linux

4 weeks agoaccel: Use XArray instead of IDR for minors
jsg [Tue, 1 Oct 2024 06:36:45 +0000 (06:36 +0000)]
accel: Use XArray instead of IDR for minors

From Michal Winiarski
f6b589e361538285fdad8cf62143e3cf3b2c8b2a in linux-6.6.y/6.6.53
45c4d994b82b08f0ce5eb50f8da29379c92a391e in mainline linux

4 weeks agodrm: Use XArray instead of IDR for minors
jsg [Tue, 1 Oct 2024 06:30:40 +0000 (06:30 +0000)]
drm: Use XArray instead of IDR for minors

From Michal Winiarski
d2e3d344e20e605378556610811549249298d0aa in linux-6.6.y/6.6.53
5fbca8b48b3050ae7fb611a8b09af60012ed6de1 in mainline linux

4 weeks agoadd DEFINE_XARRAY_ALLOC for 6.6.53 drm
jsg [Tue, 1 Oct 2024 06:19:39 +0000 (06:19 +0000)]
add DEFINE_XARRAY_ALLOC for 6.6.53 drm

4 weeks agoadd MINORBITS for 6.6.53 drm
jsg [Tue, 1 Oct 2024 06:18:20 +0000 (06:18 +0000)]
add MINORBITS for 6.6.53 drm

4 weeks agoadd ACCEL_MAX_MINORS for 6.6.53 drm
jsg [Tue, 1 Oct 2024 06:17:46 +0000 (06:17 +0000)]
add ACCEL_MAX_MINORS for 6.6.53 drm

4 weeks agoChange pasting to bypass the output key processing entirely and write
nicm [Tue, 1 Oct 2024 06:15:47 +0000 (06:15 +0000)]
Change pasting to bypass the output key processing entirely and write
what was originally received. Fixes problems with pasted text being
interpreted as extended keys reported by Mark Kelly.

4 weeks agochange release date
deraadt [Mon, 30 Sep 2024 14:31:56 +0000 (14:31 +0000)]
change release date

4 weeks agoImprove some currently impossible error path in log_ext_subtype().
claudio [Mon, 30 Sep 2024 12:54:12 +0000 (12:54 +0000)]
Improve some currently impossible error path in log_ext_subtype().
Mainly handle unknown ext-communities better and handle the special
case of type == -1.
OK tb@

4 weeks agoUse ps_ppid instead of ps_pptr->ps_pid in all places.
claudio [Mon, 30 Sep 2024 12:32:26 +0000 (12:32 +0000)]
Use ps_ppid instead of ps_pptr->ps_pid in all places.
OK mpi@

4 weeks agohandle non xa_limit_32b ranges in xarray
jsg [Mon, 30 Sep 2024 12:21:17 +0000 (12:21 +0000)]
handle non xa_limit_32b ranges in xarray

4 weeks agostore xarray flags for XA_FLAGS_ALLOC1 test in alloc
jsg [Mon, 30 Sep 2024 12:09:04 +0000 (12:09 +0000)]
store xarray flags for XA_FLAGS_ALLOC1 test in alloc

4 weeks agoRemove code after exit1() and NOTREACHED comment. Nothing will ever get there.
claudio [Mon, 30 Sep 2024 11:49:44 +0000 (11:49 +0000)]
Remove code after exit1() and NOTREACHED comment. Nothing will ever get there.
OK mpi@

4 weeks agoIn bgpd_rtr_connect() do the setsockopt dance for IP_TOS and TCP_NODELAY
claudio [Mon, 30 Sep 2024 09:42:24 +0000 (09:42 +0000)]
In bgpd_rtr_connect() do the setsockopt dance for IP_TOS and TCP_NODELAY
before calling connect(). This way it happens for sure and on top the TOS
is already set on the initial SYN.
OK tb@

4 weeks agoOn some Windows terminals, if TIOCWINSZ does not return xpixel and
nicm [Mon, 30 Sep 2024 08:10:20 +0000 (08:10 +0000)]
On some Windows terminals, if TIOCWINSZ does not return xpixel and
ypixel (they are zero), if this is the case then try the query escape
sequences. From Dmitry Galchinsky in GitHub issue 4099.

4 weeks agoReturn the number of freed pages and handle SHRINK_STOP in drmbackoff().
mpi [Mon, 30 Sep 2024 08:09:39 +0000 (08:09 +0000)]
Return the number of freed pages and handle SHRINK_STOP in drmbackoff().

ok jsg@

4 weeks agoOnly use default-shell for popups, return to /bin/sh for run-shell,
nicm [Mon, 30 Sep 2024 07:54:51 +0000 (07:54 +0000)]
Only use default-shell for popups, return to /bin/sh for run-shell,
if-shell and #() - these have been documented as using /bin/sh for a
long time and scripts rely on it. Pointed out by Gregory Pakosz.

4 weeks agoinit xarray pool in drm_linux_init(), needed for static initialisation
jsg [Mon, 30 Sep 2024 03:55:46 +0000 (03:55 +0000)]
init xarray pool in drm_linux_init(), needed for static initialisation

4 weeks agoremove WSDISPLAYIO_OGINFO compat ioctl, planned for after 7.3
jsg [Mon, 30 Sep 2024 01:41:49 +0000 (01:41 +0000)]
remove WSDISPLAYIO_OGINFO compat ioctl, planned for after 7.3
ok miod@

4 weeks agoFix grey colour, from Magnus Gross.
nicm [Sun, 29 Sep 2024 20:05:42 +0000 (20:05 +0000)]
Fix grey colour, from Magnus Gross.

4 weeks agoadd some commas, to aid readability;
jmc [Sun, 29 Sep 2024 18:00:38 +0000 (18:00 +0000)]
add some commas, to aid readability;
from thorsten blum

4 weeks agosync synopsis and usage, sort commands, fix their spacing
kn [Sun, 29 Sep 2024 14:36:13 +0000 (14:36 +0000)]
sync synopsis and usage, sort commands, fix their spacing

OK input lucas

4 weeks agoremove unused cruft; ok kettenis@
jsg [Sun, 29 Sep 2024 12:22:57 +0000 (12:22 +0000)]
remove unused cruft; ok kettenis@

4 weeks agofix HWCAP_ASIMDHP test; ok kettenis@
jsg [Sun, 29 Sep 2024 11:22:39 +0000 (11:22 +0000)]
fix HWCAP_ASIMDHP test; ok kettenis@

4 weeks agocorrect a prototype
jsg [Sun, 29 Sep 2024 09:25:37 +0000 (09:25 +0000)]
correct a prototype

4 weeks agocatch up with the u-boot-aarch64 package split in install docs. changing
sthen [Sat, 28 Sep 2024 17:09:52 +0000 (17:09 +0000)]
catch up with the u-boot-aarch64 package split in install docs. changing
the dtb isn't normally needed (and can cause problems) so don't suggest that.
add some info for rk3588. partly from jsg.

4 weeks agorsync: make blkhash_free() callable with NULL.
tb [Fri, 27 Sep 2024 13:13:14 +0000 (13:13 +0000)]
rsync: make blkhash_free() callable with NULL.

It is in principle possible that blkhash_free() (which obviously frees
a struct blktab, sigh) is called with NULL. This would lead to a crash.

ok claudio

4 weeks agorsync: avoid reallocarray() with a nmemb of 0.
tb [Fri, 27 Sep 2024 13:10:39 +0000 (13:10 +0000)]
rsync: avoid reallocarray() with a nmemb of 0.

bset->blksz can be 0 here and how reallocarray() behaves is implementation
defined.

4 weeks agorsync: fix reallocarray() usage in blkhash_set()
tb [Fri, 27 Sep 2024 13:06:21 +0000 (13:06 +0000)]
rsync: fix reallocarray() usage in blkhash_set()

The well-named ERR() macro doesn't error out. Therefore an incorrect use
of reallocarray() is actually a leak that is easily overlooked. Do it the
right way by assigning to a temporary variable and preserve behavior by
freeing and NULL-ing.

ok claudio

4 weeks agorpki-client: free deltas in rrdp_session_parse() as in rrdp_repo_free()
tb [Fri, 27 Sep 2024 12:55:03 +0000 (12:55 +0000)]
rpki-client: free deltas in rrdp_session_parse() as in rrdp_repo_free()

ok claudio

4 weeks agorpki-client: check for getline error when reading the skiplist file
tb [Fri, 27 Sep 2024 12:52:58 +0000 (12:52 +0000)]
rpki-client: check for getline error when reading the skiplist file

ok claudio

4 weeks agotest some more Match syntax, including criteria=arg and negations
djm [Fri, 27 Sep 2024 01:05:54 +0000 (01:05 +0000)]
test some more Match syntax, including criteria=arg and negations