summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-12-08bio chain test: rename a few variables for consistencyTheo Buehler
2022-12-08bio chain test: decouple lengths of test chainsTheo Buehler
Add helpers to create and destroy a linear chain of BIOs. Provide two defines for the two lengths of the test chains and make them distinct to rule out coincidences. As a bonus, the code becomes simpler.
2022-12-08bio chain test: refactor link_chains_at()Theo Buehler
Add helper that validate the chains. This deduplicates a lot of code and makes the heart of the test much easier to read.
2022-12-08bio chain test: lose some do_{,bio_} prefixesTheo Buehler
2022-12-08Split biotest into its three logical partsTheo Buehler
Some parts of this test rely on unportable behavior, so cannot run in portable. This way we can run more tests for portable which is helpful for analysis tools, better coverage, etc.
2022-12-08bgpctl(8): ometric: measure elapsed time with monotonic clockScott Soule Cheloha
Prefer CLOCK_MONOTONIC to gettimeofday(2) when measuring elapsed time, as the UTC clock can jump around. ok claudio@
2022-12-08Change ld.bfd to default to --enable-new-dtags so that it generatesPhilip Guenther
DT_RUNPATH tags by default, so that it is consistent with ld.lld. ok millert@ miod@ kettenis@ kmos@
2022-12-08Fix DT_MIPS_RLD_MAP_RELVisa Hankala
Use proper tag-relative values for DT_MIPS_RLD_MAP_REL tags. This causes an ABI break on mips64. Your system must have latest ld.so before applying this commit. OK deraadt@ kettenis@
2022-12-08biotest: Tweak long comment a bitTheo Buehler
2022-12-08Print skipped on non applicable architectures.Anton Lindqvist
2022-12-08Stop overriding the regress target and use REGRESS_TARGETS instead.Anton Lindqvist
2022-12-08Fix copy-paste error that left a paragraph ending in a commaTheo Buehler
2022-12-08Add BIO_push() and BIO_set_next() regress coverageTheo Buehler
This tests for the behavior changes in bio_lib.c r1.40 and r1.41 and makes sure that BIO_push() and BIO_set_next() act on two chains in the expected and now documented way.
2022-12-08bn_mod_exp test: drop extra parentheses for readabilityTheo Buehler
2022-12-08Convert tcptv_keep_init in milliseconds before comparing other valuesYASUOKA Masahiko
of tcp time. This fixes the retransmit timer of syn_cache which was broken. reported by naddy, input dlg, test jca ok jca
2022-12-08Fix pvbus to specify M_ZERO properly.YASUOKA Masahiko
ok kn mvs mlarkin asou deraadt
2022-12-08_C_LABEL() and _ASM_LABEL() are no longer useful in the "everythingPhilip Guenther
is ELF" world. Eliminate use of them in landisk code. ok deraadt@
2022-12-08_C_LABEL() and _ASM_LABEL() are no longer useful in the "everythingPhilip Guenther
is ELF" world. Eliminate use of them in amd64, arm64, armv7, i386, macppc, mips64, and sparc64 code. ok deraadt@ jca@ krw@
2022-12-08Forcibly set console output to the framebuffer on the Lenovo x13s.Patrick Wildt
We should actually do something like checking that both stdout-path and serial0 don't exist to realize we have to switch, but this hack gets us going for now. ok kettenis@
2022-12-07_C_LABEL() and _ASM_LABEL() are no longer useful in the "everythingPhilip Guenther
is ELF" world. Eliminate use of them in powerpc64 code. ok gkoehler@
2022-12-07Improve the implementation of BIO_push(3) such that it changes nothingIngo Schwarze
and reports failure if a call would result in a cycle. The algorithm used was originally suggested by jsing@. Feedback and OK tb@.
2022-12-07The ACPI tables on the Lenovo x13s are incomplete and unusable. ForPatrick Wildt
that reason, identify that we're running on that machine by looking at the SMBIOS tables and load alternate device tree binaries from disk. ok kettenis@
2022-12-07Add references to the BIO_{push,pop}(3) exampleTheo Buehler
The reader may not know what digest BIOs, Base64 BIOs and file BIOs are and the relevant function names are non-obvious, hence it's not entirely trivial to find the manuals where they are explained. With these references a reader should be able to turn the example into actual code. ok schwarze
2022-12-07Document 'uidinfo' structure locks.Vitaliy Makkoveev
Inputs and ok bluhm@
2022-12-07Add END()s to match ENTRY()s.Philip Guenther
ok deraadt@
2022-12-07Prefer numeric labels over L<digit> labels, as the latter clutterPhilip Guenther
the final kernel symbol table. Add END()s to match ENTRY()s. ok deraadt@
2022-12-07Prefer STRONG_ALIAS() over multiple overlapping _ENTRY/_NENTRYPhilip Guenther
uses, as the latter requires manual handling of _PROF_PROLOGUE. Add END()s to match ENTRY()s. ok deraadt@
2022-12-07Apply changes from commitid FWrfGfO9Ojnsh1mq to libkern.Philip Guenther
From original commit message: To mitigate against spectre attacks, AMD processors without the IBRS feature need an lfence instruction after every near ret. See software techniques for managing speculation on AMD processors revision 9.17.20 mitigation G-5. ok deraadt@
2022-12-07Do not store unused ICMPv6 Option PREFIX_INFORMATIONKlemens Nanni
Dead since 2017 sys/netinet6/nd6_rtr.c r1.163 Remove sending of router solicitations and processing of router advertisements from the kernel. It's handled by slaacd(8) these days. sysctl(2) net.inet6.icmp6.nd6_debug does not warn about it like it does for, e.g., duplicate MTU options, so don't do anything with this option. Remove access macros for other unused options while here. Eventually, union nd_opts should be removed completely. All under _KERNEL. tcpdump(8)/rad(8)/slaacd(8) keep showing/sending/receiving this option when running this diff on both router and client. OK claudio
2022-12-07Fix example stringTheo Buehler
If you want to Base64-encode "Hello World\n" using a BIO, you had better pass "Hello World\n" into it, not something slightly different... While we're touching this, we might as well write it the way K&R did...
2022-12-07Fix comment by splitting sentance in two. From kn@Claudio Jeker
2022-12-07Fix comment typo.Darren Tucker
2022-12-07Process escape sequences in show-buffer, GitHub issue 3401.Nicholas Marriott
2022-12-07If the called of ypconnect(2) is root, the socket should acquire aTheo de Raadt
reserved port to received secure-maps from the ypserver. issue found by niklas, using a simpler diff i proposed ok miod
2022-12-06Add support for additional RTKit endpoint advertised by NVMe firmware thatMark Kettenis
comes with newer macOS releases. ok patrick@
2022-12-06Zap extra spaceTheo Buehler
2022-12-06Add missing kernel lock around (*if_ioctl)() call withinVitaliy Makkoveev
in{,6}_addmulti(). Since kernel lock is no more taken while following setsockopt() path, it should be taken in this place. Corresponding in{,6}_delmulti() already acquire kernel lock around (*if_ioctl)(). Problem reported and diff tested by weerd@ ok kn@ bluhm@
2022-12-06Major rewrite for accuracy and clarity, and document BIO_set_next(3).Ingo Schwarze
Feedback and OK tb@.
2022-12-06_C_LABEL() and _ASM_LABEL() are no longer useful in the "everythingPhilip Guenther
is ELF" world. Eliminate use of them in m88k code. ok aoyama@
2022-12-06Add a few missing headers and drop a few unused onesTheo Buehler
In bn_test.c include bn_local.h instead of using copy-pasted prototypes.
2022-12-06Make sure BIO_push(3) always preserves all invariants of the prev_bioIngo Schwarze
and next_bio fields of all BIO objects in all affected chains, no matter what the arguments are. In particular, if the second argument (the one to be appended) is not at the beginning of its chain, properly detach the beginning of its chain before appending. We have weak indications that this bug might affect real-world code. For example, in FreeRDP, file libfreerdp/crypto/tls.c, function bio_rdp_tls_ctrl(), case BIO_C_SET_SSL, BIO_push(3) is definitely called with a second argument that is *not* at the beginning of its chain. Admittedly, that code is hard to fathom, but it does appear to result in a bogus prev_bio pointer without this patch. The practical impact of this bug in this and other software remains unknown; the consequences might possibly escalate up to use-after-free issues if BIO_pop(3) is afterwards called on corrupted BIO objects. OK tb@
2022-12-06OpenMetrics is rather strict about naming metricsets.Claudio Jeker
Add a function that a) verifies that none of the special suffixes is used and b) that the name itself is not yet used already. Also when printing a counter _total has to be added to the metric name and for info metrics _info is added. With and OK tb@
2022-12-06Install arm64-qcom-dtb upon encountering a qcgpio(4) device.Patrick Wildt
ok phessler@ sthen@ tobhe@
2022-12-06list hatch-vcs for MODPY_PYBUILDStuart Henderson
2022-12-06Improve the poorly designed BIO_set_next(3) API to always preserve allIngo Schwarze
invariants of the prev_bio and next_bio fields of all BIO objects in all involved chains, no matter which arguments this function is called with. Both real-world uses of this function (in libssl and freerdp) have been audited to make sure this makes nothing worse. We believe libssl behaves correctly before and after the patch (mostly because the second argument is NULL there), and we believe the code in freerdp behaves incorrectly before and after the patch, leaving a prev_bio pointer in place that is becoming bogus, only in a different object before and after the patch. But after the patch, that bogus pointer is due to a separate bug in BIO_push(3), which we are planning to fix afterwards. Joint work with and OK tb@.
2022-12-06Implement support for shared interrupts.Mark Kettenis
ok patrick@
2022-12-06For write operations, wait until the transaction completes just like weMark Kettenis
do after sending the command for a read operation. Fixes issues with doing multiple operations back-to-back. ok patrick@
2022-12-06Implement ometric_set_timeval() and ometric_set_timeval_with_labels()Claudio Jeker
Timestamps are special since they can require more significant bits than a double provides. Instead print them as pseudo float as suggested by the OpenMetrics draft. OK cheloha@
2022-12-06Correct previous, must exit 0 to signal failure.Anton Lindqvist
2022-12-06Print size_t with %zu.Tobias Heider
ok patrick@