Age | Commit message (Collapse) | Author |
|
|
|
ok deraadt
|
|
ok mpi@ deraadt@
|
|
|
|
script can be used. ok kettenis@
|
|
so it was still possible to fault the kernel.
Problem observed by Maxime Villard
ok deraadt@ bluhm@
|
|
|
|
FullMAC, in comparison to SoftMAC, does most WiFi handling in the
firmware that's running on the controller. This means we have to
work around the net80211 stack while still implementing all the
WiFi interfaces to userland.
This driver is still in early development. So far it can connect
to open WiFis over the USB bus. SDIO and PCIe support, for devices
like the Raspberry Pi 3 or the Macbooks, is not yet implemented.
Also mbufs on the transmit path leak and are not yet freed.
ok stsp@
|
|
and III. The logic does not look nice, but the parameters do not follow
the standard config register layout anyway.
Remove unnecessary default values, and assume that the Config1
and Config2 registers are available on every CPU.
Tested on CN5020, CN6120, CN7130 and CN7360.
|
|
Restores the balance of serenity and peace of mind of the last
real alpha user, to some extent.
From miod@
|
|
The selected mode is used by efifb(4).
original diff from Klemens Nanni, tested by Andrew Daugherity
|
|
ok tom, kettenis, deraadt
|
|
ok patrick@, jsg@
|
|
If frequency of an invariant (non-stop) time stamp counter is measured
using an independent working timecounter that has a known frequency, we
can assume that the measured TSC frequency is as good as the resolution
of the timecounter that we use to perform the measurement. This lets us
switch from this high quality but expensive source to the cheaper TSC
without sacrificing precision on a wide range of modern CPUs.
From Adam Steen <adam@adamsteen.com.au> with tweaks from reyk@ and myself.
Tested by brynet@, sthen@ and others, OK mlarkin, sthen
|
|
as 32 bit linux guests do.
ok pd@
|
|
prevents the video output problem on ThinkPad X121e and so on.
diff from Klemens Nanni, test by Andrew Daugherity
|
|
Debug builds only.
|
|
found with grep 'KASSERT.* = '; OK kettenis@
|
|
warning during linux guest bootup relating to fpu save state size.
|
|
wrong place, no functional change.
|
|
|
|
ok tom, mpi, deraadt
|
|
the .got section was put into the randomdata segment. This caused
the bootloader to overwrite parts of the .got and leads to broken
pointers. Explicitly put the .got section into the .data segment.
ok kettenis@
|
|
value so simplify.
|
|
from the trap to a 'resume' address to effectively make xrstor_user()
return an error indication, then do the FPU cleanup and trap generation
from there where we can get access to the original, userspace trapframe.
The original fix tried to handle the trap while on the wrong trapframe,
leaking kernel addresses and possibly leading to double faults.
Problem pointed out by abluhm@
ok deraadt@ mikeb@
|
|
user address is unavailable so use 0 instead, since the typical cases
are coredump or handing to a SIGBUS handler which cannot recover.
Issue observed by bluhm
ok bluhm, mlarkin, guenther said "Foo!"
|
|
is under userspace control via sigreturn, fails various consistency
checks. Rather than trying to replicate the CPU's hardwired checks
in C code, handle it like iretq: check in trap() whether a fault
is from the problem instruction and handle it there.
CPU behavior and the potential issue pointed out on Linux kernel-hardening
ok mikeb@ deraadt@
|
|
ok deraadt@
|
|
don't request R+W. Issue observed by jsing in a go test of some sort.
ok mlarkin
|
|
the kernel makefiles was removed which lead to C files not being re-
compiled when a dependency changed. This can lead to panics in odd
places and generally a broken system.
ok deraadt@
|
|
addresses will cause a fault on load by the kernel.
Problem observed by Maxime Villard
ok kettenis@ deraadt@
|
|
Those are shared by SD/MMC buses.
|
|
|
|
This makes the system a bit harder to corner when paging to SD/MMC.
In addition, limit the maximum DMA segment size to MAXPHYS.
|
|
|
|
This fixes spurious interrupts seen on CN7360.
|
|
Prompted by jsg@
|
|
on the Allwinner A64, H3 and H5 SoCs. This makes the onboard ethernet
usable on the popular Pine A64 and NanoPi Neo2. The skeleton used for
this driver is taken from tsec(4).
ok kettenis@
|
|
ok patrick@
|
|
|
|
on multicore systems.
|
|
have not been affected.
From miod@
|
|
protection issues. So make amd64 do that instead of passing through
uvm_fault()'s return value, which lead to other possible errors
(particularly EACCES) being returned to userspace. Clean up a vestige
on arm64 too.
ok bluhn@ deraadt@
|
|
|
|
functionnalities are available in GENERIC.
ok jasper@, deraadt@, guenther@, dlg@
|
|
a redzone means something else on amd64, so im renaming this to
avoid confusion.
|
|
this protects the process control block. it also makes the kernel
fault hard when the guard page gets hit by the stack, allowing
debugging of the problem set of function calls at the time the
problem occurs. without this, a big stack can overwrite the pcb,
which makes the thread generate a fault when it is switched back
onto a cpu, which is way too late.
discussed with guenther@
ok deraadt@
|
|
No functionnal change.
ok visa@
|
|
ok ians@
|
|
a -Wtautological-pointer-compare warning.
ok ians@
|