summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-11-06vmd(8) logs psp(4) firmware version.Alexander Bluhm
On vmd startup, log the AMD SEV PSP API and build number. from hshoexer@; OK mlarkin@
2024-11-06Do not store the value of sp in struct clockframe, for nothing has a needMiod Vallat
for it.
2024-11-06document EVP_PKEY_CTRL_CIPHER, providing a bit of contextIngo Schwarze
2024-11-06Remove vnd(4) diskimage after testing to avoid that running regressAlexander Bluhm
fills up /usr/obj too quickly.
2024-11-06About a year ago, the obsolete function EVP_Cipher(3) was moved out ofIngo Schwarze
the important manual page EVP_EncryptInit(3). Belatedly adjust some cross references.
2024-11-06Add a few missing airports that I have visited.volker
2024-11-06Skip pf regress with proper error message if pf is disabled inAlexander Bluhm
kernel or there is no regress anchor. discussed with claudio@ sashan@
2024-11-06Fix function declaration to be less arcane.Claudio Jeker
2024-11-06Add -g option to get the index of the current virtual terminal.Miod Vallat
This can help scripts using wsconsctl display.focus to perform vt switches. From NetBSD via Sergiy Kopchalyuk.
2024-11-06Factor out the ptrace trap into proc_trap() and simplify the signalClaudio Jeker
delivery in cursig() a lot since most of that is no longer needed. On top of this properly handle sending a blocked signal from gdb to the debugged process by putting the signal into to proc p_siglist. OK kettenis@
2024-11-06Use atomic load and store operations for sbchecklowmem().Alexander Bluhm
Use atomic operations to make explicit where access from multiple CPU happens. Add a comment why sbchecklowmem() is sufficently MP safe without locks. OK mvs@ claudio@
2024-11-06Fix broken vmd(8) build on arm64 due to missing psp_setup().Alexander Bluhm
The psp.c source is restricted in makefile with .if ${MACHINE} == "amd64" so use #ifdef __amd64__ around the call to psp_setup(). On arm64 set vmd_psp_fd to an invalid value. OK hshoexer@ mlarkin@
2024-11-06syncTheo de Raadt
2024-11-06Address more outdated comments.Miod Vallat
2024-11-06A long, long, time ago, pending interrupt handlers were stored in arraysMiod Vallat
of up to 8 handlers, one arrays par ipl level. Eventually the interrupt logic was changed to linked lists, but the arrays remained, even when the pending interrupt structures were moved to per-cpu data. Simplify this by only keeping a pointer to the list head, per ipl level; update the computations in locore accordingly, and update the relevant comments to match reality as well. ok kettenis@
2024-11-06Reference SendHoldTimer RFC in bgpd(8)Job Snijders
OK claudio@
2024-11-06Give locore a few more symbolic constants to make the code path constructingMiod Vallat
a struct clockframe rather than a struct trapframe, more visible. No functional change. ok claudio@ kettenis@
2024-11-06Update `shortage' based on the number of pages freed by the shrinkers.Martin Pieuchot
ok miod@, kettenis@
2024-11-06Re-check limits after being awoken to ensure page daemon reserves aren't stolen.Martin Pieuchot
ok miod@, kettenis@
2024-11-06RegenMiod Vallat
2024-11-06Sync with NetBSD: remove duplicate mode entries when parsing edid records,Miod Vallat
be more robust against bogus edid data.
2024-11-06Sync with NetBSD: minor fixes and a couple more video modes.Miod Vallat
2024-11-06EC_GROUP_set_seed(): flip order of seed and len null checksTheo Buehler
requested by jsing
2024-11-06Treat the curls in EC_GROUP_dup() with a flatironTheo Buehler
This was about as unreadable as four lines of code doing a trivial thing can get... ok jsing
2024-11-06Clean up EC_GROUP_copy()Theo Buehler
Switch from artistic free reinterpretations of public API in the same file to calling the real thing if possible. This means that we need to copy the group's coefficients first instead of last, so that we can call EC_GROUP_set_generator() to set - yes - all three of generator, order, and cofactor of the group. However, we may not have a generator yet since for some reason it is an optional field and some code relies on that. In that case simply copy over order and cofactor and punt on sanity checking for now (since this API never did that anyway). Finally set the seed using EC_GROUP_set_seed() instead of using a custom reimplementation. ok jsing
2024-11-06Switch EC_GROUP_new() to calloc()Theo Buehler
Use a single cleanup path, use calloc rather than setting several members to 0/NULL. This has the side effect that finished can be called even when init() wasn't called, but this isn't an issue with our EC_GROUP_METHODs. ok jsing
2024-11-06Remove a non-applicable comment about 32-bit userland code.Miod Vallat
While there, remove unused defines.
2024-11-06Make edid_parse() take a device name as extra argument so that the fewMiod Vallat
messages it may print are tied to the particular device it concerns.
2024-11-06sort options list;Jason McIntyre
2024-11-06Toss tedu's cleanse into crypto_memory.cTheo Buehler
2024-11-06add an empty line between license and #include linesTheo Buehler
2024-11-06Rename malloc-wrapper.c to crypto_memory.cTheo Buehler
Apparently it's important that five trivial one-line wrappers remain in a file with the ISC license. So instead of cleaning the root directory of our favorite pigsty further by squashing all the useless legacy garbage into a single file, rename the oddly-named malloc-wrapper.c into crypto_memory.c. discussed with beck, jsing
2024-11-05vmd(8) resets psp(4)Alexander Bluhm
Use shutdown and init to reset psp(4) on vmd(8) startup. This helps when hacking on vmd(8) and crashing it. The psp(4) reset cleans up all remnants of dead VMs from psp(4). Otherwise one would have to reboot the machine. from hshoexer@; OK mlarkin@
2024-11-05Use PCB iterator for raw IP input deliver loop.Alexander Bluhm
Inspired by mvs@ idea of the iterator in the UDP multicast loop, implement the same for raw IP input delivery. This removes an unneccesary rwlock and only uses table mutex. When comparing the inp routing table, address and port, the table lock must be held. So assume that in_pcb_iterator() already has the table mutex and hold it while traversing the list and doing the checks. Release the mutex during mbuf copy, socket buffer append and the upcalls. Adapt the logic for both rip_input() and udp_input(). In rip_input() move the actual work to rip_sbappend(). This can be called without mutex during list traversal and for the final element. OK mvs@
2024-11-05The `pri' field of struct clockframe has become unused since the removal ofMiod Vallat
the need for CLKF_BASEPRI in OpenBSD 3.2. Rename it to stress the fact that it is no longer used.
2024-11-05Xr to Ic, from jmc.Nicholas Marriott
2024-11-05mark up fix; from jesper wallinJason McIntyre
2024-11-05The first field of struct cfdriver is a pointer. Put NULL rather than 0 here.Miod Vallat
2024-11-05Check for pfxsz, not the pointerlucas
ok tb
2024-11-05Protect the page daemon memory reserve from allocations in interrupt contexts.Martin Pieuchot
ok miod@, kettenis@
2024-11-05Revert r1.69, I committed a wrong & broken diff.Martin Pieuchot
2024-11-05bn_convert: avoid a zero-sized allocationTheo Buehler
2024-11-05Add TLS support in tcpbenchJan Klemkow
with tweaks from tb@, mbuhl@ and jmc@ ok tb@
2024-11-05Avoid zero-sized allocationsTheo Buehler
ok claudio
2024-11-05sleep_signal_check() is called twice in sleep_finish().Claudio Jeker
The first time a pending stop should result in a stopped thread but the second call should not call proc_stop since the sleep is done and the proc should continue as SONPROC until it hits the next cursig call. Fix for a panic seen by bluhm@ OK mpi@
2024-11-05Return the number of freed pages in bufbackoff().Martin Pieuchot
Reviewed by miod@, ok tb@, beck@
2024-11-05Protect the page daemon memory reserve from allocations in interrupt contexts.Martin Pieuchot
ok kettenis@
2024-11-05The ability to attach a wsdisplay without a terminal emulator has beenMiod Vallat
removed quite many years ago. Drop the _emul component of config machinery symbol names, and merge the wsdisplay_emul_smth with wsdisplay_common_smth as they are their only users. No functional change, but you need to rerun config(8) on your kernels.
2024-11-05Fix typo in smbios product string for the HP OmniBook X.Mark Kettenis
Keep entries sorted by vendor. ok miod@, mlarkin@
2024-11-05fix an alignment error in the Queue column label of atq(1) introduced onIgor Sobrado
September 9th, 2001 when the Unix epoch exceeded one billion; another column alignment will be needed once the Unix epoch exceeds ten billions, but it will not happen until November 20th, 2286. ok miod@, sthen@, and millert@