| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
Define the atm_dev_free() routine so that its OK to free stuff that is defined
as volatile. Note this doesn't FORCE the arguemnts to be volatile,
just says that it's not an error if it is..
|
|
|
|
| |
Approved by: jhb
|
|
|
|
| |
message.
|
| |
|
|
|
|
|
|
| |
and isn't strictly required. However, it lowers the number of false
positives found when grep'ing the kernel sources for p_ucred to ensure
proper locking.
|
|
|
|
|
| |
- Change the hack in access() that uses a temporary credential to set
td_ucred to the temp cred instead of p_ucred.
|
|
|
|
|
| |
argument.
- Use td_ucred in unp_listen() instead of p_ucred.
|
| |
|
|
|
|
| |
the near future.
|
| |
|
|
|
|
|
|
| |
Makefile.inc in parent directory (e.g. when checked out from cvs as a module).
MFC after: 2 weeks
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
the pipe is locked and shouldn't be.
initialize pipe->pipe_mtxp to NULL when creating pipes in order not
to trip the above assertions.
swap pipe lock with giant around calls to pipe_destroy_write_buffer()
pipe_destroy_write_buffer issue noticed by: jhb
|
| |
|
| |
|
|
|
|
| |
reference.
|
|
|
|
|
|
|
|
|
|
| |
fully protect p_ucred yet so Giant is needed until all the p_ucred
locking is done. This is the original reason td_ucred was not used
immediately after its addition. Unfortunately, not using td_ucred is
not enough to avoid problems. Since p_ucred could be stale, we could
actually be dereferencing a stale pointer to dink with the refcount, so
we really need Giant to avoid foot-shooting. This allows td_ucred to
be safely used as well.
|
|
|
|
| |
(and dcc the committer a dictionary)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In order to determine what to page out, the vm_daemon checks
reference bits on all pages belonging to all processes. Unfortunately,
the algorithm used reacted badly with shared pages; each shared page
would be checked once per process sharing it; this caused an O(N^2)
growth of tlb invalidations. The algorithm has been changed so that
each page will be checked only 16 times.
Prior to this change, a fork/sleepbomb of 1300 processes could cause
the vm_daemon to take over 60 seconds to complete, effectively
freezing the system for that time period. With this change
in place, the vm_daemon completes in less than a second. Any system
with hundreds of processes sharing pages should benefit from this change.
Note that the vm_daemon is only run when the system is under extreme
memory pressure. It is likely that many people with loaded systems saw
no symptoms of this problem until they reached the point where swapping
began.
Special thanks go to dillon, peter, and Chuck Cranor, who helped me
get up to speed with vm internals.
PR: 33542, 20393
Reviewed by: dillon
MFC after: 1 week
|
| |
|
|
|
|
|
|
| |
2) WARNs fixes (rename option to lookup_option to avoid shadowing, rename
argv to argv1 to avoid shadowing, const stuff, prototypes, __unused).
3) Remove "register"s.
|
| |
|
|
|
|
| |
adaptors, ported from NetBSD.
|
| |
|
|
|
|
|
|
|
|
| |
in most machines of the Sun Ultra series. This is a port of the NetBSD
driver which I enhanced to make use of the gather functionality and the
configurable RX buffer offset to avoid copying all received/sent packet
(instead, packets will be directly DMAd from mbuf chains and into mbuf
clusters now).
|
|
|
|
|
| |
pipe->pipe_peer->pipe_mtxp because it may be NULL, so lock the
passed in pipe's mutex instead.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
device drivers for bus system with other endinesses than the CPU (using
interfaces compatible to NetBSD):
- bwap16() and bswap32(). These have optimized implementations on some
architectures; for those that don't, there exist generic implementations.
- macros to convert from a certain byte order to host byte order and vice
versa, using a naming scheme like le16toh(), htole16().
These are implemented using the bswap functions.
- stream bus space access functions, which do not perform a byte order
conversion (while the normal access functions would if the bus endianess
differs from the CPU endianess).
htons(), htonl(), ntohs() and ntohl() are implemented using the new
functions above for kernel usage. None of the above interfaces is currently
exported to user land.
Make use of the new functions in a few places where local implementations
of the same functionality existed.
Reviewed by: mike, bde
Tested on alpha by: mike
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
as arguments. The correct hostname is copied into the buffer
while having the prison's lock acquired in a jailed process'
case.
Reviewed by: jhb, rwatson
|
|
|
|
|
|
|
| |
2) Don't compile vendor ID.
3) WARNS=4 fixes (constness, make a global local to avoid shadowing, unused
parameters, rename local to avoid shadowing, remove junk after #endif)
4) remove some "register"s.
|
|
|
|
|
|
| |
ibcs2_getipdomainname(), and ibcs2_utssys().
Reviewed by: phk
|
|
|
|
|
|
| |
2) Cast some numbers we know to be positive to size_t before we MIN them
with the result of a sizeof.
3) Compare result of inet_addr to INADDR_NONE, not -1.
|
|
|
|
|
|
| |
- Remove spurious empty line.
Reviewed by: phk
|
|
|
|
|
|
|
|
| |
the linux_newuname_args structure. This should fix the case
of jailed linux processes not using the jail's hostname.
PR: 35336
Reviewed by: phk
|
|
|
|
|
|
| |
credential.
Reviewed by: phk
|
| |
|
| |
|
|
|
|
| |
Remember to hit me 42000 times with a stick and to repeat "I sould not commit before a zero warning build"
|
| |
|
| |
|
|
|
|
| |
2) Add missing include of stdlib.h for exit(), spotted by gcc3.
|
|
|
|
| |
2) compare return value of inet_addr to INADDR_NONE rather than -1.
|
|
|
|
|
|
|
| |
just the kernel section is translated, a lot of features are added in
5.0.
So help is appreciate :-)
|
|
|
|
| |
Objection from: ru
|
|
|
|
|
| |
use SYSINIT to initialize pipe_zone.
use PIPE_LOCK to protect kevent ops.
|
|
|
|
| |
Spotted by: HIROSHI OOTA <oota@LSi.nec.co.jp>
|
|
|
|
|
|
|
| |
fixes a problem where one tries to make tags when the source isn't in
/sys.
Submitted by: Jihui Yang <yangjihui@yahoo.com>
|
| |
|
|
|
|
|
|
| |
There is some unresolved badness that has been eluding me, particularly
affecting uniprocessor kernels. Turning off PG_G helped (which is a bad
sign) but didn't solve it entirely. Userland programs still crashed.
|