56269 Commits

Author SHA1 Message Date
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
tegge
35a8797690 MFC: Expunge traces of unlinked snapshot files when making a new snapshot. 2006-05-24 20:08:55 +00:00
cel
0cc5415af4 While reviewing NFS client for another PR, noticed this omission in the
NFSv4 client READDIR logic.  This change matches the logic in the version
2 and 3 code.

Sponsored by:	Network Appliance, Incorporated
2006-05-24 18:29:37 +00:00
emax
b30dd286ba MFC:
Add new SIOC_HCI_RAW_NODE_LIST_NAMES ioctl. User-space applications can
use this ioctl to obtain the list of HCI nodes. User-space application
is expected to preallocate 'ng_btsocket_hci_raw_node_list_names' structure
and set limit in 'num_nodes' field. The 'nodes' field should be allocated
as well and it should have space for at least 'num_nodes' elements.

The SIOC_HCI_RAW_NODE_LIST_NAMES should be issued on bound raw HCI socket.
It does not really really matter what HCI name the socket is bound to, as
long as it is not empty.
2006-05-24 00:51:22 +00:00
jkim
fa42b82744 MFC: src/lib/libstand/printf.c 1.9
src/sys/kern/subr_prf.c		1.123

Implement printf 'X' conversion for both libstand and kernel.
2006-05-22 23:51:14 +00:00
jkim
306d3fed46 MFC: 1.38, 1.40
Work around CardBus issue for Compaq R3000 series laptop.
2006-05-22 23:38:08 +00:00
jkim
f86c8264df MFC: SMBIOS support for loader. 2006-05-22 23:31:30 +00:00
mjacob
f278b55e24 MFC current state of isp. Lots of cosmetic changes, but also various bugfixes. 2006-05-22 21:31:54 +00:00
nyan
cce8b73200 MFi386: revision 1.616.2.4 2006-05-21 11:22:10 +00:00
nyan
dcac4c6af5 MFC: rev 1.10: include pc98/pc98/pc98_machdep.h instead of pc98/cbus/cbus.h. 2006-05-21 11:20:27 +00:00
nyan
b96c78783d MFC: Remove unneeded include. 2006-05-21 11:18:42 +00:00
nyan
3032b4b66b MFC: cbus.h: 1.22, pc98_machdep.h: 1.14
- Move defines for PC-98 machine type from pc98/cbus/cbus.h into
    pc98/pc98/pc98_machdep.h.
  - Fix PC98_SYSTEM_PARAMETER_SIZE.
  - Remove unused defines.
2006-05-21 11:17:33 +00:00
maxim
f9edac6fd5 MFC rev. 1.167: inherit LOCAL_CREDS option from listen socket
for sockets returned by accept(2).
2006-05-21 09:12:24 +00:00