]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
23 years agoMove VT_SMBFS definition to the proper place. Undefine VI_LOCK/VI_UNLOCK.
bp [Fri, 13 Apr 2001 11:26:54 +0000 (11:26 +0000)]
Move VT_SMBFS definition to the proper place. Undefine VI_LOCK/VI_UNLOCK.

23 years agoif/panic -> KASSERT
alfred [Fri, 13 Apr 2001 11:15:40 +0000 (11:15 +0000)]
if/panic -> KASSERT

23 years agoAll NETSMB* options should use opt_netsmb.h file (the joy of multiple repos).
bp [Fri, 13 Apr 2001 10:53:56 +0000 (10:53 +0000)]
All NETSMB* options should use opt_netsmb.h file (the joy of multiple repos).

23 years agoThis file also depends on sys/types.h and sys/ioccom.h.
bp [Fri, 13 Apr 2001 10:50:48 +0000 (10:50 +0000)]
This file also depends on sys/types.h and sys/ioccom.h.
Remove some old junk.

Submitted by: bde

23 years agoprotect pbufs and associated counts with a mutex
alfred [Fri, 13 Apr 2001 10:23:32 +0000 (10:23 +0000)]
protect pbufs and associated counts with a mutex

23 years agouse %p for pointer printf, include sys/systm.h for printf proto
alfred [Fri, 13 Apr 2001 10:22:14 +0000 (10:22 +0000)]
use %p for pointer printf, include sys/systm.h for printf proto

23 years agoconvert if/panic -> KASSERT, explain what triggered the assertion
alfred [Fri, 13 Apr 2001 10:15:53 +0000 (10:15 +0000)]
convert if/panic -> KASSERT, explain what triggered the assertion

23 years agoMake this more lint-friendly. This file seems to be invoked in just
markm [Fri, 13 Apr 2001 09:46:54 +0000 (09:46 +0000)]
Make this more lint-friendly. This file seems to be invoked in just
about any .c file that includes a .h, and lint produces copious
whining because of the asm ...; stuff.

23 years agoGenerate useful error messages.
murray [Fri, 13 Apr 2001 09:37:25 +0000 (09:37 +0000)]
Generate useful error messages.

23 years agomdoc(7) police: Fixed markup.
ru [Fri, 13 Apr 2001 09:33:03 +0000 (09:33 +0000)]
mdoc(7) police: Fixed markup.

23 years agoHandle a rare but fatal race invoked sometimes when SIGSTOP is
markm [Fri, 13 Apr 2001 09:29:34 +0000 (09:29 +0000)]
Handle a rare but fatal race invoked sometimes when SIGSTOP is
invoked.

23 years agomdoc(7) police: Fixed markup in rev.1.5.
ru [Fri, 13 Apr 2001 09:17:56 +0000 (09:17 +0000)]
mdoc(7) police: Fixed markup in rev.1.5.

23 years agomdoc(7) police: Fixed typo and markup in rev.1.11.
ru [Fri, 13 Apr 2001 09:15:16 +0000 (09:15 +0000)]
mdoc(7) police: Fixed typo and markup in rev.1.11.

23 years agomdoc(7) police: removed hard sentence breaks introduced in rev.1.10.
ru [Fri, 13 Apr 2001 08:49:52 +0000 (08:49 +0000)]
mdoc(7) police: removed hard sentence breaks introduced in rev.1.10.

23 years ago- Add a comment at the start of the spin locks list.
jhb [Fri, 13 Apr 2001 08:31:38 +0000 (08:31 +0000)]
- Add a comment at the start of the spin locks list.
- The alpha SMP code uses an "ap boot" spinlock as well.

23 years agoDocument /usr/include/fs/smbfs and /usr/include/netsmb.
ru [Fri, 13 Apr 2001 08:14:58 +0000 (08:14 +0000)]
Document /usr/include/fs/smbfs and /usr/include/netsmb.

Submitted by: bp

23 years agoUse a macro wrapper over printf along with KASSERT to reduce the amount
alfred [Fri, 13 Apr 2001 08:07:37 +0000 (08:07 +0000)]
Use a macro wrapper over printf along with KASSERT to reduce the amount
of code here.

23 years agoPeople, please read the README file!!!
ru [Fri, 13 Apr 2001 06:56:16 +0000 (06:56 +0000)]
People, please read the README file!!!

: These files use 4 space indentation, and other than in the header
: comments, should not contain any tabs.

23 years agoBack out most of revision 1.28: lists of diagnostics must use -diag,
dd [Fri, 13 Apr 2001 06:54:05 +0000 (06:54 +0000)]
Back out most of revision 1.28: lists of diagnostics must use -diag,
not -tag.  Instead, put a period after the error messages to aide
those using dumb terminals not capable of properly displaying markup.

Requested by: ru

23 years agoUpdate comment to match ipfw/ipfw.c,v 1.95.
ru [Fri, 13 Apr 2001 06:49:47 +0000 (06:49 +0000)]
Update comment to match ipfw/ipfw.c,v 1.95.

23 years agoMake SOMAXCONN a kernel option.
alfred [Fri, 13 Apr 2001 03:50:37 +0000 (03:50 +0000)]
Make SOMAXCONN a kernel option.

Submitted by: Terry Lambert <terry@lambert.org>

23 years agoo Disallow two "allow this" exceptions in p_cansignal() restricting
rwatson [Fri, 13 Apr 2001 03:06:22 +0000 (03:06 +0000)]
o Disallow two "allow this" exceptions in p_cansignal() restricting
  the ability of unprivileged processes to deliver arbitrary signals
  to daemons temporarily taking on unprivileged effective credentials
  when P_SUGID is not set on the target process:
  Removed:
     (p1->p_cred->cr_ruid != ps->p_cred->cr_uid)
     (p1->p_ucred->cr_uid != ps->p_cred->cr_uid)
o Replace two "allow this" exceptions in p_cansignal() restricting
  the ability of unprivileged processes to deliver arbitrary signals
  to daemons temporarily taking on unprivileged effective credentials
  when P_SUGID is set on the target process:
  Replaced:
     (p1->p_cred->p_ruid != p2->p_ucred->cr_uid)
     (p1->p_cred->cr_uid != p2->p_ucred->cr_uid)
  With:
     (p1->p_cred->p_ruid != p2->p_ucred->p_svuid)
     (p1->p_ucred->cr_uid != p2->p_ucred->p_svuid)
o These changes have the effect of making the uid-based handling of
  both P_SUGID and non-P_SUGID signal delivery consistent, following
  these four general cases:
     p1's ruid equals p2's ruid
     p1's euid equals p2's ruid
     p1's ruid equals p2's svuid
     p1's euid equals p2's svuid
  The P_SUGID and non-P_SUGID cases can now be largely collapsed,
  and I'll commit this in a few days if no immediate problems are
  encountered with this set of changes.
o These changes remove a number of warning cases identified by the
  proc_to_proc inter-process authorization regression test.
o As these are new restrictions, we'll have to watch out carefully for
  possible side effects on running code: they seem reasonable to me,
  but it's possible this change might have to be backed out if problems
  are experienced.

Submitted by: src/tools/regression/security/proc_to_proc/testuid
Reviewed by: tmm
Obtained from: TrustedBSD Project

23 years agoRemove the 'DO NOT EDIT THIS FILE' crud that we spit out with 'crontab -l'.
peter [Fri, 13 Apr 2001 01:45:22 +0000 (01:45 +0000)]
Remove the 'DO NOT EDIT THIS FILE' crud that we spit out with 'crontab -l'.
Otherwise, "crontab -l > file; vi file; crontab file" adds an extra set
of "DO NOT EDIT" markers each and every time which is a bit silly.

23 years agoWith the recent change to ip6fw, it is safe to return to using ${fw6cmd}
gshapiro [Fri, 13 Apr 2001 01:40:27 +0000 (01:40 +0000)]
With the recent change to ip6fw, it is safe to return to using ${fw6cmd}
which may include the -q flag.

23 years agoMatch ip6fw's command line options to those of ipfw (specifically, added
gshapiro [Fri, 13 Apr 2001 01:31:17 +0000 (01:31 +0000)]
Match ip6fw's command line options to those of ipfw (specifically, added
the ability to use a preprocessor, use the -q (quiet) flag when reading
from a file).  The source used is from ipfw.

Clean up exit codes while I am here.

KAME has been informed and plans on integrating these patches into their
own source as well.

23 years agoo Disable two "allow this" exceptions in p_cansched()m retricting the
rwatson [Thu, 12 Apr 2001 22:46:07 +0000 (22:46 +0000)]
o Disable two "allow this" exceptions in p_cansched()m retricting the
  ability of unprivileged processes to modify the scheduling properties
  of daemons temporarily taking on unprivileged effective credentials.
  These cases (p1->p_cred->p_ruid == p2->p_ucred->cr_uid) and
  (p1->p_ucred->cr_uid == p2->p_ucred->cr_uid), respectively permitting
  a subject process to influence the scheduling of a daemon if the subject
  process has the same real uid or effective uid as the daemon's effective
  uid.  This removes a number of the warning cases identified by the
  proc_to_proc iner-process authorization regression test.
o As these are new restrictions, we'll have to watch out carefully for
  possible side effects on running code: they seem reasonable to me,
  but it's possible this change might have to be backed out if problems
  are experienced.

Reported by: src/tools/regression/security/proc_to_proc/testuid
Obtained from: TrustedBSD Project

23 years agoremove truncated part from commment
alfred [Thu, 12 Apr 2001 21:50:03 +0000 (21:50 +0000)]
remove truncated part from commment

23 years agoo Make kqueue's filt_procattach() function use the error value returned
rwatson [Thu, 12 Apr 2001 21:32:02 +0000 (21:32 +0000)]
o Make kqueue's filt_procattach() function use the error value returned
  by p_can(...P_CAN_SEE), rather than returning EACCES directly.  This
  brings the error code used here into line with similar arrangements
  elsewhere, and prevents the leakage of pid usage information.

Reviewed by: jlemon
Obtained from: TrustedBSD Project

23 years agoo Limit process information leakage by introducing a p_can(...P_CAN_SEE...)
rwatson [Thu, 12 Apr 2001 20:46:26 +0000 (20:46 +0000)]
o Limit process information leakage by introducing a p_can(...P_CAN_SEE...)
  in rtprio()'s RTP_LOOKIP implementation.

Obtained from: TrustedBSD Project

23 years agoCorrect some markup
brian [Thu, 12 Apr 2001 20:04:54 +0000 (20:04 +0000)]
Correct some markup

Submitted by: bde

23 years agoo Reduce information leakage into jails by adding invocations of
rwatson [Thu, 12 Apr 2001 19:39:00 +0000 (19:39 +0000)]
o Reduce information leakage into jails by adding invocations of
  p_can(...P_CAN_SEE...) to getpgid(), getsid(), and setpgid(),
  blocking these operations on processes that should not be visible
  by the requesting process.  Required to reduce information leakage
  in MAC environments.

Obtained from: TrustedBSD Project

23 years agoo Expand inter-process authorization regression test to include
rwatson [Thu, 12 Apr 2001 17:46:20 +0000 (17:46 +0000)]
o Expand inter-process authorization regression test to include
  signalling with sigsegv as one of the tests.
o Teach errno_to_string() about ENOTSUPP.

Obtained from:  TrustedBSD Project

23 years agoActivate backward-compatible prototypes
ache [Thu, 12 Apr 2001 17:18:46 +0000 (17:18 +0000)]
Activate backward-compatible prototypes

23 years agoMerged from options.i386 revision 1.147.
kato [Thu, 12 Apr 2001 12:28:42 +0000 (12:28 +0000)]
Merged from options.i386 revision 1.147.

23 years agoMerged from files.i386 revisions 1.359 and 1.360.
kato [Thu, 12 Apr 2001 12:26:40 +0000 (12:26 +0000)]
Merged from files.i386 revisions 1.359 and 1.360.

23 years agoRegen.
n_hibma [Thu, 12 Apr 2001 11:08:59 +0000 (11:08 +0000)]
Regen.

23 years agoTDK ids
n_hibma [Thu, 12 Apr 2001 11:04:08 +0000 (11:04 +0000)]
TDK ids

Submitted by: Hidetoshi Shimokawa <simokawa@sat.t.u-tokyo.ac.jp>

23 years agoFrom NetBSD
n_hibma [Thu, 12 Apr 2001 10:59:30 +0000 (10:59 +0000)]
From NetBSD

23 years agoBack out history.3 link removing - conflict fixed in libreadline instead
ache [Thu, 12 Apr 2001 09:57:12 +0000 (09:57 +0000)]
Back out history.3 link removing - conflict fixed in libreadline instead

23 years agoInstall history.3 as rlhistory.3 to not conflict with existing libedit function
ache [Thu, 12 Apr 2001 09:54:44 +0000 (09:54 +0000)]
Install history.3 as rlhistory.3 to not conflict with existing libedit function

23 years agoComment out one of many editline.3 MLINKS conflicting with libreadline
ache [Thu, 12 Apr 2001 03:33:13 +0000 (03:33 +0000)]
Comment out one of many editline.3 MLINKS conflicting with libreadline
(history.3)

23 years agoo Replace p_cankill() with p_cansignal(), remove wrappage of p_can()
rwatson [Thu, 12 Apr 2001 02:38:08 +0000 (02:38 +0000)]
o Replace p_cankill() with p_cansignal(), remove wrappage of p_can()
  from signal authorization checking.
o p_cansignal() takes three arguments: subject process, object process,
  and signal number, unlike p_cankill(), which only took into account
  the processes and not the signal number, improving the abstraction
  such that CANSIGNAL() from kern_sig.c can now also be eliminated;
  previously CANSIGNAL() special-cased the handling of SIGCONT based
  on process session.  privused is now deprecated.
o The new p_cansignal() further limits the set of signals that may
  be delivered to processes with P_SUGID set, and restructures the
  access control check to allow it to be extended more easily.
o These changes take into account work done by the OpenBSD Project,
  as well as by Robert Watson and Thomas Moestl on the TrustedBSD
  Project.

Obtained from:  TrustedBSD Project

23 years agoFix minor typo in comment. 112x -> 12xx
imp [Wed, 11 Apr 2001 22:49:00 +0000 (22:49 +0000)]
Fix minor typo in comment.  112x -> 12xx

23 years agoIntroduce -osid and -otsid
brian [Wed, 11 Apr 2001 22:42:54 +0000 (22:42 +0000)]
Introduce -osid and -otsid

Submitted by: dd

23 years agoRevamp acl_create_entry() so it actually works.
jedgar [Wed, 11 Apr 2001 22:09:51 +0000 (22:09 +0000)]
Revamp acl_create_entry() so it actually works.

Obtained from: TrustedBSD Project

23 years agoDon't reference a node after we dropped a reference to it
archie [Wed, 11 Apr 2001 22:04:47 +0000 (22:04 +0000)]
Don't reference a node after we dropped a reference to it
(same as in previous checkin, but in a different function).

23 years agoPull constants from netsmb/smb.h.
bp [Wed, 11 Apr 2001 21:35:51 +0000 (21:35 +0000)]
Pull constants from netsmb/smb.h.

23 years agoo Enable -DSETSUGID_SUPPORTED in inter-process authorization regression
rwatson [Wed, 11 Apr 2001 20:23:23 +0000 (20:23 +0000)]
o Enable -DSETSUGID_SUPPORTED in inter-process authorization regression
  test by default, as setugid() is now part of the base kernel (assuming
  (options REGRESSION) has been enabled for the running kernel).

Obtained from: TrustedBSD Project

23 years agoAdd IBM3765 to newcard's pcic pnp device list
imp [Wed, 11 Apr 2001 20:22:16 +0000 (20:22 +0000)]
Add IBM3765 to newcard's pcic pnp device list

23 years agoo Regenerated following introduction of __setugid() system call for
rwatson [Wed, 11 Apr 2001 20:21:37 +0000 (20:21 +0000)]
o Regenerated following introduction of __setugid() system call for
  "options REGRESSION".

Obtained from: TrustedBSD Project

23 years agoo Introduce a new system call, __setsugid(), which allows a process to
rwatson [Wed, 11 Apr 2001 20:20:40 +0000 (20:20 +0000)]
o Introduce a new system call, __setsugid(), which allows a process to
  toggle the P_SUGID bit explicitly, rather than relying on it being
  set implicitly by other protection and credential logic.  This feature
  is introduced to support inter-process authorization regression testing
  by simplifying userland credential management allowing the easy
  isolation and reproduction of authorization events with specific
  security contexts.  This feature is enabled only by "options REGRESSION"
  and is not intended to be used by applications.  While the feature is
  not known to introduce security vulnerabilities, it does allow
  processes to enter previously inaccessible parts of the credential
  state machine, and is therefore disabled by default.  It may not
  constitute a risk, and therefore in the future pending further analysis
  (and appropriate need) may become a published interface.

Obtained from: TrustedBSD Project

23 years agoAdd #define for IBM3765.
imp [Wed, 11 Apr 2001 20:18:29 +0000 (20:18 +0000)]
Add #define for IBM3765.
Fix SWAMPBOX.  It had actiontec's ID.
Reorder pnpids so they are in alphabetical order.

23 years agoo Introduce "options REGRESSION", a kernel option which enables
rwatson [Wed, 11 Apr 2001 19:29:24 +0000 (19:29 +0000)]
o Introduce "options REGRESSION", a kernel option which enables
  interfaces and functionality intended for use during correctness and
  regression testing.  Features enabled by "options REGRESSION" may
  in and of themselves introduce security or correctness problems if
  used improperly, and so are not intended for use in production
  systems, only in testing environments.

Obtained from: TrustedBSD Project

23 years agoStick proc0 in the PID hash table.
jhb [Wed, 11 Apr 2001 18:50:50 +0000 (18:50 +0000)]
Stick proc0 in the PID hash table.

23 years agoo First pass at an inter-process authorization regression testing suite.
rwatson [Wed, 11 Apr 2001 17:21:14 +0000 (17:21 +0000)]
o First pass at an inter-process authorization regression testing suite.
  This test utility attempts to evaluate the current kernel policy
  for authorization inter-process activities, currently ptrace(),
  kill(, SIGHUP), getpriority(), and setpriority().  The utility creates
  pairs of processes, initializes their credential sets to useful
  cases, and reports on whether the results are in keeping with hard-coded
  safety expectations.

o Currently, this utility relies on the availability of __setugid(),
  an uncomitted system call used for managing the P_SUGID bit.  Due to
  continuing discussion of optional regression testing kernel components
  ("options REGRESSION") I'll hold off on committing that until the
  discussion has reached its natural termination.

o A number of additional testing factors should be taken into account
  in the testing, including tests for different classes of signals,
  interactions with process session characteristics, I/O signalling,
  broadcast activities such as broadcast signalling, mass priority
  setting, and to take into group-related aspects of credentials.
  Additional operations should also be taken into account, such as ktrace,
  debugging attach using procfs, and so on.

o This testing suite is intended to prevent the introduction of bugs
  in the upcoming sets of authorization changes associated with the
  introduction of process capabilities and mandatory access control.

Obtained from: TrustedBSD Project

23 years agoRename the IPI API from smp_ipi_* to ipi_* since the smp_ prefix is just
jhb [Wed, 11 Apr 2001 17:06:02 +0000 (17:06 +0000)]
Rename the IPI API from smp_ipi_* to ipi_* since the smp_ prefix is just
"redundant noise" and to match the IPI constant namespace (IPI_*).

Requested by: bde

23 years agoNew release notes: vidcontrol(1) update (submitted by sobomax).
bmah [Wed, 11 Apr 2001 16:23:58 +0000 (16:23 +0000)]
New release notes:  vidcontrol(1) update (submitted by sobomax).

Modified release notes:  Note MFC of gcc-2.95.3, libreadline 4.2.

Clarify Maestro-3/Allegro driver loading issues (submitted by scottl).

23 years agoParse the various argument registers in the printtrap() function so that
jhb [Wed, 11 Apr 2001 16:20:11 +0000 (16:20 +0000)]
Parse the various argument registers in the printtrap() function so that
one doesn't have to go grab a reference manual to decode them by hand every
time the alpha kernel falls over.

Reviewed by: drew, -alpha

23 years agoThe internal declaration for tilde_expand() now conflicts with the one
obrien [Wed, 11 Apr 2001 16:15:19 +0000 (16:15 +0000)]
The internal declaration for tilde_expand() now conflicts with the one
that was finally added to the readline headers in readline 4.2.

Submitted by: ache

23 years agoAdd forgotten files for NETSMBCRYPTO option (may be DES based encryption
bp [Wed, 11 Apr 2001 09:20:33 +0000 (09:20 +0000)]
Add forgotten files for NETSMBCRYPTO option (may be DES based encryption
should be enabled by default, not sure).

23 years agoActually install include/fs/smbfs and include/netsmb directories.
bp [Wed, 11 Apr 2001 09:00:09 +0000 (09:00 +0000)]
Actually install include/fs/smbfs and include/netsmb directories.

23 years agoAdd O2Micro's OZ6872 Cardbus bridge.
imp [Wed, 11 Apr 2001 06:40:35 +0000 (06:40 +0000)]
Add O2Micro's OZ6872 Cardbus bridge.

Submitted by: Robert Sexton <robert@kudra.com>

23 years agoMissed one in rev 1.608.
obrien [Wed, 11 Apr 2001 06:16:52 +0000 (06:16 +0000)]
Missed one in rev 1.608.

23 years agoUpgrade for readline 4.2
ache [Wed, 11 Apr 2001 04:27:10 +0000 (04:27 +0000)]
Upgrade for readline 4.2

23 years agoRemove conflicting readline prototype
ache [Wed, 11 Apr 2001 04:07:38 +0000 (04:07 +0000)]
Remove conflicting readline prototype

23 years agoUpgrade to 4.2
ache [Wed, 11 Apr 2001 03:49:54 +0000 (03:49 +0000)]
Upgrade to 4.2

23 years agoMerge local changes
ache [Wed, 11 Apr 2001 03:15:56 +0000 (03:15 +0000)]
Merge local changes

23 years agoThis commit was generated by cvs2svn to compensate for changes in r75406,
ache [Wed, 11 Apr 2001 02:33:07 +0000 (02:33 +0000)]
This commit was generated by cvs2svn to compensate for changes in r75406,
which included commits to RCS files with non-trunk default branches.

23 years agov4.2 initial import
ache [Wed, 11 Apr 2001 02:33:07 +0000 (02:33 +0000)]
v4.2 initial import

23 years agoProperly set `KERNEL' w/in the "doSTDKERNEL:" target.
obrien [Wed, 11 Apr 2001 02:21:13 +0000 (02:21 +0000)]
Properly set `KERNEL' w/in the "doSTDKERNEL:" target.

Reviewed by: jhb

23 years agoCorrect the following defines to match the POSIX.1e spec:
jedgar [Wed, 11 Apr 2001 02:19:01 +0000 (02:19 +0000)]
Correct the following defines to match the POSIX.1e spec:

  ACL_PERM_EXEC  -> ACL_EXECUTE
  ACL_PERM_READ  -> ACL_READ
  ACL_PERM_WRITE -> ACL_WRITE

Obtained from: TrustedBSD

23 years agoSource rc.conf so that named.restart can restart named with the correct
murray [Wed, 11 Apr 2001 02:12:14 +0000 (02:12 +0000)]
Source rc.conf so that named.restart can restart named with the correct
flags.

PR: misc/25049
Submitted by: Richard Roderick <richard@gohome.net>

23 years agoCreate debug.hashstat.[raw]nchash and debug.hashstat.[raw]nfsnode to
peter [Wed, 11 Apr 2001 00:39:20 +0000 (00:39 +0000)]
Create debug.hashstat.[raw]nchash and debug.hashstat.[raw]nfsnode to
enable easy access to the hash chain stats.  The raw prefixed versions
dump an integer array to userland with the chain lengths.  This cheats
and calls it an array of 'struct int' rather than 'int' or sysctl -a
faithfully dumps out the 128K array on an average machine.  The non-raw
versions return 4 integers: count, number of chains used, maximum chain
length, and percentage utilization (fixed point, multiplied by 100).
The raw forms are more useful for analyzing the hash distribution, while
the other form can be read easily by humans and stats loggers.

23 years agoFix a typo relating to the "-U" (force UDP for mount protocol)
iedowse [Wed, 11 Apr 2001 00:21:16 +0000 (00:21 +0000)]
Fix a typo relating to the "-U" (force UDP for mount protocol)
option. When specified, make sure to use the correct netid for the
getnetconfigent() call, and also in error messages.

23 years agoRemove MIPS support.
obrien [Wed, 11 Apr 2001 00:12:48 +0000 (00:12 +0000)]
Remove MIPS support.
It has rotted quite badly and no one has provided updates for it.

23 years agoRemoved these old 2.9.x files.
obrien [Tue, 10 Apr 2001 23:53:32 +0000 (23:53 +0000)]
Removed these old 2.9.x files.

23 years agoo The -s limit is ARG_MAX - 4K, not ARG_MAX - 2K.
brian [Tue, 10 Apr 2001 23:16:55 +0000 (23:16 +0000)]
o The -s limit is ARG_MAX - 4K, not ARG_MAX - 2K.
o Mention that the current environment is part of the -s calculation.
o Add a BUGS section that warns against executing a program that increases
  the size of the argument list or the size of the environment.

  I have wondered for a while what the difference is between

    get a big list | xargs sudo command

  which fails and

    get a big list | sudo xargs command

  which succeeds.  The answer is that in the first case, sudo expands
  the environment and pushes the amount of data passed into execve over
  the E2BIG threshold.

23 years agoRemove constants defining the bitmasks of the old giant kernel lock.
jhb [Tue, 10 Apr 2001 22:22:01 +0000 (22:22 +0000)]
Remove constants defining the bitmasks of the old giant kernel lock.

23 years agoRemove the old APIC I/O higher level IPI API in favor of the newer MI
jhb [Tue, 10 Apr 2001 22:18:21 +0000 (22:18 +0000)]
Remove the old APIC I/O higher level IPI API in favor of the newer MI
API for IPI's that isn't tied to the Intel APIC.  MD code can still use
the apic_ipi() function or dink with the apic directly if needed to send
MD IPI's.

23 years agoCatch up to the dirpref changes by copying new fields in the alternate
jhb [Tue, 10 Apr 2001 22:11:01 +0000 (22:11 +0000)]
Catch up to the dirpref changes by copying new fields in the alternate
superblock from the original superblock so that differences in those new
fields are ignored.

23 years agoSplit out all the RPC code into a separate function and address a
iedowse [Tue, 10 Apr 2001 22:05:47 +0000 (22:05 +0000)]
Split out all the RPC code into a separate function and address a
number of issues:

- Fix background mounts; these were broken in revision 1.40.
- Don't give up before trying all addresses returned by getaddrinfo().
- Use protocol-independent routines where possible.
- Improve error reporting for RPC errors.
- In non-background mode, give up after trying all protocols once.
- Use daemon(3) instead of rolling our own version.
- Never go ahead with the mount() syscall until we have received
  a reply from the remote nfsd; this is especially important with
  non-interruptible mounts, as otherwise a mistyped command might
  require a reboot to correct.

Reviewed by: alfred, Martin Blapp <mb@imp.ch>

23 years agoRemove the BETTER_CLOCK #ifdef's. The code is on by default and is here
jhb [Tue, 10 Apr 2001 21:34:13 +0000 (21:34 +0000)]
Remove the BETTER_CLOCK #ifdef's.  The code is on by default and is here
to stay for the foreseeable future.

OK'd by: peter (the idea)

23 years agoAdd an MI API for sending IPI's. I used the same API present on the alpha
jhb [Tue, 10 Apr 2001 21:04:32 +0000 (21:04 +0000)]
Add an MI API for sending IPI's.  I used the same API present on the alpha
because:
 - it used a better namespace (smp_ipi_* rather than *_ipi),
 - it used better constant names for the IPI's (IPI_* rather than
   X*_OFFSET), and
 - this API also somewhat exists for both alpha and ia64 already.

23 years agoNOBLOCKRANDOM doesn't exist anymore as a kernel option.
jhb [Tue, 10 Apr 2001 19:01:30 +0000 (19:01 +0000)]
NOBLOCKRANDOM doesn't exist anymore as a kernel option.

23 years agoNew release notes: FFS dirpref speedup, GNATS 3.113, BSDPAN.
bmah [Tue, 10 Apr 2001 17:06:50 +0000 (17:06 +0000)]
New release notes:  FFS dirpref speedup, GNATS 3.113, BSDPAN.

23 years agopsroff(1) has never been a part of Groff.
ru [Tue, 10 Apr 2001 17:04:31 +0000 (17:04 +0000)]
psroff(1) has never been a part of Groff.

23 years agovnconfig(8) -> mdconfig(8).
ru [Tue, 10 Apr 2001 16:29:41 +0000 (16:29 +0000)]
vnconfig(8) -> mdconfig(8).

23 years agovnconfig(8) -> mdconfig(8).
ru [Tue, 10 Apr 2001 16:15:01 +0000 (16:15 +0000)]
vnconfig(8) -> mdconfig(8).

Reviewed by: phk

23 years agoAdd another card to the list of Neomagic 256AV's which don't have AC97
greid [Tue, 10 Apr 2001 14:28:21 +0000 (14:28 +0000)]
Add another card to the list of Neomagic 256AV's which don't have AC97
codecs. Also, add some additional code to check for future cards without
this feature - attempting to initialise them as AC97 cards will hang the
machine.

PR: 26427
Reviewed by: cg

23 years agolock the mutex, not the softc pointer.
cg [Tue, 10 Apr 2001 13:52:26 +0000 (13:52 +0000)]
lock the mutex, not the softc pointer.

23 years agoAdd information about the new options to newfs and tunefs which set the
nik [Tue, 10 Apr 2001 10:36:44 +0000 (10:36 +0000)]
Add information about the new options to newfs and tunefs which set the
expected average file size and number of files per directory.  Could do
with some fleshing out.

23 years agoCorrect some cut-n-paste errors. Also embellish the UP1100 a little.
obrien [Tue, 10 Apr 2001 10:35:29 +0000 (10:35 +0000)]
Correct some cut-n-paste errors.  Also embellish the UP1100 a little.

23 years agoDirectory layout preference improvements from Grigoriy Orlov <gluk@ptci.ru>.
mckusick [Tue, 10 Apr 2001 08:38:59 +0000 (08:38 +0000)]
Directory layout preference improvements from Grigoriy Orlov <gluk@ptci.ru>.
His description of the problem and solution follow. My own tests show
speedups on typical filesystem intensive workloads of 5% to 12% which
is very impressive considering the small amount of code change involved.

------

  One day I noticed that some file operations run much faster on
small file systems then on big ones. I've looked at the ffs
algorithms, thought about them, and redesigned the dirpref algorithm.

  First I want to describe the results of my tests. These results are old
and I have improved the algorithm after these tests were done. Nevertheless
they show how big the perfomance speedup may be. I have done two file/directory
intensive tests on a two OpenBSD systems with old and new dirpref algorithm.
The first test is "tar -xzf ports.tar.gz", the second is "rm -rf ports".
The ports.tar.gz file is the ports collection from the OpenBSD 2.8 release.
It contains 6596 directories and 13868 files. The test systems are:

1. Celeron-450, 128Mb, two IDE drives, the system at wd0, file system for
   test is at wd1. Size of test file system is 8 Gb, number of cg=991,
   size of cg is 8m, block size = 8k, fragment size = 1k OpenBSD-current
   from Dec 2000 with BUFCACHEPERCENT=35

2. PIII-600, 128Mb, two IBM DTLA-307045 IDE drives at i815e, the system
   at wd0, file system for test is at wd1. Size of test file system is 40 Gb,
   number of cg=5324, size of cg is 8m, block size = 8k, fragment size = 1k
   OpenBSD-current from Dec 2000 with BUFCACHEPERCENT=50

You can get more info about the test systems and methods at:
http://www.ptci.ru/gluk/dirpref/old/dirpref.html

                              Test Results

             tar -xzf ports.tar.gz               rm -rf ports
  mode  old dirpref new dirpref speedup old dirprefnew dirpref speedup
                             First system
 normal     667         472      1.41       477        331       1.44
 async      285         144      1.98       130         14       9.29
 sync       768         616      1.25       477        334       1.43
 softdep    413         252      1.64       241         38       6.34
                             Second system
 normal     329         81       4.06       263.5       93.5     2.81
 async      302         25.7    11.75       112          2.26   49.56
 sync       281         57.0     4.93       263         90.5     2.9
 softdep    341         40.6     8.4        284          4.76   59.66

"old dirpref" and "new dirpref" columns give a test time in seconds.
speedup - speed increasement in times, ie. old dirpref / new dirpref.

------

Algorithm description

The old dirpref algorithm is described in comments:

/*
 * Find a cylinder to place a directory.
 *
 * The policy implemented by this algorithm is to select from
 * among those cylinder groups with above the average number of
 * free inodes, the one with the smallest number of directories.
 */

A new directory is allocated in a different cylinder groups than its
parent directory resulting in a directory tree that is spreaded across
all the cylinder groups. This spreading out results in a non-optimal
access to the directories and files. When we have a small filesystem
it is not a problem but when the filesystem is big then perfomance
degradation becomes very apparent.

What I mean by a big file system ?

  1. A big filesystem is a filesystem which occupy 20-30 or more percent
     of total drive space, i.e. first and last cylinder are physically
     located relatively far from each other.
  2. It has a relatively large number of cylinder groups, for example
     more cylinder groups than 50% of the buffers in the buffer cache.

The first results in long access times, while the second results in
many buffers being used by metadata operations. Such operations use
cylinder group blocks and on-disk inode blocks. The cylinder group
block (fs->fs_cblkno) contains struct cg, inode and block bit maps.
It is 2k in size for the default filesystem parameters. If new and
parent directories are located in different cylinder groups then the
system performs more input/output operations and uses more buffers.
On filesystems with many cylinder groups, lots of cache buffers are
used for metadata operations.

My solution for this problem is very simple. I allocate many directories
in one cylinder group. I also do some things, so that the new allocation
method does not cause excessive fragmentation and all directory inodes
will not be located at a location far from its file's inodes and data.
The algorithm is:
/*
 * Find a cylinder group to place a directory.
 *
 * The policy implemented by this algorithm is to allocate a
 * directory inode in the same cylinder group as its parent
 * directory, but also to reserve space for its files inodes
 * and data. Restrict the number of directories which may be
 * allocated one after another in the same cylinder group
 * without intervening allocation of files.
 *
 * If we allocate a first level directory then force allocation
 * in another cylinder group.
 */

  My early versions of dirpref give me a good results for a wide range of
file operations and different filesystem capacities except one case:
those applications that create their entire directory structure first
and only later fill this structure with files.

  My solution for such and similar cases is to limit a number of
directories which may be created one after another in the same cylinder
group without intervening file creations. For this purpose, I allocate
an array of counters at mount time. This array is linked to the superblock
fs->fs_contigdirs[cg]. Each time a directory is created the counter
increases and each time a file is created the counter decreases. A 60Gb
filesystem with 8mb/cg requires 10kb of memory for the counters array.

  The maxcontigdirs is a maximum number of directories which may be created
without an intervening file creation. I found in my tests that the best
performance occurs when I restrict the number of directories in one cylinder
group such that all its files may be located in the same cylinder group.
There may be some deterioration in performance if all the file inodes
are in the same cylinder group as its containing directory, but their
data partially resides in a different cylinder group. The maxcontigdirs
value is calculated to try to prevent this condition. Since there is
no way to know how many files and directories will be allocated later
I added two optimization parameters in superblock/tunefs. They are:

        int32_t  fs_avgfilesize;   /* expected average file size */
        int32_t  fs_avgfpdir;      /* expected # of files per directory */

These parameters have reasonable defaults but may be tweeked for special
uses of a filesystem. They are only necessary in rare cases like better
tuning a filesystem being used to store a squid cache.

I have been using this algorithm for about 3 months. I have done
a lot of testing on filesystems with different capacities, average
filesize, average number of files per directory, and so on. I think
this algorithm has no negative impact on filesystem perfomance. It
works better than the default one in all cases. The new dirpref
will greatly improve untarring/removing/coping of big directories,
decrease load on cvs servers and much more. The new dirpref doesn't
speedup a compilation process, but also doesn't slow it down.

Obtained from: Grigoriy Orlov <gluk@ptci.ru>

23 years agokldload ng_pppoe as necessary
brian [Tue, 10 Apr 2001 08:31:13 +0000 (08:31 +0000)]
kldload ng_pppoe as necessary

23 years agoAdd netsmb and smbfs include directories
bp [Tue, 10 Apr 2001 08:16:06 +0000 (08:16 +0000)]
Add netsmb and smbfs include directories

23 years agoImport kernel part of SMB/CIFS requester.
bp [Tue, 10 Apr 2001 07:59:06 +0000 (07:59 +0000)]
Import kernel part of SMB/CIFS requester.
Add smbfs(CIFS) filesystem.

Userland part will be in the ports tree for a while.

Obtained from: smbfs-1.3.7-dev package.

23 years agoAdd more diagnostic output for failure.
alfred [Tue, 10 Apr 2001 05:29:26 +0000 (05:29 +0000)]
Add more diagnostic output for failure.

s/1518/ETHER_MAX_LEN

Some style changes, add some braces, mostly residual from having
a lot of debug hooks added while working on this driver.

Bring in a plethora of changes from NetBSD:

revision 1.58
date: 2001/03/08 11:07:08;  author: ichiro;  state: Exp;  lines: +17 -1
it wait until busy flag disappears.
it was able to prevent some cards with late initializing faling in wi_reset().

revision 1.41
date: 2000/10/13 19:15:08;  author: jonathan;  state: Exp;  lines: +4 -2
Fix wi_intr() to avoid touching card registers during insert/remove  events,
when sharing an interrupt with other devices:
check sc->sc_enabled,  and drop the interrupt if its' off.

revision 1.30
date: 2000/08/18 04:11:48;  author: jhawk;  state: Exp;  lines: +4 -4
Copy wi_{dst,src}_addr from struct wi_frame into faked-up ether_header
instead of addr1 and addr2. THis means that tcpdump -e will show the
correct MAC address for communications with access points instead of showing
the BSSID.

In the future there should be 802.11 support for bpf/libpcap/tcpdump,
but that is aways down the road.

23 years agoClean up a bit. Use the correct TAILQ link when walking the thread
deischen [Tue, 10 Apr 2001 04:25:49 +0000 (04:25 +0000)]
Clean up a bit.  Use the correct TAILQ link when walking the thread
lists to free thread resources after a fork (in the child).  Also
remember to free the dead thread list.

23 years agoAdded a missing set of braces to a conditional that encompasses more than
deischen [Tue, 10 Apr 2001 04:22:24 +0000 (04:22 +0000)]
Added a missing set of braces to a conditional that encompasses more than
one statement.

23 years agoTo be consistent, use the __weak_reference macro from <sys/cdefs.h>
deischen [Tue, 10 Apr 2001 04:19:21 +0000 (04:19 +0000)]
To be consistent, use the __weak_reference macro from <sys/cdefs.h>
instead of #pragma weak to create weak definitions.

Suggested by: bde