summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-11-08Provide constant time comparison functions for size_t.Joel Sing
These will be used in an upcoming change. ok beck@ tb@
2024-11-08Relocate ECParameters_dup() to ec_asn1Theo Buehler
jsing rightly points out that this has nothing to do with ASN.1, but ec_lib.c has no EC_KEY knowledge otherwise (it's about groups and points) and moving it to ec_key.c is also not satisfactory since the weird d2i/i2d for ECParameters don't belong there either. no objection from jsing
2024-11-08Replace aarch64 CPU capabilities detection code.Joel Sing
Replace the aarch64 CPU detection code with a version that parses ISAR0, avoiding signal handling and SIGILL. This gets ISAR0 via sysctl(), but this can be adapted to other mechanisms for other platforms (or alternatively the same can be achieved via HWCAP). This now follows the same naming/design as used by amd64 and i386, hence define HAVE_CRYPTO_CPU_CAPS_INIT for aarch64. ok kettenis@ tb@
2024-11-08pf(4) when doing af-to translation for ICMP protocol sends packetsAlexandr Nedvedicky
with TTL field to zero. To fix it function pf_test_state_icmp() must initialize ttl field in pf_pdesc structure for inner packet. feedback from bluhm@ OK bluhm@
2024-11-08remove pmap_zero_page_uncached()Jonathan Gray
used by idle page zeroing code removed from uvm in 2015 ok miod@ mpi@ mlarkin@
2024-11-08Move sparc64-specific ofw prototypes out of the MI header.Miod Vallat
2024-11-08ec_asn1_test: remove extra parensTheo Buehler
2024-11-08Constify strtab.Martin Pieuchot
2024-11-08Add a work-in-progress version of ice(4), a driver for Intel E810 devices.Stefan Sperling
Ported from FreeBSD. This driver does not pass packets yet, lots of code is still missing. The driver will remain disabled in kernel configs until it is ready. At this stage, code for device initialization should be fairly complete. Some hardware features will require additional firmware packages to be loaded. My plan is to get things working in the basic "safe mode" first, which does not require external firmware. I will continue working on this driver in-tree, with funding from genua. Help is welcome. ok dlg@
2024-11-08psp(4) waits for acknowledgement of wbinvd from other CPU.Alexander Bluhm
If any other CPU has not finished wbinvd, PSP command may fail. To avoid races, call wbinvd_on_all_cpus_acked() which waits for acknowledgement from IPI handler. Provide stub to build non-MP kernels. from hshoexer@; OK mlarkin@
2024-11-08regenStefan Sperling
2024-11-08add two Intel E810 Ethernet PCI device IDsStefan Sperling
2024-11-08Only install a second copy of the bootloader if the EFI System PartitionMark Kettenis
is at least 1MB. This should prevent us from filling up the tiny ESPs that we used to create a few releases ago. ok deraadt@
2024-11-08Use PCB iterator for raw IPv6 input loop.Alexander Bluhm
Implement inpcb iterator in rip6_input(). Factor out the real work to rip6_sbappend(). Now UDP broadcast and multicast, raw IPv4 and IPv6 input work similar. While there, make rip_input() look more like rip6_input(). OK mvs@
2024-11-08Add support for MA devices.Mark Kettenis
ok stsp@
2024-11-08Some fixes for searching for tabs, from Alexander Arch.Nicholas Marriott
2024-11-08Make CPU frequencies human readable with -h in `systat sensors`.Matthieu Herrb
ok miod@
2024-11-08Implement interrupt depth counter for sparc64.Miod Vallat
2024-11-08Correctly compute access type for write faults. This allows write-onlyMiod Vallat
mappings to work.
2024-11-08remove ID register values, cpu.c uses different definesJonathan Gray
2024-11-08remove PCI MMIO defines, matches recent amd64 changeJonathan Gray
2024-11-08Rename EC_YBIT to EC_POINT_YBITTheo Buehler
2024-11-08remove unused pmap_move()Jonathan Gray
2024-11-08remove unused VM_MAXUSER_ADDRESS32Jonathan Gray
2024-11-08Ugh. Don't return the group after freeing itTheo Buehler
CID 514612
2024-11-08remove unused I386_IPI_NAMES, amd64 X86_IPI_NAMES removed in 2019Jonathan Gray
2024-11-07document EVP_PKEY_CTRL_SET_MAC_KEY for CMACIngo Schwarze
2024-11-07Expand amd64 wbinvd_on_all_cpus() with acknowledge.Alexander Bluhm
Implement wbinvd_on_all_cpus_acked() similar to pmap_tlb_shootpage(). This ensures, wbinvd has been executed on all cores when the function returns. This is needed to avoid psp(4) races. from hshoexer@; OK mlarkin@
2024-11-07Use LibreSSLs specialized functions to print base 10 and base 16.Otto Moerbeek
Also optimize the general case a bit. ok semarie@
2024-11-07Constify strings in symbol-related ddb interfaces, and make the iteratorMiod Vallat
callback interface a bit simpler. ok beck@ claudio@ mpi@
2024-11-07The comparator of the RBtree for the IP addresses was broken.YASUOKA Masahiko
Also, log verbosely when ignoring accounting request.
2024-11-07Remove OF_package_to_path(). This routine used to be needed by the OFWMiod Vallat
devices (ofnet, etc) for the VI board in the before-macppc days which nobody remembers, and has never been needed for anything on macs.
2024-11-07Before stopping a thread because of stop signal set ps_xsig to the signumClaudio Jeker
so that wait(2) returns the right signal. Found and tested by sthen@
2024-11-07Document locking of failing allocation requests and improve the comments.Martin Pieuchot
2024-11-07Free Oxford commas for most of the comments.Martin Pieuchot
Requested by miod@
2024-11-07Do not try to release memory if all we need is balancing the page lists.Martin Pieuchot
ok miod@
2024-11-07Optimize active & inactive list traversals when looking only for low pages.Martin Pieuchot
- In the inactive list, if we are not OOM, do not bother releasing high pages. - In the active list, if we couldn't release enough low pages and are not out- of-swap, deactivate only low pages. ok miod@
2024-11-07Use a static request to notify failed nowait allocations.Martin Pieuchot
As a side effect the page daemon now considers releasing inactive pages when a nowait allocation for low pages failed. Note that the hardcoded number of 16 pages (a 64K cluster on 4K archs) which corresponds to what the buffer cache currently wants is left with the original XXX. ok miod@
2024-11-07Remove redundant `constraint' argument to uvmpd_scan() & friends.Martin Pieuchot
Currently when there is no request waiting for low pages the constraint used corresponds to the full address range. So use the constraint attached to the memory request. This also speeds up the active/inactive list lookups by skipping the constraint check if the request has already been fulfilled. ok miod@
2024-11-07Introduce an helper to check if memory has been freed for a given request.Martin Pieuchot
Using this helper we stop scanning the active/inactive lists if the shrinkers already released enough pages to fulfill the allocation. This speeds up the page daemon loop by avoiding useless lookups to find the first managed page belonging to the low memory range before aborting. ok miod@
2024-11-07Introduce an helper to check if a page belongs to a given memory range.Martin Pieuchot
No functional change. ok miod@
2024-11-07Test callback is called immediately after TLS handshake completion.Alexander Bluhm
2024-11-07Move syslogd(8) TLS handshake callback from read to write handler.Alexander Bluhm
syslogd should immediately detect that the incoming TLS handshake is complete. The old logic detected it when the first log message over TLS was arriving. For now only a debug message is logged, but the callback will be used to print the common name of the client certificate in the future. OK tb@
2024-11-07Regression for parsing multi-line strings with comments.Martin Pieuchot
From Christian Ludwig
2024-11-07Add multi-line strings support to the bt(5) script parser.Martin Pieuchot
From Christian Ludwig
2024-11-07de-macro SWAP_KEY_*; ok miod@ mpi@Jonathan Gray
2024-11-07drop "Civil" from NQY; while RAF still have some presence at the siteStuart Henderson
they sold the runway to Cornwall County Council in 2008, there's no separate military airbase. (Existence verified by me when it was RAF St Mawgan).
2024-11-07Remove leftover indirections required by pre-armv7 cpu support.Miod Vallat
2024-11-07Remove two unnecessary instructions, at least one being a leftover fromMiod Vallat
debug code added in NetBSD 1.51 not being completely removed in 1.133, and which we have been carried since 1.1 here...
2024-11-07Log the username when rejecting by ipcp.YASUOKA Masahiko