summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-12-10Reuse off variable from previous line; no object changeKlemens Nanni
2022-12-10zap 68 trailing spaces from a single lineKlemens Nanni
2022-12-10`dp' was just allocated with M_ZERO flag, so the following bzero(3) is notVitaliy Makkoveev
required. ok kn@
2022-12-10Merge nd6_option_init() into nd6_options()Klemens Nanni
All call-sites call nd6_options() directly after nd6_option_init(). Fold them to simplify the logic and do less pointing around. Feedback OK bluhm florian
2022-12-10Increase transfer completion timeout to 100ms. This is what Linux hasMark Kettenis
and we need a longer timeout for the USB Type-C PD chips. ok tobhe@
2022-12-10ex_range: fix handling of escaped backslashes.Todd C. Miller
If there are two consecutive backslashes, skip past both so the second is not mistakenly treated as an escape character. This is consistent with how escaped backslashes are treated in ex_substitute() and global(). From Bosco G. G.
2022-12-10alpha: switch to clockintrScott Soule Cheloha
- Add missing tick_nsec initialization to cpu_initclocks(). - Set stathz = hz, profhz = stathz; we don't have any control over the interrupt clock on alpha so everything has the same frequency. - Set schedhz = 16 to imitate current schedclock() dispatch frequency. Bringup help from claudio@. Tested by miod@ (2-CPU DS25). Link: https://marc.info/?l=openbsd-tech&m=166776333303245&w=2 ok mlarkin@
2022-12-10Make the accepted log grep pattern more strict in order to not pick up any logAnton Lindqvist
entries from sshd causing intermittent failures. Discussed with bluhm@ back in August this year.
2022-12-10bio chain test: compress some error printingTheo Buehler
2022-12-10bio chain test: deduplicate chain walking codeTheo Buehler
2022-12-10bio chain test: handle walking of empty chainsTheo Buehler
Rework the loops walking the chains to be correct for empty chains as well. This simplifies the checking at the cost of slightly more initialization and will allow further refactoring in a subsequent check.
2022-12-10Mitigate Spectre-BHB by using core-specific trampoline vectors. On some coresPatrick Wildt
Spectre-BHB can be mitigated by using a loop that branches a number of times. For cores where this does not suffice, or where Spectre-V2 needs to be handled as well, try and call into a new PSCI function that mitigates both Spectre-V2 and Spectre-BHB. Some newer machines, which might not be in anyone's hands yet, have an instruction (CLRBHB) that clears the BHB. If ECBHB is set, the BHB isn't vulnerable. If we have CSV2_3/HCXT, it's not vulnerable at all. No visible performance dropoff on a MacchiatoBin (4xA72) or Lenovo x13s (4xA78C+ 4xX1C), but around 2-3% on a LX2K (16xA72) and RK3399 (4xA53+2xA72). ok kettenis@
2022-12-10Fix comments, no binary change.Kenji Aoyama
2022-12-09Simplify early kernel bootstrap a bit more. Just map the entire 64MB memoryMark Kettenis
block that the bootloader allocates for us (minus the first 2MB). This means we can get rid of a bunch of code in pmap_bootstrap(). It also makes sure that we don't accidentally enter mappings that cover secure memory just beyond where the kernel was loaded. ok patrick@
2022-12-09Add detection for Spectre-BHB related CLRBHB, ECBHB and CSV2_3/HCXTPatrick Wildt
feature bits. ok kettenis@
2022-12-09fix double word and Ar -> Dv;Jason McIntyre
2022-12-09Fix typo: SCTX -> SCXTPatrick Wildt
ok kettenis@
2022-12-09resolvd: fix leaks of line and fpTheo Buehler
In case asprintf() fails or the iov overflows, the file and the line read would be leaked. also noted by otto ok deraadt millert
2022-12-09iovcnt can be zero, writev does not like that and O_CREATE isOtto Moerbeek
not needed, we just renamed sucessfully to that file. ok deraadt@ florian@
2022-12-09Switch nd_opts from a union to just a struct.Claudio Jeker
The ND6 option handling in the kernel got a lot simpler since only the tgt and src lladdr option are inspected by the kernel. The magic of assigning options via one side of the union and accessing them via the other is total overkill and actually quite error prone. OK florian@
2022-12-09bio chain test: add a consistency check for chain lengthsTheo Buehler
2022-12-09document changes to uvm_map_protect() for setting the UVM_ET_STACK inTheo de Raadt
some cases (setrlimit, atomically, only kernel reachable, ...)
2022-12-09bn/Makefile: tidy up and simplifyTheo Buehler
2022-12-09Allow overriding default run-regress-* targetsTheo Buehler
Overriding a default run-regress-* target with custom commands is already possible and done by many tests. The fact that it currently works depends on behavior in the BUGs section of make.1, however. The fix is not to add commands if the target is already defined with commands. tested by anton correct fix from espie, ok anton
2022-12-09bio chain test: make two errors noisyTheo Buehler
2022-12-09bio chain test: ensure the length of empty chains is 0Theo Buehler
2022-12-09bio chain test: various minor readability tweaksTheo Buehler
Align initialization in walk_backward() with walk_forward(), fix grammar in a comment and move initialization of oldhead_len in a place consistent with the other length initializations in that function
2022-12-09Some TCP timer units have changed from slowhz to msec and theirAlexander Bluhm
type from short to int. Also switch local variables holding temporary timer values from short to int. OK yasuoka
2022-12-09Warn if no host keys for hostbased auth can be loaded. From bz#3507, ok djm@Darren Tucker
2022-12-09Add some server debugging for hostbased auth.Darren Tucker
auth_debug_add queues messages about the auth process which is sent to the client after successful authentication. This also sends those to the server debug log to aid in debugging. From bz#3507, ok djm@
2022-12-08Call vget(9) in uvn_put() to make sure we hold a reference if we're calledMark Kettenis
by the pagedaemon for a persisting vnode. This prevents a panic in uvm_vnp_unache() since a persisting vnode has a reference count of zero. This should also prevent the vnode from being recycled from under our feet while we're doing I/O to it. This fixes the "macppc panic: vref used where vget required" issue. tested by bluhm@, tb@ ok mpi@
2022-12-08bio chain test: fix inconsequential off-by-oneTheo Buehler
2022-12-08bio chain test: minor readability tweaksTheo Buehler
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@