56381 Commits

Author SHA1 Message Date
rwatson
b60fd3c465 Merge spx_usrreq.c:1.72 from HEAD to RELENG_6:
Slight style reformatting of spx_timers() comments; panic if an
  unrecognized timer is passed into the function.
2006-06-08 23:21:25 +00:00
rwatson
12b89b7e1c Merge ipx_pcb.c:1.44, spx_usrreq.c:1.71 from HEAD to RELENG_6:
Clean up and style(9) SPX code prior to significant functional changes
  being committed:

  - Wrap comments more evenly on right border.
  - Clean up braces.

  Also, along similar lines:

  - Assert some pointers are non-NULL before dereferencing them.
  - Remove one assertion that looks, on face value, poor.
2006-06-08 23:20:37 +00:00
rwatson
42cd5f7b8b Merge spx_usrreq.c:1.70 from HEAD to RELENG_6:
Protect spx_iss using its own mutex, spx_mtx, rather than piggy-backing
  on the global IPX mutex, which is not held at all necessary strategic
  points.
2006-06-08 23:18:40 +00:00
rwatson
1cf5c31809 Merge spx_usrreq.c:1.69 from HEAD to RELENG_6:
Move definition of spxrexmtthresh to top of file with other global
  variables.
2006-06-08 23:18:01 +00:00
rwatson
34b8bc8d25 Merge spx_usrreq.c:1.68 from HEAD to RELENG_6:
Canonicalize, update copyright.
  Remove 'register'.
  Use ANSI prototypes, not K&R.
2006-06-08 23:17:29 +00:00
rwatson
828233b8f9 Merge ipx_input.c:1.53, spx_usrreq.c:1.66 from HEAD to RELENG_6:
Admit to ourselves that we don't actually implement pr_ctlinput() for
  IPX or SPX, as the code in the implementing functions is essentially
  a no-op.  Replace with a comment indicating we don't implement these
  currently.
2006-06-08 23:15:28 +00:00
rwatson
322724cc00 Merge spx_usrreq.c:1.65 from HEAD to RELENG_6:
In spx_attach() and spx_detach(), there is no need to check whether the
  ipxpcb is NULL or not: in attach it will be, and on detach it won't be.
  If for any reason these invariants don't hold true, panicking is a good
  idea.

  Noticed by:     Coverity Prevent analysis tool
2006-06-08 23:12:22 +00:00
rwatson
1c3e4ff79e Merge README:1.7 from HEAD to RELENG_6:
Update copyright to 2006, comment on my contribution to this code in the
  style of previous contributors.
2006-06-08 23:05:53 +00:00
rwatson
482ab51a1e Merge ipx_input.c:1.54 from HEAD to RELENG_6:
Comment that raw output filter code for IPX should run in a netisr so as
  to avoid recursing the socket code, as this input path can run in the
  call stack of an output path.
2006-06-08 23:05:19 +00:00
rwatson
be1414f73b Merge ipx_pcb.h:1.24, spx_usrreq.c:1.67 from HEAD to RELENG_6:
Move spx_savesi from being a global variable to an automatically allocated
  variable on the spx_input() stack.  It's not very large, and this will
  avoid parallelism issues when spx_input() runs in more than one thread at
  a time.
2006-06-08 23:04:44 +00:00
rwatson
9a0e4c7010 Merge nfs_nfsiod.c:1.89 from HEAD to RELENG_6:
Adjust minimum iod threads from 4 to 0 -- since we compile the NFS
  client into the kernel by default, and many users won't use NFS,
  don't start an extra 4 kernel threads that are unused.  Once NFS
  becomes active, it will start nfsiod's as it needs them.

  We might consider mandating a minimum iod's equal to the number of
  active NFS mounts (truncated to some value), which would force some
  to remain available without having to create a new one if the file
  system is mostly inactive.

  PR:             70880
  Prodded by:     cel
  Head nod:       peter
  Pointed out by: Joe <fbsd_user at a1poweruser dot com>
2006-06-08 22:57:07 +00:00
mjacob
d70a82fe55 MFC sequential scan probing changes 2006-06-08 17:51:27 +00:00
mjacob
76c0175250 MFC -current mpt driver to support FC target mode and SAS HBAs plus
probably correct U320 negotiations.
2006-06-08 17:48:35 +00:00
marius
4997211968 MFC: sys/sparc64/sparc64/machdep.c 1.129 (partial),
sys/sparc64/sparc64/trap.c 1.80 (partial)

- s,tramoline,trampoline, in a comment.
- Use FBSDID in trap.c
- Make the global trap_sig[] static as it's not used outside of trap.c.
- Sync cpu_thread_siginfo() and sendsig() with the other archs; for fast
  data access MMU miss and data access protection traps set ksi_addr to
  the SFAR reg which contains the faulting address and otherwise to the
  TPC reg. Generally the TCP reg contains the address of the instruction
  that caused the exception, except for fast instruction access traps
  (and some others; more refinement may be needed here) it also contains
  the faulting address.
  Previously, sendsig() always set si_addr to the SFAR reg which is wrong
  for most traps and cpu_thread_siginfo() didn't set it at all.
- In sendsig() add support for FreeBSD old-style signals.
2006-06-07 19:08:27 +00:00
marius
a0d42b4ae0 MFC: 1.61
Revert the (int *) -> (intptr_t *) conversion done as part of rev. 1.59
(MFC'ed in rev. 1.55.2.3) for IOCTLs where casting data to intptr_t *
isn't the right thing to do, fixing tap(4) on big-endian LP64 machines.
2006-06-06 20:03:37 +00:00
jkim
c56a6fff7e MFC: Move SiS 760 to where it belongs.
PR:		98094
Submitted by:	Mike M < mmcgus at yahoo dot com >
2006-06-05 18:34:13 +00:00
njl
f545e70963 MFC 1.220: Add support for reset_register rebooting.
Note that this is not the exact right place for this code since it runs
a little earlier than the normal reset SYSINIT.  However, it appears to
work fine and can be backed out if it causes problems.
2006-06-05 15:19:59 +00:00
iedowse
f6045541ec MFC: add the Tripp-Lite U209-000-R serial adapter
PR:		usb/78543, usb/93347
2006-06-05 11:59:07 +00:00
maxim
4f3d9731aa MFC rev. 1.257: add missed error check. 2006-06-04 10:19:34 +00:00
wilko
d74a38eeba Testing has shown that the stability problems (panic tracebacks
showing lockmgr) encountered with "make -jX release" for X > 1
and running on SMP hardware are gone once PREEMPTION is disabled.

Better ideas on fixing the problem are more than welcome.
2006-06-03 23:10:46 +00:00
rodrigc
1ab8d17367 MFC:
1.207:
	Add "errmsg" to list of global mount options.

1.225:
	Add "update" mount option to global_opts array,
	for use with vfs_filteropt().
2006-06-03 21:47:11 +00:00
mjacob
487eb1ffd8 MFC: allow this to compile cleanly under RELENG_4 2006-06-03 07:21:09 +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
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
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
mjacob
c50d9cbffd MFC: new 2300 firmware 2006-06-01 07:04:23 +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
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
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
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
sobomax
0eb84ea2c9 MFC: Detect cases when the hardware has no AT-style keyboard controller. 2006-05-26 00:56:14 +00:00
ru
43b41d32b2 MFC: 1.545: Add missing acpi_wakecode.h dependency on assym.s.
: /usr/src/sys/i386/acpica/acpi_wakecode.S:35:19: assym.s: No such file or directory
: /usr/src/sys/i386/acpica/acpi_wakecode.S: Assembler messages:
: /usr/src/sys/i386/acpica/acpi_wakecode.S:103: Error: suffix or operands invalid for `ljmp'

Reported by:	many
2006-05-25 20:25:44 +00:00
cvs2svn
47d76a2b91 This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2006-05-25 04:01:05 +00:00
tegge
c538ede71c MFC: Read block hints list from last snapshot on the active snapshot list. 2006-05-24 20:20:16 +00:00
tegge
cb63d0cb33 MFC: Copy last block on file system again after file system has been
suspended.

Obtained from:	NetBSD
2006-05-24 20:16:46 +00:00
tegge
702b6397cd MFC: Don't leak a locked buffer if last block on file system cannot be read. 2006-05-24 20:13:36 +00:00
tegge
8d53cc1e47 MFC: Errors detected while file system is suspended should not trigger an
assertion failure.
2006-05-24 20:11:32 +00:00