Age | Commit message (Collapse) | Author |
|
|
|
to avoid possible use-after-free references when swapping ids in threaded
processes. "Do I have the right creds?" checks are always made with the
threads creds.
Inspired by FreeBSD and NetBSD
"right time" deraadt@
|
|
|
|
|
|
|
|
ok mpi@ yuo@
|
|
the usual 1.1 coprocessor mask, instead of using zero and having every
userland process dying with signal 4.
The circumstances under which this call fails are unclear and could be
tied to specific PROM version (I have tried overzealous stack alignment and
other tricks, to no avail). Interestingly enough, the 715/75 system which
hits this problem, only triggers it when booting from disk, and never when
booting from network.
This diff is an ugly bandaid until the problem is better understood. Or maybe
it is not worth investigating, seeing that Linux hardcodes the coprocessor
mask and never issues PDC_COPROC calls; I wonder what HP/UX does.
In my tree for over 18 months; "Looks like a nice hack" deraadt@
715/75 system provided by Sebastiaan Indesteege, thanks!
|
|
|
|
ok dlg@ mpi@ deraadt@
|
|
the effects will be.
sgi will follow after i fix some known fallout first.
|
|
Tweak the handling of ktrace EMUL when changing ktracing: only
generate one per process (not one per thread) and pass the correct
proc pointer down to the VFS layer. Permit generating of NAMI and
CSW records inside ktrace(2) itself.
ok deraadt@ millert@
|
|
testing help mpi@
|
|
|
|
native size, so eliminate the #defines.
ok miod@
|
|
"mainbus" device. this breaks when mpath is enabled because it
attaches before mainbus and therefore takes the head position.
have autoconf provide device_mainbus() which looks up mainbus_cd,
and use that instead.
discussed with deraadt who just wants mpath stuff to move forward
despite there being many ways to shine this particular turd.
|
|
|
|
namespace, so stop changing behavior when it's #defined
ok beck@ krw@
|
|
|
|
qle in GENERIC on i386, amd64 and sparc64, where it's reasonably well tested
and likely to be useful.
requested by deraadt@ and kettenis@, ok dlg@
|
|
This should make bus_dmamap_load(9) and bus_dmamap_unload(9) "mpsafe".
|
|
<machine/pmap.h> where it belongs, and compensate in <uvm/uvm_extern.h>
by including <uvm/uvm_pmap.h> before <uvm/uvm_page.h>. Tested on all
MACHINE_ARCH but amd64 and i386 (and hppa64).
|
|
we block all interrupts that can grab the kernel lock. The simplest way to
achieve this is to make sure mutexes always raise the ipl to the highest
level that has interrupts that grab the kernel lock. This will allow us
to have "mpsafe" interrupt handlers at lower priority levels.
No change for non-MULTIPROCESSOR kernels.
Tested by juanfra@
|
|
grovellers need to know it to be able to get the right size for struct
vm_page.
|
|
|
|
function declarations.
ok kettenis@
|
|
libkern srandom() API since it is not suitable for this use.
ok kettenis miod
|
|
|
|
use a MD-supplied random function. Then, insert this into the ELF
openbsd.randomdata of the kernel, so that it has entropy right from
the start. Some help from jsing for the softraid aspects.
Also tested by phessler
|
|
|
|
"sure" deraadt@
|
|
OK pirofti@ krw@ miod@
|
|
resurrection of the bad idiom in the tree.
sufficient review by miod, kettenis, tedu
|
|
cold != 0. Indent and make hppa/hppa64 boot() closer to others.
OK kettenis@
|
|
USB host-to-host link cable. This driver is derived from upl(4).
|
|
ok kettenis@
|
|
which basically doesn't exist at all.
reminded about it by brad
|
|
which basically doesn't exist at all.
reminded about it by brad
|
|
|
|
readdoslabel(). Ditto all the MD variables whose addresses are passed
to readdoslabel() via partoffp.
Fix some 512-byte block vs disk sector confusion in hppa and sgi.
All the DL_GETxxxxx() defines return disk sector values. All
DL_SETxxxx() take disk sector values. These changes should be no-ops
until a drive using non-512-byte-sectors is encountered.
ok deraadt@
|
|
ok miod
|
|
have been *.core files for a very long time. That's a lot of unlink()
calls saved.
|
|
- switch to perl for better data structures and (thus) speed
- fix a couple glitches in the interpretation of the stabs output
- compress the strings by putting them in one big array and overlaying
suffixes
- all sizes and offsets are <64k, so use u_short for them
This results in ~60% reduction in the resulting text size and it now
takes less than a second to create on fast platforms.
ok miod@
|
|
ok dlg@, jsing@
|
|
with ddb entered early with boot -d or from UKC).
|
|
measurement device (idVendor:idProduct=0x0c45:0x7401).
newly added.
ok by mpi@ and sthen@
|
|
No regression has been reported since libusb became the prefered
solution to work with USB scanners.
req. by mpi@
ok ian@ mpi@ miod@
|
|
|
|
sure that SIZE_MAX and SSIZE_MAX are defined as constants with a matching
type on all are architectures.
ok millert@, matthew@
|
|
|
|
ok miod kettenis
|