Age | Commit message (Collapse) | Author |
|
include PROT_READ but not PROT_EXEC.
ok patrick@
|
|
|
|
avoid some TLB flushes by not reloading %cr3 when the value isn't changing.
original diff by and ok mlarkin@
|
|
not just pmap_kernel() and this CPUs pmap. Meanwhile, when mapping
another pmap's tables, order the locking so that we don't need IPIs
specific to the temp pmap.
tested in snaps for a bit
ok mlarkin@
|
|
armv7 and i386 with amd64.
ok guenther@
|
|
ok mpi@
|
|
Tested on mcbin with Broadcom BCM57404 (Dell variant).
Ok jmatthew@ and kettenis@
|
|
ok patrick@, jsg@
|
|
though amd only provides public redistributable updates for >= family 10h.
|
|
if activating for the current thread and meltdown mitigations are in effect.
Not clear if it's actually possible to hit the case where this matters,
but it's the Right Thing.
ok mlarkin@
|
|
as this code isn't present in those page tables
ok mlarkin@
|
|
iretq instruction used when Meltdown mitigation is effect. It got
pushed off when an lfence was added in locore.S rev 1.107, resulting
in two signals being sent instead of one when iretq faulted, and
neither signal had the correct sigcontext info. Update the makefile
rule for locore.o to verify that things are correct.
ok mlarkin@
|
|
retguard in the kernel and brings the number of useful ROP gadgets at
runtime to zero.
ok kettenis@
|
|
May help ports builders to not run out of memory.
Lots of agreement and OK n2k18@
|
|
ok kettenis@
|
|
|
|
ok mlarkin@
|
|
OK anton@ deraadt@ kettenis@ mpi@
|
|
|
|
header contains an image size field that is calculated using the
difference between the start of the header and edata. Since we
copy out .dynstr into the EFI binary, make sure that .dynstr is
before edata so that it's included in the image size. This makes
it consistent with efiboot on armv7.
ok kettenis@
|
|
being committed now so we can work on the rest in-tree.
ok mlarkin@
|
|
no realy change, this avoid having to allocate the todr struct in attach
ok deraadt@
|
|
this let's me pull the date back from 2023 to 2018, and have it
stay like that after a reboot.
ok deraadt@
|
|
and Hi3670 SoCs.
|
|
|
|
|
|
|
|
|
|
|
|
ok kettenis@
|
|
determine whether radeondrm(4) is the console or not. So leave out the
bits that try to make sure the console ends up with drm0/wsdisplay0 that
we have on other platforms.
|
|
ok patrick@
|
|
ok jsg@, patrick@
|
|
through the CLIDR_EL1 register.
ok patrick@
|
|
ok krw@
|
|
Based on imt(4)
Rename HIDMT_INPUT_MODE_MT to HIDMT_INPUT_MODE_MT_TOUCHPAD
ok deraadt
|
|
ok deraadt@, krw@, jca@
|
|
ok deraadt@
|
|
ok patrick@
|
|
are added. Presence of such MSRs is indicated with a feature flag, which
we probe and print at startup for each AP CPU. EFI screen scrolling hasn't
gotten faster (yet) and 9600 baud serial console is still the same speed
as 1980. Final piece of the puzzle is machines have more cpus, providing
more opportunity for screen scrolling and serial fifo's to fill up. The
BSP cpu is watching the AP cpus probe and print, but increased latency
causes it to exceed a timeout and print "cpuXX: failed messages".
Crank that timeout.
discussed with kettenis, ok guenther
|
|
done on amd64 already. Original diff from Frank Groeneveld
ok tb patrick
|
|
discussed with deraadt@ bluhm@ and sthen@
|
|
This fixes the problem that which prevents typing the passpharase for
softraid on boot. It happened at least with some external keyboards
on ThinkPad X2{6,8}0. diff from Frank Groeneveld
ok tb
|
|
nowhere.
ok kettenis@
|
|
ok deraadt@ mlarkin@
|
|
Based on a submisison from Jan Klemkow.
|
|
The src/lib/libc/thread/rthread.c 1.8 change adds #include
<sys/atomic.h> in userland code.
Current m88k atomic.h contents are inside of #if defined(_KERNEL)
guard, then, nothing is defined for userland program.
So we need adding some defines to compile it on m88k.
The original diff is suggested from Miod Vallat, modified by the
advice from mpi@ and kettenis@.
ok kettenis@
|
|
(1) Future cpus which don't have the bug, (2) cpu's with microcode
containing a L1D flush operation, (3) stuffing the L1D cache with fresh
data and expiring old content. This stuffing loop is complicated and
interesting, no details on the mitigation have been released by Intel so
Mike and I studied other systems for inspiration. Replacement algorithm
for the L1D is described in the tlbleed paper. We use a 64K PA-linear
region filled with trapsleds (in case there is L1D->L1I data movement).
The TLBs covering the region are loaded first, because TLB loading
apparently flows through the D cache. Before performing vmlaunch or
vmresume, the cachelines covering the guest registers are also flushed.
with mlarkin, additional testing by pd, handy comments from the
kettenis and guenther peanuts
|
|
pseudo-device, get rid of the option. Enabling kcov now requires the following
line to be added to the kernel config:
pseudo-device kcov 1
This is how pseudo devices are enabled in general. A side-effect of this change
is that dev/kcov.c will no longer be compiled by default.
Prodded by deraadt@; ok mpi@ visa@
|
|
land FPU context was saved to proc0. This was an information leak
as proc0 is used to initialize the FPU at exec and signal handlers.
Never save the FPU to proc0, it has the initialization value. Also
check whether the FPU has valid user land state that has to be
forked.
This bug is a regression from the eager FPU commit. OK guenther@
|