117631 Commits

Author SHA1 Message Date
delphij
04dc98a1b0 MFC (by obrien)
| Remove WANT_FORCE_OPTIMIZATION_DOWNGRADE and out dated warnings about
| libalias(3) exposing compiler bugs.
|
| Revision  Changes    Path
| 1.266     +2 -10     src/share/examples/etc/make.conf

Approved by:	re (scottl)
2005-10-09 03:36:41 +00:00
delphij
7c26851aa1 MFC (by obrien)
| Ensure the full value is written into inode variables.
|
| PR:             85503
| Submitted by:   Dmitry Pryanishnikov <dmitry@atlantis.dp.ua>
|
| Revision  Changes    Path
| 1.89      +2 -2      src/sys/fs/msdosfs/msdosfs_denode.c

Approved by:	re (scottl)
2005-10-09 03:33:52 +00:00
delphij
be43bdee0e MFC (by phk)
| Comment typo
|
| Revision  Changes    Path
| 1.23      +1 -1      src/sys/geom/bde/g_bde_crypt.c

Approved by:	re (scottl)
2005-10-09 03:30:30 +00:00
delphij
58595c1a96 MFC (by davidxu)
| Reorder statements to avoid accessing unknown memory.
| In theory, invoking kenv with very long string can panic
| kernel.
|
| Revision  Changes    Path
| 1.41      +2 -2      src/sys/kern/kern_environment.c

Approved by:	re (scottl)
2005-10-09 03:29:03 +00:00
delphij
29f73bbbe3 MFC (by netchild)
|  Add bounds checking to the setenv part of the kernel environment.
|
| PR:             83687 [1]
| Submitted by:   Harry Coin <harrycoin@qconline.com> [1]
| Submitted by:   Ariff Abdullah <skywizard@MyBSD.org.my> [2]
|
| Revision  Changes    Path
| 1.40      +10 -1     src/sys/kern/kern_environment.c

Approved by:	re (scottl)
2005-10-09 03:27:36 +00:00
delphij
86fff66f18 MFC (by jhb):
| Trim a couple of unneeded includes.
|
| Revision  Changes    Path
| 1.153     +0 -1      src/sys/kern/subr_turnstile.c
| 1.35      +0 -1      src/sys/vm/vm_zeroidle.c

Approved by:	re (scottl)
2005-10-09 03:25:37 +00:00
delphij
3a5f5c6bf5 MFC (by ps):
| Fix up the comment for MAX_SACK_BLKS.
|
| Submitted by:   Noritoshi Demizu
|
| Revision  Changes    Path
| 1.32      +1 -1      src/sys/netinet/tcp.h

Approved by:	re (scottl)
2005-10-09 03:22:51 +00:00
delphij
31cd49528b MFC (by ps):
| Fixes for NFS crashes on architectures that require strict alignment.
| - Fix nfsm_disct() so that after pulling up data, the remaining data
|   is aligned if necessary.
| - Fix nfs_clnt_tcp_soupcall() to bcopy() the rpc length out of the
|   mbuf (instead of casting m_data to a uint32).
|
| Submitted by:   Pyun YongHyeon
| Reviewed by:    Mohan Srinivasan
|
| Revision  Changes    Path
| 1.118     +12 -3     src/sys/nfs/nfs_common.c
| 1.38      +6 -0      src/sys/nfs/nfs_common.h
| 1.126     +2 -1      src/sys/nfsclient/nfs_socket.c

Approved by:	re (scottl)
2005-10-09 03:21:56 +00:00
delphij
4e1e9b5f05 MFC (by andre)
| Remove unnecessary IPSEC includes.
|
| MFC after:      2 weeks
| Sponsored by:   TCP/IP Optimization Fundraise 2005
|
| Revision  Changes    Path
| 1.27      +0 -11     src/sys/netinet/tcp_sack.c
| 1.126     +0 -5      src/sys/netinet/tcp_usrreq.c

Approved by:	re (scottl)
2005-10-09 03:17:41 +00:00
delphij
373205352c MFC (by ps)
| In nfs_nget() if two threads race on the same filehandle, the loser
| should cause the nfsnode to get freed. This fixes a potential vnode
| (and nfsnode) leak in that path.
|
| Submitted by:   Mohan Srinivasan
| Reviewed by:    phk
|
| Revision  Changes    Path
| 1.78      +2 -1      src/sys/nfsclient/nfs_node.c

Approved by:	re (scottl)
2005-10-09 03:15:36 +00:00
delphij
fa2b46e4e1 MFC (by andre)
| Remove bogous semicolons at the end of the definitions of
| 'do { ... } while (0)' macros.
|
| PR:             kern/83088
| Sumbitted by:   <antoine.brodin at laposte.net>

Approved by:	re (scottl)
2005-10-09 03:13:49 +00:00
delphij
f1abc488c4 MFC (by alc)
| Eliminate an incorrect cast.
|
| Revision  Changes    Path
| 1.208     +1 -1      src/sys/vm/vm_fault.c

Approved by:	re (scottl)
2005-10-09 03:08:28 +00:00
delphij
a23e4ad2fe MFC (by alc)
| Eliminate an incorrect (and unnecessary) cast.
|
| Revision  Changes    Path
| 1.367     +1 -1      src/sys/vm/vm_map.c

Approved by:	re (scottl)
2005-10-09 03:07:29 +00:00
delphij
1a4ed13319 MFC (by peter)
| Remove unused (but initialized) variable 'objsize' from vm_mmap()
|
| Revision  Changes    Path
| 1.201     +1 -2      src/sys/vm/vm_mmap.c

Approved by:	re (scottl)
2005-10-09 03:05:23 +00:00
tanimura
e04edc1b3f MFC 1.35: do not derefer NULL sc in ngt_input().
Approved by:	re (scottl)
2005-10-09 00:19:28 +00:00
rodrigc
3e9ac3c943 MFC 1.58
Fix so that when a slice or a partition is removed through g_slice_config(),
  it is destroyed in GEOM, in addition to being removed from /dev.
  Before this patch, if you applied a new MBR which deleted a slice,
  the deleted slice would not be in /dev, but it would still appear
  in kern.geom.conftxt and kern.geom.confxml, which would confused
  the diskPartitionEditor in sysinstall.

Submitted by:	pjd
Requested by:	delphij
Approved by:	re (scottl)
2005-10-08 22:11:38 +00:00
pjd
8660beb374 MFC: lib/libmd/sha256.3 1.3
Correct type.

Approved by:	re (scottl)
Requested by:	delphij
OK'ed by:	cperciva
2005-10-08 21:46:23 +00:00
thompsa
34f6f0204d MFC r1.2
Display the status of the spanning tree for each port.

        member: xl0 flags=7<LEARNING,DISCOVER,STP>
        member: gem0 flags=7<LEARNING,DISCOVER,STP>
 to:
        member: xl0 flags=7<LEARNING,DISCOVER,STP>
                port 3 priority 128 path cost 55 forwarding
        member: gem0 flags=7<LEARNING,DISCOVER,STP>
                port 1 priority 128 path cost 55 learning

Approved by:	re (scottl)
2005-10-08 21:19:15 +00:00
delphij
6092a2ab34 MFC (by ume)
| refer RFC 3542 rather than RFC 2292bis.
|
| Submitted by:   Keiichi SHIMA <keiichi__at__iijlab.net>
| Obtained from:  KAME
|
| Revision  Changes    Path
| 1.8       +2 -2      src/lib/libc/net/ip6opt.c
| 1.25      +1 -1      src/lib/libc/net/rcmd.3 (already merged)
| 1.8       +1 -1      src/lib/libc/net/rthdr.c

Approved by:	re (scottl)
2005-10-08 20:58:29 +00:00
delphij
6c069067ed MFC (by ume)
| fixed the validation code of routing header length in inet6_rth_getaddr().
| reported by Delia Kecskemeti <delia.kecskemeti__at__windriver.com>
|
| Submitted by:   Keiichi SHIMA <keiichi__at__iijlab.net>
| Obtained from:  KAME
|
| Revision  Changes    Path
| 1.7       +3 -4      src/lib/libc/net/rthdr.c

Approved by:	re (scottl)
2005-10-08 20:52:53 +00:00
keramida
168f95cde9 MFC:
1.36	- Removal of obsolete/wrong OPTIONS section
	1.37	- Workaround for an mdoc bug by trhodes

Approved by:	re (kensmith)
2005-10-08 19:01:21 +00:00
imp
5eaca6ae49 MFC: Bring in support for new PC Card chipset (TC5299J) and old
ISA/PCI chipset (RTL8019 and RTL8029).  Eliminate ED_NO_MIIBUS option.
You are now required to have miibus if you have pccard in your kernel
(but not required if you don't!).  Split out register definitions for
possible future subsetting.

Approved by: re@ (scottl)
2005-10-08 18:00:41 +00:00
delphij
7eae1cb08f MFC (by deischen)
|  Add usleep to the map files.
|
|  Noticed by:     davidxu
|
|  Revision  Changes    Path
|  1.15      +2 -0      src/lib/libpthread/pthread.map
|  1.4       +2 -0      src/lib/libthr/pthread.map

Approved by:	re (kensmith)
Ok'ed by:	deischen, davidxu
2005-10-08 17:58:11 +00:00
delphij
1a10afa24f MFC (by deischen)
|  Add a cancellation point for usleep().
|
|  Revision  Changes    Path
|  1.9       +16 -1     src/lib/libpthread/thread/thr_sleep.c

Approved by:	re (kensmith)
Ok'ed by:	deischen, davidxu
2005-10-08 17:57:49 +00:00
delphij
c87122e6d8 MFC (by deischen)
|  Add a cancellation point for usleep().
|
|  While here, fix sleep() so that it is also a cancellation point (a
|  missing weak reference prevented that).
|
|  Revision  Changes    Path
|  1.10      +19 -0     src/lib/libthr/thread/thr_syscalls.c

Approved by:	re (kensmith)
Ok'ed by:	deischen, davidxu
2005-10-08 17:57:28 +00:00
maxim
2d97b0f05a MFC rev. 1.77: restore kerneldumpheader.architectureversion bytes
swopping.

Approved by:	re (kensmith)
2005-10-08 17:57:15 +00:00
delphij
50d80715c4 MFC (by deischen)
|  Make syslog() use the internal (non-cancellation point) _usleep().
|  Prior to this it was calling the cancellable usleep() while holding
|  a lock.
|
|  Revision  Changes    Path
|  1.36      +1 -1      src/lib/libc/gen/syslog.c

Approved by:	re (kensmith)
Ok'ed by:	deischen, davidxu
2005-10-08 17:57:10 +00:00
delphij
1de4269756 MFC (by deischen)
| Make usleep() overridable by the thread libraries so they can provide
| cancellation points.
|
| Noticed by:     phk
|
| Revision  Changes    Path
| 1.29      +4 -1      src/lib/libc/gen/usleep.c

Approved by:	re (kensmith)
Ok'ed by:	deischen, davidxu
2005-10-08 17:56:53 +00:00
delphij
0273af281b MFC (by deischen)
| Add namespace #defines for usleep.
|
| Revision  Changes    Path
| 1.17      +1 -0      src/lib/libc/include/namespace.h
| 1.14      +1 -0      src/lib/libc/include/un-namespace.h

Approved by:	re (kensmith)
Ok'ed by:	deischen, davidxu
2005-10-08 17:56:33 +00:00
delphij
348870b108 MFC 1.50 (by keramida):
| Add a short description of how a literal colon ':' can be inlined in the
| value of capability databases, since it's not really obvious how a colon
| can be escaped, and a pointer to the getcap(3) manpage for more details.
|
| Triggered by:	a question by Ceri on -questions

Approved by:	re (kensmith)
2005-10-08 17:37:29 +00:00
dougb
707cc5baa9 MFC rm.c 1.53 and rm.1 1.3[78], better handling of the -P flag
on a read-only file, and related doc change.

Approved by:	re (kensmith)
2005-10-08 17:27:37 +00:00
brueffer
fe594717e5 MFC: rev. 1.66
hptmv(4) now works on amd64.

Approved by:	re (hrs)
2005-10-08 08:39:58 +00:00
glebius
9eb8248dd9 This line fell out of the merge, too.
Approved by:	re (implicitly)
2005-10-08 07:35:10 +00:00
pjd
9afbd5e5a6 MFC: sys/kern/kern_mib.c 1.76
mp_ncpus is always (properly) initialized, even on UP kernels,
so just use it.

Approved by:	re (scottl) (approval from 30 Aug 2005)
Reminded by:	delphij
2005-10-08 07:06:49 +00:00
scottl
11bf3e6eaf Outwit gcc.
Submitted by: glebius, kensmith
Approved by: re
2005-10-08 05:29:27 +00:00
yar
0f5aca2db3 MFC:
Add an rc.d script to start the pfsync interface after all
the conventional network interfaces have been started so that
pfsync can be attached to any of the latter.

Record the dependency of rc.d/pf on the newly added rc.d/pfsync.
Also make rc.d/pf start as early as before rc.d/routing to improve
system security.

Document rc.d/pfsync on pfsync(4) and rc.conf(5).

Approved by:	re (scottl), mlaier
2005-10-08 03:32:54 +00:00
jon
aedee39383 MFC of 1.34: fix innetgr() returning false positives and negatives when reverse netgroup matching is used.
PR:		35506
Approved by:	re
2005-10-07 19:38:07 +00:00
sos
4a8dd7f589 MFC:
Add support for setting the SG list segment size.
Use this for the SiI3112 workaround to get rid of the "oversized DMA" errors.

Approved by: re@ (scottl)
2005-10-07 19:25:05 +00:00
brooks
7bbedbf320 MFC rev 1.6:
Don't print anything if we can't do any localpkg shutdown (start already
does this).

Submitted by:	Andre Albsmeier <Andre dot Albsmeier at siemens dot com>
PR:		conf/86606
Approved by:	re (kensmith)
2005-10-07 17:20:35 +00:00
nyan
e61c61f414 MFC: Switch from OLDCARD to NEWCARD on pc98.
Approved by:	re (scottl)
2005-10-07 15:56:30 +00:00
phk
2d15d5e3bc MFC:
make sure the type is set early enough for the kthread to know
	to grab Giant for vnode backed devices.

Approved by:	re@ (scottl)
2005-10-07 15:08:41 +00:00
phk
005f5c2cde MFC:
close a race in waiting for all geom events to have been
	handled.

Approved by:	re@ (scottl)
2005-10-07 15:06:27 +00:00
glebius
97d261903e Big overall MFC of polling(4) cleanup:
o First attempt on removing Giant from polling. Details:
  http://lists.freebsd.org/pipermail/cvs-src/2005-September/051848.html
o Second attempt, and big polling cleanup including:
  - Functinal approach to turning polling on/off
  - Deprecating of poll_in_trap
  - Removal of ifnet knowledge from kern_poll.c
  Details:
  http://lists.freebsd.org/pipermail/cvs-src/2005-October/053267.html
o Improved checking of user configurable sysctls. Details:
  http://lists.freebsd.org/pipermail/cvs-src/2005-October/053351.html
o Moving DEVICE_POLLING from opt_global.h to opt_device_polling.h:
  http://lists.freebsd.org/pipermail/cvs-src/2005-October/053479.html

o All related documentation fixes.

Approved by:	re (kensmith)
Thanks to:	everyone, who helped with testing
2005-10-07 14:00:06 +00:00
glebius
77f8347d23 MFC:
Define HAVE_KERNEL_OPTION_HEADERS when building kernel and when building
  modules along with kernel.

  After this change it is possible to embrace opt_*.h includes with ifdef
  HAVE_KERNEL_OPTION_HEADERS. And thus, avoid editing a lot of Makefiles
  in modules directory each time we introduce a new opt_xxx.h.

  Requested by:   bde

Approved by:	re (kensmith)
2005-10-07 13:55:58 +00:00
phk
01b0d42812 MFC:
make the kernels printf more paranoid about unknown %-formats

Approved by:	re@ (scottl)
2005-10-07 12:40:51 +00:00
thompsa
03bd7c8581 MFC r1.144
When bridging is enabled and an ARP request is recieved on a member interface,
 the arp code will search all local interfaces for a match. This triggers a
 kernel log if the bridge has been assigned an address.

 arp: ac🇩🇪48:18:83:3d is using my IP address 192.168.0.142!

 bridge0: flags=8041<UP,RUNNING,MULTICAST> mtu 1500
         inet 192.168.0.142 netmask 0xffffff00
         ether ac🇩🇪48:18:83:3d

 Silence this warning for 6.0 to stop unnecessary bug reports, the code will need
 to be reworked.

Approved by:	re (scottl)
2005-10-07 01:51:29 +00:00
imp
0fcbe9db41 MFC: if data is NULL, don't pass that to userland as (null)
Approved by: re@ (scottl)
2005-10-06 23:15:18 +00:00
imp
6e436f7dec MFC: if no device-name, look at subsystem
Approved by: re@ (scottl)
2005-10-06 23:12:05 +00:00
jkim
9acbd23179 MFC: Minor fixes and add amd64 support:
- Fix SMBIOS entry point structure.
- Add structure length sanity check.
- Fix revision number output.

Approved by:	re (kensmith)
2005-10-06 20:43:44 +00:00
thompsa
28e5001029 MFC: if_bridge.c r1.23
> Do not packet filter in the bridge_start() routine, locally generated packets
> are already filtered by the higher layers.

Approved by:	re (kensmith)
2005-10-06 20:43:24 +00:00