Age | Commit message (Collapse) | Author |
|
pfctlinput() is only called in the input path with the NET_LOCK() held.
ok bluhm@
|
|
ok kettenis mpi tom
|
|
also in the IPv6 case. This fixes "netstat -An -f inet6 -p tcp"
and shows 0x0.
report and OK dhill@
|
|
the random subsystem as entropy. This value is pretty much unknown,
and anyways our entropy input ring does not saturate from knowns.
ok mikeb djm
|
|
|
|
Using a name with the 'db_' prefix makes it invisible from the dynamic
profiler.
ok deraadt@, kettenis@, visa@
|
|
It doesn't compile und hasn't been working during the last decade.
ok kettenis@, deraadt@
|
|
|
|
From semarie@, ok deraadt@
|
|
|
|
The syscall is marked NOLOCK and only FUTEX_WAIT grabs the KERNEL_LOCK()
because of PCATCH and the signal nightmare.
Serialization of threads is currently done with a global & exclusive
rwlock.
Note that the current implementation still use copyin(9) which is not
guaranteed to be atomic. Committing now such that remaining issues can
be addressed in-tree.
With inputs from guenther@, kettenis@ and visa@.
ok deraadt@, visa@
|
|
to valid values. The so_qlimit is type short.
report Dillon Jay Pena; OK deraadt@
|
|
ok deraadt@
|
|
from Anton Lindqvist
ok semarie
|
|
without <machine/mplock.h>.
|
|
on amd64 and i386.
|
|
|
|
Loosely based on a diff from Christian Ludwig
|
|
|
|
Go-ahead from kettenis@, guenther@, deraadt@
|
|
of memory, handling the fact that both queues are actually in dma
space when not flipping buffers high
|
|
because it tries MTIOCTOP against stdin, the tty. It is very inconvenient
to use isatty to distinguish this difference in userland, so return ENOTTY
for tty devices.
ok natano
|
|
region if uvm tells us it is available.
nits from deraadt@
ok krw@ guenther@ kettenis@
|
|
in it, dangling mounts could remain. When unmounting check the
hierarcy and unmount recursively. Also prevent that a new mount
appears during the scan.
Joint work with natano@; testing and OK krw@
|
|
OK jsg@
|
|
|
|
and four libc major versions ago
ok sthen@ jsing@ deraadt@ jca@
|
|
in struct mdproc. With that, all archs have those and the __HAVE_MD_TCB
macro can be unifdef'ed as always defined.
ok kettenis@ visa@ jsing@
|
|
from Matthias Pitzl; OK deraadt@
|
|
Problem noticed by krw
|
|
could be running inside a driver that will be force-detached, or due
to tsleep end up disrupting the softstate/hardstate contract. At
suspend time, quisce all these callbacks by waiting for completion.
This issue has never been observed for real, but may be implicated in
suspend/resume failures.
ok kettenis guenther mlarkin
|
|
copyout to avoid leaking kernel stack
ok deraadt@
|
|
future disk info sysctl has pads in the structures, use M_ZERO when
allocating the storage to avoid leaking kernel memory.
|
|
it has no pads, but a future ABI change could add something and leak
kernel memory.
|
|
changes to avoid exposing userland memory.
|
|
ok guenther
|
|
from sthen and others
|
|
from Matthias Pitzl; OK deraadt@
|
|
work.
ok mlarkin kettenis
|
|
syslogf always points to a file object with increased reference
count. This makes the implementation independent from the fact
whether changing the reference counter may sleep.
pointed out by Mateusz Guzik; OK deraadt@
|
|
|
|
|
|
Also fail if the descriptor is actually a tty.
ok guenther
|
|
sosend(syslogf->f_data, ...) could be called with a NULL pointer.
syslogf was not NULL, f_data was NULL and f_count was 1. The file
structure is ref counted, but the global variable syslogf is not
protected. So it may change during sleep and dosendsyslog() possibly
used a different socket at each access. Solution is to access
syslogf only once, use a local copy, and do the ref counting there.
OK millert@ deraadt@
|
|
avoid leaking the contents of the kernel stack into userspace.
ok guenther@, deraadt@
|
|
"bpf", and "inet" can finally go away. Use a snapshot if you get into
trouble, most likely in pax..
|
|
For the moment the NET_LOCK() is always taken by threads running under
KERNEL_LOCK(). That means it doesn't buy us anything except a possible
deadlock that we did not spot. So make sure this doesn't happen, we'll
have plenty of time in the next release cycle to stress test it.
ok visa@
|
|
for upcoming IPv6 stateless address autoconfiguration daemon to see
if autoconfiguration and autoconfprivacy are enabled.
Input semarie@; OK deraadt@
|
|
Attach is quite a different thing to the other PRU functions and
this should make locking a bit simpler. This also removes the ugly
hack on how proto was passed to the attach function.
OK bluhm@ and mpi@ on a previous version
|
|
|