]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
17 years agoRename two identically named log_in_vain variables: tcp_input.c's static
Robert Watson [Tue, 20 Feb 2007 10:20:03 +0000 (10:20 +0000)]
Rename two identically named log_in_vain variables: tcp_input.c's static
log_in_vain to tcp_log_in_vain, and udp_usrreq's global log_in_vain to
udp_log_in_vain.

MFC after: 1 week

17 years agoGratuitous UDP restyling toward style(9) in 7.x.
Robert Watson [Tue, 20 Feb 2007 10:13:11 +0000 (10:13 +0000)]
Gratuitous UDP restyling toward style(9) in 7.x.

17 years agoRemove discontinuity in network privilege number space.
Robert Watson [Tue, 20 Feb 2007 00:28:19 +0000 (00:28 +0000)]
Remove discontinuity in network privilege number space.

Spotted by: emaste (ages ago)

17 years agoRemove unused PRIV_IPC_EXEC. Renumbers System V IPC privilege.
Robert Watson [Tue, 20 Feb 2007 00:12:52 +0000 (00:12 +0000)]
Remove unused PRIV_IPC_EXEC.  Renumbers System V IPC privilege.

17 years agoSync up PRIV_IPC_{ADMIN,READ,WRITE} priv checks in ipcperm() with
Robert Watson [Tue, 20 Feb 2007 00:06:59 +0000 (00:06 +0000)]
Sync up PRIV_IPC_{ADMIN,READ,WRITE} priv checks in ipcperm() with
kern_jail.c: allow jailed root these privileges.  This only has an
effect if System V IPC is administratively enabled for the jail.

17 years agoRestore sysv_ipc.c:1.30, which was backed out due to interactions with
Robert Watson [Mon, 19 Feb 2007 22:59:23 +0000 (22:59 +0000)]
Restore sysv_ipc.c:1.30, which was backed out due to interactions with
System V shared memory, now believed fixed in sysv_shm.c:1.109:

  date: 2006/11/06 13:42:01;  author: rwatson;  state: Exp;  lines: +65 -37
  Sweep kernel replacing suser(9) calls with priv(9) calls, assigning
  specific privilege names to a broad range of privileges.  These may
  require some future tweaking.

  Sponsored by:           nCircle Network Security, Inc.
  Obtained from:          TrustedBSD Project
  Discussed on:           arch@
  Reviewed (at least in part) by: mlaier, jmg, pjd, bde, ceri,
                          Alex Lyashkov <umka at sevcity dot net>,
                          Skip Ford <skip dot ford at verizon dot net>,
                          Antoine Brodin <antoine dot brodin at laposte dot net>

This restores fine-grained privilege support to System V IPC.

PR: 106078

17 years agoRemove call to ipcperm() in shmget_existing(). The flags argument is
Robert Watson [Mon, 19 Feb 2007 22:56:10 +0000 (22:56 +0000)]
Remove call to ipcperm() in shmget_existing().  The flags argument is
ignored on other systems I investigated when accessing an existing
memory segment rather than creating a new one.  This call to ipcperm()
is the only one to pass in a complete mode flag to the permission
checks rather than a simple access request mask, and caused problems
for the revised ipcperm() based on the priv(9) interface, which can
now be restored.

PR: 106078

17 years agoNote problems I had with bsnmpd while updating from an older -current.
Nate Lawson [Mon, 19 Feb 2007 22:49:43 +0000 (22:49 +0000)]
Note problems I had with bsnmpd while updating from an older -current.
There may be better ways to fix/work around these issues but this worked
for me.

17 years agoUse privilege PRIV_NET_ADDIFADDR rather than suser() to authorize
Robert Watson [Mon, 19 Feb 2007 22:40:02 +0000 (22:40 +0000)]
Use privilege PRIV_NET_ADDIFADDR rather than suser() to authorize
adding a netatalk address to an interface.

17 years agoRename three quota privileges from the UFS privilege namespace to the
Robert Watson [Mon, 19 Feb 2007 13:33:10 +0000 (13:33 +0000)]
Rename three quota privileges from the UFS privilege namespace to the
VFS privilege namespace: exceedquota, getquota, and setquota.  Leave
UFS-specific quota configuration privileges in the UFS name space.

This renumbers VFS and UFS privileges, so requires rebuilding modules
if you are using security policies aware of privilege identifiers.
This is likely no one at this point since none of the committed MAC
policies use the privilege checks.

17 years agoLimit quota privileges in jail to PRIV_UFS_GETQUOTA and
Robert Watson [Mon, 19 Feb 2007 13:26:39 +0000 (13:26 +0000)]
Limit quota privileges in jail to PRIV_UFS_GETQUOTA and
PRIV_UFS_SETQUOTA.

17 years agoDo allow bypass of mac_seeotheruids in jail in order to be consistent
Robert Watson [Mon, 19 Feb 2007 13:25:17 +0000 (13:25 +0000)]
Do allow bypass of mac_seeotheruids in jail in order to be consistent
with other uses of PRIV_SEEOTHERUIDS.  This will automatically be
scoped to the jail by the jail policy.

17 years agoDo allow privilege to create over-sized messages on System V IPC
Robert Watson [Mon, 19 Feb 2007 13:23:45 +0000 (13:23 +0000)]
Do allow privilege to create over-sized messages on System V IPC
message queues in jail.

17 years agoUse priv_check(9) instead of suser(9) for checking the privilege to
Robert Watson [Mon, 19 Feb 2007 13:22:36 +0000 (13:22 +0000)]
Use priv_check(9) instead of suser(9) for checking the privilege to
set real-time priority on a thread.  It looks like this suser(9)
call was introduced after my first pass through replacing superuser
checks with named privilege checks.

17 years agoFor now, reflect practical reality that Audit system calls aren't
Robert Watson [Mon, 19 Feb 2007 13:10:29 +0000 (13:10 +0000)]
For now, reflect practical reality that Audit system calls aren't
allowed in Jail: return a privilege error.

17 years agoDo allow PIOCSFL in jail for setguid processes; this is more consistent
Robert Watson [Mon, 19 Feb 2007 13:04:25 +0000 (13:04 +0000)]
Do allow PIOCSFL in jail for setguid processes; this is more consistent
with other debugging checks elsewhere.  XXX comment on the fact that
p_candebug() is not being used here remains.

17 years agoUnbreak ddb stepping over special frames after the following commit:
Konstantin Belousov [Mon, 19 Feb 2007 10:57:47 +0000 (10:57 +0000)]
Unbreak ddb stepping over special frames after the following commit:
 Revision  Changes    Path
  1.113     +4 -2      src/sys/i386/i386/apic_vector.s
  1.117     +7 -1      src/sys/i386/i386/exception.s
  1.36      +7 -7      src/sys/i386/i386/local_apic.c
  1.298     +61 -63    src/sys/i386/i386/trap.c
  1.62      +15 -22    src/sys/i386/i386/vm86.c
  1.32      +4 -2      src/sys/i386/i386/vm86bios.s
  1.21      +2 -2      src/sys/i386/include/apicvar.h
  1.27      +2 -2      src/sys/i386/isa/atpic.c
  1.50      +2 -1      src/sys/i386/isa/atpic_vector.s
  1.35      +1 -1      src/sys/i386/isa/icu.h

Tested by: kris, Peter Holm
No objections from: kmacy

17 years agoRemove union_dircheckp hook, it is not needed by new unionfs code anymore.
Konstantin Belousov [Mon, 19 Feb 2007 10:56:09 +0000 (10:56 +0000)]
Remove union_dircheckp hook, it is not needed by new unionfs code anymore.
As consequence, getdirentries() no longer needs to drop/reacquire
directory vnode lock, that would allow it to be reclaimed in between.

Reported and tested by: Peter Holm
Approved by: rodrigc (unionfs)
MFC after: 1 week

17 years agoMFi386 rev. 1.544 of i386/i386/pmap.c:
Konstantin Belousov [Mon, 19 Feb 2007 10:55:16 +0000 (10:55 +0000)]
MFi386 rev. 1.544 of i386/i386/pmap.c:
Rounding addr upwards to next 2M boundary in pmap_growkernel() could
cause addr to become 0, resulting in an early return without populating
the last PDE.

Reported and tested by: kris
Suggested by: alc
MFC after: 1 week

17 years agoIt'd be kind of nice if we installed the hardware notes to their
Bruce A. Mah [Mon, 19 Feb 2007 02:46:12 +0000 (02:46 +0000)]
It'd be kind of nice if we installed the hardware notes to their
own directory, rather than overwriting the release notes.  :-p
Fix this.

Pointy hat to: bmah

17 years agoAdd two new options, FLASHADDR, which defines the address the flash is
Olivier Houchard [Mon, 19 Feb 2007 01:03:08 +0000 (01:03 +0000)]
Add two new options, FLASHADDR, which defines the address the flash is
mapped at, and LOADERRAMADDR, the address at which the loader maps the ram at
at the time the kernel is booted.
They are used to detect if the kernel is booted from the onboard flash.
Define those for the IQ31244

17 years agoTeach the kernel and the ELF trampoline how to boot from onboard flash.
Olivier Houchard [Mon, 19 Feb 2007 00:57:27 +0000 (00:57 +0000)]
Teach the kernel and the ELF trampoline how to boot from onboard flash.

17 years agoThere's no such thing as a GENERIC kernel on arm.
Olivier Houchard [Mon, 19 Feb 2007 00:37:25 +0000 (00:37 +0000)]
There's no such thing as a GENERIC kernel on arm.

Spotted out by: csjp
MFC After: 3 days

17 years agoBring these files up-to-date.
Ceri Davies [Sun, 18 Feb 2007 22:41:41 +0000 (22:41 +0000)]
Bring these files up-to-date.

PR: docs/108536

17 years agoClarify the description of the shutdown command.
Ceri Davies [Sun, 18 Feb 2007 22:04:14 +0000 (22:04 +0000)]
Clarify the description of the shutdown command.

17 years agoCorrect typos containing my login name (plus one more in expr.y).
Ceri Davies [Sun, 18 Feb 2007 19:48:59 +0000 (19:48 +0000)]
Correct typos containing my login name (plus one more in expr.y).
Found courtesy of a recursive grep in the wrong directory.

17 years agoThe table of known CPU models ends with an entry that has a version
Marcel Moolenaar [Sun, 18 Feb 2007 17:40:09 +0000 (17:40 +0000)]
The table of known CPU models ends with an entry that has a version
of 0, not with an entry that has an empty CPU name.

Submitted by: Andrew Turner (andrew@fubar.geek.nz)

17 years ago#ifdef INET6 printing of inpcb IPv6 addresses in DDB. Patch committed
Robert Watson [Sun, 18 Feb 2007 08:57:23 +0000 (08:57 +0000)]
#ifdef INET6 printing of inpcb IPv6 addresses in DDB.  Patch committed
with minor adjustments.

Submitted by: Florian C. Smeets <flo at kasimir dot com>

17 years agoEliminate some acquisitions and releases of the page queues lock that are
Alan Cox [Sun, 18 Feb 2007 06:33:02 +0000 (06:33 +0000)]
Eliminate some acquisitions and releases of the page queues lock that are
no longer necessary.

17 years agoAndrew and Colin each pointed out to me that truncating the backup
Tim Kientzle [Sun, 18 Feb 2007 06:23:57 +0000 (06:23 +0000)]
Andrew and Colin each pointed out to me that truncating the backup
of a growing file should not be considered a "bad thing."

PR: bin/108990
MFC after: 7 days
Pointy hat: /me

17 years agoEnable vm_page_free() and vm_page_free_zero() to be called on some pages
Alan Cox [Sun, 18 Feb 2007 05:54:42 +0000 (05:54 +0000)]
Enable vm_page_free() and vm_page_free_zero() to be called on some pages
without the page queues lock being held, specifically, pages that are not
contained in a vm object and not a member of a page queue.

17 years agoAdd "show inpcb", "show tcpcb" DDB commands, which should come in handy
Robert Watson [Sat, 17 Feb 2007 21:02:38 +0000 (21:02 +0000)]
Add "show inpcb", "show tcpcb" DDB commands, which should come in handy
for debugging sblock and other network panics.

17 years agoRemove a stale comment. Add punctuation to a nearby comment.
Alan Cox [Sat, 17 Feb 2007 19:37:00 +0000 (19:37 +0000)]
Remove a stale comment.  Add punctuation to a nearby comment.

17 years agocorrect type definition of option routine callback
Sam Leffler [Sat, 17 Feb 2007 18:22:20 +0000 (18:22 +0000)]
correct type definition of option routine callback

17 years agoremove (now) duplicate definition of IEEE80211_IS_CHAN_PASSIVE
Sam Leffler [Sat, 17 Feb 2007 18:21:52 +0000 (18:21 +0000)]
remove (now) duplicate definition of IEEE80211_IS_CHAN_PASSIVE

17 years agoAdd support for chipsets that has NULL'd BAR's for legacy ports.
Søren Schmidt [Sat, 17 Feb 2007 16:56:39 +0000 (16:56 +0000)]
Add support for chipsets that has NULL'd BAR's for legacy ports.
This allows DMA to be used on a fine little geode system I got here and
most like on lots of older systems like that.

HW donated by:  Paul Ghering

17 years agoOops, fix minor braino.
Joel Dahl [Sat, 17 Feb 2007 11:31:58 +0000 (11:31 +0000)]
Oops, fix minor braino.

Noticed by: ariff

17 years agoLink snd_sb16.4 and snd_sb8.4 to snd_sbc.4.
Joel Dahl [Sat, 17 Feb 2007 10:30:00 +0000 (10:30 +0000)]
Link snd_sb16.4 and snd_sb8.4 to snd_sbc.4.

Submitted by: ariff

17 years agoThis README file is obsolete. The cited problems were fixed long ago
Kirk McKusick [Sat, 17 Feb 2007 08:25:43 +0000 (08:25 +0000)]
This README file is obsolete. The cited problems were fixed long ago
and the code is installed by default so no longer requires action by
the administrator to be included.

17 years agoFix mis-reference of incorrect manual page in ERRORS section.
Tom Rhodes [Sat, 17 Feb 2007 01:54:00 +0000 (01:54 +0000)]
Fix mis-reference of incorrect manual page in ERRORS section.

Noticed by: Harlan Stenn <stenn@ntp.isc.org>

17 years agoAdd Sigmatel STAC9271D.
Joel Dahl [Fri, 16 Feb 2007 18:23:17 +0000 (18:23 +0000)]
Add Sigmatel STAC9271D.

17 years agoAdd codec id for Sigmatel STAC9271D.
Ariff Abdullah [Fri, 16 Feb 2007 17:43:29 +0000 (17:43 +0000)]
Add codec id for Sigmatel STAC9271D.

Submitted by: Michael Fuckner <michael@fuckner.net>

17 years agoRemove VFS_VPTOFH entirely. API is already broken and it is good time to
Pawel Jakub Dawidek [Fri, 16 Feb 2007 17:32:41 +0000 (17:32 +0000)]
Remove VFS_VPTOFH entirely. API is already broken and it is good time to
do it.

Suggested by: rwatson

17 years agoVFS_VPTOFH(9) was replaced with VOP_VPTOFH(9).
Pawel Jakub Dawidek [Fri, 16 Feb 2007 14:27:59 +0000 (14:27 +0000)]
VFS_VPTOFH(9) was replaced with VOP_VPTOFH(9).
VFS_VPTOFH.9 was repo-copied to VOP_VPTOFH.9.

Repo-copy done by: joe

17 years agoRemove unused inp6_ifindex field from inpcb, as well as unused macro
Robert Watson [Fri, 16 Feb 2007 14:09:24 +0000 (14:09 +0000)]
Remove unused inp6_ifindex field from inpcb, as well as unused macro
shortcut for it.

17 years agoRemove unused in6p_ip6_hlim macro shortcut for non-present
Robert Watson [Fri, 16 Feb 2007 13:56:06 +0000 (13:56 +0000)]
Remove unused in6p_ip6_hlim macro shortcut for non-present
inp_depend6.inp6_hlim field in the inpcb.

17 years agoXref altq(4)
Christian Brueffer [Fri, 16 Feb 2007 13:53:45 +0000 (13:53 +0000)]
Xref altq(4)

17 years agoCompUSA mutli-format pcmica flash reader/writer
Warner Losh [Fri, 16 Feb 2007 07:51:23 +0000 (07:51 +0000)]
CompUSA mutli-format pcmica flash reader/writer

17 years agoUpdated tuple list, kinda
Warner Losh [Fri, 16 Feb 2007 07:00:50 +0000 (07:00 +0000)]
Updated tuple list, kinda

17 years agoAdd poitner to JEDEC publication 106
Warner Losh [Fri, 16 Feb 2007 06:46:36 +0000 (06:46 +0000)]
Add poitner to JEDEC publication 106

17 years agoTwo changes:
Warner Losh [Fri, 16 Feb 2007 05:36:59 +0000 (05:36 +0000)]
Two changes:
(1) change debounce period from 1s to 250ms.  This appears to be fine and
    speeds things up a little.
(2) In the middle of cbb_pcic_power_disable_socket we write 0 to the EXCA_INTR
    register to put the card into reset.  However, this turns off CSC
    interrupts for TI bridges (and maybe others).  So no further card
    insertion events would be noticed.  To compensate, after we've gone
    through the entire power down sequence, turn on EXCA_INTR_ENABLE so
    that CSC events happen.

#2 should fix the 'dead slot' problem that has been reported after
card ejection (but only 16-bit cards).

17 years agoFix typo in comment
Warner Losh [Fri, 16 Feb 2007 05:24:19 +0000 (05:24 +0000)]
Fix typo in comment

17 years agoDown to one MD document in the release documentation set now,
Bruce A. Mah [Fri, 16 Feb 2007 04:07:31 +0000 (04:07 +0000)]
Down to one MD document in the release documentation set now,
reword a note to reflect this fact.

17 years agoBacking out an earlier change. It seems harmless for NFS to miss the "force
Mohan Srinivasan [Fri, 16 Feb 2007 03:46:55 +0000 (03:46 +0000)]
Backing out an earlier change. It seems harmless for NFS to miss the "force
unmount" flag, making the acquisition of the MNT_ILOCK in nfs_request() and
nfs_sigintr() unnecessary. Pointed out by tegge@.

17 years agoReflect that the hardware notes is now an MI document.
Bruce A. Mah [Fri, 16 Feb 2007 02:28:15 +0000 (02:28 +0000)]
Reflect that the hardware notes is now an MI document.

17 years agoReflect that the hardware notes article is now a MI document.
Bruce A. Mah [Fri, 16 Feb 2007 02:22:02 +0000 (02:22 +0000)]
Reflect that the hardware notes article is now a MI document.

17 years agoSwitch to unified MI hardware notes. The hardware notes are
Bruce A. Mah [Fri, 16 Feb 2007 02:20:11 +0000 (02:20 +0000)]
Switch to unified MI hardware notes.  The hardware notes are
now contained entirely in a single DocBook article, which has
information pertinent to all architectures.  This will improve
the maintainability of the hardware notes going forward by
reducing complexity of the build process, improving the visibiilty
of the architecture-specific text, and removing the need to generate
an extra version of the document for every architecture.

Remove all of the MD hardware notes stuff; all relevant content
has been folded into hardware/article.sgml.

No objections from: freebsd-doc@

17 years agoAdd support for auto-generating hardware notes entries in a
Bruce A. Mah [Fri, 16 Feb 2007 02:10:12 +0000 (02:10 +0000)]
Add support for auto-generating hardware notes entries in a
manner consistent with the new MI-style hardware notes document.

man2hwnotes.pl now defaults to generating entities for the MI-style
hardware notes (i.e. hardware/article.sgml).  A new -c
option causes it to generate entities for the older MD-style
hardware notes (i.e. hardware/common/dev.sgml).

The Makefile infrastructure supplies the -c option to man2hwnotes.pl
now unless the HWNOTES_MI Makefile variable is defined, so
compatiblity is preserved for hardware notes translations that
aren't converted to the new organization yet.  As translations
convert, they should define HWNOTES_MI in their hardware/Makefile.
When all the relevant translations catch up, the compatibility goop
in share/mk/doc.relnotes.mk and share/sgml/Makefile can be removed.

Thanks go to simon@ for help with the backwards compatiblity
mechanism.

Tested with: en_US.ISO8859-1, zh_CN.GB2312

17 years agoAdd bootverbose printfs to indicate which IDT vectors are assigned to MSI
John Baldwin [Thu, 15 Feb 2007 22:22:57 +0000 (22:22 +0000)]
Add bootverbose printfs to indicate which IDT vectors are assigned to MSI
interrupts.

17 years agoMove vnode-to-file-handle translation from vfs_vptofh to vop_vptofh method.
Pawel Jakub Dawidek [Thu, 15 Feb 2007 22:08:35 +0000 (22:08 +0000)]
Move vnode-to-file-handle translation from vfs_vptofh to vop_vptofh method.
This way we may support multiple structures in v_data vnode field within
one file system without using black magic.

Vnode-to-file-handle should be VOP in the first place, but was made VFS
operation to keep interface as compatible as possible with SUN's VFS.
BTW. Now Solaris also implements vnode-to-file-handle as VOP operation.

VFS_VPTOFH() was left for API backward compatibility, but is marked for
removal before 8.0-RELEASE.

Approved by: mckusick
Discussed with: many (on IRC)
Tested with: ufs, msdosfs, cd9660, nullfs and zfs

17 years agoSupport AHCI chips where the ports are not consecutively numbered as in
Søren Schmidt [Thu, 15 Feb 2007 21:51:42 +0000 (21:51 +0000)]
Support AHCI chips where the ports are not consecutively numbered as in
some incarnations of the ICH8 chip.
Also fix the panic introduced by the last commit.

17 years agoGrammar nits.
Ceri Davies [Thu, 15 Feb 2007 21:49:32 +0000 (21:49 +0000)]
Grammar nits.

17 years agoPut one $FreeBSD$ keyword in standard location, bump copyright date.
Bruce A. Mah [Thu, 15 Feb 2007 20:14:59 +0000 (20:14 +0000)]
Put one $FreeBSD$ keyword in standard location, bump copyright date.

17 years agoAdd supported processors and motherboards sections from the MD
Bruce A. Mah [Thu, 15 Feb 2007 20:12:43 +0000 (20:12 +0000)]
Add supported processors and motherboards sections from the MD
hardware notes documents in  */proc-*.sgml.

17 years agoAdd selected bits from */article.sgml, common/artheader.sgml, and
Bruce A. Mah [Thu, 15 Feb 2007 19:48:36 +0000 (19:48 +0000)]
Add selected bits from */article.sgml, common/artheader.sgml, and
common/intro.sgml to make a valid article.

17 years agoFirst step in consolidating the various MD bits of the hardware notes.
Bruce A. Mah [Thu, 15 Feb 2007 19:33:47 +0000 (19:33 +0000)]
First step in consolidating the various MD bits of the hardware notes.
Convert MD references in the supported devices section from arch=""
attributes for conditional compilation to entities that will just
print architecture names.  (The entities aren't defined yet...this
will happen in a future commit.)

17 years agoForced commit to note a repo-copy of this file from
Bruce A. Mah [Thu, 15 Feb 2007 19:10:23 +0000 (19:10 +0000)]
Forced commit to note a repo-copy of this file from
src/release/doc/en_US.ISO8859-1/hardware/common/dev.sgml.

17 years agoAdd examples for configuring and mounting geom_uzip(4) based disks'
Matteo Riondato [Thu, 15 Feb 2007 18:07:52 +0000 (18:07 +0000)]
Add examples for configuring and mounting geom_uzip(4) based disks'
image and sliced/partitioned memory disks.
MFC after: 1 week

17 years agoremove some leftover text and update the text to match the current version
Luigi Rizzo [Thu, 15 Feb 2007 17:52:17 +0000 (17:52 +0000)]
remove some leftover text and update the text to match the current version
of the code.

17 years agoCleanup and document the implementation of firmware(9) based on
Luigi Rizzo [Thu, 15 Feb 2007 17:21:31 +0000 (17:21 +0000)]
Cleanup and document the implementation of firmware(9) based on
a version that i posted earlier on the -current mailing list,
and subsequent feedback received.

The core of the change is just in sys/firmware.h and kern/subr_firmware.c,
while other files are just adaptation of the clients to the ABI change
(const-ification of some parameters and hiding of internal info,
so this is fully compatible at the binary level).

In detail:
- reduce the amount of information exported to clients in struct firmware,
  and constify the pointer;

- internally, document and simplify the implementation of the various
  functions, and make sure error conditions are dealt with properly.

The diffs are large, but the code is really straightforward now (i hope).

Note also that there is a subtle issue with the implementation of
firmware_register(): currently, as in the previous version, we just
store a reference to the 'imagename' argument, but we should rather
copy it because there is no guarantee that this is a static string.
I realised this while testing this code, but i prefer to fix it in
a later commit -- there is no regression with respect to the past.

Note, too, that the version in RELENG_6 has various bugs including
missing locks around the module release calls, mishandling of modules
loaded by /boot/loader, and so on, so an MFC is absolutely necessary
there.  I was just postponing it until this cleanup to avoid doing
things twice.

MFC after: 1 week

17 years agofix comment about what pnpinfo is set
Warner Losh [Thu, 15 Feb 2007 16:38:10 +0000 (16:38 +0000)]
fix comment about what pnpinfo is set

17 years agoFix spurious I/O errors when under high load.
Scott Long [Thu, 15 Feb 2007 15:36:15 +0000 (15:36 +0000)]
Fix spurious I/O errors when under high load.

Submitted by: Erich Chen

17 years agoCorrect -c and -d description.
Matteo Riondato [Thu, 15 Feb 2007 14:46:04 +0000 (14:46 +0000)]
Correct -c and -d description.

Other requests made in the PR were already solved in the past.

PR: bin/66763
MFC after: 1 week

17 years agoExpand history and authors section of mbuf.9 man page to discuss recent
Robert Watson [Thu, 15 Feb 2007 14:44:46 +0000 (14:44 +0000)]
Expand history and authors section of mbuf.9 man page to discuss recent
transition to mbuma (FreeBSD 5.3) and the fact that mbufs are now limited
almost entirely to packet storage, with straight UMA zones being used for
most other network data types.

17 years agoMention the nat command in the synopsis and in the action section.
Paolo Pisati [Thu, 15 Feb 2007 14:32:26 +0000 (14:32 +0000)]
Mention the nat command in the synopsis and in the action section.

Approved by: glebius (mentor)

17 years agoEnhances mdmfs(8) to mount md-based device such as uzip.
Matteo Riondato [Thu, 15 Feb 2007 13:49:44 +0000 (13:49 +0000)]
Enhances mdmfs(8) to mount md-based device such as uzip.
Examples of use can be found in the PR text.

PR: 103501
MFC after: 1 week

17 years agoCatch up file descriptor printing function in DDB to the addition of kqueues
Robert Watson [Thu, 15 Feb 2007 10:55:43 +0000 (10:55 +0000)]
Catch up file descriptor printing function in DDB to the addition of kqueues
and POSIX message queues.

17 years agoBreak file descriptor printing logic out of db_show_files() into
Robert Watson [Thu, 15 Feb 2007 10:50:48 +0000 (10:50 +0000)]
Break file descriptor printing logic out of db_show_files() into
db_print_file(), and add a new "show file <ptr>" DDB command, which can
be used to print out file descriptors referenced in stack traces.

17 years agoRename somaxconn_sysctl() to sysctl_somaxconn() so that I will be able to
Robert Watson [Thu, 15 Feb 2007 10:11:00 +0000 (10:11 +0000)]
Rename somaxconn_sysctl() to sysctl_somaxconn() so that I will be able to
claim that sofoo() functions all accept a socket as their first argument.

17 years agoIf both ISDOTDOT and NOCROSSMOUNT are set then lookup() might breaks out
Konstantin Belousov [Thu, 15 Feb 2007 09:53:49 +0000 (09:53 +0000)]
If both ISDOTDOT and NOCROSSMOUNT are set then lookup() might breaks out
of the special handling for ".." and perform an ISDOTDOT VOP_LOOKUP()
for a filesystem root vnode. Handle this case inside lookup().

Submitted by: tegge
PR: 92785
MFC after: 1 week

17 years agoStyle(9).
Konstantin Belousov [Thu, 15 Feb 2007 09:24:58 +0000 (09:24 +0000)]
Style(9).

17 years agoIt turns out that it is easier to not NULL out pccard and cardbus
Warner Losh [Thu, 15 Feb 2007 07:22:27 +0000 (07:22 +0000)]
It turns out that it is easier to not NULL out pccard and cardbus
device pointers.  They don't change as the children device drivers
come and go.  Rather, check to see if the device is attached where we
would have checked ! NULL.  This solves many asymmetries in the code
that likely could lead to crashes when loading/unloading cbb without
one or more of the expected children's driver not present.

17 years agoFix three bugs:
Warner Losh [Thu, 15 Feb 2007 07:13:38 +0000 (07:13 +0000)]
Fix three bugs:
o When detaching all children, try really hard to get all the children
  list before giving up.  This is based on an observation by hans petter
  selasky in his usb p4 branch.
o When rescanning devices after a driver is added, abort if we can't get
  the child list with a message.
o when rescanning devices, if the reprobe/attach is successful, save the
  device for cardbus/pccard.

17 years agopkill(1) and pgrep(1) have been moved to /bin so that they are
Yaroslav Tykhiy [Thu, 15 Feb 2007 06:51:31 +0000 (06:51 +0000)]
pkill(1) and pgrep(1) have been moved to /bin so that they are
available to rc.d scripts early in the boot sequence.

17 years agoDon't be paranoid about hostname(1) and order the things logically.
Yaroslav Tykhiy [Thu, 15 Feb 2007 06:46:33 +0000 (06:46 +0000)]
Don't be paranoid about hostname(1) and order the things logically.

Pointed out by: ceri

17 years agoDon't nag about unset $hostname if DHCP is in use.
Yaroslav Tykhiy [Thu, 15 Feb 2007 06:42:42 +0000 (06:42 +0000)]
Don't nag about unset $hostname if DHCP is in use.

Pointed out by: ceri

17 years agoUnbreak non-H/W VLAN extraction case.
Pyun YongHyeon [Thu, 15 Feb 2007 06:21:34 +0000 (06:21 +0000)]
Unbreak non-H/W VLAN extraction case.
Unlike other GigEs Yukon II always set VLAN bit when it detects VLAN
tagged packet regardless of H/W VLAN processing configuration state.
So it need to check IFCAP_VLAN_HWTAGGING bit to know whether driver
is configured to take advantage of H/W VLAN processing. If H/W VLAN
processing was disabled don't adjust received packet length such that
subsequent validation logic works for software VLAN processing.

Reported by: bms
Tested by: bms

17 years agoRelax the page queue lock assertions in vm_page_remove() and
Alan Cox [Thu, 15 Feb 2007 05:43:38 +0000 (05:43 +0000)]
Relax the page queue lock assertions in vm_page_remove() and
vm_page_free_toq() to account for recent changes that allow
vm_page_free_toq() to be called on some pages without the page queues lock
being held, specifically, pages that are not contained in a vm object and
not a member of a page queue.  (Examples of such pages include page table
pages, pv entry pages, and uma small alloc pages.)

17 years agoKill blank line at EOF.
Tom Rhodes [Thu, 15 Feb 2007 02:45:14 +0000 (02:45 +0000)]
Kill blank line at EOF.

17 years agoHook ypclnt.3 up to the build.
Tom Rhodes [Thu, 15 Feb 2007 02:43:14 +0000 (02:43 +0000)]
Hook ypclnt.3 up to the build.

17 years agoAdd a ypclnt.3 manual page referenced by various other YP based manual pages.
Tom Rhodes [Thu, 15 Feb 2007 02:40:31 +0000 (02:40 +0000)]
Add a ypclnt.3 manual page referenced by various other YP based manual pages.

PR: 108980
Obtained from: OpenBSD (minimal changes for mdoc(7) style)

17 years agoTeach DDB how to print sockets, socket buffers, protosw's, and domain
Robert Watson [Thu, 15 Feb 2007 01:28:22 +0000 (01:28 +0000)]
Teach DDB how to print sockets, socket buffers, protosw's, and domain
structures given pointers to them.

17 years agoFix accidental removal of an empty line from the previous commit.
Jung-uk Kim [Thu, 15 Feb 2007 01:20:43 +0000 (01:20 +0000)]
Fix accidental removal of an empty line from the previous commit.

17 years agoRegen.
Jung-uk Kim [Thu, 15 Feb 2007 01:15:31 +0000 (01:15 +0000)]
Regen.

17 years agoMFP4: 113033
Jung-uk Kim [Thu, 15 Feb 2007 01:13:36 +0000 (01:13 +0000)]
MFP4: 113033

Port iopl(2) from i386.  This fixes LTP iopl01 and iopl02 on amd64.

17 years agoRegen.
Jung-uk Kim [Thu, 15 Feb 2007 00:57:04 +0000 (00:57 +0000)]
Regen.

17 years agoMFP4: 113025, 113146, 113177, 113203, 113500, 113546, 113570
Jung-uk Kim [Thu, 15 Feb 2007 00:54:40 +0000 (00:54 +0000)]
MFP4: 113025, 113146, 113177, 113203, 113500, 113546, 113570

- PROT_READ, PROT_WRITE, or PROT_EXEC implies PROT_READ and PROT_EXEC.
Linux/ia64's i386 emulation layer does this and it complies with Linux
header files.  This fixes mmap05 LTP test case on amd64.
- Do not adjust stack size when failure has occurred.
- Synchronize i386 mmap/mprotect with amd64.

17 years agoDefault output to stdout as the man page suggests.
Brian Somers [Wed, 14 Feb 2007 23:22:33 +0000 (23:22 +0000)]
Default output to stdout as the man page suggests.

17 years agoOnly go through our cylinder group and inode info when we need to.
Brian Somers [Wed, 14 Feb 2007 23:20:30 +0000 (23:20 +0000)]
Only go through our cylinder group and inode info when we need to.
This allows ``ffsinfo -o - -l1 /tmp'' to run a lot quicker.

17 years agoRe-indent main() in preparation for further changes.
Brian Somers [Wed, 14 Feb 2007 23:12:32 +0000 (23:12 +0000)]
Re-indent main() in preparation for further changes.