117890 Commits

Author SHA1 Message Date
cperciva
8dfd629a38 MFC documentation and example configuration for portsnap REFUSE directives. 2005-11-13 06:48:50 +00:00
cperciva
c80184e2d6 Merge HEAD's portsnap into RELENG_6. Significant changes are:
1. phttpget (and thus portsnap) now understands the HTTP_PROXY_AUTH
environment variable and basic HTTP proxy authentication.
2. portsnap.8 now contains a privacy notice.
3. portsnap can now ignore parts of the tree (similar to cvsup
"refuse" directives).
4. portsnap reacts sensibly if host(1) does not exist.
2005-11-13 06:45:36 +00:00
alc
3256409909 MFC revision 1.130
Introduce a new lock for the purpose of synchronizing access to the
  UMA boot pages.

  Disable recursion on the general UMA lock now that startup_alloc() no
  longer uses it.

  Eliminate the variable uma_boot_free.  It serves no purpose.

  Note: This change eliminates a lock-order reversal between a system
  map mutex and the UMA lock.  See
  http://sources.zabbadoz.net/freebsd/lor.html#109 for details.
2005-11-13 06:22:34 +00:00
csjp
a102c6cbd3 MFC revision 1.47
Giant push down
2005-11-13 03:14:00 +00:00
csjp
c3f59aac38 MFC revision 1.51
Giant push down.
2005-11-13 03:12:32 +00:00
csjp
599113c21e MFC Log:
Attempt to complete the userspace integration of POSIX.1e extended ACLs.
  This includes adding support for ACLs into cp(1) and mv(1) userspace
  utilities.

  For mv(1), if _PC_ACL_EXTENDED is in effect for the source AND destination
  operands, the destination file's ACLs shall reflect the source.

  For cp(1), if _PC_ACL_EXTENDED is in effect for both source and destination
  operands, and -p has been specified, the ACLs from the source shall be
  preserved on the destination.
2005-11-12 21:21:46 +00:00
dwhite
16e12cca71 MFC:
src/sys/fs/devfs/devfs_vnops.c		1.128
 src/sys/kern/vfs_subr.c		1.652

This is a workaround for a complicated issue involving VFS cookies and devfs.
The PR and patch have the details. The ultimate fix requires architectural
changes and clarifications to the VFS API, but this will prevent the system
from panicking when someone does "ls /dev" while running in a shell under the
linuxulator.

PR:		88249
Submitted by:   "Devon H. O'Dell" <dodell@ixsystems.com>
2005-11-12 21:21:27 +00:00
csjp
fb6dcae1e3 Sync with head:
-style(9) nits

MFC Log:
  Fix long standing race condition associated with how lockf uses open(2)
  for mutual exclusion:

  A brief description of the problem:

          1) Proc A picks up non-blocking lock on file X
          2) Proc B attempts to pickup lock, fails then waits
          3) Proc C attempts to pickup lock, fails then waits
          4) Proc A releases lock
          5) Proc B acquires lock, release it to pickup a non-blocking version
          6) Proc C acquires lock, release it to pickup a non-blocking version
          7) Both process B and C race each other to pickup lock again

  This occurs mainly because the processes do not keep the lock after they have
  been waiting on it. They drop it, attempt to re-acquire it. (They use the wait
  to notify when the lock has become available then race to pick it up). This
  results in additional CPU utilization during the race, and can also result
  in processes picking locks up out of order.

  This change attempts to correct this problem by eliminating the test/acquire
  race and having the operating system handle it.
2005-11-12 21:00:00 +00:00
csjp
d2b6d2d34e MFC Log:
Un-break processing of device major/minor values with fstat -n. We do
  this by accessing the cdev_priv element of the cdev structure. Looking
  forward we need a better way to handle this, as this structure shouldn't
  be frobbed by userspace.
2005-11-12 20:58:03 +00:00
csjp
223ed343c6 MFC Log:
Convert the primary ACL allocator from malloc(9) to using a UMA zone instead.
  Also introduce an aclinit function which will be used to create the UMA zone
  for use by file systems at system start up.
2005-11-12 20:55:59 +00:00
jhb
09b1e77065 MFC: Include the mp_maxid'th CPU in 'show allpcpu'. 2005-11-11 18:50:45 +00:00
krion
fcf279ed57 MFC: create.h:1.26, main.c:1.37, perform.c:1.81, pkg_create.1:1.69
date: 2005/11/08 20:48:26;  author: krion;  state: Exp;  lines: +1 -0
  Introduce 3 new options for pkg_create(1), -x for using basic regular
  expressions for pkg-name, -E for extended regexps and -G for exact matching.
  These new options are only meaningful when using the -b flag of pkg_create(1),
  and that the default for the -b parameter is now to do glob matching, as in
  other pkg_foo utilities that support package patterns.

  Submitted by:   mux
2005-11-11 08:08:04 +00:00
grehan
f7e8320445 MFC locore.S:r.1.22, ofw_machdep.c:1.14
>  Copy SPRG0-3 registers at boot-time and restore when calling into
>  OpenFirmware. FreeBSD/ppc uses SPRG0 as the per-cpu data area pointer,
>  and SPRG1-3 as temporary registers during exception handling. There
>  have been a few instances where OpenFirmware does require these to
>  be part of it's context, such as cd-booting an eMac.
2005-11-11 05:21:08 +00:00
grehan
a4ba2270ec MFC r1.102
>  Finally (!?) get to the bottom of the mysterious G3 boot-time panics.
>  After a number of tests using nop's to change the alignment, it was
>  confirmed that the mtibat instructions should be cache-aligned.
>  FreeScale app note AN2540 indicates that the isync before and after
>  the mtdbat is the right thing to do, but sync/isync isn't required
>  before the mtibat so it has been removed.
>
>  Fix by using a ".balign 32" to pull the code in question to the correct
>  alignment.
2005-11-11 02:06:53 +00:00
ru
370300904f MFC: Canonize the include of acpi.h. 2005-11-10 11:22:11 +00:00
trhodes
95ee8ea525 MFC:
revision 1.4
	date: 2005/11/01 21:16:39;  author: trhodes;  state: Exp;  lines: +0 -6
	Quick kill links to the nsmb(8) manual page, there is no such
	utility that I can find.
2005-11-10 10:11:06 +00:00
iedowse
877d481a1c MFC 1.111: improve the logic for automatically sizing partitions
to take into account the new default of starting the first partition
after the boot blocks instead of at sector 0.
2005-11-10 09:52:56 +00:00
rse
617d1a6ec8 MFC r1.11:
| There is no need to explicitly add "status" to $extra_commands in
| the /etc/rc.d/pf script as it is implicitly added by /etc/rc.subr's
| run_rc_command() because of the existing $pf_program.
|
| Submitted by:   Christoph Schug <chris@schug.net>
2005-11-10 07:32:35 +00:00
rse
d39659cbd9 MFC r1.12:
| Update list of controllers ciss(4) driver
| actually supports according to implementation.
|
| Submitted by: Christoph Schug <chris@schug.net>
2005-11-10 07:28:54 +00:00
wpaul
23ffac6556 MFC: add RtlZeroMemory() and RtlCopyMemory() for Broadcom amd64 driver. 2005-11-10 02:24:07 +00:00
brueffer
502f4db65e MFC: rev. 1.22
Xref polling(4).
2005-11-09 22:03:10 +00:00
rwatson
eed89777f6 Merge vmstat.c:1.90 from HEAD to RELENG_6:
Use libmemstat(3)'s kvm support for malloc(9) rather than hand-extracting
  this information from the core dump.
2005-11-09 13:28:50 +00:00
rwatson
372d430838 Merge vmstat.c:1.89 from HEAD to RELENG_6:
Teach vmstat's domemstat_zone() to use memstat_kvm_uma() when the kvm
  descriptor is non-NULL, restoring vmstat -z support for core dumps and
  kmem access.  These were broken with the introduction of UMA.
2005-11-09 13:28:08 +00:00
glebius
a01df0dc97 MFC polling(4) for bge(4). 2005-11-09 11:42:01 +00:00
glebius
88bf054121 MFC ALTQ support for ng_iface(4). 2005-11-09 11:36:07 +00:00
glebius
7b38b603f5 MFC 1.61 by ru:
Bail if interface is misspelled instead of falling out into the
  "all interfaces" mode.  (Only works with -w, but still better
  than nothing.)
2005-11-09 10:55:37 +00:00
rwatson
f18dd0b7aa Merge libmemstat.3:1.9 from HEAD to RELENG_6:
Document kvm(3)-related error constants, and correct minor formatting
  nits.
2005-11-09 10:23:33 +00:00
rwatson
a8375631b1 Merge libmemstat.3:1.8, memstat.h:1.9, memstat_all.c:1.3,
memstat_malloc:1.6 from HEAD to RELENG_6:

  Teach libmemstat(3) how to extract malloc(9) statistics using kvm(3),
  so that libmemstat can be used to view full memory statistics from
  kernel core dumps and /dev/mem.  This is provided via a new query
  function, memstat_kvm_malloc(), which is also automatically invoked
  by memstat_kvm_all().  A kvm handle must be passed in.

  This will allow malloc(9)-specific code to be removed from vmstat(8).
2005-11-09 10:22:28 +00:00
rwatson
eb288312be Merge libmemstat.3:1.7, memstat.c:1.7, memstat.h:1.8, memstat_all.c:1.2,
memstat_uma.c:1.10 from HEAD to RELENG_6:

  Add memstat_kvm_uma(), an implementation of a libmemstat(3) query routine
  that knows how to extract UMA(9) allocator statistics from a core dump or
  live memory image using kvm(3).  The caller is expected to provide the
  necessary kvm_t handle, which is then used by libmemstat(3).

  With these changes, it is trivially straight forward to re-introduce
  vmstat -z support on core dumps, which was lost when UMA was introduced.

  In the short term, this requires including vm/ include files that are not
  intended for extra-kernel use, requiring in turn some ugliness.

Merge memstat_uma.c:1.11 from HEAD to RELENG_6:

  Define LIBMEMSTAT so that vm_page.h won't perform a nested include of
  opt_vmpage.h.

  Remove definition of _KERNEL, it is no longer required in order to
  include uma_int.h, as the sensitive parts of uma_int.h (a number of
  inlines depending on kernel-only constants) are now protected by
  _KERNEL.

The use of LIBMEMSTAT here will be cleaned up in the future.
2005-11-09 10:20:48 +00:00
pav
293cf786e6 Add new ports-net-im collection. 2005-11-09 10:16:26 +00:00
scottl
0402a8d46e MFC: hptmv is not compatible with PAE.
Noticed by: alc
2005-11-08 22:28:37 +00:00
jhb
608f58b383 MFC: Fix standalone module build.
Reported by:	marius
2005-11-08 17:03:55 +00:00
mlaier
135560a493 MFC: rev. 1.79
Fix obvious copy'n'paste-O in rev.1.36  While here nit style.

    PR:			bin/87783
    Submitted by:	Mats Palmgren
2005-11-08 16:45:00 +00:00
csjp
516e77bfa8 MFC Log:
Before we export network interface data through the ifmibdata structure,
  OR the flags bits with the driver managed status flags.
2005-11-08 16:38:21 +00:00
csjp
92f4e61ec3 MFC: Pickup I/O locks around aac_alloc_sync_fib(). 2005-11-08 16:28:19 +00:00
jhb
f9c4f17414 MFC: Push down Giant into fdfree() and remove it from two of the callers. 2005-11-08 16:08:40 +00:00
jhb
f135674de1 MFC:
- Use if_printf() and device_printf() and remove vr_unit from the softc.
  I had to initialize the ifnet a bit earlier in attach so that the
  if_printf()'s in vr_reset() didn't explode with a page fault.
- Use M_ZERO with contigmalloc() rather than an explicit bzero.
- Use callout_*() to manage the callout and make it MPSAFE.
- Fix locking in detach(), we only need to lock across vr_stop().
2005-11-08 16:05:56 +00:00
jhb
6aa34b36b0 MFC: Hook nve(4) up in i386 and amd64 NOTES. 2005-11-08 16:02:21 +00:00
jhb
07fb0314c7 MFC: Don't panic if a corrupted kld doesn't have a valid symbol table. 2005-11-08 16:00:42 +00:00
jhb
32326c2058 MFC: Add the device ID for the VIA VT8235 south bridge. 2005-11-08 15:57:39 +00:00
jhb
6556c6267c MFC: If the viapm device is a PCI-ISA bridge, attach a child ISA bus. 2005-11-08 15:55:30 +00:00
jhb
944447d24f MFC: Fix support for multiple rocketport cards in the same machine. This
is an instant MFC as it was actually tested on 5.x and 6.x.  Note that like
the change to HEAD, this renames the devices, and there is no easy way on
6.x to create compatibility names in the kernel.

Reviewed by:	phk
Tested by:	Jim Pazarena paz at qcislands dot net
2005-11-08 15:35:27 +00:00
davidxu
c02ae3fc5e Merge cpu_swtch.S:1.154, machdep.c:1.642 from HEAD:
Micro optimization for context switch.
2005-11-08 00:55:36 +00:00
rwatson
098c7ecbda Merge kern_malloc.c:1.148, uma_core.c:1.133 from HEAD to RELENG_6:
Change format string for u_int64_t to %ju from %llu, in order to use the
  correct format string on 64-bit systems.

  Pointed out by: pjd
2005-11-07 18:59:12 +00:00
rwatson
74edbb7958 Merge kern_malloc.c:1.147 from HEAD to RELENG_6:
Add a "show malloc" command to DDB, which prints out the current stats for
  available kernel malloc types.  Quite useful for post-mortem debugging of
  memory leaks without a dump device configured on a panicked box.
2005-11-07 18:57:59 +00:00
rwatson
65c267c84e Merge uma_core.c:1.132 from HEAD to RELENG_6:
Add a "show uma" command to DDB, which prints out the current stats for
  available UMA zones.  Quite useful for post-mortem debugging of memory
  leaks without a dump device configured on a panicked box.
2005-11-07 18:57:08 +00:00
rwatson
32aa25ae7c Merge tcp_input.c:1.284 from HEAD to RELENG_6:
Convert if (tp->t_state == TCPS_LISTEN) panic() into a KASSERT.
2005-11-07 18:54:53 +00:00
wpaul
726e395e18 MFC: alias EXT_NDIS to EXT_NET_DRV 2005-11-07 16:58:23 +00:00
obrien
4dc4df3a84 MFC: canonify the includes of acpica. 2005-11-07 09:55:50 +00:00
obrien
ef0977219f MFC: canonify the include of acpi.h. 2005-11-07 09:53:25 +00:00