Age | Commit message (Collapse) | Author |
|
|
|
|
|
ok deraadt@
|
|
|
|
|
|
The previous lack of error handling could trigger a kernel crash
in some situations, with ulptwrite being called while not ready.
ok deraadt phessler
|
|
DMA segment size when setting up the TX buffers in msk_init_tx_ring().
ok jsg@
|
|
|
|
|
|
Enforcing W^X in the kernel like this mitigates at least some ret2dir attacks.
ok mlarkin@, deraadt@
|
|
|
|
construct ELF executables for which ep_daddr ends up not being properly
aligned. Sanitize the addresses before setting up the address space for the
new executable. Should fix the panic discovered by Alejandro Hernandez.
ok miod@
|
|
as well as useless include of the generated flag files.
|
|
ok ratchov@, sthen@, mpi@
|
|
sys/arch/i386/i386/bios.c, ok deraadt
|
|
bus_space(9) diff.
ok sthen@
|
|
| i386/bus_space.c:1.5->1.6
| i386/machdep.c:1.551->1.552
| include/bus.h:1.61->1.62
|
|
ok deraadt@, armani@
|
|
hiding, it is a lot of other systems too.
|
|
MD code needs excess #ifndef SMALL_KERNEL
|
|
|
|
with an ihandle instead of a phandle. And also the comparison was the
wrong way around.
This bug was causing an exception. Because -1 is returned to indicate
failure and because the comparison is the wrong way around, the bad logic
led to believing that SUNW,retain exists which is why this currently
works on some PROMs.
On E250/E450 machines, this didn't work so there was a hack to detect
these machines and work-around the problem. After this fix that hack is
now removed.
Tested on an E450 by sebastia@ and confirmed that his dmesg is now
retained after a reboot. nick@ promises to complain if his E250 is any
worse off.
ok kettenis@
|
|
|
|
introduce a new sysctl, hw.perfpolicy, that governs the policy.
when set to anything other than manual, hw.setperf then becomes read only.
phessler was heading in this direction, but this is slightly different. :)
|
|
src/sys/arch/amd64/amd64/bus_space.c r1.22
src/sys/arch/amd64/include/bus.h r1.27
instead of using the tag as an identifier for IO or memory mappings
that was checked inside the api, turn it into a pointer to a structure
of function pointers. the api then generally becomes a set of macros
that deref the function pointers on the callers behalf. the idea
is that following a pointer to very small functions is cheap compared
to doing compares continuously.
the kernel is smaller and the api is more cache friendly now.
the porting of this code from amd64 to i386 was done by kimberley manning
requested by and ok tedu@
|
|
pfsync_sendout. more specifically, move the reset of sc->sc_len to
PFSYNC_MINPKT above ip_output.
this prevents a situation where ipsec via ip_output calls
pfsync_update_tdb for syncing the ipsec flow to a peer, which
accounts for the tdb in the next pfsync packet, before unwinding
back to pfsync_output which resets the accounting we just did.
the next pfsync packet to be sent out will be allocated with a short
length because sc_len is wrong, and the long lists of things (eg,
the tdb) can overwrite memory after the mbuf. this manifests as
incorrect poisoning or xsimpleq entry corruption in mbufs still in
a pool, or random corruption of m->m_next on other mbufs in the
system.
bug found, fix tested, and ok stsp@
|
|
|
|
Pointed out by Mark Cave-Ayland.
|
|
ok deraadt@
|
|
putting a LID into the global list of LIDs if we encounter an error writing
to _PSW for that LID. Needed for another upcoming diff.
ok deraadt, phessler
|
|
both AMD and Intel CPUs. Previously, the encoding was causing illegal
instruction exceptions on AMD, causing hibernate resume to fail.
|
|
and existing implementations vary as to whether it returns time for
the calling thread or the entire process. OK kettenis@
|
|
hibernate anymore.
|
|
|
|
be for both cases.
OK ketennis@
|
|
the disassembler initialization fails.
Correctly compute the destination of pc-relative branches.
|
|
OK kettenis@
|
|
|
|
Those two functions take one dev_t argument, not int. Match declarations
with reality. No functional changes.
|
|
option DDB; some parts of trap() depend upon the whole frame being
populated (especially when running on PCXS processors).
ok kettenis@
|
|
cannot create it.
Suggested by and ok claudio@
|
|
you don't have a physical interface on your machine, so why rawip should
be more clever^Wparanoid than the others?
ok henning@, mikeb@
|
|
kill the macro.
ok mikeb@, henning@
|
|
not have been removed (per the license conditions).
Revert that removal of the BSD license text and conditions. Special thanks to
Aaron Brown who also provided explicit permission to make this change.
ok schwarze@, miod@
|
|
|
|
|
|
|
|
ok millert@
|
|
type, and path shouldn't leak vnode or ucred references.
ok millert@
|
|
tweaks and ok millert@ deraadt@
|