159886 Commits

Author SHA1 Message Date
gavin
e761cce948 Merge r203636 from head:
Correct arguments to free_unr(), "item" was missing.
2010-02-14 09:37:13 +00:00
gavin
9affe11b67 Merge r200530 from head:
Don't panic on failure to attach if we fail before or during the
  if_alloc() of ifp.

  This fixes the panic reported in the PRs, but not the attach failure.

PR:		kern/139079, kern/143874
Tested by:	Steven Noonan <steven uplinklabs.net>
Reviewed by:	thompsa
2010-02-14 09:34:27 +00:00
rmacklem
9a052c00f7 MFC: r203303
Patch the experimental NFS client so that there is a timeout
for negative name cache entries in a manner analogous to
r202767 for the regular NFS client. Also, make the code in
nfs_lookup() compatible with that of the regular client
and replace the sysctl variable that enabled negative name
caching with the mount point option.
2010-02-14 00:43:42 +00:00
antoine
a83800c0bf Merge r201920 to stable/8:
libusb20 was renamed libusb several months ago.
2010-02-13 17:48:52 +00:00
antoine
4d571067a4 Merge r201919 to stable/8:
Fix a typo.
2010-02-13 17:41:22 +00:00
antoine
3a9a74bc01 Merge r201918 to stable/8:
Fix a typo.
2010-02-13 17:35:29 +00:00
ume
b1b494074a MFC r203387: Exclude the interfaces which IPv6 and/or accepting
RA is disabled from the auto probed interface list.
2010-02-13 16:28:25 +00:00
ume
c93877c1bb MFC r203378: Make -a option actually work. 2010-02-13 16:25:33 +00:00
gavin
6d70c92b6e Merge r203393,r203395 from head:
The multiplicand a = 0x5deece66d = 25214903917, not 0xfdeece66d.
  This bug in the man page has gone unnoticed for over 15 years!

PR:		docs/143461
Submitted by:	Jeremy Huddleston  jeremyhu apple.com
2010-02-13 10:26:00 +00:00
delphij
11dd993714 MFC r202130:
Set svn:executable to *.
2010-02-13 00:39:46 +00:00
delphij
3cc8359f50 Migrate mergeinfo which was done on wrong target back to etc/ (203163). 2010-02-13 00:39:03 +00:00
delphij
100ba6bc66 MFC r203053:
Add a manual page for nvram(4).
2010-02-13 00:30:50 +00:00
delphij
a996d397be MFC r203534: Correct two typos.
Reported by:    Brandon Falk <falkman gamozo org>
2010-02-13 00:29:01 +00:00
mjacob
04dffc6814 Pick up some changes the the MFC missed. 2010-02-12 00:47:23 +00:00
rmacklem
4fad635647 MFC: r203119
Patch the experimental NFS client in a manner analogous to
r203072 for the regular NFS client. Also, delete two fields
of struct nfsmount that are not used by the FreeBSD port of
the client.
2010-02-11 21:25:48 +00:00
mjacob
61f08952b6 MFC a number of changes from head for ISP (203478,203463,203444,202418,201758,
201408,201325,200089,198822,197373,197372,197214,196162). Since one of those
changes was a semicolon cleanup from somebody else, this touches a lot more.
2010-02-11 18:34:06 +00:00
mckusick
67381ac879 MFC of r201700 | mckusick | 2010-01-06
This corrects a bug that manifested itself as identifying the last
cylinder group of a UFS1 filesystem as bad. The error was in the check
and not in the cylinder group itself. So even though fsck fixed the
cylinder group correctly, it was still endlessly reported as bad.

This bug first appeared in 8.0 so does not apply to earlier releases.

PR:             141992
Reported by:    Dan Strick
2010-02-10 20:35:20 +00:00
rmacklem
b6d1f5950e MFC: r203072
Fix a race that can occur when nfs nfsiod threads are being created.
Without this patch it was possible for a different thread that calls
nfs_asyncio() to snitch a newly created nfsiod thread that was
intended for another caller of nfs_asyncio(), because the nfs_iod_mtx
mutex was unlocked while the new nfsiod thread was created. This patch
labels the newly created nfsiod, so that it is not taken by another
caller of nfs_asyncio(). This is believed to fix the problem reported
on the freebsd-stable email list under the subject:
FreeBSD NFS client/Linux NFS server issue.

Tested by:	to DOT my DOT trociny AT gmail DOT com
Reviewed by:	jhb
2010-02-10 16:16:50 +00:00
avg
45cd183937 MFC r203062: acpi_hpet: correctly get number of timers in a timer block 2010-02-10 09:46:31 +00:00
zec
cd4aedf6f1 MFC r203483:
Instead of spamming the console on each curvnet recursion event, print
  out each such call graph only once, along with a stack backtrace.  This
  should make kernels built with VNET_DEBUG reasonably usable again in
  busy / production environments.

  Introduce a new DDB command "show vnetrcrs" which dumps the whole log
  of distinctive curvnet recursion events.  This might be useful when
  recursion reports get burried / lost too deep in the message buffer.
  In the later case stack backtraces are not available.

  Reviewed by:  bz
2010-02-10 08:50:06 +00:00
delphij
56c6dfba43 MFC r202060:
Add a new option, -q howmany, which when used in conjuction with -w,
exits netstat after _howmany_ outputs.

Requested by:	thomasa
Reviewed by:	freebsd-net (bms, old version in early 2007)
2010-02-10 00:34:13 +00:00
emaste
09b661ed8d MFC r198593:
Rename aac_fast_intr to aac_filter to reflect its current use.  Eliminate
  the fallback of using the filter as an interrupt handler, as it is no
  longer needed.

  Discussed with:       scottl, jhb
2010-02-09 22:05:30 +00:00
qingli
dbfb1f39c9 MFC r203401
Some of the existing ppp and vpn related scripts create and set
the IP addresses of the tunnel end points to the same value. In
these cases the loopback route is not installed for the local
end.
2010-02-09 19:27:54 +00:00
bms
61eba7c581 MFC Revision: 203574
Add sane-port (Scanner Access Now Easy) as port 6566.

Obtained from:  http://www.iana.org/assignments/port-numbers
2010-02-09 18:43:50 +00:00
emaste
c39123cbe1 MFC r203077:
Add missing return, in a rare case where we can't allocate memory in
  deallocate.

Submitted by: Ryan Stone (rysto32 at gmail dot com)
Approved by:  jasone
2010-02-09 13:07:32 +00:00
ru
67c8909d18 MFC: r198231: Properly re-create "-s size" argument to newfs(8). 2010-02-09 12:20:48 +00:00
jh
0527f7321b MFC r200781:
Cast time_t values to intmax_t and use %jd with printf.
2010-02-08 15:55:01 +00:00
jh
6cbfef4ad3 MFC r200780:
Remove non-working special case for pipe(2) from amd64-fbsd32.c and
i386-fbsd.c. Add pipe(2) to syscall table to decode it's pointer
argument properly and re-add special handling for pipe(2) return value
to print_syscall_ret().

PR:		bin/120870
2010-02-08 15:53:28 +00:00
jh
000376f24e MFC r200752:
Avoid sharing the file descriptor of the output file with traced
processes by setting the FD_CLOEXEC flag for the output file.

PR:		bin/140493
2010-02-08 15:50:51 +00:00
jh
47a3486c10 MFC r200751:
Add fork(2), getegid(2), geteuid(2), getgid(2), getpid(2), getpgid(2),
getpgrp(2), getppid(2), getsid(2) and getuid(2) to syscall table to
decode their arguments correctly.
2010-02-08 15:48:18 +00:00
attilio
6ab2afb04c MC r202889, r202940:
- Fix a race in sched_switch() of sched_4bsd.
  Block the td_lock when acquiring explicitly sched_lock in order to prevent
  races with other td_lock contenders.
- Merge the ULE's internal function thread_block_switch() into the global
  thread_lock_block() and make the former semantic as the default for
  thread_lock_block().
- Split out an invariant in order to have better checks.
2010-02-08 14:08:52 +00:00
davidxu
da62f37826 MFC r203414:
After busied the lock, re-read state word before checking waiters flag,
otherwise, the waiters bit may not be set and a wakeup is lost.
2010-02-08 03:11:55 +00:00
gavin
697ef42958 Merge r202115 from head:
Our standard "xterm" termcap entry supports colour, so this tip is redundant.
  As it happens, "xterm-color" has just been an alias for "xterm" since
  src/share/termcap/termcap.src 1.131 in September 2002.

PR:		docs/132959
2010-02-07 21:04:26 +00:00
dougb
286fe5b52a MFC 202961:
Upgrade to BIND 9.6.1-P3.

This version address the following vulnerabilities:

BIND 9 Cache Update from Additional Section
https://www.isc.org/advisories/CVE-2009-4022v6
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-4022
A nameserver with DNSSEC validation enabled may incorrectly add
unauthenticated records to its cache that are received during the
resolution of a recursive client query

BIND 9 DNSSEC validation code could cause bogus NXDOMAIN responses
https://www.isc.org/advisories/CVE-2010-0097
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2010-0097
There was an error in the DNSSEC NSEC/NSEC3 validation code that could
cause bogus NXDOMAIN responses (that is, NXDOMAIN responses for records
proven by NSEC or NSEC3 to exist) to be cached as if they had validated
correctly

These issues only affect systems with DNSSEC validation enabled.
2010-02-07 20:28:24 +00:00
dougb
4d2b1b10d9 MFC 202960:
Copyright-only changes to generated files as part of the 9.6.1-P3 update
2010-02-07 20:26:45 +00:00
marius
b8cdec64d8 MFC: r202900
Merge r203608 from amd64/i386:

In syscall(), reread syscall number and arguments after ptracestop(),
if debugger modified anything in the process environment.
2010-02-07 11:59:55 +00:00
kib
e896a698a5 MFC r202882:
For i386, amd64 and ia32 on amd64 MD syscall(), reread syscall number
and arguments after ptracestop(), if debugger modified anything in the
process environment.
2010-02-07 11:37:38 +00:00
kib
761ac8a283 MFC r202529:
vunref() the vnode in vm object deallocation code for OBJT_VNODE
appropriate number of times to prevent possible vnode reference leak.
2010-02-07 10:51:17 +00:00
kib
9adaa4699e MFC r202528:
Add vunref(9).
2010-02-07 10:44:44 +00:00
julian
ddbf933b14 MFC of 197952 and 198075
Virtualize the pfil hooks so that different jails may chose different
    packet filters. ALso allows ipfw to be enabled on on ejail and disabled
    on another. In 8.0 it's a global setting.
and
    Unbreak the VIMAGE build with IPSEC, broken with r197952 by
    virtualizing the pfil hooks.
    For consistency add the V_ to virtualize the pfil hooks in here as well.
2010-02-07 09:00:22 +00:00
ru
07aaef4a20 MFC: r203486: Shortening a passphrase caused wrong authentication key
to be used.
2010-02-07 06:22:28 +00:00
ume
6815fe2938 MFC r202916: Make strsignal(3) thread-safe. 2010-02-07 04:27:18 +00:00
marius
1f257d3b37 MFC: r203185
Implement handling of the third argument of cpu_switch().

PR:		143215
2010-02-06 17:33:39 +00:00
ume
f39b4efcc3 MFC r203200; Allow use of -6 option to "server" and "peer" in ntp.conf. 2010-02-06 15:32:42 +00:00
avg
105ceef6e7 MFC r203160: add static qualifier to definition of a static function 2010-02-06 12:17:20 +00:00
avg
63ac3cf8c4 MFC r197104,197105,197106,197107,197688,198237,199337,199338,200553,200554,
202771,202773: bring acpica version to 20100121

MFC details:
r197104 | jkim | 2009-09-12 01:48:53 +0300 (Sat, 12 Sep 2009) | 4 lines
MFV:    r196804
Import ACPICA 20090903

r197105 | jkim | 2009-09-12 01:49:34 +0300 (Sat, 12 Sep 2009) | 2 lines
Catch up with ACPICA 20090903.

r197106 | jkim | 2009-09-12 01:50:15 +0300 (Sat, 12 Sep 2009) | 2 lines
Catch up with ACPICA 20090903.

r197107 | jkim | 2009-09-12 01:56:08 +0300 (Sat, 12 Sep 2009) | 2 lines
Canonify include paths for newly added files.

r197688 | jkim | 2009-10-01 23:56:15 +0300 (Thu, 01 Oct 2009) | 4 lines
Compile ACPI debugger and disassembler for kernel modules
unconditionally.
These files will generate almost empty object files without
ACPI_DEBUG/DDB
options.  As a result, size of acpi.ko will increase slightly.

r198237 | jkim | 2009-10-19 19:12:58 +0300 (Mon, 19 Oct 2009) | 2 lines
Merge ACPICA 20091013.

r199337 | jkim | 2009-11-16 23:47:12 +0200 (Mon, 16 Nov 2009) | 2 lines
Merge ACPICA 20091112.

r199338 | jkim | 2009-11-16 23:53:56 +0200 (Mon, 16 Nov 2009) | 2 lines
Add a forgotten module Makefile change from the previous commit.

r200553 | jkim | 2009-12-15 00:24:04 +0200 (Tue, 15 Dec 2009) | 2 lines
Merge ACPICA 20091214.

r200554 | jkim | 2009-12-15 00:28:32 +0200 (Tue, 15 Dec 2009) | 3 lines
Remove _FDE quirk handling as these quirks are automatically repaired
by ACPICA layer since ACPICA 20091214.

r202771 | jkim | 2010-01-21 23:14:28 +0200 (Thu, 21 Jan 2010) | 2 lines
Merge ACPICA 20100121.

r202773 | jkim | 2010-01-21 23:31:39 +0200 (Thu, 21 Jan 2010) | 2 lines
Fix a new header inclusion.

Discussed with:		jkim, jhb
No objections from:	acpi@
2010-02-06 12:03:25 +00:00
jh
8d357f4e11 MFC r200632:
The input line length limit mentioned on the manual page was removed by
r176119.
2010-02-06 11:42:23 +00:00
jh
e07334a19c MFC r200441:
The input line length limit mentioned on the manual page was removed by
r179374.
2010-02-06 11:39:33 +00:00
mav
d6d24ee5fc MFC r203043, r203058:
Do not place fake interrupt register on chip.
Now we have better place for it.
2010-02-05 12:17:14 +00:00
mav
55add26e96 MFC r203034:
Restore SATA speed reporting, broken by ATA_CAM changes.
2010-02-05 12:09:43 +00:00