119220 Commits

Author SHA1 Message Date
rwatson
1c0c7ffcc4 Merge ipsec.c:1.44 from HEAD to RELENG_6:
Remove manual assignment of m_pkthdr from one mbuf to another in
  ipsec_copypkt(), as this is already handled by the call to
  M_MOVE_PKTHDR(), which also knows how to correctly handle MAC m_tags.
  This corrects a panic when running with MAC and KAME IPSEC.

  PR:             kern/94599
  Submitted by:   zhouyi zhou <zhouyi04 at ios dot cn>
  Reviewed by:    bz, gnn

Approved by:	re (mux)
2006-04-01 15:16:14 +00:00
marius
5f1e8a696e MFC: 1.32
- We only lock the local per-CPU page in the local dTLB, so accessing the
  foreign per-CPU pages in cpu_ipi_send() in order to get the module IDs
  of the other CPUs can cause a page fault. If this happens when doing a
  TLB shootdown while dealing with another page fault this causes a panic
  due to the recursive page fault. As I don't spot other code that assumes
  or requires that accessing foreign per-CPU pages must not page fault
  solve this by adding a statically allocated (and therefore locked as
  part of the kernel pages) array which establishes a FreeBSD CPU ID ->
  module ID relation and use that in cpu_ipi_selected().
- Fix a potential race in cpu_ipi_send(); as we don't serialize the access
  to cpu_ipi_selected() between MI and MD use (only MI-MI and MD-MD) we
  might catch the NACK bit caused by sending another IPI. Solve this by
  checking the NACK bit in the contents of the interrupt dispatch status
  reg read while interrupts were still turned off instead of reading that
  reg anew after interrupts were turned on again. This is also what the
  CPU docs suggest to do.
- Add a workaround for the SpitFire erratum #54 bug (affecting interrupt
  dispatch). While public info regarding what this CPU bug actually causes
  is not available testing shows that with the workaround in place it's
  less likely to get a "couldn't send ipi" panic, it doesn't solve these
  panics entirely though.

Approved by:	re (mux)
2006-03-31 23:48:12 +00:00
marius
441afcfde1 MFC: 1.10
Add convenience macros for the bits in ASI_ESTATE_ERROR_EN_REG (used
for ECC handling) and the additional uses of the ASIs 0x77 and 0x7f
as well as their bits (used for a CPU bug workaround).

Approved by:	re (mux)
2006-03-31 23:40:42 +00:00
marius
26957cf64f MFC: 1.128
- Add a comment describing why tick_init() is called before cninit().
- Fix a typo in another comment.

Approved by:	re (mux)
2006-03-31 23:40:05 +00:00
marius
fb1152f8ca MFC: 1.21
- Move the check for too high HZ values from tick_init() to tick_start()
  as we have to call tick_init() before cninit() in order to provide the
  low-level console drivers with a working DELAY() which in turn means we
  cannot use panic() in tick_init().
- s,to high, too high, in the panic string

Approved by:	re (mux)
2006-03-31 23:38:29 +00:00
glebius
5316a30fa2 MFC 1.4, 1.5, 1.6:
- Do not point at bar.com.
  - Document how change polling interval for HC
    interface, counters.

Approved by:	re (scottl)
2006-03-31 12:47:50 +00:00
glebius
0a0cd568a9 Sync bsnmpd with HEAD.
Approved by:	re (scottl)
Approved by:	harti
2006-03-31 12:44:51 +00:00
kris
a6d8ed18f8 MFC r1.89:
- LK_RETRY means nothing when passed to VOP_LOCK.  Call vn_lock instead.
 - Move the vn_lock of the dvp until after we've unbusied the filesystem
   to avoid a LOR with the mount point lock.
 - In the v_mountedhere while loop we acquire a new instance of giant each
   time through without releasing the first.  This would cause us to leak
   Giant.

Sponsored by:   Isilon Systems, Inc.
Approved by:	re (scottl)
2006-03-31 07:39:24 +00:00
kris
c506d5366a MFC r1.137:
Fix a bug in the NFS/TCP retransmission path.

The bug was that earlier, if a request was retransmitted,
we would do subsequent retransmits every 10 msecs.

This can cause data corruption under moderate loads by reordering
operations as seen by the client NFS attribute cache, and on the
server side when the retransmission occurs after the original request
has left the duplicate cache, since the operation will be committed
for a second time.

Further work on retransmission handling is needed (e.g. they are still
being done sent too often since they are scaled by HZ, and the size of
the dup cache is too small and easily overwhelmed on busy servers).

Submitted by:   mohans
Approved by:	re (mux)
2006-03-31 07:13:09 +00:00
sam
820318a733 MFC: 1.36: honor tunable when starting up task q threads
Approved by:	re (scottl)
2006-03-30 22:59:12 +00:00
csjp
7bdd1005e6 MFC 1.144 tty_pty.c
Allow root to open jail PTYs from the host environment. This un-breaks using
utilities like watch(8) (or other programs which use snp(4)) to monitor
behavior within prisons from the host environment. This regression was
introduced when we changed the ioctl(SNPSTTY) to use a file descriptor
instead of a dev_t

Approved by:	re (hrs)
2006-03-30 16:46:56 +00:00
hrs
22dcbe8374 Document 06:13.sendmail, 06:12.opie, 06:11.ipsec, and 06:10.nfs.
Submitted by:	delphij
Approved by:	re (implicitly)
2006-03-30 15:31:36 +00:00
mlaier
c5fe86079b MFC authpf.8 rev. 1.2
Document authpf's requirement for a mounted fdescfs(5).

  PR:		docs/89635

Approved by:	re (hrs)
2006-03-30 08:14:55 +00:00
brd
f57b36b2d3 MFC 1.39
Fix a typo.

Approved by:	re@, ceri@
2006-03-30 04:15:40 +00:00
suz
021e8ed5df MFC Rev 1.15
fixed a potential memory leak

Approved by: re(hrs)
2006-03-29 21:06:50 +00:00
suz
1a3d568b21 MFC Rev 1.64
fixed a memory leak when net.inet6.icmp6.nd6_maxqueuelen is greater than 1

Approved by: re(hrs)
2006-03-29 21:05:11 +00:00
cel
cfec640a25 Fix a bug in NFSv3 READDIRPLUS reply processing
The client's READDIRPLUS logic skips the attributes and
filehandle of the ".." entry.  If the server doesn't send
attributes but does send a filehandle for "..", the
client's logic doesn't account for the extra "value
Fix a bug in NFSv3 READDIRPLUS reply processing

The client's READDIRPLUS logic skips the attributes and
filehandle of the ".." entry.  If the server doesn't send
attributes but does send a filehandle for "..", the
client's logic doesn't account for the extra "value
follows" field that indicates whether the filehandle is
present, causing the remaining entries in the reply
to be ignored.

This is an MFC of 1.264 in the CURRENT branch.

Sponsored by:   Network Appliance, Inc.
Reviewed by:    rick, mohans
Approved by:    re, silby
2006-03-29 18:11:32 +00:00
rwatson
1c31d03e4c Merge ip_ip.c:1.43,1.44 from HEAD to RELENG_6:
When the kernel is compiled with options IPXIP, run the network stack
   with Giant, as there is current unsafety in the IPX tunneled over IP
   code.  There have been no reports of trouble, but there probably would
   be if anyone were running this code at high speed on SMP systems.

   Include kernel.h to get NET_NEEDS_GIANT() definition, which for some
   reason compiled fine here.  I may be running with other include file
   changes locally.

Approved by:	re (kensmith)
2006-03-29 12:42:43 +00:00
gshapiro
6637d92e62 MFC: Add sendmail 8.13.4 -> 8.13.6 release note entry.
Approved by:	re (kensmith)
2006-03-29 07:56:10 +00:00
gshapiro
f125642718 MFC: Add new libsm file from sendmail 8.13.6
Approved by:	re (kensmith)
2006-03-29 07:34:59 +00:00
gshapiro
0c1258eeb8 MFC: sendmail 8.13.6
Approved by:	re (kensmith)
2006-03-29 07:34:35 +00:00
ume
cc9b8b5396 MFC:
- When res_send() fails, we should reserve an error code.
  - When res_nquerydomain() returns SERVFAIL, we should try next domain.

	src/lib/libc/net/getaddrinfo.c:		1.75, 1.76
	src/lib/libc/resolv/res_query.c:	1.3

Approved by:	re (hrs)
2006-03-29 03:38:58 +00:00
cvs2svn
f67356168f This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2006-03-28 23:59:08 +00:00
ceri
f7c89a92e7 MFC revision 1.71:
The rpc.pcnfsd server was in the base for a little over seven
	minutes back in 1994.  Change the example entry to point at the
	port, as per the entries for uucpd et al.

Approved by:	re (kensmith)
2006-03-28 15:52:12 +00:00
mlaier
93baff0064 MFC pf_norm.c rev. 1.17:
Loopback pf_norm.c rev. 1.106 from OpenBSD:
      fixup IP checksum when modifying IP header fields

  PR:			kern/93849
  Obtained from:	OpenBSD

Approved by:	re (kensmith)
2006-03-28 15:06:03 +00:00
rwatson
3e9d04507f Merge fifo_vnops.c:1.134 from HEAD to RELENG_6:
Add a_fdidx to comment prototype for fifo_open().

  Submitted by:   Kostik Belousov <kostikbel at gmail dot com>

Approved by:	re (mux)
2006-03-28 12:42:20 +00:00
delphij
7d173297fa MFC (by scottl@):
> Free the newtag if we exit with a failure from alloc_bounce_zone().
>
> Found by: Coverity Prevent(tm)
>
> Revision  Changes    Path
> 1.73      +3 -1      src/sys/amd64/amd64/busdma_machdep.c
> 1.76      +6 -1      src/sys/i386/i386/busdma_machdep.c

Approved by:	re (mux)
2006-03-28 06:28:37 +00:00
delphij
6a37c3ac36 MFC (by scottl@):
>
> Don peril sensitive sunglasses and jack up the MAX_BPAGES limit to 8192
> on amd64.  If you're going to stuff >4GB into your box, reserving 32MB for
> bonce pages amounts to a rounding error in the overall scheme of things.
>
> Revision  Changes    Path
> 1.72      +1 -1      src/sys/amd64/amd64/busdma_machdep.c

Approved by:	re (mux)
2006-03-28 06:25:11 +00:00
delphij
9b60139dbe MFC (by le@):
> sys/amd64/amd64/busdma_machdep.c,v 1.71
> sys/i386/i386/busdma_machdep.c,v 1.75

Fix typos.

Approved by:	re (mux)
2006-03-28 06:23:00 +00:00
hrs
84eaee0b2c New release notes:
FreeBSD-SA-06:10.nfs,
	FreeBSD-SA-06:11.ipsec,
	FreeBSD-SA-06:12.opie, and
	FreeBSD-SA-06:13.sendmail.

Submitted by:	delphij
Approved by:	re (implicitly)
2006-03-26 16:28:59 +00:00
davidxu
b75d026a4e MFC revision 1.232, 1.233, fix thread suspension race.
Approved by: re (kensmith)
2006-03-26 01:29:55 +00:00
marius
9bc88e2073 MFC: 1.2
- Add info regarding the watchdog part of the MK48Txx.
- Add a missing .Tn before Mostek.

Approved by:	re (hrs)
2006-03-25 12:20:41 +00:00
marius
e0f85ed156 MFC: 1.11
For E250 and E450 enable the watchdog part of the MK48Txx as it just
works there.

Approved by:	re (hrs)
2006-03-25 12:17:23 +00:00
marius
d9e8b6d98d - Clear the interrupt source flags before processing the interrupt
events and turn off NIC interrupts while in the interrupt handler.
  This fixes the device timeouts seen with the VMware LANCE.
- Relax the watchdog timer somewhat; don't enable it until the last
  packet is enqueued and if there is a TX interrupt but there are
  still outstanding ones reload the timer.

Approved by:	re (hrs)
2006-03-25 12:13:21 +00:00
iedowse
d61519e4a6 MFC 1.26: Correct the calculation of the report size and only look
at reports that have the specified kind, instead of assuming that
there is only one report of the right kind in the report descriptor.

Approved by:	re (kensmith)
2006-03-25 04:46:52 +00:00
iedowse
4abdf3a5e1 MFC: Sony DSC cameras with revision number 6.0 require the same
quirk as those reporting revision 5.0.

Approved by:	re (mux)
2006-03-24 21:42:02 +00:00
ru
3526640576 MFC: Serialize access to the info/dir file; needed for parallel installs.
Approved by:	re (kensmith)
2006-03-24 19:28:38 +00:00
suz
81852854cc MFC Rev 1.27 (avoid heap overrun)
Approved by: re(kensmith)
2006-03-24 14:53:53 +00:00
brueffer
6d7716a9cc MFC: rev. 1.64
Document JMicron JMB361, 365 and 366 support.

Approved by:	re (hrs)
2006-03-24 05:44:32 +00:00
delphij
6b5f6d40b5 MFC 1.263: a typo fix (diff reduction against -HEAD)
Approved by:	re (hrs)
2006-03-24 04:48:42 +00:00
sam
f78844d8b5 MFC: update for v0.4.8 import of wpa_supplicant and hostapd
Approved by:	re (hrs)
2006-03-24 01:43:18 +00:00
sam
c2ecfd936e MFC v0.4.8 import of hostapd
Approved by:	re (hrs)
2006-03-24 01:42:36 +00:00
sam
49fa657ce8 MFC v0.4.8 import of wpa_supplicant
Approved by:	re (hrs)
2006-03-24 01:41:10 +00:00
yongari
4035c15903 MFC if_hme.c:1.47 to RELENG_6:
Backout rev. 1.46. It caused Rx checksum offload breakage on little
 endian systems.

Approved by:    re (hrs)
2006-03-24 00:38:07 +00:00
sam
21d8390100 MFC 1.40: when doing s/w crypto make sure work is done w/ a writable
mbuf chain; this corrects problems with drivers that rely on the
    host to do crypto

Approved by:	re (hrs)
2006-03-23 23:28:43 +00:00
sam
87fb33de86 MFC: promote fast ipsec's m_clone routine for public use; it is renamed
m_unshare and the caller can now control how mbufs are allocated

Approved by:	re (hrs)
2006-03-23 23:24:33 +00:00
sobomax
4257df9039 MFC: also look for BSD label at 512-byte offset, if we can't find
it on the very beginning of the second sector. This makes it compatible
with labels created by disklabel(8) on non-512-byte-per-sector
devices.

Approved by:	re
2006-03-23 22:40:28 +00:00
hrs
f119cdd464 MFC(rev.1.15):
Revert description of EBUSY.

Approved by:	re (implicitly)
2006-03-23 07:48:50 +00:00
hrs
0f63b4d607 MFC:
Fix version number when the feature was added.

Submitted by:	Yoshihiko Sarumaru (mistral at imasy dot or dot jp)
PR:		docs/93801 and docs/93803
Approved by:	re (kensmith)
2006-03-23 07:41:33 +00:00
hrs
2ccb33ed1e MFC (rev.1.5):
Fix incorrect command line examples.

Submitted by:	Yoshihiko Sarumaru (mistral at imasy dot or dot jp)
PR:		docs/94158
Approved by:	re (kensmith)
2006-03-23 07:38:26 +00:00