]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
13 years agoMFC r209228: device.hints: do install when WITHOUT_BOOT is set
avg [Thu, 8 Jul 2010 20:57:07 +0000 (20:57 +0000)]
MFC r209228: device.hints: do install when WITHOUT_BOOT is set

git-svn-id: svn://svn.freebsd.org/base/stable/8@209829 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r209193: sound/pcm: use non-const string with SYSCTL_STRING
avg [Thu, 8 Jul 2010 20:46:55 +0000 (20:46 +0000)]
MFC r209193: sound/pcm: use non-const string with SYSCTL_STRING

git-svn-id: svn://svn.freebsd.org/base/stable/8@209828 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r209425: udf_vnops: cosmetic followup to r208671
avg [Thu, 8 Jul 2010 20:40:57 +0000 (20:40 +0000)]
MFC r209425: udf_vnops: cosmetic followup to r208671

git-svn-id: svn://svn.freebsd.org/base/stable/8@209826 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r209062: fix a few cases where a string is passed via format
avg [Thu, 8 Jul 2010 20:38:48 +0000 (20:38 +0000)]
MFC r209062: fix a few cases where a string is passed via format
argument instead of via %s

Note: no MFC to stable/7

git-svn-id: svn://svn.freebsd.org/base/stable/8@209825 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r209056: vnode.h: expand debug macros to non-empty void statements
avg [Thu, 8 Jul 2010 20:17:56 +0000 (20:17 +0000)]
MFC r209056: vnode.h: expand debug macros to non-empty void statements
when DEBUG_VFS_LOCKS is disabled

git-svn-id: svn://svn.freebsd.org/base/stable/8@209823 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r209598:
weongyo [Thu, 8 Jul 2010 19:40:09 +0000 (19:40 +0000)]
MFC r209598:
  Initializes the ratectl for a node when the state is changed to RUN.
  This prevents a kernel fault by dividing with zero because the initial
  rate was 0 and didn't be initialized.

  Tested by:    Warren Block <wblock at wonkity.com>

git-svn-id: svn://svn.freebsd.org/base/stable/8@209822 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r209597:
weongyo [Thu, 8 Jul 2010 19:36:38 +0000 (19:36 +0000)]
MFC r209597:
  Fixes NULL pointer reference that it's occurred when the state is
  changed to RUN because ic->ic_newassoc isn't set anywhere now.  In the
  previous bwi_newassoc() is used to initialize AMRR rate routines.

  Tested by:    Warren Block <wblock at wonkity.com>

git-svn-id: svn://svn.freebsd.org/base/stable/8@209821 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMerge 209633, 209722 from head:
glebius [Thu, 8 Jul 2010 12:21:25 +0000 (12:21 +0000)]
Merge 209633, 209722 from head:

  The struct ipfw_rule_ref follows the struct m_tag. Deal with this
  correctly. This fixes breakage of ng_ipfw(4) in r201527.

Submitted by: Alexander Zagrebin <alexz visp.ru>

  Avoid double-free. In error cases ipfw(4) frees the mbuf(4), we don't
  need to.

PR: kern/145462

git-svn-id: svn://svn.freebsd.org/base/stable/8@209796 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMerge 209589 from head:
glebius [Thu, 8 Jul 2010 12:20:15 +0000 (12:20 +0000)]
Merge 209589 from head:
  After processing the O_SKIPTO opcode our cmd points to the next rule, and
  "match" processing at the end of inner loop would look ahead into the next
  rule, which is incorrect. Particularly, in the case when the next rule
  started with F_NOT opcode it was skipped blindly.

  To fix this, exit the inner loop with the continue operator forcibly and
  explicitly.

PR: kern/147798

git-svn-id: svn://svn.freebsd.org/base/stable/8@209795 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r209119,209325:
lstewart [Thu, 8 Jul 2010 03:41:57 +0000 (03:41 +0000)]
MFC r209119,209325:

- Add a utility macro to simplify calculating an aggregate sum from a DPCPU
  counter variable.

- Rename the internal for loop iterator to "_i" to avoid potential shadowing of
  external variables named "i". The "_" prefix is reserved for infrastructure
  type code and is therefore not expected to be used by normal code likely to
  call DPCPU_SUM(). [1]

- Change DPCPU_SUM to return the sum rather than calculate and assign it
  internally. Usage is now: "sum = DPCPU_SUM(dpcpu_var, member_to_sum);" [2]

- Fix some style nits. [3]

Sponsored by: FreeBSD Foundation
Suggested by: bde [3], mdf [1], kib [1,2], pjd [1,3]
Reviewed by: jhb, rpaulo, rwatson (old version of r209119), kib (r209325)

git-svn-id: svn://svn.freebsd.org/base/stable/8@209790 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r207223:
lstewart [Thu, 8 Jul 2010 03:28:25 +0000 (03:28 +0000)]
MFC r207223:

- Rework the underlying ALQ storage to be a circular buffer, which amongst other
  things allows variable length messages to be easily supported.

- Extend KPI with alq_writen() and alq_getn() to support variable length
  messages, which is enabled at ALQ creation time depending on the arguments
  passed to alq_open(). Also add variants of alq_open() and alq_post() that
  accept a flags argument. The KPI is still fully backwards compatible and
  shouldn't require any change in ALQ consumers unless they wish to utilise
  the new features.

- Introduce the ALQ_NOACTIVATE and ALQ_ORDERED flags to allow ALQ consumers
  to have more control over IO scheduling and resource acquisition
  respectively.

- Strengthen invariants checking.

- Document ALQ changes in ALQ(9) man page.

Sponsored by: FreeBSD Foundation
Reviewed by: gnn, jeff, rpaulo, rwatson

git-svn-id: svn://svn.freebsd.org/base/stable/8@209788 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r206028:
lstewart [Thu, 8 Jul 2010 02:46:42 +0000 (02:46 +0000)]
MFC r206028:

The ALQ should not be considered drained until it has been made inactive.

Sponsored by: FreeBSD Foundation
Reviewed by: dwmalone, jeff, rpaulo, rwatson (as part of a larger patch)

git-svn-id: svn://svn.freebsd.org/base/stable/8@209786 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r206027:
lstewart [Thu, 8 Jul 2010 02:43:52 +0000 (02:43 +0000)]
MFC r206027:

According to SLEEP(9), msleep() is deprecated in favour of mtx_sleep().

Sponsored by: FreeBSD Foundation
Reviewed by: dwmalone, jeff, rpaulo, rwatson (as part of a larger patch)

git-svn-id: svn://svn.freebsd.org/base/stable/8@209785 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r206026:
lstewart [Thu, 8 Jul 2010 02:41:55 +0000 (02:41 +0000)]
MFC r206026:

- Factor code to destroy an ALQ out of alq_close() into a private alq_destroy().

- Use the new alq_destroy() to properly handle a failure case in alq_open().

Sponsored by: FreeBSD Foundation
Reviewed by: dwmalone, jeff, rpaulo, rwatson (as part of a larger patch)

git-svn-id: svn://svn.freebsd.org/base/stable/8@209784 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r205959:
lstewart [Thu, 8 Jul 2010 02:35:37 +0000 (02:35 +0000)]
MFC r205959:

Add support for ALQ(9) to be compiled and loaded as a kernel module.

Sponsored by: FreeBSD Foundation
Reviewed by: dwmalone, jeff, rpaulo, rwatson

git-svn-id: svn://svn.freebsd.org/base/stable/8@209783 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r209695
marius [Wed, 7 Jul 2010 19:52:50 +0000 (19:52 +0000)]
MFC: r209695

- Pin the IPI cache and TLB demap functions in order to prevent migration
  between determining the other CPUs and calling cpu_ipi_selected(), which
  apart from generally doing the wrong thing can lead to a panic when a
  CPU is told to IPI itself (which sun4u doesn't support).
  Reported and tested by: Nathaniel W Filardo
- Add __unused where appropriate.

git-svn-id: svn://svn.freebsd.org/base/stable/8@209776 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoPackage set for 8.1-RELEASE. We still have a 2Gb maximum file size
kensmith [Wed, 7 Jul 2010 17:05:32 +0000 (17:05 +0000)]
Package set for 8.1-RELEASE.  We still have a 2Gb maximum file size
limit caused by cvsup still being used for some of our mirror system.
That is being worked on.

Reviewed by: re@, portmgr@

git-svn-id: svn://svn.freebsd.org/base/stable/8@209770 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r209114:
nwhitehorn [Wed, 7 Jul 2010 14:21:40 +0000 (14:21 +0000)]
MFC r209114:
Make SMP work on MPC7400-based Apple desktops like the PowerMac3,3.

git-svn-id: svn://svn.freebsd.org/base/stable/8@209767 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r209222:
nwhitehorn [Wed, 7 Jul 2010 14:19:58 +0000 (14:19 +0000)]
MFC r209222:

Modify the console mouse pointer drawing routine to use single-byte writes
instead of 4-byte ones. Because the mouse pointer can start part way
through a character cell, 4-byte memory operations are not necessarily
aligned, triggering a fatal alignment exception when the console pointer
was moved on PowerPC G5 systems.

git-svn-id: svn://svn.freebsd.org/base/stable/8@209766 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r209490,209492:
nwhitehorn [Wed, 7 Jul 2010 14:15:51 +0000 (14:15 +0000)]
MFC r209490,209492:

Move default HZ from 100 to 1000 on powerpc, and rearrange the logic
slightly, so that it is set to 100 on ARM and MIPS and defaults to 1000,
instead of defaulting to 100, and setting it to 1000 on everything but
ARM and MIPS.

Reviewed by: marcel

git-svn-id: svn://svn.freebsd.org/base/stable/8@209765 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r207303 (originally by kmacy):
bz [Tue, 6 Jul 2010 16:58:24 +0000 (16:58 +0000)]
MFC r207303 (originally by kmacy):

  need to initialize the lock before it is used

Reported on: stable@ (MFC missing)

git-svn-id: svn://svn.freebsd.org/base/stable/8@209732 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r207948
brueffer [Sun, 4 Jul 2010 18:48:43 +0000 (18:48 +0000)]
MFC: r207948

- Missing full stops
- Upper case the first character of an description
- Section headings do not need to be quoted. From OpenBSD's make.1, revision 1.81
- Plural of suffix is suffixes. From OpenBSD's make.1, revision 1.61
- s/seperating/separating/

git-svn-id: svn://svn.freebsd.org/base/stable/8@209700 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r207946
brueffer [Sun, 4 Jul 2010 18:41:00 +0000 (18:41 +0000)]
MFC: r207946

The previous revision actually removed the bug being hinted at, so
go ahead and remove the hint.

git-svn-id: svn://svn.freebsd.org/base/stable/8@209698 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r209169:
bschmidt [Sun, 4 Jul 2010 12:30:55 +0000 (12:30 +0000)]
MFC r209169:
Fix TX retry rate handling. tx->linkq is an index to a rate table
beginning with the highest available rate. Currently we always use
54m for the first retry no matter what AMRR has choosen. Fix this
by setting the index to the next lower rate.

Approved by: rpaulo (mentor)
Tested by: Brandon Gooch <jamesbrandongooch at gmail.com>

git-svn-id: svn://svn.freebsd.org/base/stable/8@209694 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r208509:
bz [Sun, 4 Jul 2010 12:27:18 +0000 (12:27 +0000)]
MFC r208509:

  MFp4 @178364:

  Implement an optional delay to the ddb reset/reboot command.

  This allows textdumps to be run automatically with unattended reboots
  after a resonable timeout, while still permitting an administrator to
  break into debugger if attached to the console at the time of the
  event for further debugging.  Cap the maximum delay at 1 week to avoid
  highly accidental results, and default to 15s in case of problems
  parsing the timeout value.

  Move hex2dec helper function from db_thread.c to db_command.c to make
  it generally available and prefix it with a "db_" to avoid namespace
  collisions.

  Reviewed by:  rwatson

git-svn-id: svn://svn.freebsd.org/base/stable/8@209692 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r208508:
bz [Sun, 4 Jul 2010 12:22:17 +0000 (12:22 +0000)]
MFC r208508:

  MFp4 @178283:

  Improve IPsec flow distribution for better netisr parallelism.
  Instead of using the pointer that would have the last bits masked in a %
  statement in netisr_select_cpuid() to select the queue, use the SPI.

  Reviewed by:  rwatson

git-svn-id: svn://svn.freebsd.org/base/stable/8@209691 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r209337: sh: Fix compilation with -DNO_HISTORY.
jilles [Sat, 3 Jul 2010 21:31:05 +0000 (21:31 +0000)]
MFC r209337: sh: Fix compilation with -DNO_HISTORY.

The LINENO code uses snprintf() and relied on "myhistedit.h" to pull in the
necessary <stdio.h>.

Compiling with -DNO_HISTORY disables all editing and history support and
allows linking without -ledit -ltermcap. This may be useful for embedded
systems.

git-svn-id: svn://svn.freebsd.org/base/stable/8@209676 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r209106:
kib [Sat, 3 Jul 2010 18:19:59 +0000 (18:19 +0000)]
MFC r209106:
Add another variation of make_dev(9), make_dev_p(9), that is allowed
to fail and can return useful error code.

MFC r209237 (by jh):
Correct the function name in a KASSERT.

MFC r209244 (by ed):
Remove the unit argument from the recently added make_dev_p().

git-svn-id: svn://svn.freebsd.org/base/stable/8@209668 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r209105:
kib [Sat, 3 Jul 2010 18:09:11 +0000 (18:09 +0000)]
MFC r209105:
When make_dev_credf(MAKEDEV_WAITOK) is called, use
devctl_notify_f(M_WAITOK) for devfs notifications.

git-svn-id: svn://svn.freebsd.org/base/stable/8@209667 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r209104:
kib [Sat, 3 Jul 2010 17:57:59 +0000 (17:57 +0000)]
MFC r209104:
Add modifications of devctl_notify(9) functions that take flags. Use
flags to specify M_WAITOK/M_NOWAIT. M_WAITOK allows devctl to sleep for
the memory allocation.

git-svn-id: svn://svn.freebsd.org/base/stable/8@209666 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r207923
brueffer [Sat, 3 Jul 2010 12:14:01 +0000 (12:14 +0000)]
MFC: r207923

Document FIONREAD, FIONWRITE and FIONSPACE.

git-svn-id: svn://svn.freebsd.org/base/stable/8@209661 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r207964
brueffer [Sat, 3 Jul 2010 12:09:45 +0000 (12:09 +0000)]
MFC: r207964

Casting size_t to uintmax_t is not necessary anymore. This also
removes the need for stdint.h inclusion.

git-svn-id: svn://svn.freebsd.org/base/stable/8@209660 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r207975
brueffer [Sat, 3 Jul 2010 09:53:35 +0000 (09:53 +0000)]
MFC: r207975

IBM ServeRAID M5015 SAS/SATA works.

git-svn-id: svn://svn.freebsd.org/base/stable/8@209658 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r207947
brueffer [Sat, 3 Jul 2010 09:50:48 +0000 (09:50 +0000)]
MFC: r207947

The -d flag is non-optional.

git-svn-id: svn://svn.freebsd.org/base/stable/8@209657 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r207945
brueffer [Sat, 3 Jul 2010 09:42:15 +0000 (09:42 +0000)]
MFC: r207945

Comment in the BUGS section header. Matches what's in ipfilter 5.10.

git-svn-id: svn://svn.freebsd.org/base/stable/8@209655 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r209360: add C message catalogue entries for newer errnos.
maxim [Fri, 2 Jul 2010 09:23:06 +0000 (09:23 +0000)]
MFC r209360: add C message catalogue entries for newer errnos.

git-svn-id: svn://svn.freebsd.org/base/stable/8@209643 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r209295:
kib [Fri, 2 Jul 2010 09:19:27 +0000 (09:19 +0000)]
MFC r209295:
Add unwind annotations to the asm part of crt1 on i386. Terminate the
process with SIGTRAP if _start1() unexpectedly returns.

git-svn-id: svn://svn.freebsd.org/base/stable/8@209642 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r209294:
kib [Fri, 2 Jul 2010 09:17:18 +0000 (09:17 +0000)]
MFC r209294:
Add -fno-asynchronous-unwind-tables to disable unwind table generation
for crtbegin/crtend. While there, disable omitting the frame pointer.

git-svn-id: svn://svn.freebsd.org/base/stable/8@209641 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r209540
tuexen [Thu, 1 Jul 2010 12:55:34 +0000 (12:55 +0000)]
MFC r209540
 * Do not dereference a NULL pointer when calling an SCTP send syscall
   not providing a destination address and using ktrace.
 * Do not copy out kernel memory when providing sinfo for sctp_recvmsg().
 Both bug where reported by Valentin Nechayev.
 The first bug results in a kernel panic.

git-svn-id: svn://svn.freebsd.org/base/stable/8@209624 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r209483:
kib [Wed, 30 Jun 2010 11:47:03 +0000 (11:47 +0000)]
MFC r209483:
Clear DF bit in eflags/rflags on the kernel entry.

git-svn-id: svn://svn.freebsd.org/base/stable/8@209608 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r203584,r203711,r203733,r204379:
delphij [Tue, 29 Jun 2010 23:08:33 +0000 (23:08 +0000)]
MFC r203584,r203711,r203733,r204379:

Teach obsolete NO_MAIL* friends.

git-svn-id: svn://svn.freebsd.org/base/stable/8@209601 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r205942:
delphij [Mon, 28 Jun 2010 17:06:19 +0000 (17:06 +0000)]
MFC r205942:

Merge OpenBSD revisions 1.4 through 1.9, mostly style cleanups.

Obtained from: OpenBSD

git-svn-id: svn://svn.freebsd.org/base/stable/8@209576 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r209013:
rpaulo [Mon, 28 Jun 2010 12:20:36 +0000 (12:20 +0000)]
MFC r209013:
Add missing braces.

git-svn-id: svn://svn.freebsd.org/base/stable/8@209572 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r209541, r209548:
rpaulo [Mon, 28 Jun 2010 11:53:22 +0000 (11:53 +0000)]
MFC r209541, r209548:
Fix the AR_SREV_MERLIN_20_OR_LATER() check.

git-svn-id: svn://svn.freebsd.org/base/stable/8@209569 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r209470,r209499
tuexen [Mon, 28 Jun 2010 10:50:14 +0000 (10:50 +0000)]
MFC r209470,r209499
 * Implement sctp_does_stcb_own_this_addr() correclty. It was taking the
   wrong side into account.
 * sctp_findassociation_ep_addr() must check the local address if available.
 This fixes a bug where ABORT chunks were accepted even in the case where
 the local was not owned by the endpoint.
 Thanks to brucec for pointing out a bug in my first version of the fix.

git-svn-id: svn://svn.freebsd.org/base/stable/8@209568 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r208729:
mav [Mon, 28 Jun 2010 08:10:55 +0000 (08:10 +0000)]
MFC r208729:
Recommend disabling LAPIC timer instead whole APIC for fixing C3 state.

PR:             docs/147180
Submitted by:   Tobias Rehbein

git-svn-id: svn://svn.freebsd.org/base/stable/8@209566 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r204918 (jkim):
mav [Mon, 28 Jun 2010 08:09:33 +0000 (08:09 +0000)]
MFC r204918 (jkim):
Document a new sysctl variable and a loader tunable.

git-svn-id: svn://svn.freebsd.org/base/stable/8@209565 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r209361; Add a missing prototype
brian [Mon, 28 Jun 2010 07:15:30 +0000 (07:15 +0000)]
MFC r209361; Add a missing prototype

PR: 145232
Submitted by: gcooper

git-svn-id: svn://svn.freebsd.org/base/stable/8@209563 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r209332: Shoot a stray cat!
brian [Mon, 28 Jun 2010 07:03:18 +0000 (07:03 +0000)]
MFC r209332: Shoot a stray cat!

PR: 145447
Submitted by: u at netbeisser dot de

git-svn-id: svn://svn.freebsd.org/base/stable/8@209562 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r209331 at stable/8/etc and stable/8/tools; Remove vestiges of 'slip'.
brian [Mon, 28 Jun 2010 06:59:57 +0000 (06:59 +0000)]
MFC r209331 at stable/8/etc and stable/8/tools; Remove vestiges of 'slip'.

PR: 145648
Submitted by: alexbestms at wwu dot de and spam at rm-rf dot kiev dot ua

git-svn-id: svn://svn.freebsd.org/base/stable/8@209561 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r209329; add a missing linefeed
brian [Mon, 28 Jun 2010 04:54:16 +0000 (04:54 +0000)]
MFC r209329; add a missing linefeed

PR: 147337
Submitted by: cyberleo at cyberleo dot net

git-svn-id: svn://svn.freebsd.org/base/stable/8@209560 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r209367:
kib [Mon, 28 Jun 2010 01:36:22 +0000 (01:36 +0000)]
MFC r209367:
Ensure that VOP_ACCESSX is called with exclusively locked vnode for
the kernel compiled with QUOTA option.

git-svn-id: svn://svn.freebsd.org/base/stable/8@209557 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r209120:
kib [Mon, 28 Jun 2010 01:16:34 +0000 (01:16 +0000)]
MFC r209120:
In NFS clients, instead of inconsistently using #ifdef
DIAGNOSTIC and #ifndef DIAGNOSTIC for debug assertions, prefer
KASSERT(). Also change one #ifdef DIAGNOSTIC in the new nfs server.

git-svn-id: svn://svn.freebsd.org/base/stable/8@209556 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 196750,196751,196818,196819 (ache@):
delphij [Sun, 27 Jun 2010 03:06:20 +0000 (03:06 +0000)]
MFC 196750,196751,196818,196819 (ache@):

196750:

1) Use isprint() instead of hardcoded values to detect non-printable.
2) Use (unsigned char) cast in waddch() calls.
It fix highlighting bug: sign extension of 8bit to the attributes area.
3) Use setlocale() in any case.

196751:

Move <locale.h> out of NO_CATGETS define too (as setlocale() in prev.
commit)

196818:

1) Remove single occurance of HAS_CTYPE ifdef, ctype functions
used here for a long time and needs their header in anycase.
2) Add (unsigned char) casts to more ctype macros.
3) Simplify menu input handling using ctype instead of range unguarded
hardcoded tricks.

196819:
Remove single occurance of HAS_CTYPE ifdef, ctype functions
used here for a long time and needs their header in anycase.

Requested by: Patrick Lamaiziere <patfbsd davenulle org>
Ok'ed by: ache

git-svn-id: svn://svn.freebsd.org/base/stable/8@209547 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r200539 (by rpaulo):
ae [Fri, 25 Jun 2010 08:53:51 +0000 (08:53 +0000)]
MFC r200539 (by rpaulo):
Add Microsoft and NetBSD partition types handling.

Approved by: kib (mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/8@209522 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 208915,208991:
jhb [Thu, 24 Jun 2010 13:17:45 +0000 (13:17 +0000)]
MFC 208915,208991:
- Use a bit more care when moving I/O APIC interrupts between CPUs.  Mask
  the interrupt followed by a brief delay if it is not currently masked
  before moving the interrupt.
- Move the icu_lock out of ioapic_program_intpin() and into callers.  This
  closes a race where ioapic_program_intpin() could use a stale value of
  the masked state to compute the masked bit in the register.

git-svn-id: svn://svn.freebsd.org/base/stable/8@209506 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 208392:
jhb [Thu, 24 Jun 2010 13:11:12 +0000 (13:11 +0000)]
MFC 208392:
- Adjust the whitespace for the lines that output fields in 'show pcpu' in
  DDB so that all the fields line up.
- Print out the tid of the per-CPU idlethread instead of the pid since
  the idle process is now shared across all idle threads.

git-svn-id: svn://svn.freebsd.org/base/stable/8@209505 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 208391:
jhb [Thu, 24 Jun 2010 12:08:50 +0000 (12:08 +0000)]
MFC 208391:
Assert that the thread passed to sched_bind() and sched_unbind() is
curthread as those routines are only supported for curthread currently.

git-svn-id: svn://svn.freebsd.org/base/stable/8@209503 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r207096 (by marcel):
ae [Thu, 24 Jun 2010 06:31:23 +0000 (06:31 +0000)]
MFC r207096 (by marcel):
Add and describe GEOM_PART_EBR.

Approved by: mav (mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/8@209498 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r207094 (by marcel):
ae [Thu, 24 Jun 2010 05:52:44 +0000 (05:52 +0000)]
MFC r207094 (by marcel):
Implement the resize verb and add support for resizing partitions
for all schemes but EBR.

MFC r207095 (by marcel):
Implement the resize command for resizing partitions. Without new
size, the partition in question is resized to fill all available
space.

Approved by: kib (mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/8@209497 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r208647,r208654: Clarify devfs manpages slightly.
jilles [Wed, 23 Jun 2010 20:59:00 +0000 (20:59 +0000)]
MFC r208647,r208654: Clarify devfs manpages slightly.

mount(8): add xref to devfs(5)
devfs(5): change example to something more likely to be useful (it is not
necessary to mount a devfs on /dev manually, but for chroots/jails it is
often needed), mention since when devfs is preferred to device nodes on ufs
and when device nodes on ufs stopped working

PR: 146600

git-svn-id: svn://svn.freebsd.org/base/stable/8@209484 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoHoist mergeinfo for sys/geom/sched up to sys.
jhb [Wed, 23 Jun 2010 19:28:36 +0000 (19:28 +0000)]
Hoist mergeinfo for sys/geom/sched up to sys.

git-svn-id: svn://svn.freebsd.org/base/stable/8@209480 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoHoist mergeinfo for sys/dev/ixgbe up to sys.
jhb [Wed, 23 Jun 2010 19:22:38 +0000 (19:22 +0000)]
Hoist mergeinfo for sys/dev/ixgbe up to sys.

git-svn-id: svn://svn.freebsd.org/base/stable/8@209479 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 198988:
jhb [Wed, 23 Jun 2010 18:46:10 +0000 (18:46 +0000)]
MFC 198988:
Take a step towards removing if_watchdog/if_timer.  Don't explicitly set
if_watchdog/if_timer to NULL/0 when initializing an ifnet.  if_alloc()
sets those members to NULL/0 already.

git-svn-id: svn://svn.freebsd.org/base/stable/8@209477 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 208390:
jhb [Wed, 23 Jun 2010 18:00:19 +0000 (18:00 +0000)]
MFC 208390:
Allow a const char * to be passed as the process name to kproc_kthread_add()
without generating a warning.

git-svn-id: svn://svn.freebsd.org/base/stable/8@209476 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 208388:
jhb [Wed, 23 Jun 2010 17:56:20 +0000 (17:56 +0000)]
MFC 208388:
- Set 'dmadat' earlier so that we properly setup the heap if we fail to
  locate a high memory area for the heap using the SMAP.
- Read the number of hard drive devices from the BIOS instead of hardcoding
  a limit of 128.  Some BIOSes duplicate disk devices once you get beyond
  the maximum drive number.

git-svn-id: svn://svn.freebsd.org/base/stable/8@209474 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 209213:
jhb [Wed, 23 Jun 2010 17:04:42 +0000 (17:04 +0000)]
MFC 209213:
When updating individual CPU's lowest Cx state to use, never set it to a
state lower than the lowest one supported by the current CPU.  This closes
some races with changes to the hw.acpi.cpu_cx_lowest sysctl while Cx
states for individual CPUs were changing (e.g. unplugging the AC adapter
of a laptop) that could result in panics.

git-svn-id: svn://svn.freebsd.org/base/stable/8@209471 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r209369:
nwhitehorn [Wed, 23 Jun 2010 13:13:14 +0000 (13:13 +0000)]
MFC r209369:

Temporarily disable instruction relocation while setting up the kernel's
IBAT entry in early boot in order to prevent possible faults from races
between the instruction cache and the MMU.

PR: powerpc/148003

git-svn-id: svn://svn.freebsd.org/base/stable/8@209464 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r208920:
kib [Wed, 23 Jun 2010 10:06:57 +0000 (10:06 +0000)]
MFC r208920:
Reorganize the code in bdwrite() which handles move of dirtiness from
the buffer pages to buffer. Drain the VPO_BUSY bit of the buffer pages
before setting valid and clean bits.

Stable/8 version of vfs_page_set_validclean() requires page queue lock.

Tested by: pho

git-svn-id: svn://svn.freebsd.org/base/stable/8@209459 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 209286:
dougb [Tue, 22 Jun 2010 21:12:44 +0000 (21:12 +0000)]
MFC 209286:

Add the AAAA address for i.root-servers.net

git-svn-id: svn://svn.freebsd.org/base/stable/8@209448 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r209341:
mav [Tue, 22 Jun 2010 19:24:07 +0000 (19:24 +0000)]
MFC r209341:
Report transport type in XPT_PATH_INQ.

git-svn-id: svn://svn.freebsd.org/base/stable/8@209439 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r209340:
mav [Tue, 22 Jun 2010 19:22:34 +0000 (19:22 +0000)]
MFC r209340:
Report transport type in XPT_PATH_INQ.

PR: i386/147929

git-svn-id: svn://svn.freebsd.org/base/stable/8@209438 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r198478 (by lulf):
ae [Tue, 22 Jun 2010 18:24:26 +0000 (18:24 +0000)]
MFC r198478 (by lulf):
- Initialize variable in order to avoid GCC warning and enable WARNS=6.

PR: bin/139970
Submitted by: Ulrich Spörlein <uqs -at- spoerlein.net>
Approved by: kib (mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/8@209434 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agomerge r196650 (check that tty != NULL, prevents segfault on session close)
des [Tue, 22 Jun 2010 15:01:23 +0000 (15:01 +0000)]
merge r196650 (check that tty != NULL, prevents segfault on session close)

git-svn-id: svn://svn.freebsd.org/base/stable/8@209430 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r198235:
ae [Tue, 22 Jun 2010 09:45:20 +0000 (09:45 +0000)]
MFC r198235:
Clean up markup (mainly).

Approved by: kib (mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/8@209427 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r209199:
kib [Tue, 22 Jun 2010 08:58:13 +0000 (08:58 +0000)]
MFC r209199:
Fix the syscall module name after r205320.

git-svn-id: svn://svn.freebsd.org/base/stable/8@209426 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r208672: g_label: fix possible NULL pointer dereference
avg [Tue, 22 Jun 2010 08:17:20 +0000 (08:17 +0000)]
MFC r208672: g_label: fix possible NULL pointer dereference

git-svn-id: svn://svn.freebsd.org/base/stable/8@209423 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r208670: amdsbwd: fix nonsensical timeout calculations
avg [Tue, 22 Jun 2010 07:55:30 +0000 (07:55 +0000)]
MFC r208670: amdsbwd: fix nonsensical timeout calculations

git-svn-id: svn://svn.freebsd.org/base/stable/8@209418 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r208669: zfs boot: fix error handling in zfs_readdir
avg [Tue, 22 Jun 2010 07:54:19 +0000 (07:54 +0000)]
MFC r208669: zfs boot: fix error handling in zfs_readdir

git-svn-id: svn://svn.freebsd.org/base/stable/8@209417 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r207178:
ae [Tue, 22 Jun 2010 07:38:30 +0000 (07:38 +0000)]
MFC r207178:
Fix undo for schemes that have internal partitions. Internal partitions
do not constitute user-visible or active partitions and as such should
not prevent undoing pending operations.

While here, initialize the last usable sector for the placeholder geom
based on the null scheme, created to allow undoing the destruction of
a scheme. This gives consistent output with "gpart show".

Approved by: mav (mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/8@209414 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoThis is an MFC of 209188
mjacob [Tue, 22 Jun 2010 04:40:50 +0000 (04:40 +0000)]
This is an MFC of 209188

For the target port groups structures, don't allocate the initial element.
This makes things easier for target implementations to calculate how many
elements they need to allocate.

git-svn-id: svn://svn.freebsd.org/base/stable/8@209412 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoThis is an MFC of 208918
mjacob [Tue, 22 Jun 2010 04:38:41 +0000 (04:38 +0000)]
This is an MFC of 208918

One byte off for scsi_target_group cdb.

git-svn-id: svn://svn.freebsd.org/base/stable/8@209411 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoThis is an MFC of 208905
mjacob [Tue, 22 Jun 2010 04:37:05 +0000 (04:37 +0000)]
This is an MFC of 208905

Make additional definitions up to and including SPC-4. Add in definitions
for REPORT and SET TARGET PORT GROUP commands (foundations for future work).

Regularize opcodes to be upper case hex.

Pick *one* of tab or space after #define (tab) and stick with that.

git-svn-id: svn://svn.freebsd.org/base/stable/8@209410 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r209191
rmacklem [Tue, 22 Jun 2010 01:30:46 +0000 (01:30 +0000)]
MFC: r209191
Add MODULE_DEPEND() macros to the experimental NFS client and
server so that the modules will load when kernels are built with
none of the NFS* configuration options specified. I believe this
resolves the problems reported by PR kern/144458 and the email on
freebsd-stable@ posted by Dmitry Pryanishnikov on June 13.

git-svn-id: svn://svn.freebsd.org/base/stable/8@209409 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r208969,209268:
delphij [Mon, 21 Jun 2010 22:00:57 +0000 (22:00 +0000)]
MFC r208969,209268:

Driver update of twa(4) from LSI.  Many thanks to LSI for continuing to
support FreeBSD.

  1) Timeout ioctl command timeouts.
       Do not reset the controller if ioctl command completed
       successfully.
  2) Remove G66_WORKAROUND code (this bug never shipped).
  3) Remove unnecessary interrupt lock (intr_lock).
  4) Timeout firmware handshake for PChip reset (don't wait forever).
  5) Handle interrupts inline.
  6) Unmask command interrupt ONLY when adding a command to the pending
     queue.
  7) Mask command interrupt ONLY after removing the last command from
     the pending queue.
  8) Remove TW_OSLI_DEFERRED_INTR_USED code.
  9) Replace controller "state" with separate data fields to avoid races:

       TW_CLI_CTLR_STATE_ACTIVE                     ctlr->active
       TW_CLI_CTLR_STATE_INTR_ENABLED               ctlr->interrupts_enabled
       TW_CLI_CTLR_STATE_INTERNAL_REQ_BUSY          ctlr->internal_req_busy
       TW_CLI_CTLR_STATE_GET_MORE_AENS              ctlr->get_more_aens
       TW_CLI_CTLR_STATE_RESET_IN_PROGRESS          ctlr->reset_in_progress
       TW_CLI_CTLR_STATE_RESET_PHASE1_IN_PROGRESS   ctlr->reset_phase1_in_progress

 10) Fix "req" leak in twa_action() when simq is frozen and req is NOT
     null.
 11) Replace softc "state" with separate data fields to avoid races:
       TW_OSLI_CTLR_STATE_OPEN                      sc->open
       TW_OSLI_CTLR_STATE_SIMQ_FROZEN               sc->simq_frozen
 12) Fix reference to TW_OSLI_REQ_FLAGS_IN_PROGRESS in
     tw_osl_complete_passthru()
 13) Use correct CAM status values.
       Change CAM_REQ_CMP_ERR to CAM_REQ_INVALID.
       Remove use of CAM_RELEASE_SIMQ for physical data addresses.
 14) Do not freeze/ release the simq with non I/O commands.
       When it is appropriate to temporarily freeze the simq with an I/O
       command use:
         xpt_freeze_simq(sim, 1);
         ccb->ccb_h.status |= CAM_RELEASE_SIMQ;
       otherwise use:
         xpt_freeze_simq(sim, 1);
         xpt_release_simq(sim, 1);

Submitted by: Tom Couch <tom.couch lsi.com>
PR: kern/147695

git-svn-id: svn://svn.freebsd.org/base/stable/8@209404 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r209122:
kaiw [Mon, 21 Jun 2010 13:47:29 +0000 (13:47 +0000)]
MFC r209122:

  * Improve compatibility with existing application code by permitting the
    use of `elf_getbase()` on non-archive members. This change is needed
    for gcc LTO (-flto) to work properly.
  * Style fix: paranthesize returned values.
  * Document the current behaviour of `elf_getbase()`.

git-svn-id: svn://svn.freebsd.org/base/stable/8@209393 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r208886:
ae [Mon, 21 Jun 2010 05:42:36 +0000 (05:42 +0000)]
MFC r208886:

libgeom(3) does strdup of param name.
Don't leak memory when deleting param from gctl_req.

Approved by: mav (mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/8@209385 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoThis is an MFC of 208895.
mjacob [Mon, 21 Jun 2010 04:37:39 +0000 (04:37 +0000)]
This is an MFC of 208895.

Fix XPT_GET_TRAN_SETTING for FC which has been broken for while so that
it will figure out the correct target to handle index and be able to find
things like WWPN, etc.

git-svn-id: svn://svn.freebsd.org/base/stable/8@209383 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r209155:
mav [Sun, 20 Jun 2010 10:23:46 +0000 (10:23 +0000)]
MFC r209155:
Fix bug introduced in SVN rev 194985. When calling pic_assign_cpu()
for pre-bound IRQs during boot, submit there LAPIC ID, same as in other
places, not CPU ID.

git-svn-id: svn://svn.freebsd.org/base/stable/8@209365 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFH r200600: Clarify what's meant by NUL for getline.3
uqs [Sat, 19 Jun 2010 18:38:03 +0000 (18:38 +0000)]
MFH r200600: Clarify what's meant by NUL for getline.3

PR: docs/141125
Submitted by: Jeremy Huddleston <jeremyhu@apple.com>

git-svn-id: svn://svn.freebsd.org/base/stable/8@209349 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC revs 209026 and 209085:
marcel [Sat, 19 Jun 2010 04:57:58 +0000 (04:57 +0000)]
MFC revs 209026 and 209085:
o   Bump MAX_BPAGES from 256 to 1024.
o   Synchronize the kernel entry on all CPUs with the use of the ptc.g
    instruction on a single CPU by implementing a bare-bones readers-
    writer lock.

git-svn-id: svn://svn.freebsd.org/base/stable/8@209326 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoThis is an MFC of 208849
mjacob [Sat, 19 Jun 2010 00:41:29 +0000 (00:41 +0000)]
This is an MFC of 208849

Be more specific about which CDB length we're going to use. Not really a likely
bug but we might as well be clearer.

git-svn-id: svn://svn.freebsd.org/base/stable/8@209324 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoThis is an MFC of 208809
mjacob [Sat, 19 Jun 2010 00:39:19 +0000 (00:39 +0000)]
This is an MFC of 208809

Make the internal target > SPC2 (so REPORT LUNS can be tested).
Give the NIL inquiry data real values other than just plain 0x7f
in the first byte.

git-svn-id: svn://svn.freebsd.org/base/stable/8@209323 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoThis is an MFC of 208808
mjacob [Sat, 19 Jun 2010 00:37:14 +0000 (00:37 +0000)]
This is an MFC of 208808

I was getting panics in sleepq_add for the second sleep in isp_kthread.
I don't know why- but it occurred to me in looking at the second sleep
is that all I want is a pause- not an actual sleep. So do that instead.

git-svn-id: svn://svn.freebsd.org/base/stable/8@209322 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoThis is an MFC of 208761
mjacob [Fri, 18 Jun 2010 21:37:27 +0000 (21:37 +0000)]
This is an MFC of 208761

Various minor and not so minor fixes suggested by Coverity.
In at least one case, it's amazing that target mode worked at all.

git-svn-id: svn://svn.freebsd.org/base/stable/8@209317 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC of E1000 drivers:
jfv [Fri, 18 Jun 2010 17:22:08 +0000 (17:22 +0000)]
MFC of E1000 drivers:
  Stability fixes from M.Tuexen
  Cool stats changes from gnn
  Changes for POLL friendliness from John Baldwin

  Thanks everyone!

MFC to RELENG8.1 asap

git-svn-id: svn://svn.freebsd.org/base/stable/8@209309 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC of ixgbe driver version 2.2.1
jfv [Fri, 18 Jun 2010 16:36:57 +0000 (16:36 +0000)]
MFC of ixgbe driver version 2.2.1
  -mostly stability fixes

MFC to RELENG 8.1 asap

git-svn-id: svn://svn.freebsd.org/base/stable/8@209308 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r207578:
kan [Fri, 18 Jun 2010 16:14:37 +0000 (16:14 +0000)]
MFC r207578:
Do not encode more than CTF_MAX_VLEN(1023) enum members.

CTF can not represent enums with more than CTF_MAX_VLEN members, but
ctfconvert will happily ignore that limitation and create CTF section no
other tool can interpret.

This change is different from similar change from upstream, which just
returns an error if big enum is encountered.  Doing that means that
every FreeBSD kernel with compiled in hwpmc will have no useable CTF
information due to pmc_event enum having 1236+ members.

git-svn-id: svn://svn.freebsd.org/base/stable/8@209306 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r208994:
kan [Fri, 18 Jun 2010 15:25:57 +0000 (15:25 +0000)]
MFC r208994:

Do not require pos parameter to be zero in MAP_ANONYMOUS mmap requests
in Linux emulation layer. Linux seems to only require that pos is
page-aligned, but otherwise ignores it. Default FreeBSD mmap parameter
checking is too strict to allow some Linux binaries to run. tsMuxeR is
one example of such a binary.

Discussed with: jhb

git-svn-id: svn://svn.freebsd.org/base/stable/8@209304 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r208763:
kan [Fri, 18 Jun 2010 15:17:38 +0000 (15:17 +0000)]
MFC r208763:
Plug possible memory leak.

Found by:  Coverity Prevent

git-svn-id: svn://svn.freebsd.org/base/stable/8@209303 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f