Age | Commit message (Collapse) | Author |
|
i386. Stop abusing it on other archs for controling a shutdown by
pressing the soft power button:
* Add a MI sysctl hw.allowpowerdown; if set to 1 (the default) it
allows a power button shutdown.
* Make acpi(4)/acpibtn(4) honor hw.allowpowerdown.
* Switch the various power button intercepts on landisk, sgi, sparc64
and zaurus over to hw.allowpowerdown.
* Garbage collect the machdep.kbdreset sysctl on all archs other than
amd64 and i386.
ok miod@
|
|
Requested by dlg@
ok oga@
|
|
sub-tree may attach or detach at a time. attach and detach will sleep
against each other.
this is fixing (working around?) some bizzare corner cases that have
been seen (but not fully diagnosed) where the device trees, disk registration
subsystem, and other things could get messed up. one could argue though
that this serialization is a very good thing; it is easier than adding piles
of locks in various other places.
ok matthew jsing
|
|
ok deraadt@
|
|
interrupted by signals.
ok deraadt@
|
|
ok deraadt@
|
|
address should be, fixes broken fstat output for v6 socket connections.
Problem noticed by dhill@, ok todd@, "i have no idea what that diff is
touching, but it sure looks ok" halex@
|
|
outside the tree.
|
|
appears to be safe now. If not, we'll know soon where the bugs lie, so
that we can fix them. This diff has been in snapshots for many months.
ok oga miod
|
|
for now; that is unlikely to hit some of the remaining starvation bugs.
Repair the bufpages calculation too; i386 was doing it ahead of time
(incorrectly) and then re-calculating it.
ok thib
|
|
never done anything in OpenBSD and just clutters disk drivers with
silly flag handling.
More cleanup to follow.
ok deraadt@, millert@; no objections krw@
|
|
|
|
issue in disk_attach_callback. Assumes that the struct disk is part
of the driver's softc, but this is always true in practice.
Still other scary use-after-free races lying around here though...
ok jsing@, deraadt@
|
|
|
|
ok matthew@, deraadt@
|
|
the p_pptr member to stay valid
ok dlg@, matthew@, deraadt@, kettenis@, and others
|
|
ok miod@, deraadt@
N.B.: If you're following -current, you MUST recompile config(8) and
re-config your kernel or else ioconf.c will fail to compile.
|
|
try to reuse device unit numbers and to check that the device pointer
array is allocated and large enough.
Also, improve the panic message generated by config_detach() when we
detect that we're detaching a device that still has children.
Discussed with deraadt@ while trying to brainstorm ways that
interleaving config_attach and config_detach could blow up.
|
|
errno not 0/1.
ok guenther
|
|
vmmap is designed to perform address space randomized allocations,
without letting fragmentation of the address space go through the roof.
Some highlights:
- kernel address space randomization
- proper implementation of guardpages
- roughly 10% system time reduction during kernel build
Tested by alot of people on tech@ and developers.
Theo's machines are still happy.
|
|
uiomove() will do the right thing in that case.
"This fix is right" kettenis@
|
|
they're tightly bound to struct filedesc, leading to NULL derefs
during exit1().
ok henning@, millert@, kettenis@
|
|
timeout or not.
without this it is impossible to tell if the timeout was removed
or if it is just about to run. if the caller of timeout_del is about
to free some state the timeout itself might use, this could lead
to a use after free.
now if timeout_del returns 1, you know the timeout wont fire and
you can proceed with cleanup. how you cope with the timeout being
about to fire is up to the caller of timeout_del.
discussed with drinking art and art, and most of k2k11
ok miod@
|
|
allocated structs, they wont be shared. we dont have to do the silly
B_WANTED dance anymore. get rid of a bunch of comments that talk about
how we're stealing from the swapper, which is a lie now.
tweaks from oga@ scrutiny by matthew@
ok miod@ oga@ thib@ beck@
|
|
essentially identical; the only difference being that m_pullup2 is
capable of handling mbuf clusters, but called m_pullup for shorter
lengths (!).
testing dlg@ ok claudio@
|
|
|
|
discussed with and ok claudio
|
|
|
|
ok deraadt@ marco@ krw@
|
|
ok claudio@
|
|
until they're zombies and then send them signals (for intr mounts). Until
that is untangled, the sigacts change is unsafe. sthen@ was the victim
for this one
|
|
The problems during the hackathon were not caused by this (most likely).
prodded by deraadt@ and beck@
|
|
what the previous IO was. Less chance of copy and paste errors.
Suggested by miod@.
|
|
are past. Use CLR() and SET() to modify necessary flags while leaving
the flags used by the buffer cache in peace.
Should make bufcache code much less confused about the state of the
bufs used in reading/writing disklabels. Other such flag abuses no
doubt await a visit.
Errors in original diff found by miod@.
ok beck@ deraadt@
|
|
be shared (p_sigignore, p_sigcatch, P_NOCLDSTOP, P_NOCLDWAIT) moves
to struct sigacts, wihle stuff that should be per rthread (ps_oldmask,
SAS_OLDMASK, ps_sigstk) moves to struct proc. Treat the coredumping
state bits (ps_sig, ps_code, ps_type, ps_sigval) as per-rthread
until our locking around coredumping is better.
Oh, and remove the old SunOS-compat ps_usertramp member.
"I like the sound of this" tedu@
|
|
defined in all of uipc_mbuf.c. I use this function a lot for quick
printf debugging.
|
|
got broken. Most /usr/src/regress/sys/kern/splice/args-oobinline-*
regression tests fail when they split an mbuf at out-of-band data.
ok claudio@, deraadt@
|
|
does not do what it purports to do, it shrinks mapping, not allocation, as
the pages have already been given away to other buffers. This also renames
the function to make this a little more obvious
and art should not name funcitons
ok thib@, art@
|
|
The contents belong togather a long with other crud,
that should get moved at some point.
ok deraadt@, miod@
|
|
and we aren't sure what's causing them.
shouted oks by many before I even built a kernel with the diff.
|
|
buffer as the result of bread_cluster.
ok art@ thib@
|
|
"reads OK" claudio@
|
|
While it is a terribly cool idea, it's just awful and since noone has stepped
up to the plate to keep it up with the current vop state, retire it to the
attic.
ok krw@, deraadt@, guenther@, miod@.
comments from jmc@
|
|
and return EOPNOTSUPP directly from the VOP_* functions.
Filesystems should, at some point fill in every function
in the vop_default struct so we can get rid of the 'if'
statements in VOP_*.
|
|
one has been weeding it, and it makes life harder.
Toasts of Brennivin for its passing from many; diff ok henning@
|
|
the caller and the function that the function will not fail to allocate
memory and return a NULL pointer. However, m_dup_pkthdr() violates
this contract, making it possible for functions that pass M_WAITOK to
be surprised in ways that hurt.
Fix this by passing the wait flag all the way down the functions that
actually do the allocation for m_dup_pkthdr() so that we won't be
surprised.
man page update forthcoming
ok claudio@
|
|
- Use km_alloc for all backend allocations in pools.
- Use km_alloc for the emergmency kentry allocations in uvm_mapent_alloc
- Garbage collect uvm_km_getpage, uvm_km_getpage_pla and uvm_km_putpage
ariane@ ok
|
|
to cleave a single mbuf in twain, but managed to fail in divergent
and horrible ways in doing so in anything resembling a sane manner
introduce m_split_mbuf() and remake the previous into wrappers
around that
pounded by phessler@
ok claudio@
|
|
This fixes the NFS problems reported on the mailing list
and ensures that accepted sockets have correct socketbuffer
setting. OK blambert@, henning@
|
|
the same variable. Leak found with dlg's magic mbuf leakage finder.
OK henning@, deraadt@
|