Age | Commit message (Collapse) | Author |
|
kernel. Since those are only used by ddb, guard them with DDB.
|
|
ok patrick@
|
|
Tested by and ok patrick@
|
|
ok jsg@
|
|
a mbuf and properly intialize m_len.
From FreeBSD via Imre Vadasz.
ok bluhm@
|
|
chain. Else this function will sometimes signal end of AMSDU frame too early.
Patch by Imre Vadasz.
ok mpi@ phessler@
|
|
guenther@ deraadt@
|
|
descriptors so that the NET_LOCK is satisfied.
ok mpi
|
|
ok mpi@
|
|
Recursions are currently known and marked a XXXSMP.
Please report any assert to bugs@
|
|
|
|
|
|
OK deraadt@
|
|
ok dlg@, visa@
|
|
guenther says void * is less special in c++, and atomic.h now leaks into
c++ ports.
reported by naddy
|
|
|
|
ok kettenis@ deraadt@
|
|
current session. This way kernels built during 'make release' should
again have names such as deraadt@... bluhm@... instead of build@... in
most environments.
Issue reported by bluhm on icb eons ago.
ok deraadt
|
|
been removed years ago.
From miod
|
|
rectification.
|
|
if pool_debug is equal to 2, just like we do for malloc(9).
ok dlg@
|
|
merging)
|
|
|
|
|
|
a few performance-critical functions to compiler builtins. Since the
builtins supported by gcc3, gcc4 and clang are not the same, there are
(unfortunately) some compiler checks to make sure we only do the mapping
for builtins that are actually supported by the compiler.
ok jca@, tom@, guenther@
|
|
checking if the socket head's queue is empty and possibly sleeping.
This way we avoid lock ordering problems as the NET_LOCK() and
fdplock() won't be held at the same time.
Note that socketpair(2) and close(2) are the two remaining syscalls
holding these locks at the same time. They both respect the same
order: fdplock() then NET_LOCK().
Initial deadlock reported by kettenis@ and ajacoutot@.
ok bluhm@, guenther@, deraadt@
|
|
While here fix the formating of /w /o and /a.
ok guenther@
|
|
in ddb(4)'s default 'ps' view.
This allow to use 'tr /p' easily now that it requires a TID.
With inputs from guenther@
|
|
OK mpi@
|
|
pledged process. dup(2) and recvmsg(2) retain UF_PLEDGED from the original fd.
In pledge "exec" circumstances, exceve clears UF_PLEDGED on all the process's
fds.
In a pledge'd process, ioctl(2) can use this additional information to grant
access to ioctl's which are more sensitive or dive deeply into the kernel.
Developers will be encouraged to open such sensitive resources before calling
pledge(2), rather than afterwards. That matches the heading of privsep
development practices.
Future changes will introduce those ioctl(2) changes.
Lots of discussions with semarie guenther and benno.
|
|
an ifq to transmit a packet is picked by the current traffic
conditioner (ie, priq or hfsc) by providing an index into an array
of ifqs. by default interfaces get a single ifq but can ask for
more using if_attach_queues().
the vast majority of our drivers still think there's a 1:1 mapping
between interfaces and transmit queues, so their if_start routines
take an ifnet pointer instead of a pointer to the ifqueue struct.
instead of changing all the drivers in the tree, drivers can opt
into using an if_qstart routine and setting the IFXF_MPSAFE flag.
the stack provides a compatability wrapper from the new if_qstart
handler to the previous if_start handlers if IFXF_MPSAFE isnt set.
enabling hfsc on an interface configures it to transmit everything
through the first ifq. any other ifqs are left configured as priq,
but unused, when hfsc is enabled.
getting this in now so everyone can kick the tyres.
ok mpi@ visa@ (who provided some tweaks for cnmac).
|
|
|
|
|
|
OK mpi@ deraadt@
|
|
While here document prfind(9.
with and ok guenther@
|
|
rt_entry. Use this function in the success case of all route commands.
Reduce the goto madness in route_output and make the code hopefully a
bit easier to read and work with.
OK mpi@ bluhm@
|
|
struct file *, and then externalizes back to fd upon delivery.
Convert storage to array of struct fdpass, containing struct file *
(and soon something else). memcpy originally intended for alignment
purposes can be removed because CMSG_ALIGN is _ALIGN.
There is some anxiety over changing this code, but it reads easier.
ok mpi guenther kettenis
|
|
the old array of open files.
Fix a race for multi-threaded processes reported by cheeky.m@gmx.com
on bugs@ and analyzed with bluhm@.
ok deraadt@, bluhm@
|
|
|
|
ok guenther mpi
|
|
removed in 2004. The comment about raw_input() above rip_input()
was added in 1981, but it is wrong since 1992. After that it has
been copied to rip6_input(). (*pr_input)() is never called with
the parameters (mbuf, sockproto, sockaddr, sockaddr).
So retire raw_input().
OK guenther@ deraadt@
|
|
ok kettenis@ patrick@
|
|
Based on code written by patrick@
|
|
|
|
ok kettenis@ patrick@
|
|
|
|
|
|
mapping than the kernel.
|
|
ok kettenis@
|
|
function, we need another indirection for esym. The address of
esym is simply the address of the variable. But in the case of
esym we want to read and modify its value.
ok kettenis@
|