Age | Commit message (Collapse) | Author |
|
ok mlarkin
|
|
internals. this fixes a panic i got where a network interrupt tried to use
the mbuf pools mutex while pool_reclaim_all already held it which lead
to the same cpu trying to lock that mutex twice.
ok deraadt@
|
|
copied area, and initialize it properly in the FORK_THREAD case.
This restores the behavior of a forked process inheriting its parent's
signal stack.
ok guenther@
|
|
RLE pages in hibernate.
ok deraadt@
|
|
not zero retval when returning an error, so don't copy it back to a
ktracer in this case.
dropped by R00T-DUDE in his "Unusual and Hilarious Vulnerabilities" talk
at Ruxcon 2011; ok guenther@ miod@
|
|
rle.
noticed by jasper
|
|
- panic strings already get printed with a '\n', so remove the extra ones
ok mlarkin@
|
|
being written to an output buffer
|
|
pages that are free
|
|
discussed with deraadt@
|
|
past, pull that code out seperately.
ok guenther miod
|
|
|
|
ahci_hibernate_io, a skeleton of which is also provided in this diff.
This code is from deraadt@. Tested on a few wd machines to ensure it works
there as well.
|
|
groundwork for *_hibernate_io functions other than wd_hibernate_io
These changes were sent to me by deraadt@
|
|
suspend.
ok pirofti@
|
|
during hibernate resumes.
|
|
and use curp vs p instead of p1 vs p2. Add curpr and pr variables
for the respective struct processes. Make sigactsshare() return
the shared sigacts intead of taking the struct proc to update.
ok deraadt@
|
|
Detect attempts to wrap the file offset by reading past the max (except
for character devices).
ok matthew@, deraadt@
|
|
Pointed out by Alexander Polakov (polachok at gmail.com)
ok deraadt@
|
|
Discussed with deraadt@
|
|
during the big rework at c2k10, but it's too early as signals can be posted
before the process is fully built. Move those list adds back down to the
late stage they were before.
Problem seen on sebastia@'s sparc.
ok deraadt@ miod@
|
|
on them too
ok deraadt@, miod@
|
|
the IPC_RMID flag.
This is permitted as an extension beyond the standards and this is similar
to what other operating systems like linux do.
Because compat_linux(8) was emulating this already, remove that code
since now this is the default.
input from oga@, guenther@, jmc@, deraadt@
ok deraadt@
|
|
concurrency is possible in the future. discussed with guenther and
matthew. ok tedu
|
|
the new image
|
|
|
|
for pointing to the thread-control-block. Support for mapping this
to the correct hardware register can be added as it's finished;
start with support for amd64, sparc, and sparc64. Includes syscalls
for getting and setting it (for a portable __errno implementation) as
well as creating a new thread with an initial value for it.
discussed with miod@, kettenis@, deraadt@; committing to get the syscalls
in with the impending libc bump and do further refinements in tree
|
|
they apply.
ok oga@ deraadt@
|
|
which allows a correct registration of kqueue(2) notifications on
the /dev/tty instead of calling a function via a null pointer in
the ttkqfilter leading to a local DoS.
Surprisingly the same code is present in NetBSD since the kqueue
merge, but didn't make it to the OpenBSD for 10 years.
Thanks to Anton Yabchinskiy <arn-at-bestmx-dot-ru> for a GHCi crash
report and his willingness to test multiple diffs for over a week.
With input from nicm, ok miod, derraadt.
|
|
arent necessarily atomic.
this is an update of a diff matthew@ posted to tech@ over a year ago.
|
|
write to ph.
ok blambert@ matthew@ deraadt@
|
|
for talking to the disk driver snuck in.
ok mlarkin
|
|
ok deraadt@
|
|
can get at it.
ok jsing
|
|
hibernate resume.
|
|
MI/MD parts. This also introduces a chunk placement routine that was
originally developed at c2k11 with help from drahn and ariane.
There are still a few more things to do for hibernate, but those can be
worked on in-tree. This code is disabled by default, and not yet called.
ok deraadt@ (and deraadt@ said kettenis@ also ok'ed it :) )
|
|
layers. Then things get terribly confusing because the various MI layers
swap variable names for parameters, local variables, and structure fields
numerous times. Unconfuse all this mess.
Note that exec_elf.c coredump cpi_sigcode used to contain the MD traptype
but will now contain the MI siginfo-style "code" value.
ok miod kettenis pirofti
|
|
remove some now useless statistics, and add some
relevant ones regarding kva usage in the cache.
make systat io and show bcstats in ddb both show
these counters.
ok deraadt@ krw@
|
|
|
|
|
|
implementation does not support it and handles it as `h'.
ok jsing@
|
|
copyout()s instead of altering the in-use variable, and to also
return the full length via oldlenp in that case as documented.
ok jsing@ (problem pointed out by matthew@)
|
|
the lock, but a change in member ordering meant it was using the same
address. Explicitly use different members instead of mixing address
of member and address of the lock itself.
ok miod@
|
|
also added to the other direction.
ok mikeb@
|
|
actually exit. This means that the main thread will exit and free the
process group, which results in the thread dereferencing a null pointer
when it is woken back up. Avoid this by checking that the ps_pgrp is not
null before deferefencing it. Also expand the ps_session macro to avoid
hiding the dereference.
ok tedu@
|
|
ok kettenis
|
|
ok matthew@
|
|
|
|
ok krw@ matthew@
|
|
|