dv [Sun, 6 Nov 2022 19:00:37 +0000 (19:00 +0000)]
vmm(4): allocate reference for vm and vcpu SLISTs
Mischa Peters reported a performance regression in 7.2 when hosting
numerous guests under vmm(4). While iterating through the list of
vms during servicing an ioctl, vmm was triggering excessive wakeup
calls due to hitting zero refcnt.
Much guidance from dlg@ and testing from Mischa. OK mlarkin@.
kn [Sun, 6 Nov 2022 18:32:51 +0000 (18:32 +0000)]
regen after /dev/pf? cleanup (only /dev/pf exists)
tb [Sun, 6 Nov 2022 18:31:15 +0000 (18:31 +0000)]
Document that OPENSSL_free() is required in some circumstances
BoringSSL uses the common trick of storing malloc metadata in a prefix
and then returning a pointer with an offset. Therefore callers must not
call free() but OPENSSL_free().
Reported by dropk1ck via tobhe
ok beck jsing
kn [Sun, 6 Nov 2022 18:30:22 +0000 (18:30 +0000)]
There is only one pf(4); OK sashan
mbuhl [Sun, 6 Nov 2022 18:17:56 +0000 (18:17 +0000)]
Enable IPv4, TCP, and UDP checksum offloading, and VLAN HW tagging
for em 82575, 82576, i350, and i210.
Additional testing by Hrvoje Popovski
OK dlg@
dlg [Sun, 6 Nov 2022 18:05:05 +0000 (18:05 +0000)]
move pfsync_state_import in if_pfsync.c to pf_state_import in pf.c
this is straightening the deck chairs. the state import and export
code are used by both the pf ioctls and pfsync, but the export code
is in pf.c and the import code is in if_pfsync. if pfsync was
disabled then the ioctl stuff wouldnt link.
moving the import code to pf.c makes it more symmetrical(?) and
robust.
tweaks and ok from kn@ sashan@
jsing [Sun, 6 Nov 2022 16:41:29 +0000 (16:41 +0000)]
Add regress for
Ed25519.
From tb@
jsing [Sun, 6 Nov 2022 16:31:19 +0000 (16:31 +0000)]
Enable
Ed25519 internal to libcrypto.
Based on a diff from tb@
patrick [Sun, 6 Nov 2022 15:36:13 +0000 (15:36 +0000)]
Add FDT-based attachment for qciic(4).
ok kettenis@
patrick [Sun, 6 Nov 2022 15:33:58 +0000 (15:33 +0000)]
Add FDT-based attachment for qcgpio(4).
ok kettenis@
jsing [Sun, 6 Nov 2022 15:10:08 +0000 (15:10 +0000)]
Remove useless ancient files.
ok beck@ tb@
joshua [Sun, 6 Nov 2022 14:56:08 +0000 (14:56 +0000)]
Replace existing Blowfish regress tests
ok tb@ jsing@
tb [Sun, 6 Nov 2022 14:50:51 +0000 (14:50 +0000)]
Next to signedObject only allow rpkiNotify accessMethods
Instead of ignoring all non-signedObject accessMethods, we can be stricter
and only allow rpkiNotify (for now) and error on anything else. Also make
sure we properly clean up behind ourselves on error.
With and ok job
dlg [Sun, 6 Nov 2022 13:03:52 +0000 (13:03 +0000)]
make /dev/pf a clonable device.
this provides a 1:1 relationship of pfopen() calls to pfclose()
calls. in turn, this makes it a lot easier to track stuff allocated
by a process and then clean it up if that process goes away
unexpectedly. the unique dev_t provided by the cloning machinery
gives us a good identifier to track this state with too.
discussed with h2k22
ok sashan@
deraadt@ agrees this is a good time to put this in
aoyama [Sun, 6 Nov 2022 13:01:22 +0000 (13:01 +0000)]
Change character drawing depth when 'pseudo' framebuffer depth is changed.
Tested on LUNA-88K2 with 4bpp/8bpp framebuffer by me.
jmc [Sun, 6 Nov 2022 13:01:02 +0000 (13:01 +0000)]
add arch to Dt;
beck [Sun, 6 Nov 2022 12:59:46 +0000 (12:59 +0000)]
Enable time_conversion regress tests
beck [Sun, 6 Nov 2022 12:57:08 +0000 (12:57 +0000)]
Add a bunch of regression tests for time conversion.
This regression tests time conversion across various
limits, leap seconds, and daylight transistions.
gmtime_r, localtime_r, timegm, and mktime are
tested against themselves and expected outputs.
It requires the "posix" and "right" zoneinfo to be
installed on the test running machine in order to
access testable time zones. If those are not present
the test is skipped successfully with a warning.
krw [Sun, 6 Nov 2022 12:33:41 +0000 (12:33 +0000)]
Don't leak args.fspec in create_filesystem().
ok kn@
patrick [Sun, 6 Nov 2022 12:18:28 +0000 (12:18 +0000)]
qcdwusb(4)
patrick [Sun, 6 Nov 2022 12:14:52 +0000 (12:14 +0000)]
Disable smmu(4) for Qualcomm SC8280XP on FDT attachment like we already do
on ACPI.
ok kettenis@
patrick [Sun, 6 Nov 2022 12:12:45 +0000 (12:12 +0000)]
Add glue for the USB3 controller on the Lenovo x13s.
ok kettenis@
patrick [Sun, 6 Nov 2022 12:01:52 +0000 (12:01 +0000)]
While the Qualcomm GENI isn't just a simplebus(4), as one can e.g. select
between DMA or FIFO mode for the i2c/serial devices, we can treat it as one
for now.
ok kettenis@
deraadt [Sun, 6 Nov 2022 12:00:20 +0000 (12:00 +0000)]
TEXTREL binaries are loaded without immutable on un-writeable sections.
After text relocations are finished, these regions (in the binary) can become
immutable.
OPENBSD_MUTABLE section always overlaps writeable LOADs, so don't be afraid
of that case, it's covered.
dv [Sun, 6 Nov 2022 11:54:08 +0000 (11:54 +0000)]
Fix typo in comment about pledges (send -> sendfd).
No functional change.
kettenis [Sun, 6 Nov 2022 11:44:30 +0000 (11:44 +0000)]
Make EFI runtime calls more robust on arm64 as well. While I have not seen
any broken implementations yet, Linux developers claim that arm64 machines
intended to run Windows are not much better than x86 machines. And I
totally believe that.
ok patrick@
deraadt [Sun, 6 Nov 2022 11:43:19 +0000 (11:43 +0000)]
ld.so wants to make it's own RELRO immutable, which is obviously done
right after it does mprotect PROT_READ.
deraadt [Sun, 6 Nov 2022 11:38:54 +0000 (11:38 +0000)]
Library RELRO sections are excluded from the immutable list, because ld.so
tweaks them quite late. _dl_relro() is called when that work is done, and
the final mprotect PROT_READ happens. Then we can make mark it immutable.
ok kettenis
deraadt [Sun, 6 Nov 2022 11:34:50 +0000 (11:34 +0000)]
When loading startup libraries, pass DF_1_NODELETE to indicate these are
unloadable libraries. This allows us make consider making parts of those
libraries immutable (in future commits)
ok guenther kettenis
tobhe [Sun, 6 Nov 2022 11:11:47 +0000 (11:11 +0000)]
Fix out-of-order string operations resulting in a wrongly calculated
string size that could lead to a buffer overflow in ikev2_print_id().
Found by and fix from dropk1ck on github (issue #90)
ok patrick@ mbuhl@
kn [Sun, 6 Nov 2022 10:53:34 +0000 (10:53 +0000)]
Use installboot -p; OK visa
tb [Sun, 6 Nov 2022 09:26:29 +0000 (09:26 +0000)]
Document LOGDIR on its own since it's not a bsd.port.mk variable.
ok espie
deraadt [Sun, 6 Nov 2022 09:25:39 +0000 (09:25 +0000)]
When a TEXTREL binary is loaded, non-writeable LOADs are not made immutable
because a loader may want to perform text relocations wrapped inside
mprotect permission flips. So static TEXTREL binaries need to perform
this operation themselves, at this fairly late point.
ok kettenis
ajacoutot [Sun, 6 Nov 2022 09:12:03 +0000 (09:12 +0000)]
typo: wlll -> will
otto [Sun, 6 Nov 2022 07:39:30 +0000 (07:39 +0000)]
Reintroduce snippet describing startup behaviour to where it belongs. ok jmc@
jmc [Sun, 6 Nov 2022 06:51:22 +0000 (06:51 +0000)]
remove the remnants of the old -s option, which was left stranded with poor,
innocent -n;
noticed by indivc on misc@
jmc [Sat, 5 Nov 2022 23:18:03 +0000 (23:18 +0000)]
- escape a macro in an Rs/Re block: groff appears to think it is callable
- while here, sort NAME
jan [Sat, 5 Nov 2022 22:33:11 +0000 (22:33 +0000)]
Fix kernel build without IPSEC option.
ok deraadt@
kn [Sat, 5 Nov 2022 22:30:57 +0000 (22:30 +0000)]
Add mount_nfs(8) to fetch sets over NFS
bsd.rd and miniroot72.img fit, boot and install over NFS with this.
OK deraadt
jsing [Sat, 5 Nov 2022 21:58:24 +0000 (21:58 +0000)]
Add regress coverage for TLS exporters.
cheloha [Sat, 5 Nov 2022 19:29:45 +0000 (19:29 +0000)]
clockintr(9): initial commit
clockintr(9) is a machine-independent clock interrupt scheduler. It
emulates most of what the machine-dependent clock interrupt code is
doing on every platform. Every CPU has a work schedule based on the
system uptime clock. For now, every CPU has a hardclock(9) and a
statclock(). If schedhz is set, every CPU has a schedclock(), too.
This commit only contains the MI pieces. All code is conditionally
compiled with __HAVE_CLOCKINTR. This commit changes no behavior yet.
At a high level, clockintr(9) is configured and used as follows:
1. During boot, the primary CPU calls clockintr_init(9). Global state
is initialized.
2. Primary CPU calls clockintr_cpu_init(9). Local, per-CPU state is
initialized. An "intrclock" struct may be installed, too.
3. Secondary CPUs call clockintr_cpu_init(9) to initialize their
local state.
4. All CPUs repeatedly call clockintr_dispatch(9) from the MD clock
interrupt handler. The CPUs complete work and rearm their local
interrupt clock, if any, during the dispatch.
5. Repeat step (4) until the system shuts down, suspends, or hibernates.
6. During resume, the primary CPU calls inittodr(9) and advances the
system uptime.
7. Go to step (2). This time around, clockintr_cpu_init(9) also
advances the work schedule on the calling CPU to skip events that
expired during suspend. This prevents a "thundering herd" of
useless work during the first clock interrupt.
In the long term, we need an MI clock interrupt scheduler in order to
(1) provide control over the clock interrupt to MI subsystems like
timeout(9) and dt(4) to improve their accuracy, (2) provide drivers
like acpicpu(4) a means for slowing or stopping the clock interrupt on
idle CPUs to conserve power, and (3) reduce the amount of duplicated
code in the MD clock interrupt code.
Before we can do any of that, though, we need to switch every platform
over to using clockintr(9) and do some cleanup.
Prompted by "the vmm(4) time bug," among other problems, and a
discussion at a2k19 on the subject. Lots of design input from
kettenis@. Early versions reviewed by kettenis@ and mlarkin@.
Platform-specific help and testing from kettenis@, gkoehler@,
mlarkin@, miod@, aoyama@, visa@, and dv@. Babysitting and spiritual
guidance from mlarkin@ and kettenis@.
Link: https://marc.info/?l=openbsd-tech&m=166697497302283&w=2
ok kettenis@ mlarkin@
patrick [Sat, 5 Nov 2022 19:01:51 +0000 (19:01 +0000)]
Bump version number so that it's easier to see if the running version has
the bugfixes in.
ok kettenis@
patrick [Sat, 5 Nov 2022 19:00:31 +0000 (19:00 +0000)]
Not every device tree we're getting passed has an /aliases or /chosen node,
but our code assumes so. It's useful to have them, so create them if they
do not exist.
ok kettenis@
patrick [Sat, 5 Nov 2022 18:58:24 +0000 (18:58 +0000)]
Activate the device tree we just loaded from disk. While this doesn't fix
any current bug, it might catch issues in the future.
ok kettenis@
patrick [Sat, 5 Nov 2022 18:56:09 +0000 (18:56 +0000)]
Make sure fdt_find_node() returns NULL if it can't find the requested node.
ok kettenis@
deraadt [Sat, 5 Nov 2022 18:48:31 +0000 (18:48 +0000)]
The /var/run/ld.so.hints file is mapped into memory. It is never replaced,
so the mapping can be immutable.
ok kettenis
deraadt [Sat, 5 Nov 2022 18:44:09 +0000 (18:44 +0000)]
teach ld.so how to call the mimmutable() system call
ok kettenis
cheloha [Sat, 5 Nov 2022 16:23:02 +0000 (16:23 +0000)]
powerpc64: TimeBase: add userspace timecounting support
Tested by gkoehler@.
ok gkoehler@
kn [Sat, 5 Nov 2022 12:06:05 +0000 (12:06 +0000)]
"need root privileges" is an error, print it on stderr"
kn [Sat, 5 Nov 2022 12:03:58 +0000 (12:03 +0000)]
Print full path in usage; OK jmc
job [Sat, 5 Nov 2022 10:32:51 +0000 (10:32 +0000)]
Fix missing variable declaration in regress, thanks Anton Lindqvist for the report
deraadt [Sat, 5 Nov 2022 10:31:16 +0000 (10:31 +0000)]
For textrel binaries, skipping immutability on text segments is not enough:
It needs to be all non-writeable segments, which really means rodata.
crt0 and ld.so will need to call mimmutable() later on these regions.
ok kettenis
jsg [Sat, 5 Nov 2022 00:12:39 +0000 (00:12 +0000)]
match on Intel 500 Series HD Audio (0x43c8)
on a Lenovo ThinkPad P1 Gen 4, the audio device is subclass audio not
hd audio, so azalia does not match
reported by John Browning
ok kettenis@ thfr@
tb [Fri, 4 Nov 2022 23:52:59 +0000 (23:52 +0000)]
Do not fail on non-rsync URIs in EE cert SIA extensions
The spec allows multiple accessMethod entries, ordered by preference.
While an rsync URI must be present, others are allowed. Do not fail
in that situation and pick the first rsync URI encountered. The logic
is very similar to the one in x509_get_crl().
ok job
tb [Fri, 4 Nov 2022 23:42:56 +0000 (23:42 +0000)]
In very verbose mode, log unexpected accessMethods
While RFC 6487, 4.8.2.2 is very explicit about allowing id-ad-signedObject
as the only accessMethod, the clear language was lost during the RFC 8182
editing process. APNIC, TWNIC and JPNIC and a few others are currently
known to have an id-ad-rpkiNotify. The verbose logging allows us to check
the ecosystem while waiting for the point in time where we can turn this
into an error. See also https://www.rfc-editor.org/errata/eid7239.
ok job
job [Fri, 4 Nov 2022 17:39:36 +0000 (17:39 +0000)]
Format filemode output in a tabular fashion to improve readability
OK tb@ claudio@
kettenis [Fri, 4 Nov 2022 16:49:31 +0000 (16:49 +0000)]
EFI firmware has bugs which may mean that calling EFI runtime services will
fault because it does memory accesses outside of the regions it told us to
map. Try to mitigate this by installing a fault handler (using the
pcb_onfault mechanism) and bail out using longjmp(9) if we encounter a
page fault while executing an EFI runtime services call.
Since some firmware bugs result in us executing code that isn't mapped,
make kpageflttrap() handle execution faults as well as data faults.
ok guenther@
espie [Fri, 4 Nov 2022 13:22:15 +0000 (13:22 +0000)]
allow "=" to be "hey only the default value" for pkgspec in dependencies
to be used later once it's in snaps.
tb [Fri, 4 Nov 2022 13:01:19 +0000 (13:01 +0000)]
Add missing field initializer.
ok claudio
bluhm [Fri, 4 Nov 2022 12:59:26 +0000 (12:59 +0000)]
In ktrace execve(2) no longer shows meaningless exit code.
Change regex for kdump output to execve JUSTRETURN.
from anton@
tb [Fri, 4 Nov 2022 12:05:36 +0000 (12:05 +0000)]
whitespace
claudio [Fri, 4 Nov 2022 11:33:26 +0000 (11:33 +0000)]
Extend l3vpn test to insert and remove a route
Also add some scaffolding for IPv6 testing but currently IPv6 is broken
because mpe(4) is unable to configure a local IPv6 address.
job [Fri, 4 Nov 2022 10:09:09 +0000 (10:09 +0000)]
Catch bad characters in rpkiManifest filenames earlier on
This improves the hard-to-read error:
rpki-client: .rrdp/59B96A4C078FDCEDBB776D5BE8DF45EAC0149157547270EA7D4647A76611E145/rpki-rsync.us-east-2.amazonaws.com/volume/
220c3ec2-ccf9-4b8a-bf61-
fd4d1e151271/LAXNBPgDnLLjagP8++RFIoaMCGo.mft: RFC 6487 section 4.8.6: CRL: bad CRL distribution point extension
rpki-client: rpki-rsync.us-east-2.amazonaws.com/volume/
220c3ec2-ccf9-4b8a-bf61-
fd4d1e151271/LAXNBPgDnLLjagP8++RFIoaMCGo.mft: no valid mft available
to:
rpki-client: rpki.ripe.net/repository/DEFAULT/ZMvVW3ZpjFaCVe2TtDEqMlyFk3E.cer: SIA: rpkiManifest filename contains invalid characters
OK tb@
job [Fri, 4 Nov 2022 09:45:19 +0000 (09:45 +0000)]
Don't show CPS URIs when in filemode
OK tb@
job [Fri, 4 Nov 2022 09:43:13 +0000 (09:43 +0000)]
Check the SIA signedObject in ROA/MFT/ASPA/TAK/GBR EE certificates
Unfortunately we can't yet error out when accessMethods other than
signedObject are encountered in the SubjectInformationAccess extension
because there is pollution in the ecosystem.
OK tb@
mpi [Fri, 4 Nov 2022 09:36:44 +0000 (09:36 +0000)]
Assert the VM map lock is held in function used by mmap/mprotect/munmap.
Also grab the lock in uvm_map_teardown() and uvm_map_deallocate() to
satisfy the assertions. Grabbing the lock there shouldn't be strictly
necessary, because no other reference to the map should exist when the
reaper is holding it, but it doesn't hurt and makes our life easier.
Inputs & tests from Ivo van der Sangen, tb@, gnezdo@, kn@
kettenis@ and tb@ agree with the direction, ok kn@
nicm [Fri, 4 Nov 2022 08:03:23 +0000 (08:03 +0000)]
Unescape the string for the literal operator (l:) so special characters
work.
jca [Thu, 3 Nov 2022 23:30:55 +0000 (23:30 +0000)]
riscv64 pmap: flush memory writes before remote sfence.vma
As pointed out by the RISC-V privileged spec. Sadly this is not enough
to solve all existing userland or kernel crashes seen on Unmatched (and
possibly other?) machines.
ok kettenis@
jca [Thu, 3 Nov 2022 23:26:49 +0000 (23:26 +0000)]
Zap unused variable
ok kettenis@
djm [Thu, 3 Nov 2022 21:59:20 +0000 (21:59 +0000)]
replace recently-added valid_domain() check for hostnames going to
known_hosts with a more relaxed check for bad characters; previous
commit broke address literals. Reported by/feedback from florian@
martijn [Thu, 3 Nov 2022 17:58:10 +0000 (17:58 +0000)]
When decoding a sequence/set, make sure that:
- We don't create an uninitialized element when there are no subelements to
decode
- If subelements overflow we return EINVAL
While here fix an eyesore of a line continuation.
OK claudio@
jmc [Thu, 3 Nov 2022 17:43:39 +0000 (17:43 +0000)]
don't needlessy uppercase Nd;
patrick [Thu, 3 Nov 2022 17:41:22 +0000 (17:41 +0000)]
Enable smbios0 on arm64 RAMDISK so the code mitigating crashes on the x13s
gets correct info from hw.version.
claudio [Thu, 3 Nov 2022 15:39:54 +0000 (15:39 +0000)]
Add an abolute minimal test for L3VPNs. Right now not linked since there
is a bug in the kroute code preventing the VPN route to be added properly.
job [Thu, 3 Nov 2022 10:39:19 +0000 (10:39 +0000)]
Constrain KeyUsage and ExtendedKeyUsage on both CA & EE certificates
RFC 6487 section 4.8.4 restricts the KeyUsage extension on EE
certificates to only be digitalSignature.
RFC 6487 section 4.8.5 forbids the ExtendedKeyUsage extension from
appearing on CA certificates. However, this may change in the future
through the standardisation process.
OK tb@
nicm [Thu, 3 Nov 2022 08:41:53 +0000 (08:41 +0000)]
If there are no buffers, reset mode as soon as any key pressed. Fixes
crash reported by Gaoyang Zhang in GitHub issue 3373.
nicm [Thu, 3 Nov 2022 08:33:57 +0000 (08:33 +0000)]
Add a -l flag to display-message to disable format expansion, from Aaron
Jensen. GitHub issue 3372.
guenther [Thu, 3 Nov 2022 04:56:47 +0000 (04:56 +0000)]
Style: always use *retval and never retval[0] in syscalls,
to reflect that retval is just a single return value.
ok miod@
guenther [Thu, 3 Nov 2022 04:52:41 +0000 (04:52 +0000)]
Make scdebug_ret() behave like ktrsysret(), showing the off_t value
for lseek() and a single register_t value for all others.
ok miod@
job [Thu, 3 Nov 2022 00:48:31 +0000 (00:48 +0000)]
shorten Autonomous System Provider Authorizations
job [Thu, 3 Nov 2022 00:44:13 +0000 (00:44 +0000)]
Add notion of ASPA
job [Thu, 3 Nov 2022 00:00:53 +0000 (00:00 +0000)]
Permit only keyCertSign and CRLSign in CA KeyUsage extension
OK tb@
job [Wed, 2 Nov 2022 23:20:59 +0000 (23:20 +0000)]
Emit warnings when unexpected X.509v3 extensions are encountered
OK tb@
claudio [Wed, 2 Nov 2022 16:50:51 +0000 (16:50 +0000)]
Introduce conn_info() which combines http_info() and ip_info() to output
both the host/uri and IP address of a connection.
Adjust http_connect() error handling to make sure conn->res is set to the
last address when hitting the error condition after the loop.
OK tb@
job [Wed, 2 Nov 2022 12:56:38 +0000 (12:56 +0000)]
Add regress for Signed TAL (.tak) files
job [Wed, 2 Nov 2022 12:46:49 +0000 (12:46 +0000)]
Reference RSC RFC-to-be instead of internet-draft
job [Wed, 2 Nov 2022 12:43:02 +0000 (12:43 +0000)]
Add support for draft-ietf-sidrops-signed-tal-12
Add support validation of Signed Objects containing Trust Anchor Keys
(TAKs - aka 'Signed TALs'). Signed TALs provide a mechanism for RIRs
to distribute and sign the next Trust Anchor with the current Trust
Anchor. This might be an improvement over visiting RIR websites and
copy+pasting TAL data by hand.
OK tb@
claudio [Wed, 2 Nov 2022 11:44:19 +0000 (11:44 +0000)]
Don't free the addrinfo array after connect and refactor http_finish_connect.
In http_connect_done() the addrinfo array was freed but this makes it
impossible to show the IP address of the connection in log messages.
Also refactor http_finish_connect() to call http_connect_failed() instead
of doing the same inline.
OK tb@
tb [Wed, 2 Nov 2022 11:28:36 +0000 (11:28 +0000)]
Length check URI before strncasecmp()
A priori URI is not NUL terminated, so we should first check it is long
enough before comparing it against proto. As a side effect, this now
rejects "https://" and "rsync://", which are invalid due to the missing
host in the authority section.
ok claudio
job [Wed, 2 Nov 2022 10:41:43 +0000 (10:41 +0000)]
Also print IP address of the connection that timed out to aid debugging
OK claudio@
kn [Wed, 2 Nov 2022 10:41:34 +0000 (10:41 +0000)]
Remove audio(9) speaker_ctl(), let open() handle speakers where needed
Only five legacy half-duplex hardware drivers require this function to
change between playing and recording:
i386: ess(4), gus(4), pas(4), sb(4)
luna88k: nec86(4)
If defined, it is always called early in audio_open(), so just move the
call from audio(4) to each hardware driver's open() handler.
SPKR_ON/OFF remain defined to leave driver-specific code unchanged.
Further cleanup (unchecked speaker_ctl() return values,
FWRITE -> AUMODE_PLAY -> SPKR_ON dances, etc.) can happen later.
Builds fine on i386.
OK ratchov
tb [Wed, 2 Nov 2022 10:04:41 +0000 (10:04 +0000)]
Fix x509_get_time() error checks
Like most x509_* functions, x509_get_time() returns 0/1 on error/success,
not -1/0.
ok claudio job
nicm [Wed, 2 Nov 2022 07:36:07 +0000 (07:36 +0000)]
Instead of always setting the extended flag, set it only when searching.
Allows send-keys to work. From Aaron Jensen.
guenther [Wed, 2 Nov 2022 07:20:07 +0000 (07:20 +0000)]
Clean up more ancient history: since 2015 the libc stubs for
fork/vfork/__tfork haven't cared about the second return register.
So, stop setting retval[1] in kern_fork.c and stop setting the
second return register in the MD child_return() routines.
With the above, we have no multi-register return values on LP64,
so stop touching that register in the trapframe on those archs.
testing miod@ and aoyama@
ok miod@
tb [Tue, 1 Nov 2022 20:26:20 +0000 (20:26 +0000)]
Do not neuter __attribute__ with __STRICT_ANSI__
This broke readline support in newer Pythons and generally seems a
bad idea. Upstream have removed this conditional in 5.0.
ok millert
espie [Tue, 1 Nov 2022 17:41:19 +0000 (17:41 +0000)]
Have -S actually behave like the other introspection options, namely only
eschew building the package is -n is mentionned.
Document that -S -n is heavily optimized for speed since it's mostly used
by dpb -R to figure out what to rebuild.
espie [Tue, 1 Nov 2022 17:25:33 +0000 (17:25 +0000)]
fix a logic error from 2018: be silent if any of -S, -n, -q are mentioned.
The actual bug reverted in 1.128 was from "make print-plist-libs"
which would invoke pkg_create -n -Q and filter out the libs: but
in that case, pkg_create would not be silent, thus yielding
reading plist|-/usr/local/lib/libpython3.9.so.0.0
to filter, which obviously wouldn't work.
So, turn on silent mode for -Q as well.
kettenis [Tue, 1 Nov 2022 13:59:00 +0000 (13:59 +0000)]
Use todr_attach().
ok phessler@
claudio [Tue, 1 Nov 2022 13:35:09 +0000 (13:35 +0000)]
Use unsigned long long to store integer value. At least that can always
be printed with %llu unlike uint64_t.
martijn [Tue, 1 Nov 2022 13:34:44 +0000 (13:34 +0000)]
On endOfMibView reset OID back to the original requested OID as per RFC3416
section 4.2.2, instead of returning the (internal) current OID, which could
happen on empty tables.
Found and diff tested by Ryan Freeman (ryan <at> slipgate <dot> org)
OK sthen@