Age | Commit message (Collapse) | Author |
|
OK deraadt@
|
|
The pathlist is a whitelist of dirs and files; anything else returns ENOENT.
Recommendation is to use a narrowly defined list. Also add TAME_FATTR, which
permits explicit change operations against "struct stat" fields. Some
other TAME_ flags are refined slightly.
Not cranking libc now, since nothing commited in base uses this and the
timing is uncomfortable for others. Discussed with many; thanks for a
few bug fixes from semarie, doug, guenther.
ok guenther
|
|
Requested by Sunil Nimmagadda to help tame http.
ok deraadt@
|
|
if we're allowed to try and use large pages, we try and fit at least
8 of the items. this amortises the per page cost of an item a bit.
"be careful" deraadt@
|
|
|
|
ok mpi@ claudio@
|
|
it to 0 immediately after a bzero() of the entire label. Nor in
swapping endianness since nobody looks at it. Don't touch the actual
field in disklabel. Yet.
ok deraadt@ as part of larger diff that needs splitting up.
|
|
since it had been converted from kvm to sysctl. This was hiding a
bunch of TCP states which are important for network debugging.
Loop over the internet PCB tables to fill the network information
into the KERN_FILE_BYFILE sysctl result. Skip internet sockets
when looping over the file desciptors.
From markus@; OK guenther@; Go for it deraadt@
|
|
Eliminate the goto that I tripped on.
problem noted by Mark Latimer (mark.latimer (at) gmail.com)
ok miod@ millert@
|
|
simple and gross fashion, but the least impact on other parts...
|
|
trying to build.
|
|
read and validate disklabels on GPT partitioned disks. Makes it much
more likely GPT partitioned disks with non-512-byte sectors will
work.
Part of the larger reverted GPT work.
ok deraadt@
|
|
|
|
tests reported an EMSGSIZE error although the sent message was not
too large. The way backpressure was implemented for unix domain
sockets confused the check in sosend().
Unix domain sockets append data only to the recv buffer. To report
the amount of content to the sender, the high watermark of the send
buffer was reduced. This happend for SOCK_STREAM and SOCK_SEQPACKET.
Sosend checks wether atomic chunks could ever fit into the send
buffer which is limited by the high watermark. This happens for
SOCK_DGRAM and SOCK_SEQPACKET. For SOCK_SEQPACKET the combination
of these mechanisms resulted in an EMSGSIZE error when the buffer
got filled. This also happened when space could be created by
reading from the other end in contradiction to the semantics of
EMSGSIZE.
Do not emulate a send buffer that has no space. It is better to
fill the buffer with fake data than to reduce its size. Thus the
high watermark always contains the real value. When disconnecting,
reset the counters. Otherwise the socket layer would try to flush
non existing data in the send buffer.
Tested by jeremy@ with a C program and the ruby tests.
OK markus@ jeremy@
|
|
sendmsg(), and recvmsg(). For cmsghdr, the len, level, and type are always
shown, and for SOL_SOCKET,SCM_RIGHTS the fd numbers being passed are shown.
ok millert@ deraadt@
|
|
a coredump is happening. This improves behaviour while threaded.
ok semarie
|
|
if TAME_ABORT is setted.
ok deraadt@
|
|
ok deraadt@
|
|
a buf. Otherwise stale data might cause a successful I/O to be
seen as a failed I/O.
ok tedu@
|
|
Requested by deraadt@
|
|
from martin natano
|
|
ok deraadt@
|
|
Also delete some prototype KTRACE code which is not headed in the
right direction.
|
|
spotted by Maxime Villard
ok guenther millert
|
|
SELF list like the other threading calls
ok deraadt@
|
|
ok deraadt@
|
|
|
|
- Introduce new defines TTHIWATMINSPACE, TTMINHIWAT for some magic values
that are used in tty.c.
- Remove hiwat adjustments in ttwrite(). This fixes this codepath not
being interrupt safe.
- Change ttysetwater() to keep at least TTHIWATMINSPACE space above the high
water mark. This makes it consistent with ttycheckoutq(). Without this
change, the hiwat adjustment change above causes deadlocks in pty.
ok kspillner@
commit it now deraadt@
|
|
|
|
it also applies to sys_openat().
|
|
when using tame(2). This allows threaded programs to work.
OK deraadt@
|
|
|
|
descriptors.
|
|
|
|
descriptor, so call fd_getfile to get a struct file *. ok deraadt
|
|
|
|
|
|
yet to verify it is a bpf node. Will be used by tcpdump privsep side.
|
|
|
|
memory for lazy binding
ok deraadt@
|
|
ok krw@ sthen@ comments from deraadt@, miod@
|
|
|
|
a value so that they may be called with UVM_PLA_NOWAIT
ok kettenis@
|
|
first queue to the second.
Mark the first queue as DMA in preparation for being able to use more memory
by flipping. Flipper code currently only sets and clears the flag.
ok tedu@ guenther@
|
|
retval on error, including a long long retval on successful lseek(),
and including a register_t retval for other successes. This fixes
lseek reporting on ILP32 archs.
While here, reworking internal kern_ktrace.c bits to be able to pass
two buffers to ktrwriteraw(), so we can avoid mallocing a buffer
in some cases and so that KTR_GENIO logs are split at PAGE_SIZE,
not PAGE_SIZE-sizeof(struct ktrgenio)
ok miod@
|
|
|
|
operating model". This is the kernel component; various changes should
proceed in-tree for a while before userland programs start using it.
ok miod, discussions and help from many
|
|
and a count instead of calling the callback on each one, while also renders
the 'dispose' argument superfluous.
Move unp_*() prototypes from <sys/un.h> to <sys/unpcb.h>
ok claudio@ mpi@
|
|
From Martin Natano
|
|
reaching around through the routing table
original diff by myself, much improved by mikeb@ and mpi@
ok and testing mikeb@ mpi@
|