Commit Graph

119520 Commits

Author SHA1 Message Date
krion
02e53faf49 MFC: process.c: 1.40
date: 2006/05/27 19:32:28;  author: krion;  state: Exp;  lines: +1 -2
  Fix using "P" command on empty pattern space.  If the "P" command is
  used once on a non-empty pattern space and then again on an empty
  pattern space, the second usage restores the pattern space length to
  the length that it had when the first "P" was used.

  PR:             bin/96052
  Submitted by:   Andrey Zholos <aaz@althenia.net>
2006-06-03 07:20:17 +00:00
rwatson
a30b7661d4 Merge uma_core.c:1.137 from HEAD to RELENG_6:
When allocating a bucket to hold a free'd item in UMA fails, don't
  report this as an allocation failure for the item type.  The failure
  will be separately recorded with the bucket type.  This may eliminate
  high mbuf allocation failure counts under some circumstances, which
  can be alarming in appearance, but not actually a problem in
  practice.

  Reported by:    ps, Peter J. Blok <pblok at bsd4all dot org>,
                  OxY <oxy at field dot hu>,
                  Gabor MICSKO <gmicskoa at szintezis dot hu>

This is a RELENG_6_1 merge candidate.

Tested by:	Peter J. Blok <pblok at bsd4all dot org>,
		OxY <oxy at field dot hu>,
		Michael Butler <imb at protected-networks dot net>
2006-06-02 09:56:27 +00:00
mlaier
bea68ec8ca MFC rev. 1.131:
Use only lower 64bit of src/dest (and src/dest port) for hashing of IPv6
  connections and get rid of the flow_id as it is not guaranteed to be stable
  some (most?) current implementations seem to just zero it out.

  PR:		kern/88664
2006-06-02 04:02:06 +00:00
rodrigc
6aba23513f MFC: 1.19
Move call to ignore SIGPIPE signals before calling fork(),
so that both parent and child processes ignore this signal.

PR:             bin/97768
Submitted by:   Gea-Suan Lin <gslin at csie dot nctu dot edu dot tw>
2006-06-02 01:20:58 +00:00
tegge
8ca437edd4 MFC: Close race between vmspace_exitfree() and exit1() and races between
vmspace_exitfree() and vmspace_free() which could result in the same
     vmspace being freed twice.

     Factor out part of exit1() into new function vmspace_exit().  Attach
     to vmspace0 to allow old vmspace to be freed earlier.

     Add new function, vmspace_acquire_ref(), for obtaining a vmspace
     reference for a vmspace belonging to another process.  Avoid changing
     vmspace refcount from 0 to 1 since that could also lead to the same
     vmspace being freed twice.

     Change vmtotal() and swapout_procs() to use vmspace_acquire_ref().
2006-06-02 00:26:27 +00:00
krion
c6762dd35f MFC: function.c: 1.58; find.1: 1.77
date: 2006/05/27 18:27:41;  author: krion;  state: Exp;  lines: +35 -3
  Add the capability for a trailing scale indicator to cause the
  specified size to be read in the more familiar units of kilobytes,
  megabytes, gigabytes, terabytes and petabytes.

  PR:             bin/50988
  Submitted by:   Matthew Seaman <m.seaman@infracaninophile.co.uk>
2006-06-01 20:35:20 +00:00
jhb
370f253957 MFC: Only reference the firmware module once rather than twice. 2006-06-01 20:20:15 +00:00
jhb
ff568aef3b MFC: Improve reliability of nforce4 adapters:
- When setting up a packet for transmit, if we the tx ring is over half
  full, kick the binary blob to force it to complete any pending tx
  completions.
- In the watchdog routine, poke the binary blob to force it to flush any
  pending tx completions and only reset the chip if the blob doesn't
  complete any of them.
2006-06-01 20:18:36 +00:00
krion
25e2c53889 MFC: function.c: 1.57
date: 2006/05/25 21:20:43;  author: krion;  state: Exp;  lines: +12 -4
  Enable numeric arguments and +/- prefixes with -user (-group)
  options.

  PR:             bin/71513
  Submitted by:   Andre Albsmeier <Andre.Albsmeier@siemens.com>
2006-06-01 19:58:01 +00:00
bmah
bd868cf35f New errata: rc.d/jail problems, snapshot/quota deadlock, NDP
regression, multi-CDROM package loading problems, mbufs denied
bug, i386/nextboot problem.

These items will be updated as necessary to reflect reality.

Edited alpha sysinstall(8) item for markup and punctuation nits.
2006-06-01 17:49:26 +00:00
mjacob
c50d9cbffd MFC: new 2300 firmware 2006-06-01 07:04:23 +00:00
bmah
dd838ab950 Add SA- prefix to security advisory names. 2006-06-01 04:58:07 +00:00
bmah
46f2e1e442 New errata: SA-06:15, SA-06:16. 2006-06-01 04:49:01 +00:00
bmah
d962a558d7 MFC: SA-06:15, SA-06:16. 2006-05-31 23:41:37 +00:00
cperciva
280f83404d Enable inadvertantly disabled "securenet" access controls in ypserv. [1]
Correct a bug in the handling of backslash characters in smbfs which can
allow an attacker to escape from a chroot(2). [2]

Security:	FreeBSD-SA-06:15.ypserv [1]
Security:	FreeBSD-SA-06:16.smbfs [2]
2006-05-31 22:32:22 +00:00
wilko
3cd401c63b add re(4) to GENERIC.
The RL8169s worked just fine for me on my release building DS20E
with the CVS repo mounted via NFS.  For EUR 10 that is not too bad :)
2006-05-31 21:42:11 +00:00
jhb
6c1896847b MFC: Workaround a hang on some nForce2 systems that can happen if the CPU
goes into and out of the halt state very quickly.
2006-05-31 21:37:11 +00:00
jhb
efa0cd663d MFC: Restore the pre-5.x behavior of only beeping if the user makes a bad
selection.
2006-05-31 21:32:24 +00:00
ceri
9e5278e648 MFC crunchgen.1 revisions 1.29 - 1.30 and crunchgen.c revision 1.36:
Commands like gmirror, graid3, ... and others which use dlopen() to load
classes from say, /lib/geom, cannot be statically linked completely.
Moreover, those shared objects may require other shared objects (i.e.
for geom, libraries like -lmd, -lcrypto).

The libs_so extension to crunchgen fixes this by allowing some libraries
to be linked in dynamically.  This requires that a copy of rtld and the
shared libraries be made available to the crunched binary, and so is not
suitable for all environments.  Crunchgen configurations which do not
use the 'libs_so' keyword are unaffected and produce identical binaries
with and without this commit.

Approved by:            jhb
In collaboration with:  Adrian Steinmann <ast at marabu dot ch>
2006-05-31 19:11:59 +00:00
mjacob
5105b1f5aa MFC 1.117: Don't set CAM_DEV_QFRZN when we get an ABORT_TASK. Just
by itself, this makes no sense.
2006-05-31 18:49:51 +00:00
ps
c1361e659d MFC: Allow concurrent read(2)/readv(2) access to a file. Lock file
offset against multiple read calls.
2006-05-30 02:58:36 +00:00
cel
f84994a70d NFS over TCP retransmit behavior should default to a 60 second time out,
mimicing the NFS reference implementation.

NFS over TCP does not need fast retransmit timeouts, since network loss
and congestion are managed by the transport (TCP), unlike with NFS over
UDP.  A long timeout prevents the unnecessary retransmission of non-
idempotent NFS requests.

Reviewed by:	mohans, silby, rees?
Sponsored by:	Network Appliance, Incorporated
2006-05-30 01:52:59 +00:00
cel
4ec879514b Refactor the NFS over UDP retransmit timeout estimation logic to allow
the estimator to be more easily tuned and maintained.

There should be no functional change except there is now a lower limit
on the retransmit timeout to prevent the client from retransmitting
faster than the server's disks can fill requests, and an upper limit
to prevent the estimator from taking too long to retransmit during a
server outage.

Reviewed by:	mohan, kris, silby
Sponsored by:	Network Appliance, Incorporated
2006-05-30 00:43:07 +00:00
njl
8320836888 MFC: newer Intel and VIA C7-M support 2006-05-29 22:40:03 +00:00
cel
d05b2803c6 Add better sanity checking to the logic that handles ioctl processing
for nfsclient and nfs4client in order to prevent local root users
from panicing the system.

MFC of nfs4client/nfs4_dev.c revision 1.9.

PR:		kern/77463
Submitted by:	Wojciech A. Koszek
Reviewed by:	cel, rees
Security:	Local root users can panic the system at will
Sponsored by:	Network Appliance, Incorporated
2006-05-29 20:07:40 +00:00
flz
c6c15b243d MFC: - Add support for the Acer Acerscan 640BT.
- Add documentation bits.

      src/sys/dev/usb/usbdevs: rev 1.256 -> 1.257
      src/sys/dev/usb/uscanner.c: rev 1.69 -> 1.70
      src/share/man/man4/uscanner.4: rev 1.23 -> 1.24

PR:		usb/95616
Submitted by:	Matthieu Guegan <lesaint@gcu.info>
2006-05-29 17:54:57 +00:00
matteo
d554ee8c54 MFC rev 1.15-1.16
Update README.examples according to the current state of the examples/etc directory

PR:	conf/97232
2006-05-29 15:25:49 +00:00
matteo
331043a5ff MFC rev 1.10:
Correctly set moused_$2_enable when moused_nondefault_enable is set to NO

PR:	conf/92654
2006-05-29 14:43:05 +00:00
maxim
809bf26fec MFC rev. 1.9: correct comments. 2006-05-29 11:08:14 +00:00
maxim
273a870042 MFC rev. 1.21 strtol.3 and rev. 1.22 strtoul.3: .Xr strtonum(3). 2006-05-29 11:06:26 +00:00
maxim
d05436e695 MFC revs. 1.104, 1.105: add FreeBSD 5.5, correct dates. 2006-05-29 11:00:10 +00:00
hrs
eb17e568f4 Unbreak build. 2006-05-29 03:16:13 +00:00
rodrigc
94cdd8aaa9 Convert mountd to use nmount().
Remove hardcoded dependencies on ufs, cd9660, msdosfs, and ntfs.

MFC: mountd.c 1.84, 1.85, 1.86
         - exclude changes to pass in errmsg mount option, because errmsg
           is not in RELENG_6's vfs_mount.c as a default mount option.
     Makefile 1.17

PR:		bin/97642
2006-05-29 03:04:49 +00:00
thompsa
71c1a44223 MFC r1.61: Fix style(9) nits, whitespace and parentheses. 2006-05-29 00:40:16 +00:00
thompsa
55ff2b99b0 MFC r1.59, 1.60
- Add support for fragmenting ipv4 packets
 - Recalculate the IP checksum after pfil(9)

Together these allow NFS to work over the bridge
2006-05-29 00:36:27 +00:00
wilko
27915515ae Add pointer to historical overview of the various Alpha CPU models. 2006-05-28 20:26:57 +00:00
rodrigc
6cfcaeedd1 MFC: 1.208
In devfs_first(), set mp->mnt_opt to a valid empty list of mount options
instead of leaving it NULL.  This eliminates a kernel panic
when trying to do a mount -o update of /dev.

Noticed by:	cjsp
Reviewed by:	phk
2006-05-28 18:44:47 +00:00
wilko
cb88adac76 Remove GEOM_GPT.
I encountered repeatable Unaligned access panics similar to:

fatal kernel trap:

    trap entry     = 0x4 (unaligned access fault)
    cpuid          = 0
    faulting va    = 0xfffffc0000fae1c2
    opcode         = 0x28
    register       = 0x1
    pc             = 0xfffffc00004d07dc
    ra             = 0xfffffc00004d0a1c
    sp             = 0xfffffe0031875bc0
    curthread      = 0xfffffc007da237a0
        pid = 2, comm = g_event

These occur when a floppy or a CD (the 6.1R install CD will do in most
cases) is in the drive during boot.  A floppy or CD inserted *after*
the system was booted did not give me this problem.  Interestingly
enough booting from the 6.1-R install CD sometimes caused the crash,
sometimes it did not.  When it did not panic an installation of 6.1-R
was possible without any incidents.  A subsequent boot from HD with
the CD still present sometimes(...) worked fine, sometimes paniced.

Taking GEOM_GPT out of the kernel config file allows booting without
incidents.  We do not need GPT on Alpha, so this is the easy way out.

Discussed with: phk
2006-05-28 11:15:16 +00:00
simon
9ddbde1d33 Revert MFC of 1.73, since mounting devfs without a devfs ruleset
inside a jail is a very bad idea security wise.
2006-05-28 09:49:42 +00:00
wilko
1b76f9f82d Correct DS20 cache info 2006-05-27 19:25:25 +00:00
hrs
2de30902d4 New errata item: 6.1R includes a small undocumented change
of some public definition names.

Reported by:	scottl
Reviewed by:	bmah
2006-05-27 19:08:06 +00:00
wilko
27c01b8075 You learn something new every day: just discovered AlphaServer800 has
a RMC.
2006-05-27 17:58:23 +00:00
wilko
8a8c54578e On alpha, sysinstall sometimes does not allow a disk to be labeled.
Present workaround via 'Fixit'.
2006-05-27 17:43:32 +00:00
marcus
49f16783d1 MFC:
Add a /media to FreeBSD.  /media is a directory designed to contain
subdirectories that will be used for removable media mount points (i.e.
mount points for CDs, floppy disks, USB drives, etc.).  While the primary
purpose of /media is to provide a location for HAL
(http://www.freedesktop.org/wiki/Software_2fhal) to mount volumes, it could
be used by any application that needs to manage removable media volumes.
2006-05-27 17:12:02 +00:00
bmah
14dc260471 MFC: Support for i386 systems without AT-style keyboard controllers,
jail(8) -s, ls(1) -U, ntp-4.2.0 manpages.
2006-05-27 14:27:59 +00:00
simon
1dfe424ccb MFC 1.2+1.3:
- Unbreak and fix markup.
- VFS_LOCK_GIANT and VFS_UNLOCK_GIANT are actually defined in sys/mount.h,
  so also include sys/mount.h in SYNOPSIS.
2006-05-27 12:58:47 +00:00
simon
72f3f99378 MFC:
- Fix path to sysinstall, it hasn't been in /stand for for some time.
- Put list outside <para> to avoid extra horisontal whitespace in
  output.
2006-05-27 09:34:29 +00:00
cperciva
d36c867f6c MFC rev 1.244:
If the user asks for "kernel sources" to be installed, extract the
  SRC_BASE package (src/[A-Z]*) as well as SRC_SYS (src/sys/*).  This
  allows users who only install the kernel source code to use the
  modern "make buildkernel" approach.
2006-05-27 06:52:13 +00:00
cperciva
f2efa205b9 MFC usr.sbin/portsnap/phttpget/phttpget.c rev 1.10,
usr.sbin/portsnap/portsnap/portsnap.8 revs 1.8-1.9,
    usr.sbin/portsnap/portsnap/portsnap.sh revs 1.16-1.24:

* Allow "HTTP_PROXY" to be (mis)spelled "http_proxy".
* Add "-l descfile" option to portsnap, to merge local describes
  output when building INDEX files.
* If a port directory is a symlink, remove the symlink when
  extracting a new version of the port.
* Make portsnap's automatic mirror selection interoperate better
  with HTTP proxies.
* Switch mirrors if the first mirror(s) selected fails.
* During mirror selection, parse the output of host(1) from
  BIND 8 as well as BIND 9.
* NO_BIND -> WITHOUT_BIND in a comment.

PR:		ports/93901, bin/96288
Sponsored by:   FreeBSD security development fundraiser
2006-05-26 23:14:16 +00:00
wilko
9f78b7b018 Update information in AlphaServer800 now that I have one here. 2006-05-26 20:53:19 +00:00