118597 Commits

Author SHA1 Message Date
simon
5f94cb1c4b MFC rev 1.31:
Use the .Fx macro.
2006-01-25 20:56:17 +00:00
pjd
2e624d60b6 MFC: sys/geom/uzip/g_uzip.c 1.9
Fix bio leak in case of malloc(9) failure.

Found by:	Coverity Prevent(tm)
Coverity ID:	CID794
2006-01-25 15:55:27 +00:00
pjd
bd6b042283 MFC: sys/geom/mirror/g_mirror.c 1.69
sys/geom/raid3/g_raid3.c	1.45

Remove dead code.

Found by:	Coverity Prevent(tm)
Coverity ID:	CID104, CID105
2006-01-25 15:54:02 +00:00
harti
9d9c8d901e MFC: SNMP module build infrastucture:
share/man/man7/Makefile:1.30
	share/mk/Makefile:1.47
	usr.sbin/bsnmpd/modules/Makefile.inc:1.12
	usr.sbin/bsnmpd/modules/snmp_atm/Makefile:1.4
	usr.sbin/bsnmpd/modules/snmp_mibII/Makefile:1.6
	usr.sbin/bsnmpd/modules/snmp_netgraph/Makefile:1.7
	usr.sbin/bsnmpd/modules/snmp_netgraph/snmp_netgraph.c:1.6
	usr.sbin/bsnmpd/modules/snmp_pf/Makefile:1.2
	share/man/man7/bsd.snmpmod.mk.7:1.4
	share/mk/bsd.snmpmod.mk:1.2
2006-01-25 13:22:59 +00:00
simon
3c57de776f Add FreeBSD-SA-06:0[67]. 2006-01-25 10:35:54 +00:00
cperciva
5648502507 Make sure buffers in if_bridge are fully initialized before copying
them to userland. [1]

MFC rev. 1.16 of sys/contrib/pf/net/pf_norm.c: Correct an error in pf
handling of IP packet fragments which could result in a kernel panic.
[2]

Security:	FreeBSD-SA-06:06.kmem [1]
Security:	FreeBSD-SA-06:07.pf [2]
2006-01-25 10:00:59 +00:00
sos
f11f5a5c34 MFC:
Bring ATA up to -current standards:

Fix SiS SATA support, the SATA registers was off.
Update the ICH7 support so it deals better with chips without AHCI.
Unbreak hotplug support on the ICH6 and ICH7 chipsets.
Add support for VIA VT8251 southbridge.
Add new nVidia nForce4 chips.
Add support for the Marvell 88SX[56]0[48][01] series of SATA chips.
Fix the promise modesetting for old chips.
Get rid of the advertising clause in the copyright.
Add support for using DMA on dump, greatly speeds up the dump process.
When IOCATAGPARM is called, update the capabilities page that is stored
in the kernel and return the new values.
Fix rebuilds of arrays that got stuck.
Add dump support in ataraid.
Add support for for reading and writing SiS metadata.
Add support for writing VIA metadata.
Add support for writing Intel metadata.
Correct calculation of RAID0 sizes on VIA RAID arrays.
Update Intel MatrixRAID support to be able to pick up RAID0+1 (RAID10)
2006-01-25 08:13:46 +00:00
matteo
ecf1277aef MFC:
Honour the "uuid" directive in adduser.conf

      src/usr.sbin/adduser/adduser.sh: rev 1.26 -> 1.27

PR:		conf/87914

Approved by:	philip (mentor, implicit)
2006-01-25 07:43:48 +00:00
matteo
e4e4af2daa MFC:
Add gettytab entry for 3wire 19200 baud console

      src/etc/gettytab: rev 1.22 -> 1.23

PR:		conf/90346
Submitted by:	Gavin Atkinson <gavin.atkinson@ury.york.ac.uk>

Approved by:	philip (mentor, implicit)
2006-01-25 07:39:42 +00:00
gad
751980ab6f MFC 1.103: Improve the handling of errors that might happen with the fork()
done to compress files after they have been rotated.
2006-01-25 04:10:59 +00:00
truckman
33e113d5ab MFC rmdir.2 1.14 and 1.15, and undelete.2 1.16 and 1.17
rmdir() fails with EINVAL if the last component of the path is "..".
 Document the previously undocumented behaviour of rmdir(".") returning
 EINVAL as required by POSIX and SUSv3.  Bump the man page change date.

 undelete() fails with EINVAL if the last component of the path is "..".
 Bump the man page change date.
2006-01-25 02:19:35 +00:00
truckman
b3b099c112 MFC vfs_lookup.c 1.84 and 1.85, and vfs_syscalls.c 1.400
Return EINVAL from lookup() if cn_nameiop is DELETE or RENAME and
the last component of the path name is "..".  This keeps VOP_LOOKUP()
from locking vnodes in reverse order.

In kern_unlink(), remap EINVAL errors returned from namei() to EPERM
to match existing (and POSIX required) behaviour.
2006-01-25 02:12:09 +00:00
joel
8d2ce7ac9c MFC r1.15: Sort list of modules. 2006-01-24 18:56:11 +00:00
joel
d3052c24db MFC: Remove unused pointer. 2006-01-24 18:54:22 +00:00
ceri
c8fb1d6c3d MFC revision 1.280:
It's perfectly valid to run rpc_statd and rpc_lockd as an NFS
	client, so update the documentation to reflect that.
2006-01-24 18:41:30 +00:00
joel
eaf5bf9883 MFC:
-  Add comments about snd_au88x0.
  -  Clarify that snd_audiocs is for sparc64 only.
  -  Expand snd_ich and snd_t4dwave comments.
2006-01-24 18:39:43 +00:00
ceri
68d03b6b62 MFC revision 1.30:
Fix the location of the initdiskless rc script.
	Lose pointers to where these files were two major releases ago.
2006-01-24 18:26:21 +00:00
joel
2d6cdc2b7e MFC: s/5.5/6.0/ in HISTORY section. 2006-01-24 17:02:39 +00:00
pjd
3b28ac3b9f Document the move of setkey from /usr/sbin/ to /sbin/.
A bit late, but better than never.

Reminded by:	bz
2006-01-24 15:58:10 +00:00
ceri
7cebe2cfa5 MFC revision 1.150:
On i386, 7.0 requires 106MB on /usr.  6.0 requires 101MB.
  Bump USR_MIN_SIZE to 128MB, so that an auto-layout install won't fail
  due to /usr being too small.
2006-01-24 15:51:33 +00:00
pjd
2bb373ae84 MFC: sbin/mount/mount.c 1.80
Resolve the mount point's path with realpath(2) before checking if file
system is mounted. This prevevents duplicated mounts.

The change I made against the original patch is to fall back to the given
path on realpath(2) failure instead of exiting with an error.

Submitted by:	Andreas Kohn <andreas@syndrom23.de>
PR:		bin/89782
2006-01-24 15:27:25 +00:00
matteo
ce4fb5cac7 MFC:
Remove some duplicated entries

      src/games/fortune/datfiles/fortunes: rev 1.202 -> 1.203

PR:		conf/81924
Submitted by:	Gavin Atkinson <gavin.atkinson@ury.york.ac.uk>
Approved by:	philip (mentor, implicit)
2006-01-24 07:50:08 +00:00
brooks
28e24b4843 Backout ill considered MFC of 1.20. It doesn't compile.
Pointy hat:	brooks
2006-01-24 06:30:51 +00:00
brooks
d13e981617 MFC revs:
1.17: convert from network byte order to host byte order not to reverse.
  1.19: Get rid of the bogus IFP2FC() macro and use IFP2FWC().
  1.20: Fix ip_fastforward() return handling.

PR:		kern/91307 (1.19)
Found by:	Coverity Prevent(tm) (1.20)
2006-01-24 06:28:22 +00:00
brooks
62ebe3a4fd MFC rev 1.5: Mention the -b flag in the SYNOPSIS. 2006-01-24 06:03:16 +00:00
brooks
38fe71cbe9 MFC rev 1.11:
When we give up on an interface, use the arp(8) command to remove all
  entries from the interface rather than using ifconfig's delete command.
  This preserves non-dhclient configured addresses (though they are wiped
  out when dhclient is restarted).
2006-01-24 06:01:59 +00:00
brooks
afb310880a MFC rev 1.13: Allow users to add aliases to the interface.
PR:		bin/87465
2006-01-24 05:59:27 +00:00
brooks
b6af048c63 MFC rev 1.49: Don't create memory backed file systems with soft-updates
enabled, it's pointless and potentially dangerous.

PR:		conf/85558
Submitted by:	Ralf Wenk <RZ dash FreeBSD0605 at hs dash karlsruhe dot de>
2006-01-24 05:49:58 +00:00
brooks
ebafce1b5d MFC the ability to restrict deletions to a particular inteface in the -a
case.
2006-01-24 05:39:22 +00:00
sam
b351d53260 catch up to driver changes 2006-01-24 05:35:03 +00:00
csjp
8c659df4e5 MFC revision 1.214
date: 2006/01/15 20:14:11;  author: csjp;  state: Exp;  lines: +1 -1
vfs_busy can only return something useful if MNTK_UNMOUNT has been set.
Since we are using vfs_busy() on a freshly allocated mount structure, use
(void) to show that we do not care about the return value.
2006-01-24 04:20:24 +00:00
csjp
d45534cd3e MFC revision 1.20
date: 2005/12/30 20:10:21;  author: csjp;  state: Exp;  lines: +1 -1
mkstemp(3) and friends use a combination of base 10 digits, along
with upper and lower case letters from the English alphabet. Change
the number of possible file names mktemp will return from 26**6
to (10+26+26)**6 instead. This keeps things consistent with mkstemp(3)
2006-01-24 04:13:02 +00:00
csjp
7f5dfb2022 MFC revision 1.27
date: 2006/01/15 01:02:20;  author: csjp;  state: Exp;  lines: +1 -1
Fix potential overrun of static stack allocated array which stores
the rules. If an array is N elements large, we can only access
elements 0..(N-1).
2006-01-24 04:11:45 +00:00
csjp
ad39fedd90 MFC the security.mac.biba.interfaces_equal sysctl variable 2006-01-24 04:10:25 +00:00
csjp
59c3c1b282 MFC revision 1.20
date: 2006/01/16 17:03:21;  author: csjp;  state: Exp;  lines: +6 -2
Although we check the return value of copyin(9) while determaining how
long the string is in userspace, afterwards we call malloc(M_WAITOK),
which could sleep for an unknown amount of time. Check the return
value of copyin(9) just to be sure that nothing has changed during that
time.
2006-01-24 04:08:48 +00:00
csjp
f28e8b0a6a MFC revision 1.18
date: 2005/12/30 06:16:20;  author: csjp;  state: Exp;  lines: +5 -0
Document the LOGIN_SETMAC setusercontext(3) flag. While we are here, drop
in an external reference to mac_set_proc(3).
2006-01-24 04:07:07 +00:00
csjp
372a6ab7c0 MFC revision 1.28
date: 2006/01/15 20:30:13;  author: csjp;  state: Exp;  lines: +5 -0
Validate that the supplied file is not empty before trying mmap(2) it
and access the pages associated with it.
2006-01-24 04:05:47 +00:00
davidxu
b4e34cc926 MFC:
Add missing symbol pthread_set_name_np.
2006-01-24 02:04:21 +00:00
matteo
2f32b90dba MFC:
Add myself to the list (Ehi, I'm not the youngest!)

      src/usr.bin/calendar/calendars/calendar.freebsd: rev 1.173 -> 1.174

(tomorrow is my birthday..)

Approved by:	philip (mentor, implicit)
2006-01-23 21:11:23 +00:00
marius
d0fbb1b7a6 Revert the hack introduced in rev. 1.6.2.1, a fix/workaround for the
underlying problem was committed in sys/sparc64/pci/psycho.c 1.55 and
MFC'ed to RELENG_6 in 1.53.2.1.
2006-01-23 16:32:29 +00:00
marius
48dd44f076 MFC: sys/sparc64/pci/psycho.c 1.54 - 1.57,
sys/sparc64/pci/psychoreg.h 1.10 - 1.11,
     sys/sparc64/pci/psychovar.h 1.13 - 1.14

Sync psycho(4) with HEAD expect for the UPA_RANGE_* -> OFW_PCI_RANGE_*
and PCI_CS_* -> OFW_PCI_CS_* changes in order to mainly obtain the
following changes:
- Add a workaround for the incorrect interrupt map entry for the EBus
  bridge on E250 machines. [1]
- Register an interrupt handler for the spare hardware interrupt which
  according to OpenSolaris is used as the over-temperature interrupt in
  systems with Psycho bridges.

PR:		88279 [1]
2006-01-23 16:21:30 +00:00
andre
7546e01b5e MFC rev 1.185+1.186: m_getjcl() returning address of mbuf, not cluster. 2006-01-23 15:31:20 +00:00
marius
7e8d7097cf MFC: sys/sparc64/include/ktr.h 1.6, sys/sparc64/sparc64/genassym.c 1.59
Use <sys/ktr.h> directly in .S files instead of exporting the
KTR_* class macros via genassym.c. Together with sys/sys/ktr.h 1.34
(MFC'ed in 1.32.2.2) this has the desired side-effect of providing a
default value for KTR_COMPILE. Thus this fixes warnings from -Wundef
regarding KTR_COMPILE not being defined for .S files.
2006-01-23 15:04:09 +00:00
marius
37e46523d3 MFC: 1.34
Extend the scope of #ifndef LOCORE to also cover the prototype of
ktr_tracepoint() and the macros using it. This allows this header
to be included in .S files for obtaining the KTR_* class macros
directly and providing a default value for KTR_COMPILE in case it's
not specified in the kernel config file including defining it to 0
when not using 'options KTR' at all.
2006-01-23 14:56:33 +00:00
marius
a96cdae3e9 MFC: 1.3
- The inline asm in this file uses output operands before all input
  operands are consumed so use the appropriate constraint modifier.
  Before this change GCC used one register for both an input and an
  unrelated output operand of in_addword(), causing the input to be
  overwritten before it was consumed and thus breaking in_addword().
  For in_cksum_hdr() and in_pseudo() this change is more or less
  cosmetic.
- Fix a misspelling in a nearby comment.
2006-01-23 14:45:24 +00:00
marius
698213d4bb MFC: 1.26
In moduledir_readhints() cast the value returned by sizeof() to ssize_t
when checking whether it's greater than a struct stat st_size in order
to also catch the case when st_size is -1. Previously this check didn't
trigger on sparc64 when st_size is -1 (as it's the case for a file on
a bzipfs, TFTP server etc.), causing the content of the linker hints
file to be copied to memory referenced by a null-pointer.

PR:		91231
2006-01-23 14:33:53 +00:00
marius
7778ace703 MFC: 1.438
Remove the commented out entry of the old ISA-only le(4) driver which
was retired 22 months ago.
2006-01-23 14:19:36 +00:00
ceri
3defb68d59 MFC revision 1.4:
Add nofification events to the list of event types.
2006-01-23 14:13:41 +00:00
ariff
28a99d6937 MFC:
Restore old compatibility of feeding directly into /dev/dsp at 8000 hz
  while preserving the New World Order.

Discussed with: [1] Michael W. Oliver <michael at gargantuan.com>

[1] http://lists.freebsd.org/pipermail/freebsd-multimedia/2006-January/003562.html
2006-01-23 05:06:53 +00:00
kris
d8f86cfc13 MFC: Remove big scary warning about nullfs state 2006-01-23 00:32:03 +00:00