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@
|
|
struct ucred; struct process then directly links to the ucred
Based on a discussion at c2k10 or so before noting that FreeBSD and
NetBSD did this too.
ok matthew@
|
|
ok dlg@ mpi@ deraadt@
|
|
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@
|
|
|
|
ok miod@
|
|
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@
|
|
|
|
the chip is always false, so remove this no-op. In fact this list
contains the link-layer address as soon as the device attachs.
ok miod@
|
|
sebastia@, this would only affect processes using more than 512KB of stack.
|
|
<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).
|
|
kernels:
- keyboard drivers will now tell wskbd if the keyboard layout they ask
for is a default value, or a value they are 100% sure of (either
because your kernel has a XXXKBD_LAYOUT option, or because the
driver can tell the keyboard layout, e.g. by the country code on USB
keyboards which provide it, such as Sun's)
- when attaching a keyboard with a non-default layout, the layout will
become the default layout of the mux for new keyboard attachments if
the mux doesn't have a layout set already.
- when changing the keyboard layout of a particular keyboard with an
ioctl (i.e. using kbd(8) or wsconsctl(8)), the layout will become the
default layout of the mux for new keyboard attachments.
ok mpi@
|
|
|
|
fix ncr53c9x fallout.
|
|
|
|
|
|
"sure" deraadt@
|
|
entries to decide if the IFF_ALLMULTI flag should be set, check if there
is at least one real range between them.
This should not change the behavior of any driver but if you encounter
any problem, feel free to revert the offending chunk and ping me about
it.
ok naddy@, dlg@
|
|
changes.
|
|
Also double DFLDSIZ.
|
|
the largest possible page table for every pmap; from NetBSD. This allows the
kernel to use much less memory for page tables.
Significant differences against the NetBSD code are:
- allocation of page table pages is done with a pool instead of allocating
whole logical pages from uvm and managing the freelist within pmap, never
releasing allocated pages.
- try to use pt_entry_t * rather than int * whenever possible.
- growth of P0 and P1 regions is allowed to fail, if invoked from
pmap_enter with the PMAP_CANFAIL flag. This will stall processes until
memory for the page tables can be obtained, rather than panicing, in
most cases.
- keep management of mappings for managed pages using pv lists tied to the
vm_page (using __HAVE_VM_PAGE_MD), rather than a global pv_list head.
- bound check against Sysmap[] in pmap_extract() when asked for a kernel
address.
As a result of this, bsd.rd can now install a working system on a 12MB machine
without needing to enable swap.
|
|
Resource maps have been removed more than 10 years ago, it's about time to
update comments to better match reality.
No functional change.
|
|
go ahead miod@
|
|
OK miod@
|
|
OK miod@
|
|
|
|
Trivial except for tga(4) and gpx(4/vax) which need a bit more care setting
up a new font.
|
|
No functional change.
|
|
|
|
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@
|
|
variable and not (usually) an int.
ok miod@
|
|
|
|
with ddb entered early with boot -d or from UKC).
|
|
- the am7990_get() - now lance_get() - is unchanged.
- the interrupt acknowledge logic is unchanged, and will disable interrupts,
then acknowledge all interrupt conditions.
Add ILACC (79900) support (from NetBSD).
Both LANCE (am7990.c) and ILACC (am79900.c) code share as much common code
(lance.c) as possible. This affects all le(4) attachments, but the changes
are mostly mechanical, to split am7990-specific parts from lance-agnostic
parts.
Compile tested on all affected platforms. Tested on alpha, hp300, luna88k,
mvme88k, sparc, sparc64 and vax.
|
|
fork-without-exec situation (such as privsep'd binaries).
Fixes occasional SIGSEGV in syslogd and pflogd on sun4/4c/4e.
|
|
|
|
don't have to. Remove these include lines from vax drivers.
test lteo@
|
|
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
|
|
|
|
valid bit set; can't believe this went unnoticed for so long.
This fixes uvm_km_pgremove_intrsafe panics when pool_put()'ing items in pools
for larger-than-a-page-items at shutdown time.
|
|
|
|
|
|
|
|
|