Commit Graph

95491 Commits

Author SHA1 Message Date
ume
765d81459b IP6Q_LOCK_CHECK -> IP6Q_LOCK_ASSERT.
Sugested by:	sam
2003-10-22 19:03:49 +00:00
tegge
3da5a9e5c1 Initialize bp->b_offset to the physical offset in partition
so GEOM knows where to read from disk.
2003-10-22 18:57:59 +00:00
ume
bc68693c2c drop the code of HAVE_NRL_INPCB part. our system doesn't
use NRL style INPCB.
2003-10-22 18:52:57 +00:00
rwatson
cea6a00af4 The following shared types/constants/interfaces/... are required
in mac_internal.h:

  Sysctl tree declarations.

  Policy list structure definition.

  Policy list variables (static, dynamic).

  mac_late flag.

  Enforcement flags for process, vm, which have checks in multiple files.

  mac_labelmbufs variable to drive conditional mbuf labeling.

  M_MACTEMP malloc type.

  Debugging counter macros.

  MAC Framework infrastructure primitives, including policy locking
    primitives, kernel label initialization/destruction, userland
    label consistency checks, policy slot allocation.

  Per-object interfaces for objects that are internalized and externalized
    using system calls that will remain centrally defined: credentials,
    pipes, vnodes.

  MAC policy composition macros: MAC_CHECK, MAC_BOOLEAN, MAC_EXTERNALIZE,
    MAC_INTERNALIZE, MAC_PERFORM.

Obtained from:	TrustedBSD Project
Sponsored by:	DARPA, Network Associates Laboratories
2003-10-22 18:49:29 +00:00
alc
3bd3ba6e2f - Retire vm_pageout_page_free(). Instead, use vm_page_select_cache() from
vm_pageout_scan().  Rationale: I don't like leaving a busy page in the
   cache queue with neither the vm object nor the vm page queues lock held.
 - Assert that the page is active in vm_pageout_page_stats().
2003-10-22 18:41:32 +00:00
rwatson
9a26e237ab Forced commit to recognize repo-copy from src/sys/kern/kern_mac.c to
src/sys/security/mac/mac_{internal.h,net.c,pipe.c,process.c,system.c,
vfs.c}.  kern_mac.c has rapidly become the second-largest file in
src/sys/kern, and was not well organized.  In follow-up commits,
components of the MAC Framework will be broken out into different
mac_* files.

Thanks Joe!
2003-10-22 18:32:42 +00:00
seanc
fbdeee2097 Reduce fstab(5)/mount(8) confusion by changing the man pages to say "ro"
instead of "rdonly".  "rdonly" works for mount(8) and mount_std(8) but
not from /etc/fstab, whereas "ro" works for all mount_*(8) commands.
2003-10-22 18:25:49 +00:00
ume
66794ab391 oops, gai_strerror must return default value when error code
isn't found in ai_errlist.
2003-10-22 16:53:21 +00:00
ume
463b045879 make ai_errlist struct. this is preparation for RFC3493
(EAI_NODATA is depricated).

Obtained from:	KAME
2003-10-22 15:41:38 +00:00
ume
b61168a387 pretect ip6 reassemble queue by use of mutex.
Submitted by:	rwatson (with modification)
2003-10-22 15:32:56 +00:00
ume
5c32e95ee1 - implement lock around IPv6 reassembly, to avoid panic due to
frag6_drain (mutex version will come later).
- limit number of fragments (not fragment queues) in kernel.

Obtained from:	KAME
2003-10-22 15:29:42 +00:00
ume
8eb5530613 protect sid_default and sid.
Submitted by:	rwatson (with modification)
2003-10-22 15:13:36 +00:00
ume
c90a60612e reduce calling in6_addr2zoneid(). 2003-10-22 15:12:06 +00:00
ume
96f2d189db protect by IFNET_RLOCK. 2003-10-22 15:10:39 +00:00
harti
259ac44216 Link libngatm to the build (unless NOATM is set). 2003-10-22 15:01:16 +00:00
harti
fa66eb8b97 Add a sub-directory to netnatm for the SAAL headers. 2003-10-22 13:15:09 +00:00
harti
b7ee375244 Makefile for the NgATM user space library. 2003-10-22 11:52:35 +00:00
suz
ffff23fa21 more strict sanity check for ESP tail
Obtained from: KAME
2003-10-22 10:44:59 +00:00
hmp
6d5ace8b51 Fix the include path of rijndael.h.
PR:		docs/58437
Submitted by:	Joachim Strombergson
2003-10-22 10:00:09 +00:00
harti
d94a630088 Some upgrade instructions. 2003-10-22 09:28:49 +00:00
marcel
62bcff424c The FP status register allows for 6 traps to be masked. One of them,
the denormal/unnormal trap, is not a standard IEEE trap. We did
not exclude it from being returned by fpgetmask(), nor did we make
sure that fpsetmask() didn't clobber it. Since the non-IEEE trap
is not part of fp_except_t, users of ifpgetmask()/fpsetmask() would
be confronted with unexpected behaviour, one of which is a SIGFPE
for denormal/unnormal FP results.

This commit makes sure that we don't leak the denormal/unnormal mask
bit in fp_except_t and also that we don't clobber it.
2003-10-22 09:00:07 +00:00
harti
ac0279455b This commit was generated by cvs2svn to compensate for changes in r121330,
which included commits to RCS files with non-trunk default branches.
2003-10-22 08:09:00 +00:00
harti
d079cc2511 Virgin import of the NgATM SAAL layer user part v0.9. 2003-10-22 08:09:00 +00:00
harti
39907650f1 Some upgrade instructions. 2003-10-22 07:44:45 +00:00
harti
8b8276ae86 This commit was generated by cvs2svn to compensate for changes in r121326,
which included commits to RCS files with non-trunk default branches.
2003-10-22 07:41:16 +00:00
harti
9651c80ecb Virgin import of the NgATM SAAL layer shared kernel/user part v0.9. 2003-10-22 07:41:16 +00:00
harti
6383043c7f Remove a gcc-ism: declaring a variable array at the end of a structure
as [0] and replace it with the ISO way of writing []. This has caused
warnings with WARNS=6.
2003-10-22 07:35:05 +00:00
simokawa
3f492cb2ff Add '0x' in front of EUI64 to avoid confusion. 2003-10-22 07:23:27 +00:00
phk
24c4f38c89 Forgotten commit: If a provider has zero sectorsize, it is an
indication of lack of media.

Tripped up:	peter
2003-10-22 06:32:20 +00:00
sam
7029afbd0e terminate the rx descriptor list with a self-linked entry
so high phy error rates on a 5212 don't cause rx overruns
2003-10-22 04:37:34 +00:00
alc
b99ee703ce - Assert that every page found in the active queue is an active page. 2003-10-22 03:08:24 +00:00
simon
f632eb92b4 Reflect the fact that fxtv is now found in ports/multimedia/fxtv.
PR:		docs/58355
Submitted by:	Simon Barner <barner@in.tum.de>
2003-10-21 23:36:46 +00:00
mjacob
44d5208623 Turn off ISP_SMPLOCK- not to be turned on again.
Until we can have perfect knowledge that all callers above us think it's okay
for us to sleep, releasing *our* locks of course, we don't dare try and sleep.
2003-10-21 21:52:23 +00:00
ume
0c85c7ec36 stop use of NI_WITHSCOPEID. it was deprecated.
Obtained from:	KAME
2003-10-21 20:11:47 +00:00
ume
06974fb19b - change scope to zone.
- change node-local to interface-local.
- better error handling of address-to-scope mapping.
- use in6_clearscope().

Obtained from:	KAME
2003-10-21 20:05:32 +00:00
sergei
c61911c0d0 Add myself.
Approved by:	krion (mentor)
2003-10-21 19:56:23 +00:00
alc
1dab578b27 - Assert that the containing vm object is locked in
vm_page_set_validclean().  (This function reads and modifies the
   vm page's valid field, which is synchronized by the lock on the
   containing vm object.)
2003-10-21 19:36:51 +00:00
hrs
35425efcff Merge the following from the English version:
1.183 -> 1.184	hardware/common/dev.sgml
	1.640 -> 1.644	relnotes/common/new.sgml
2003-10-21 19:29:10 +00:00
sos
f0389242f1 Properly unload the DMA SG list on errors. 2003-10-21 19:25:20 +00:00
sos
2d40235b40 Fix the DMA problem that most severely hit on the DS3112a SATA chip
in connection with Marvell based SATA->PATA dongles.

The problem was caused by a combination of things working
together to make it hard to spot...

The ATA driver has always started the ATA command, then build
the SG list for DMA and then finally started the DMA engine.
While this is according to specs, it poses a potential
problem as some controllers apparently do not allow for unlimitted
time between starting the ATA command and starting the DMA engine.

At about the same time as ATAng was committed there were lots
of other changes applied, some of which was locking in parts
that causes the busdma load functions to take significantly
longer to load the SG list.

This pushed the time spent between starting the ATA command and
starting the DMA engine over the hill for some controllers
(especially the Silicon Image DS3112a) and caused what looked
like lost interrupts.

The solution is to get all the SG list work or rather all
busdma related stuff done before we even try to start anything.

This has the nice side effect of seperating busdma out the
way it should be, so the working of the ATA machinery is not
cluttered up with busdma droppings, making the code easier
to read and understand.
2003-10-21 19:20:37 +00:00
imp
ec962c958d Modernize examples/usage. Kill 1200/300 baud modem entries and
instead use 14.4kbps and faster modems as examples.  Separate line
speed and baud rate and be careful when talking of one verses the
other.
2003-10-21 19:15:29 +00:00
silby
b087719feb Wrap a long line in the previous commit
Suggested by:	njl
2003-10-21 18:48:49 +00:00
silby
dd6449ef8a Change all SYSCTLS which are readonly and have a related TUNABLE
from CTLFLAG_RD to CTLFLAG_RDTUN so that sysctl(8) can provide
more useful error messages.
2003-10-21 18:28:36 +00:00
silby
5dd0a6daa5 Have sysctl print out a more useful error message when it detects that the
user has attempted to write to a read only, tunable value.
2003-10-21 16:49:30 +00:00
silby
589d81e805 Add another sysctl flag, CTLFLAG_TUN, which is a hint to the userland
sysctl that a given variable is tunable.

Also added is CTLFLAG_RDTUN, which is CTLFLAG_RD|CTLFLAG_TUN; TUN does
not always imply read-only, so RDTUN should be used where RD was used
before.
2003-10-21 16:48:33 +00:00
rwatson
5589c8e5ed Line-break sync to the MAC development branch. 2003-10-21 15:18:26 +00:00
simokawa
6ade98040b We need to initialize bp->b_offset and bp->b_iooffset
becuase bp->b_blkno is ignored now.
2003-10-21 13:18:19 +00:00
tjr
dd173a969d Reject negative ngrp arguments in linux_setgroups() and linux_setgroups16();
stops users being able to cause setgroups to clobber the kernel stack by
copying in data past the end of the linux_gidset array.
2003-10-21 11:00:33 +00:00
sos
98c29bcef6 Up the alignment requirement of the SC1100 to 16 bytes, it has all the bugs and then some of its Cyrix inheritance.
Set the max_iosize for the Cyrix to 63K as the SC1100.
2003-10-21 08:53:29 +00:00
phk
1df98ec39d Remove clause 3 in the copyrights (according to permission in src/COPYRIGHT)
Remove trailing whitespace.
2003-10-21 08:27:05 +00:00