Age | Commit message (Collapse) | Author |
|
ok beck jsing sthen
|
|
ok beck jsing sthen
|
|
ok beck jsing sthen
|
|
And here is where the fun starts. The tentacles will grow everywhere.
ok beck jsing sthen
|
|
ok beck jsing sthen
|
|
ok beck jsing sthen
|
|
ok beck jsing sthen
|
|
This marks the start of one of the worst API additions in the history of
this library. And as everybody knows the bar is high. Very high.
ok beck jsing sthen
|
|
|
|
that we load the kernel into doesn't work. But changing it to EfiLoaderCode
makes it work. Presumably the firmware creates a mapping with executable
permissions in that case, which is obviously needed for executing kernel
code.
ok patrick@, mlarkin@
|
|
host bridges. Add support for this.
ok mlarkin@, patrick@
|
|
Avoid undefined behaviour by negating the unsigned value, before casting
to int64_t, rather than casting to int64_t then negating.
Fixes oss-fuzz #48499
ok tb@
|
|
If no memory was immediately available to decrypt (bounce) a page from swap
an error was returned to the fault handler which would result in processes
dying when a lot of memory pressure was applied to a system.
Note that reading from swap is always done synchronously.
ok beck@, kettenis@
|
|
Instead of starting with the first page on the inactive list pick the first
one that fits in the range of a given pmemrange region.
Fix an issue where the page daemon would be hogging a CPU without freeing any
page because the global limits are satisfied.
The algorithm could certainly be revisited, the LRU is not really working and
there is a huge delay before recovering when the first pages need to be swapped and the system is in OOM situation but at least there is no starvation and the
system now recovers.
ok beck@, kettenis@
|
|
ok beck@, kettenis@
|
|
Currently swap encryption is not done in place and some architectures need to
bounce pages into a DMA-reachable region for I/Os, for that uvm_swap_io() needs
to allocate at most 64K to write a swap cluster to disk. Pre-allocate such
amount of memory to be sure the page daemon can make progress in OOM situation.
Also introduce a sleeping point to wait for the previous asynchronous I/O
holding the pre-allocated pages, there's no point in building clusters if no
progress can be made.
ok beck@, kettenis@
|
|
This ensures uvm_swap_io() can succeeds even in OOM situations because two
uvm_pagermapin() allocations, requiring a segment each, are needed to bounce
or encrypt a swap cluster.
ok beck@, kettenis@
|
|
|
|
all the other rc plumbing.
OK deraadt@
|
|
|
|
is later on interpreted as a com_softc pointer. This is not a problem in
practice as a com_softc structure is the first member of the
com_acpi_softc structure.
Using the actual types consistently yields a better symmetry in my
opinion between registering the interrupt and the corresponding
interrupt handler.
ok deraadt@ kettenis@
|
|
routines.
ok deraadt@ kettenis@
|
|
pluart_param().
|
|
Most code stolen from slowcgi, it just exec bgpctl with -j.
Put it in tb@ deraadt@
|
|
Reported by Hrvoje Popovski. ok bluhm@
|
|
Keep the depth which was needed.
This went an error too far, and broke openssl-ruby's callback
and error code sensitivity in it's tests.
With this removed, both my newly committed regress to verify
the same error codes and depths in the callback, and
openssl-ruby's tests pass again.
ok tb@
|
|
It was incompatible with OpenSSL 3.0. Remove the regression test
to check that LibreSSL crypto works with Botan tests. This is
better than to keep an outdated Botan in ports.
discussed with tb@ beck@
|
|
variables inside the #ifdef DEBUG block using them.
|
|
found by otto@ the hard way
|
|
While this is not a leak currently, it definitely looks like one.
Pointed out by jsing on review of a diff that touched the vicinity
a while ago.
ok jsing
|
|
OK miod@ mpi@
|
|
This really pointed out that the place syncookies were hooked in was almost,
but not completely right. The way it was the special case for tcp fast port
reuse in pf_test_state wasn't hit, because the first packet
hitting that was the ACK from the peer finishing the 3WHS, and the
reconstructed SYN came after. We're now doing pf_find_state (and *only* that)
first, then syncookies, then going on so that the old state is thrown away
properly and we get a new one with the sequence number modulator set up
correctly
Bonus: -11 lines of code
tracked down (that took a while) + fixed under contract with Hush
Communications Canada; special thanks to Lyndon
ok sashan
|
|
|
|
|
|
|
|
Previously we looked at cpuid 0x80000005 for L1/TLB details
which Intel documents as reserved.
And cpuid 0x80000006 for L2 details.
Intel also encode cache details in cpuid 4.
AMD have mostly the same encoding with cpuid 0x8000001d
0x80000005/0x80000006 is used as a fallback.
Prompted by Intel Tiger Lake and Alder Lake machines
returning an associativity value of 7 from cpuid 0x80000006.
The previous code would print "disabled L2 cache", 7 is
documented by Intel as "See CPUID leaf 04H, sub-leaf 2".
tested by Hrvoje Popovski on EPYC 7413, and myself on various machines
ok mlarkin@
|
|
This will help dealing with error cases.
No functionnal changes.
|
|
Avoids a confusing question when no supported network devices is found, i.e.
"Available network interfaces are: vlan0.
Which network interface do you wish to configure? (or 'done') [vlan0]"
|
|
only matter on entry and the pr->ps_single check is done in the while body.
With and OK mpi@
|
|
How RFC 9234 support will work in the long run may still change but
for now at least tell people how to use it.
|
|
Fixes config regress. Found by anton@, discussed with tb@
|
|
like other unknown ones. Also KNF the code a bit.
Was OK tb@ some time ago
|
|
Fix an assertion reported by gkoehler@.
ok kettenis@
|
|
Those pages should already be entered, this speeds up CoW faults.
Stolen from NetBSD.
ok miod@, kettenis@
|
|
operations.
OK mvs@
|
|
supported interface.
pointed out by bluhm@
OK bluhm@
|
|
tracepoint for each type of refcnt we have. As a start, add inpcb
and tdb refcnt. When the counter changes, btrace may print the
actual object, the current counter, the change value and optionally
the stack trace.
discussed with visa@; OK mpi@
|
|
use it for.
|
|
This allows admins to configure oids as pretty symbolic names, next to the
current numeric names.
OK sthen@
|
|
|