Commit Graph

120373 Commits

Author SHA1 Message Date
delphij
862f95b09b MFC: The kvm_mkdb(8) is long dead.
Approved by:	re (kensmith)
Originally by:	ru
2006-09-28 01:59:30 +00:00
alc
6ab2ff5d72 MFC
Correct a very old and very obscure bug: vmspace_fork() calls
  pmap_copy() if the mapping is VM_INHERIT_SHARE.  Suppose the mapping
  is also wired.  vmspace_fork() clears the wiring attributes in the vm
  map entry but pmap_copy() copies the PG_W attribute in the PTE.  I
  don't think this is catastrophic.  It blocks pmap_remove_pages() from
  destroying the mapping and corrupts the pmap's wiring count.

  This revision fixes the problem by changing pmap_copy() to clear the
  PG_W attribute.

Approved by: re (mux)
2006-09-27 18:10:16 +00:00
ru
556a110f48 MFC: Revert back to using *(int *)arg when accessing integer ioctl
arguments.  For now, this is a work-around only, as sparc64 remains
broken for these ioctls, but it makes keyboard ioctls for little
endian LP64 platforms such as amd64 work again when using kbdmux
(it is used in the GENERIC kernel).  A one true fix for all is in
works, and will be committed to -CURRENT shortly.

Approved by:	re (kensmith)
2006-09-27 15:32:04 +00:00
mjacob
a75c3a7575 MFC 1.34: Connect QFULL events up with decreasing openings.
Approved by: re (mux)
2006-09-27 15:30:46 +00:00
maxim
16381a6ca1 MFC rev. 1.55: document 'make quicksearch'.
Approved by:	re (mux)
2006-09-27 10:48:35 +00:00
maxim
caec8d5f3e MFC rev. 1.456: s/IP_FIREWALL_FORWARD/IPFIREWALL_FORWARD/.
Approved by:	re (mux)
2006-09-27 10:46:41 +00:00
rwatson
71e4c111b9 Merge auditd:1.3 from HEAD to RELENG_6:
Sleep for one second after calling audit -t to give the audit daemon a
  chance to actually terminate the audit service and exit.  Otherwise, on
  an rc.d/auditd restart, the new audit daemon instance may try to start
  auditing while the previous session is still running.  Likewise, this
  ensures a chance for auditd to terminate the audit trail at system
  shutdown.

  Perhaps more ideally, the script would wait synchronously for auditd to
  exit rather than for an arbitrary but short period of time.

  Obtained from:  TrustedBSD Project

Approved by:	re (mux)
2006-09-27 10:08:47 +00:00
rwatson
cccf933297 Merge audit_worker.c:1.12 from HEAD to RELENG_6:
Rework the way errors are handled with respect to how audit records are
  written to the audit trail file:

  - audit_record_write() now returns void, and all file system specific
    error handling occurs inside this function.  This pushes error handling
    complexity out of the record demux routine that hands off to both the
    trail and audit pipes, and makes trail behavior more consistent with
    pipes as a record destination.

  - Rate limit kernel printfs associated with running low on space.  Rate
    limit audit triggers for low space.  Rate limit printfs for fail stop
    events.  Rate limit audit worker write error printfs.

  - Document in detail the types of limits and space checks we perform, and
    combine common cases.

  This improves the audit subsystems tolerance to low space conditions by
  avoiding toasting the console with printfs are waking up the audit daemon
  continuously.

  Obtained from:  TrustedBSD Project

Approved by:	re (mux)
2006-09-27 10:08:03 +00:00
delphij
cbfd694c1d s/predefine/predefined/
PR:		gnu/86627
Submitted by:	Arne Woerner <arne_woerner at yahoo dot com>
Approved by:	re (mux)
2006-09-27 09:28:54 +00:00
mux
9e749ee838 MFC udp_usrreq.c:1.180 and tcp_usrreq.c:1.128 :
Fix a bunch of SYSCTL_INT() that should have been SYSCTL_ULONG() to
  match the type of the variable they are exporting.

  Spotted by:     Thomas Hurst <tom@hur.st>

Approved by:	re@ (rwatson)
Forgotten by:	mux
2006-09-27 09:24:44 +00:00
alc
61846e1f4d MFC revision 1.38
The sparc64/sparc64/pmap.c implementations of pmap_remove(),
  pmap_protect(), and pmap_copy() have optimizations for regions
  larger than PMAP_TSB_THRESH (which works out to 16MB).  This
  caused a panic in tsb_foreach for kernel mappings, since
  pm->pm_tsb is NULL in that case.  This fix teaches tsb_foreach
  to use the kernel's tsb in that case.

Approved by: re (mux)
2006-09-27 04:53:40 +00:00
tegge
8567070e49 MFC rev 1.422: Hold reference on mountpoint slightly longer in
kern_fhstatfs()

Approved by:	re (kensmith)
2006-09-27 00:42:42 +00:00
tegge
3e683861be MFC rev 1.134: Handle reclaimed vnode in VOP_GETWRITEMOUNT()
Approved by:	re (kensmith)
2006-09-27 00:41:50 +00:00
tegge
226c87e630 MFC rev 1.419 and 1.420: Hold reference on mountpoint slightly longer in
kern_statfs() and kern_fstatfs()

Approved by:	re (kensmith)
2006-09-27 00:40:59 +00:00
tegge
3c6810444e MFC rev 1.226: Unbusy mount before destruction.
Approved by:	re (kensmith)
2006-09-27 00:40:11 +00:00
tegge
81bd88e1b5 MFC rev 1.221 : Print dangling vnodes before panic at unmount.
Approved by:	re (kensmith)
2006-09-27 00:39:19 +00:00
tegge
5ff3aba314 MFC: Release references acquired by VOP_GETWRITEMOUNT() and vfs_getvfs().
Approved by:	re (kensmith)
2006-09-27 00:37:46 +00:00
tegge
3d40c50014 MFC rev 1.667: vfs_busy() holds reference on mount until vfs_unbusy()
is called.
               vfs_getvfs() returns a referenced mount.

Approved by:	re (kensmith)
2006-09-27 00:36:10 +00:00
tegge
68e3ce121b MFC rev 1.133: VOP_GETWRITEMOUNT() returns a referenced mount.
Approved by:	re (kensmith)
2006-09-27 00:34:51 +00:00
tegge
778e2c10ad MFC rev 1.220: Make struct mount type stable.
Approved by:	re (kensmith)
2006-09-27 00:33:31 +00:00
tegge
0cfcee32cb MFC rev 1.209: Prepare for type stable struct mount.
Approved by:	re (kensmith)
2006-09-27 00:32:36 +00:00
sobomax
92e9b0e163 Revert 1.17.2.8, it causes some problems.
Approved by:	re
Reported by:	glebius
2006-09-26 19:12:11 +00:00
jhb
d7faeadc90 MFC: Add an explicit bus_add_child method for smbus(4).
Approved by:	re (kensmith)
2006-09-26 18:44:56 +00:00
bms
43b1823c85 Back out rev 1.242.2.13 as it introduces a potentially expensive hash lookup
to the ip output path. A better way needs to be found to resolve this.

Approved by:	re@
2006-09-26 18:28:38 +00:00
sobomax
769be39ef2 Revert 1.17.2.8, which reportedly causes problems on some hardware.
Approved by:	re
Reported by:	glebius
2006-09-26 16:08:29 +00:00
brooks
2a74ee0b18 MFC
pccard_ether rev 1.51:
    Search the list of up interfaces provided by "ifconfig -ul" instead of
    greping for UP in "ifconfig $ifn".  This eliminates a dependancy on /usr.

pccard_ether rev 1.53 and network.subr rev 1.173:
  Introduce a new method ipv6if which attemptes to figure out if an
  interface is an IPv6 interface.

  Use this method to decide if we should attempt to configure an interface
  with an IPv6 address in pccard_ether.  The mechanism pccard_ether uses
  to do this is unsuited to the task because it assumes the list of
  interfaces it is passed is the full list of IPv6 interfaces and makes
  decissions based on that.  This is at least a step in the right
  direction and is probably about as much as we can MFC safely.

PR:		conf/103428
Approved by:	re (hrs)
2006-09-26 02:17:43 +00:00
brooks
3407b19f2c MFC rev 1.10
network_ipv6 also does some interface configuration so require it to
  run before starting devd so they don't trip over each other.

PR:		conf/103428
Approved by:	re (hrs)
2006-09-26 02:15:15 +00:00
rwatson
705ed6f94a Merge Makefile:1.12, id.1:1.16,1.17, id.c:1.28,1.29 from HEAD to RELENG_6:
Add a -a argument to id(1), which causes id(1) to print out process
  audit properties, including the audit user id.  This can be quite
  helpful in debugging audit problems.

  Obtained from:  TrustedBSD Project

  Rename "-a" flag to "-A" in order to avoid conflicting with the "-a" flag
  as found on Solaris.

  Requested by:   ceri

Approved by:	re (hrs)
2006-09-26 02:12:05 +00:00
ache
8c4e2776fc MFC 1.13-1.15
Approved by:    re (hrs)
2006-09-25 17:19:28 +00:00
ache
1106a42628 MFC v1.2
PR:             88222
Approved by: re (bmah)
2006-09-25 17:12:20 +00:00
marcel
fa963bd304 MFC rev 1.311: Allow 16 byte memory mapped I/O ranges.
Approved by: re (hrs)
2006-09-25 15:49:51 +00:00
bms
9f220e3632 MFC: Account for output IP datagrams on the ifaddr where they will
be sent from, not the first ifaddr on the ifp.

PR:		kern/72936
Submitted by:	alfred
Reviewed by:	andre
Approved by:	re@
2006-09-25 13:02:58 +00:00
bms
61206c98e3 MFC: Fix an incompatibility between CARP and IPv4 multicast routing, whereby
advertisements originate from the wrong source address. This only affects
MROUTING kernels.

PR:		kern/100532
Submitted by:	Bohus Plucinsky
Approved by:	re@
2006-09-25 13:01:59 +00:00
des
f54b804381 MFC: upgrade to 1.2.3.
Approved by:	re (hrs)
2006-09-25 11:16:58 +00:00
thomas
c945cf7c63 MFC rev 1.36 to RELENG_6:
(pw_copy): Handle the case of a malformed line in master.passwd
 (copy it silently, do not dereference NULL pointer).

MFC rev. 1.37 to RELENG_6:
Minor comment fix to the change above.

PR:		bin/102848
Approved by:	re (hrs)
2006-09-25 10:05:37 +00:00
des
24bce5a530 MFC: vendor patch for BSM problem in protocol version 1.
Approved by:	re (mux)
2006-09-25 09:37:35 +00:00
ru
284fddf74c MFC: Bring GCC manpages back to reality.
Approved by:	re (kensmith)
2006-09-25 06:19:41 +00:00
thompsa
472fe3f9c1 MFC r1.81
Revert r1.11.2.38 as the ethernet header was inadvertently stripped from ARP
 packets. Reimplement this correctly and use a sysctl that defaults to off so
 the user doesnt get any suprises if ipfw blocks the ARP packet.

Approved by:	re (hrs)
2006-09-25 04:01:20 +00:00
emax
2343d2afdf MFC:
Do not try to call keyboard callback unless keyboard is active and busy.
This should fix 'kbdcontrol -K < /dev/console' panic on sparc64 with sunkbd(4).

PR:		sparc64/96798
Approved by:	re (hrs)
2006-09-25 02:53:32 +00:00
emax
5eb72d0ca8 MFC:
Make op parameter to mux_keyboard() u_int instead of int.
This should fix sparc64 messages like

Sep 15 11:17:39 peahi kernel: WARNING pid 5477 (kbdcontrol): ioctl sign-extension ioctl ffffffff80244b45

PR:		sparc64/96798
Approved by:	re (hrs)
2006-09-24 16:02:32 +00:00
iedowse
594e1756a6 MFC 1.106: Fix a number of cases where ugen would panic, especially
when the device went away while open or if you tried to change the
config number while devices were open.

Approved by:	re (hrs)
2006-09-24 14:55:48 +00:00
delphij
1064db811e MFC 1.152:
When the volume is being downgraded from a read-write mode, mark
it as clean.

PR:             kern/85366
Submitted by:   Dan Lukes <dan at obluda dot cz>
Approved by:	re (hrs)
2006-09-24 14:35:26 +00:00
iedowse
4dadb16d4a MFC 1.42, 1.43: Let the EHCI hardware track the toggle state for
bulk and interrupt transfers. This fixes some cases where the
software toggle tracking was not doing the right thing. For example,
a short transfer that transferred 0 bytes of the requested qTD
transfer size does cause a toggle change, but the existing code was
assuming it didn't.

Approved by:	re (mux)
2006-09-24 13:39:04 +00:00
ceri
5cb08417b9 Bump .Dd.
Reminded by:	ru
Approved by:	re (implicit)
2006-09-23 22:01:51 +00:00
mjacob
87bae196d5 MFC 1.165: New Dell 1950/2950 SES backplane drops off
the bus if you poke at greater then lun 0.

Approved by:	re (hrs)
2006-09-23 18:42:08 +00:00
rwatson
f217901bee Merge audit_bsm_token.c:1.8 from HEAD to RELENG_6:
Add missing white space in au_to_exec_{args,env}().

Approved by:	re (hrs)
2006-09-23 16:26:02 +00:00
ceri
874a689603 MFC:
src/usr.bin/truncate/truncate.1         r1.33
     src/usr.bin/truncate/truncate.c         r1.10 through r1.11

Approved by:	re (hrs), pjd
2006-09-23 15:34:23 +00:00
mbr
f3df7c9483 MFC rev. 1.20
Fix unpaired sigblock which possibly leaves the process with all
signals blocked.

Approved by:	re
2006-09-23 15:02:39 +00:00
netchild
519d8f6986 MFC rev. 1.187:
- don't reboot() when feed with wrong parameters (and enough permissions) [1]
  - add support to power off the system [2]
  - check the linux magic values [3]

  Submitted by:		Marcin Cieslak <saper@SYSTEM.PL> [1,2]
  Modelled after:	linux man page of the reboot() syscall [3]
  Found by:		LTP testcase "reboot02" [1]
  Tested with:		LTP testcase "reboot02" [1,3]

Approved by:	re (hrs)
2006-09-23 10:36:57 +00:00
pjd
95adb9a67c MFC: sys/geom/label/g_label_ufs.c 1.11
Fix detecting of UFS1 label when mediasize%fragsize != 0.

Submitted by:	Stanislav Sedov
PR:		kern/84637
Approved by:	re (hrs)
2006-09-23 09:58:50 +00:00