]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
13 years agosh: Fix some warnings in code for arithmetic expressions.
jilles [Sat, 5 Mar 2011 13:27:13 +0000 (13:27 +0000)]
sh: Fix some warnings in code for arithmetic expressions.

Submitted by: eadler

13 years agoRegenerate.
trasz [Sat, 5 Mar 2011 12:46:24 +0000 (12:46 +0000)]
Regenerate.

13 years agoAdd two new system calls, setloginclass(2) and getloginclass(2). This makes
trasz [Sat, 5 Mar 2011 12:40:35 +0000 (12:40 +0000)]
Add two new system calls, setloginclass(2) and getloginclass(2).  This makes
it possible for the kernel to track login class the process is assigned to,
which is required for RCTL.  This change also make setusercontext(3) call
setloginclass(2) and makes it possible to retrieve current login class using
id(1).

Reviewed by: kib (as part of a larger patch)

13 years agoBe sure to stay within the bounds of the mod_str array when displaying
np [Sat, 5 Mar 2011 04:19:38 +0000 (04:19 +0000)]
Be sure to stay within the bounds of the mod_str array when displaying
the transceiver type.

13 years agoThere is no need to hold an ingress queue's lock while processing its
np [Sat, 5 Mar 2011 04:04:23 +0000 (04:04 +0000)]
There is no need to hold an ingress queue's lock while processing its
descriptors.

MFC after: 1 week

13 years agoCalculate how many descriptors can be reclaimed before calling
np [Sat, 5 Mar 2011 03:54:37 +0000 (03:54 +0000)]
Calculate how many descriptors can be reclaimed before calling
reclaim_tx_descs

13 years agoTweaks for rx:
np [Sat, 5 Mar 2011 03:42:03 +0000 (03:42 +0000)]
Tweaks for rx:

- everything related to LRO should be in #ifdef INET blocks
- reorder sge_iq's fields so that the most frequently used are all together
- pull all rx code into t4_intr_data directly
- let go of the ingress queue lock when passing up data
- refill the freelist only if it is short of at least 32 buffers

13 years agoStore the ifnet rather than the port_info in each txq and rxq struct.
np [Sat, 5 Mar 2011 03:27:14 +0000 (03:27 +0000)]
Store the ifnet rather than the port_info in each txq and rxq struct.

MFC after: 1 week

13 years agoA txpkts work request should have a valid FID.
np [Sat, 5 Mar 2011 03:18:56 +0000 (03:18 +0000)]
A txpkts work request should have a valid FID.

MFC after: 1 week

13 years agoUpgrade the firmware on the card automatically if a better version is
np [Sat, 5 Mar 2011 03:12:50 +0000 (03:12 +0000)]
Upgrade the firmware on the card automatically if a better version is
available.  Downgrade only for a major version mismatch.

MFC after: 1 week

13 years agoResume tx immediately in response to an SGE egress update from the hardware.
np [Sat, 5 Mar 2011 03:06:38 +0000 (03:06 +0000)]
Resume tx immediately in response to an SGE egress update from the hardware.

MFC after: 1 week

13 years agoFix incorrect assertion.
np [Sat, 5 Mar 2011 03:01:14 +0000 (03:01 +0000)]
Fix incorrect assertion.

MFC after: 3 days

13 years agoFlush both reads *and* writes to registers.
mjacob [Sat, 5 Mar 2011 00:59:34 +0000 (00:59 +0000)]
Flush both reads *and* writes to registers.

Obtained from: Miod Vallat in OpenBSD
MFC after: 1 week

13 years agoUse ffs() to locate free bits in the inode bitmap rather than a loop with
jhb [Fri, 4 Mar 2011 22:26:41 +0000 (22:26 +0000)]
Use ffs() to locate free bits in the inode bitmap rather than a loop with
bit shifts.

Reviewed by: mckusick
MFC after: 1 month

13 years agoFix a panic that can happen when trying to destroy a lagg(4) with scheduler set to...
eri [Fri, 4 Mar 2011 20:37:38 +0000 (20:37 +0000)]
Fix a panic that can happen when trying to destroy a lagg(4) with scheduler set to none.

Approved by: thompsa(mentor)
MFC after: 1 week

13 years agoMake UFS use PSARC/2010/029 NFSv4 ACL semantics by default, just like
trasz [Fri, 4 Mar 2011 19:53:07 +0000 (19:53 +0000)]
Make UFS use PSARC/2010/029 NFSv4 ACL semantics by default, just like
ZFSv28 does.

MFC after: 2 months

13 years agoPOSIX.1-2008 moved some constants from the XSI option to the Base.
jilles [Fri, 4 Mar 2011 19:28:27 +0000 (19:28 +0000)]
POSIX.1-2008 moved some constants from the XSI option to the Base.

MFC after: 2 weeks

13 years agoOne more fix. Now all ACL tests pass again.
trasz [Fri, 4 Mar 2011 18:46:19 +0000 (18:46 +0000)]
One more fix.  Now all ACL tests pass again.

13 years agoAdapt tools-crossfs.test to the new semantics.
trasz [Fri, 4 Mar 2011 18:37:26 +0000 (18:37 +0000)]
Adapt tools-crossfs.test to the new semantics.

13 years agoMake acl_strip_np(3) use new trivial ACL format for NFSv4 ACls (three
trasz [Fri, 4 Mar 2011 17:23:10 +0000 (17:23 +0000)]
Make acl_strip_np(3) use new trivial ACL format for NFSv4 ACls (three
entries instead of six).  This makes "setfacl -b" do the right thing
for ACLs on ZFS.  UFS recognizes both kinds of trivial ACLs; no change
there.

MFC after: 2 months

13 years agoAdapt NFSv4 ACL regression test to the fact that the new ZFS uses
trasz [Fri, 4 Mar 2011 17:10:39 +0000 (17:10 +0000)]
Adapt NFSv4 ACL regression test to the fact that the new ZFS uses
new semantics.

13 years agoMake ACL tests slightly easier to run.
trasz [Fri, 4 Mar 2011 17:07:02 +0000 (17:07 +0000)]
Make ACL tests slightly easier to run.

13 years ago- Add a FEATURE for capsicum (security_capabilities).
netchild [Fri, 4 Mar 2011 09:03:54 +0000 (09:03 +0000)]
- Add a FEATURE for capsicum (security_capabilities).
- Rename mac FEATURE to security_mac.

Discussed with: rwatson

13 years agoAdd the Buffalo (Melco Inc.) WLI-UC-G301N
daichi [Fri, 4 Mar 2011 07:01:45 +0000 (07:01 +0000)]
Add the Buffalo (Melco Inc.) WLI-UC-G301N

PR: usb/155229
Submitted by: Yoshiaki UCHIKAWA
MFC after: 1 week

13 years agoFix some _POSIX minimum/maximum values in limits.h:
jilles [Thu, 3 Mar 2011 22:34:13 +0000 (22:34 +0000)]
Fix some _POSIX minimum/maximum values in limits.h:
* Some values changed in POSIX.1-2001; provide the former value if a program
  requests compliance to an earlier version of POSIX. [1]
* Add missing _POSIX_CLOCKRES_MIN constant. This is a maximum value but
  otherwise works the same as the minimum values.

PR: standards/104743
Submitted by: bde [1] (not exact #ifdefs, but the values)
MFC after: 2 weeks

13 years agoThe sample rate module currently does the slightly wrong thing when
adrian [Thu, 3 Mar 2011 20:41:59 +0000 (20:41 +0000)]
The sample rate module currently does the slightly wrong thing when
determining whether to use MRR or not.

It uses the 11g protection mode when calculating 11n related stuff, rather
than checking the 11n protection mode.

Furthermore, the 11n chipsets can quite happily handle multi-rate retry w/
protection; the TX path and rate control modules need to be taught about
that.

13 years agoPrint out shared flag for debug purpose.
dchagin [Thu, 3 Mar 2011 18:29:55 +0000 (18:29 +0000)]
Print out shared flag for debug purpose.

MFC after: 1 Week

13 years agoDon't automatically send a START UNIT to sequential access devices-
mjacob [Thu, 3 Mar 2011 18:28:21 +0000 (18:28 +0000)]
Don't automatically send a START UNIT to sequential access devices-
this might cause them to load the tape unintentionally.

Reviewed by: gibbs
MFC after: 1 month

13 years agoSwitch PROCESS_SHARE to AUTO_SHARE (as umtx do). Even for SHARED,
dchagin [Thu, 3 Mar 2011 18:19:10 +0000 (18:19 +0000)]
Switch PROCESS_SHARE to AUTO_SHARE (as umtx do). Even for SHARED,
if page mapped MAP_ANON linux uses private algorithm too.

Disscussed with: jhb

MFC after: 3 Days

13 years agoMake "struct pts_softc" point to ucred instead of uidinfo. This is no-op,
trasz [Thu, 3 Mar 2011 17:33:22 +0000 (17:33 +0000)]
Make "struct pts_softc" point to ucred instead of uidinfo.  This is no-op,
required for resource containers.

Reviewed by: kib (as part of a larger patch), ed

13 years agoUnbreak the build for no options INET6.
bz [Thu, 3 Mar 2011 16:16:49 +0000 (16:16 +0000)]
Unbreak the build for no options INET6.

PR: kern/155227
Submitted by: Dmitry Afanasiev (KOT MATPOCKuH.Ru)

13 years agoMFi386: revision 219186
nyan [Thu, 3 Mar 2011 11:45:54 +0000 (11:45 +0000)]
MFi386: revision 219186

  This patch shrinks boot2 a little.

  o    It switches kname to be just a pointer instead of an array.
  o    It changes ioctl to unsigned from uint8_t.
  o    It changes the second keyhit limit to 3 seconds from 5.
  o    It removes bi_basemem/bi_extmem/bi_memsizes_valid setting.

13 years agoMake cap_new(2) and cap_getmode(2) symbols from libc public so applications
rwatson [Thu, 3 Mar 2011 11:31:08 +0000 (11:31 +0000)]
Make cap_new(2) and cap_getmode(2) symbols from libc public so applications
can link against them.  Add man pages for the new system calls, with one
errant forward reference to changes not yet present in FreeBSD, but soon
will be.

Reviewed by: anderson
Obtained from: Capsicum Project
Sponsored by: Google, Inc.
Discussed with: benl, kris, pjd
MFC after: 3 months

13 years agoAdd description of ECAPMODE to errno(2) man page.
rwatson [Thu, 3 Mar 2011 11:29:48 +0000 (11:29 +0000)]
Add description of ECAPMODE to errno(2) man page.

Discussed with: anderson
Obtained from:  Capsicum Project
Sponsored by:   Google, Inc.
MFC after:      3 months

13 years agoAdd text string for ECAPMODE to libc.
rwatson [Thu, 3 Mar 2011 11:28:57 +0000 (11:28 +0000)]
Add text string for ECAPMODE to libc.

Discussed with: anderson
Obtained from: Capsicum Project
Sponsored by: Google, Inc.
MFC after: 3 months

13 years ago- Remove dependency to ucom from ulpt.
hselasky [Thu, 3 Mar 2011 10:25:41 +0000 (10:25 +0000)]
- Remove dependency to ucom from ulpt.

MFC after: 14 days
Approved by: thompsa (mentor)

13 years agoPort over ar5416OverrideIni() from ath9k ar5008_hw_override_ini().
adrian [Thu, 3 Mar 2011 08:38:31 +0000 (08:38 +0000)]
Port over ar5416OverrideIni() from ath9k ar5008_hw_override_ini().

* change the BB gating logic to explicitly define which chips are covered;
  the ath9k method isn't as clear.
* don't disable the BB gating for now, the ar5416 initvals have it, and the
  ar9160 initval sets it to 0x0. Figure out why before re-enabling this.
* migrate the Merlin (ar9280) applicable WAR from the Kite (ar9285) code
  (which won't get called for Merlin!) and stuff it in here.

13 years ago* fix the ar5416 check macros to be slightly more correct;
adrian [Thu, 3 Mar 2011 08:30:28 +0000 (08:30 +0000)]
* fix the ar5416 check macros to be slightly more correct;
* add some stubs for chipsets that we haven't yet obtained support for.

13 years agoModify the sample rate module output to be (slightly) easier to understand.
adrian [Thu, 3 Mar 2011 08:09:49 +0000 (08:09 +0000)]
Modify the sample rate module output to be (slightly) easier to understand.

* add dot11rate_label() which returns Mb or MCS based on legacy or HT
* use it everywhere dot11rate() is used
* in the "current selection" part at the top of the debugging output,
  otuput what the rate itself is rather than the rix. The rate index
  (rix) has very little meaning to normal humans who don't know how
  to find the PHY settings for each of the chipsets; pointing out the
  rix rate and type is likely more useful.

13 years agoDisable trying to do HT/40 and short-GI TX.
adrian [Thu, 3 Mar 2011 03:02:06 +0000 (03:02 +0000)]
Disable trying to do HT/40 and short-GI TX.

These flags are just plain wrong - they're the node flags from negotiation,
not the configured flags. I'll jump in later on and figure out exactly
what should be done to properly set these two flags when in both STA mode
(ie, what the AP says is possible and what's configured) and AP mode
(ie, where the AP has a configuration, but then negotiates what's possible
with each node, so per-node configuration can and will differ.)

This allows the 11n 2.4ghz/ht20 mode to associate (but perform poorly still)
and exchange MCS rates with atheros reference APs and a Cisco/Linksys
E3000 AP.

13 years agoFix some duplicate-word typos in manpages.
uqs [Wed, 2 Mar 2011 21:59:53 +0000 (21:59 +0000)]
Fix some duplicate-word typos in manpages.

Submitted by: arundel
MFC after: 1 week

13 years agoUnbreak .Aq for non-ASCII output like -Tps or -Tutf8.
uqs [Wed, 2 Mar 2011 21:59:42 +0000 (21:59 +0000)]
Unbreak .Aq for non-ASCII output like -Tps or -Tutf8.

groff will try to produce fancy angle brackets like
Foo ⟨foo@FreeBSD.org⟩
This is nice and well, but no email client will understand them. For
ease of copy&paste keep the one-true pair of brackets 0x3c/0x3e.

See: RFC 822, RFC 2822
PR: gnu/154822
Submitted by: Dominic Fandrey <kamikaze@bsdforen.de>
MFC after: 2 weeks

13 years agoHide the outer IP addresses of a tunnel interfaces (gif(4), gre(4))
bz [Wed, 2 Mar 2011 21:39:08 +0000 (21:39 +0000)]
Hide the outer IP addresses of a tunnel interfaces (gif(4), gre(4))
from processes inside jails if the addresses do not belong to the jail.

Originally reported by: Pieter de Boer via remko
PR: kern/151119
Tested by: Piotr KUCHARSKI (nospam 42.pl) [gif]
MFC after: 1 week

13 years agoThis patch shrinks boot2 a little.
rdivacky [Wed, 2 Mar 2011 18:53:12 +0000 (18:53 +0000)]
This patch shrinks boot2 a little.

o    It switches kname to be just a pointer instead of an array
     thus avoiding a couple of memcpy()s.

o    It changes ioctl to unsigned from uint8_t.

o    It changes the second keyhit limit to 3 seconds from 5
     so that constant propagation can take place.

o    It changes the ticks overflow computation as suggested by bde@.

o    It removes bi_basemem/bi_extmem/bi_memsizes_valid setting from
     bootinfo as it is unused.

Reviewed by: jhb

13 years agoBreak the keycache management functions out into if_ath_keycache.c .
adrian [Wed, 2 Mar 2011 17:19:54 +0000 (17:19 +0000)]
Break the keycache management functions out into if_ath_keycache.c .

13 years agoPrevent crashes from a race when (cloned) interfaces go away.
bz [Wed, 2 Mar 2011 17:13:07 +0000 (17:13 +0000)]
Prevent crashes from a race when (cloned) interfaces go away.

PR: bin/152143
Submitted by: Przemyslaw Frasunek (przemyslaw frasunek.com)
Tested by: Przemyslaw Frasunek (przemyslaw frasunek.com)
MFC after: 1 week

13 years agoUpdate manual: node now supports NetFlow v9.
glebius [Wed, 2 Mar 2011 16:16:09 +0000 (16:16 +0000)]
Update manual: node now supports NetFlow v9.

Submitted by: Alexander V. Chernikov <melifaro ipfw.ru>

13 years agoAdd support for NetFlow version 9 into ng_netflow(4) node.
glebius [Wed, 2 Mar 2011 16:15:11 +0000 (16:15 +0000)]
Add support for NetFlow version 9 into ng_netflow(4) node.

Submitted by: Alexander V. Chernikov <melifaro ipfw.ru>

13 years agoAdd additional release makefile for bsdinstall-based media, along with
nwhitehorn [Wed, 2 Mar 2011 16:06:57 +0000 (16:06 +0000)]
Add additional release makefile for bsdinstall-based media, along with
support files. This does not change the default behavior of anything.

To make bsdinstall-based media, pre-build world and GENERIC, then run
the release target in Makefile.bsdinstall.

13 years agoMigrate the sysctl related routines (statistics, debugging, etc) out of
adrian [Wed, 2 Mar 2011 16:03:19 +0000 (16:03 +0000)]
Migrate the sysctl related routines (statistics, debugging, etc) out of
if_ath.c and into if_ath_sysctl.c .

13 years agoMake installations work when no optional components are selected.
nwhitehorn [Wed, 2 Mar 2011 15:41:00 +0000 (15:41 +0000)]
Make installations work when no optional components are selected.

13 years agoFix a bug in the result of manual assembly.
kib [Wed, 2 Mar 2011 14:56:58 +0000 (14:56 +0000)]
Fix a bug in the result of manual assembly.

Reported by: Stefan Grundmann <sg2342 googlemail com>
PR: kern/155118
MFC after: 3 days

13 years agoImprove the distributeworld target in Makefile.inc1 and update the release
nwhitehorn [Wed, 2 Mar 2011 14:39:26 +0000 (14:39 +0000)]
Improve the distributeworld target in Makefile.inc1 and update the release
infrastructure to use it. make distributeworld can now be used without
preparing its environment first and installs games into its distribution
using the regular make distribute logic instead of post-processing with
a script.

Also add two new targets, packageworld and packagekernel, that tar up the
results of distributeworld and distributekernel (also new), respectively.

13 years agoExpand the name of Palm Sunday holiday with more canonical Entry of the
osa [Wed, 2 Mar 2011 11:09:34 +0000 (11:09 +0000)]
Expand the name of Palm Sunday holiday with more canonical Entry of the
Lord into Jerusalem.
Merge the Pentecost and Trinity Sunday holidays, they are synonyms.
Remove Body of Christ day, nonexistent holiday for Orthodox Church.
Fix typo in the name of Ioann The Baptist, introduced in previous commit.

13 years agoFix beginning day of the Carnival. it starts
osa [Wed, 2 Mar 2011 11:04:50 +0000 (11:04 +0000)]
Fix beginning day of the Carnival. it starts

13 years agoCorrect a typo.
delphij [Wed, 2 Mar 2011 00:29:14 +0000 (00:29 +0000)]
Correct a typo.

PR: bin/155175
Submitted by: Peter J. Philipp <pjp centroid.eu>
MFC after: 3 days

13 years agoMake a change to the implementation of the direct map to improve performance
alc [Wed, 2 Mar 2011 00:24:07 +0000 (00:24 +0000)]
Make a change to the implementation of the direct map to improve performance
on processors that support 1 GB pages.  Specifically, if the end of physical
memory is not aligned to a 1 GB page boundary, then map the residual
physical memory with multiple 2 MB page mappings rather than a single 1 GB
page mapping.  When a 1 GB page mapping is used for this residual memory,
access to the memory is slower than when multiple 2 MB page mappings are
used.  (I suspect that the reason for this slowdown is that the TLB is
actually being loaded with 4 KB page mappings for the residual memory.)

X-MFC after: r214425

13 years agokill: Note that this is used both as a normal program and a shell builtin.
jilles [Tue, 1 Mar 2011 21:48:22 +0000 (21:48 +0000)]
kill: Note that this is used both as a normal program and a shell builtin.

13 years agoprintf: Note that this is used both as a normal program and a shell builtin.
jilles [Tue, 1 Mar 2011 21:47:06 +0000 (21:47 +0000)]
printf: Note that this is used both as a normal program and a shell builtin.

13 years agoMFV of tzdata2011b, r219147
edwin [Tue, 1 Mar 2011 21:24:50 +0000 (21:24 +0000)]
MFV of tzdata2011b, r219147

- USA/Mercer County, North Dakota - Moved from Mountain time to Central time.

13 years agoFix misuse of TARGET_ARCH. This should be MACHINE_ARCH.
nwhitehorn [Tue, 1 Mar 2011 20:51:41 +0000 (20:51 +0000)]
Fix misuse of TARGET_ARCH. This should be MACHINE_ARCH.

13 years agoCorrect spelling in a last-minute tweaked NOTES entry for CAPABILITIES.
rwatson [Tue, 1 Mar 2011 17:39:27 +0000 (17:39 +0000)]
Correct spelling in a last-minute tweaked NOTES entry for CAPABILITIES.

Submitted by: netchild
Sponsored by: Google, Inc.
Obtained from: Capsicum Project
MFC after: 3 months

13 years agoAdd Capsicum capability mode support; svn add of capability.h was missed
rwatson [Tue, 1 Mar 2011 17:37:58 +0000 (17:37 +0000)]
Add Capsicum capability mode support; svn add of capability.h was missed
in a previous commit.  Whoops!

Reported by: jhb
Reviewed by: anderson
Discussed with: benl, kris, pjd
Sponsored by: Google, Inc.
Obtained from: Capsicum Project
MFC after: 3 months

13 years agoPut in a temporary workaround for ctfmerge hanging on processing
dim [Tue, 1 Mar 2011 17:15:44 +0000 (17:15 +0000)]
Put in a temporary workaround for ctfmerge hanging on processing
kernel.debug (or possibly other files), when WITH_CTF is active.

This is caused by a bug in clang's integrated assembler, causing malloc
to sometimes hang during initialization in statically linked executables
that use threading, such as the copy of ctfmerge that is built during
the bootstrap stage of buildworld.  The bug has been submitted upstream:

  http://llvm.org/bugs/show_bug.cgi?id=9352

Note that you might have to rebuild and install libc first, to get your
kernel build to finish, because the ctfmerge binary built during
bootstrap is linked with your base system's copy of libc.a, which might
already contain a bad copy of malloc.o.

13 years agoTeach kdump to decode linux syscalls names too.
dchagin [Tue, 1 Mar 2011 16:42:28 +0000 (16:42 +0000)]
Teach kdump to decode linux syscalls names too.

Fix bug introduced in my previous commit: the kernel always dump native
signal numbers, so no need to check the ABI in ktrpsig().

Suggested by: jhb
MFC after: 1 Month.

13 years agoFully honor KERNSRCDIR for 'make universe' if it is set.
jhb [Tue, 1 Mar 2011 14:54:14 +0000 (14:54 +0000)]
Fully honor KERNSRCDIR for 'make universe' if it is set.

MFC after: 1 week

13 years agoUse a suitable DIRPRFX for each invocation of make in the build32 and
jhb [Tue, 1 Mar 2011 14:53:36 +0000 (14:53 +0000)]
Use a suitable DIRPRFX for each invocation of make in the build32 and
install32 targets so that the full path to each program or library is
displayed in the make output.

MFC after: 1 week

13 years agoSimilar to 189574, properly handle subclasses of bus drivers when deleting
jhb [Tue, 1 Mar 2011 14:43:37 +0000 (14:43 +0000)]
Similar to 189574, properly handle subclasses of bus drivers when deleting
a driver during kldunload.  Specifically, recursively walk the tree of
subclasses of a given driver attachment's bus device class detaching all
instances of that driver for each class and its subclasses.

Reported by: bschmidt
Reviewed by: imp
MFC after: 1 week

13 years agoContinue to introduce Capsicum capability mode:
rwatson [Tue, 1 Mar 2011 13:35:48 +0000 (13:35 +0000)]
Continue to introduce Capsicum capability mode:

White list sysarch calls allowed in capability mode; arguably, there
should be some link between the capability mode model and the privilege
model here.  Sysarch is a morass similar to ioctl, in many senses.

Submitted by: anderson
Discussed with: benl, kris, pjd
Sponsored by: Google, Inc.
Obtained from: Capsicum Project
MFC after: 3 months

13 years agoContinue introducing Capsicum capability mode support:
rwatson [Tue, 1 Mar 2011 13:32:07 +0000 (13:32 +0000)]
Continue introducing Capsicum capability mode support:

If a system call wasn't listed in capabilities.conf, return ECAPMODE at
syscall entry.

Reviewed by: anderson
Discussed with: benl, kris, pjd
Sponsored by: Google, Inc.
Obtained from: Capsicum Project
MFC after: 3 months

13 years agoRegenerate system call files following addition of cap_enter(2),
rwatson [Tue, 1 Mar 2011 13:30:23 +0000 (13:30 +0000)]
Regenerate system call files following addition of cap_enter(2),
cap_getmode(2), and capabilities.conf.

Reviewed by: anderson
Discussed with: benl, kris, pjd
Obtained from: Capsicum Project
Sponsored by: Google, Inc.
MFC after: 3 months

13 years agoContinue to introduce Capsicum Capability Mode support:
rwatson [Tue, 1 Mar 2011 13:28:27 +0000 (13:28 +0000)]
Continue to introduce Capsicum Capability Mode support:

Add a new system call flag, SYF_CAPENABLED, which indicates that a
particular system call is available in capability mode.

Add a new configuration file, kern/capabilities.conf (similar files
may be introduced for other ABIs in the future), which enumerates
system calls that are available in capability mode.  When a new
system call is added to syscalls.master, it will also need to be
added here (if needed).  Teach sysent parts to use this file to set
values for SYF_CAPENABLED for the native ABI.

Reviewed by: anderson
Discussed with: benl, kris, pjd
Obtained from: Capsicum Project
MFC after: 3 months

13 years agoHook up sys_capability.c to the build.
rwatson [Tue, 1 Mar 2011 13:24:49 +0000 (13:24 +0000)]
Hook up sys_capability.c to the build.

Sponsored by:   Google, Inc.
Reviewed by:    anderson
Discussed with: benl, kris, pjd
Obtained from:  Capsicum Project
MFC after:      3 months

13 years agoAdd initial support for Capsicum's Capability Mode to the FreeBSD kernel,
rwatson [Tue, 1 Mar 2011 13:23:37 +0000 (13:23 +0000)]
Add initial support for Capsicum's Capability Mode to the FreeBSD kernel,
compiled conditionally on options CAPABILITIES:

Add a new credential flag, CRED_FLAG_CAPMODE, which indicates that a
subject (typically a process) is in capability mode.

Add two new system calls, cap_enter(2) and cap_getmode(2), which allow
setting and querying (but never clearing) the flag.

Export the capability mode flag via process information sysctls.

Sponsored by: Google, Inc.
Reviewed by: anderson
Discussed with: benl, kris, pjd
Obtained from: Capsicum Project
MFC after: 3 months

13 years agoAdd ECAPMODE, "Not permitted in capability mode", a new kernel errno
rwatson [Tue, 1 Mar 2011 13:14:28 +0000 (13:14 +0000)]
Add ECAPMODE, "Not permitted in capability mode", a new kernel errno
constant to indicate that a system call (or perhaps an operation requested
via a system call) is not permitted for a capability mode process.

Submitted by: anderson
Sponsored by: Google, Inc.
Obtained from: Capsicum Project
MFC after: 1 week

13 years agoAdd XMIT_FAILOVER transmit algorithm to ng_one2many node. Packets are
ae [Tue, 1 Mar 2011 13:10:56 +0000 (13:10 +0000)]
Add XMIT_FAILOVER transmit algorithm to ng_one2many node. Packets are
delivered out the first active "many" hook.

PR: kern/137775
Submitted by: Maxim Ignatenko
MFC after: 2 weeks

13 years agoRemove duplicate "in".
brucec [Tue, 1 Mar 2011 11:47:51 +0000 (11:47 +0000)]
Remove duplicate "in".

Suggested by: Rob Farmer <rfarmer at predatorlabs.net>
MFC after: 3 days

13 years agoFixed conversion of prefix length to a netmask.
ru [Tue, 1 Mar 2011 11:47:16 +0000 (11:47 +0000)]
Fixed conversion of prefix length to a netmask.

13 years agoChange the return type of vmspace_swap_count to a long to match the other
brucec [Tue, 1 Mar 2011 11:04:30 +0000 (11:04 +0000)]
Change the return type of vmspace_swap_count to a long to match the other
vmspace_*_count functions.

MFC after: 3 days

13 years agoAnother couple of unsigned/ssize_t changes.
phk [Tue, 1 Mar 2011 08:52:10 +0000 (08:52 +0000)]
Another couple of unsigned/ssize_t changes.

13 years agoIncrease NKPT in case of n32 and n64 to support more physical memory.
jchandra [Tue, 1 Mar 2011 04:21:56 +0000 (04:21 +0000)]
Increase NKPT in case of n32 and n64 to support more physical memory.

On n32, vm_page_startup() needs more virtual mem to map vm_page structs.
The new value of 256 will allow us to support 16GB RAM.

13 years agoUse new thread's stack to invoke pmap_activate in cpu_switch()
jchandra [Tue, 1 Mar 2011 03:25:18 +0000 (03:25 +0000)]
Use new thread's stack to invoke pmap_activate in cpu_switch()

Restore the SP from the new thread's PCB before calling pmap_activate.
Remove some old FIXME comments.

13 years agoAdds a new Congestion Control that helps reduce
rrs [Tue, 1 Mar 2011 00:37:46 +0000 (00:37 +0000)]
Adds a new Congestion Control that helps reduce
the RTT that a flow will build up in buffers in
transit. It is a slight modification to RFC2581
but is more friendly i.e. less aggressive.

MFC after: 3 months

13 years agoUse correct types and fromats for physical address
jchandra [Mon, 28 Feb 2011 21:33:26 +0000 (21:33 +0000)]
Use correct types and fromats for physical address

- Use vm_paddr_t for pa in pmap_steal_memory()
- Use uintmax_t and %jx to ensure that physical address are printed
  correctly in cpu_startup() and pmap_bootstrap()

13 years agoUse vm_offset_t for virtual addresses.
jchandra [Mon, 28 Feb 2011 20:55:41 +0000 (20:55 +0000)]
Use vm_offset_t for virtual addresses.

The unsigned int type used now is incorrect in n64 compilation.

13 years agoMake sure changing ownership of RX descriptor to be done as last
yongari [Mon, 28 Feb 2011 20:37:48 +0000 (20:37 +0000)]
Make sure changing ownership of RX descriptor to be done as last
operation.  Previously ownership was transferred to hardware before
setting address of new RX buffer such that it was possible for
hardware to use wrong RX buffer address.
While here keep compiler from re-ordering instructions by declaring
descriptor members volatile. Memory barriers would do the same job
but volatile is supposed to be cheaper than using memory barriers,
especially on MP systems.

Submitted by: marius
MFC after: 1 week

13 years ago- Add missing MLINKS for libusb and some manpage fixes.
hselasky [Mon, 28 Feb 2011 18:53:06 +0000 (18:53 +0000)]
- Add missing MLINKS for libusb and some manpage fixes.

MFC after: 14 days
Approved by: thompsa (mentor)

13 years ago- Add support for software pre-scaling of ISOCHRONOUS transfers.
hselasky [Mon, 28 Feb 2011 17:23:15 +0000 (17:23 +0000)]
- Add support for software pre-scaling of ISOCHRONOUS transfers.

MFC after: 14 days
Approved by: thompsa (mentor)

13 years agoSync FreeBSD ISP with mercurial tree. Minor changes having to do with
mjacob [Mon, 28 Feb 2011 15:58:30 +0000 (15:58 +0000)]
Sync FreeBSD ISP with mercurial tree. Minor changes having to do with
a macro for minima.

13 years agoType-change to ssize_t to (app|pl)ease ppc platform.
phk [Mon, 28 Feb 2011 14:48:00 +0000 (14:48 +0000)]
Type-change to ssize_t to (app|pl)ease ppc platform.

13 years agoRevert some of r177626. "in in" is valid in certain sentences.
brucec [Mon, 28 Feb 2011 10:03:48 +0000 (10:03 +0000)]
Revert some of r177626. "in in" is valid in certain sentences.

PR: 121490
MFC after: 3 days

13 years agoUpdate fifolog internals to match main version:
phk [Mon, 28 Feb 2011 09:11:46 +0000 (09:11 +0000)]
Update fifolog internals to match main version:

Rename ...write_bytes... to ...write_records..., that's what they do.

Move writer .h stuff into writer private .h file.

Change logic in writer to support both fifolog usage in FreeBSD and
Measured usage better, by always using an input buffer.

Various cleanups.

13 years agoDon't override the perfectly good default ->zalloc and ->zfree functions.
phk [Mon, 28 Feb 2011 08:59:35 +0000 (08:59 +0000)]
Don't override the perfectly good default ->zalloc and ->zfree functions.

13 years agoDrop my OpenSSL maintainer hat. I don't have the motivation to keep
simon [Mon, 28 Feb 2011 06:54:14 +0000 (06:54 +0000)]
Drop my OpenSSL maintainer hat. I don't have the motivation to keep
chasing updates etc.

Leave a reminder not to commit non-upstream changes (ref: Debian
random...).

13 years agoUse proper lock in assertion.
pjd [Mon, 28 Feb 2011 05:45:31 +0000 (05:45 +0000)]
Use proper lock in assertion.

MFC after: 1 month

13 years agoPartial fix for PR 91106. Correct the short weekday names. Done according to this...
versus [Sun, 27 Feb 2011 21:32:25 +0000 (21:32 +0000)]
Partial fix for PR 91106. Correct the short weekday names. Done according to this poll https://bugzilla.redhat.com/show_bug.cgi?id=242296. This will not close the bug fully yet, as the month names are still not correctly in Genitive. More research on this topic will be done, as I'm suspecting a bug in the libc locale functions picking the month name from the wrong group.

PR: conf/91106
Approved by: gavin (mentor)
MFC after: 1 month

13 years agoCommit two more files missed in r219089.
pjd [Sun, 27 Feb 2011 19:44:10 +0000 (19:44 +0000)]
Commit two more files missed in r219089.

MFC after: 1 month

13 years agoFinally... Import the latest open-source ZFS version - (SPA) 28.
pjd [Sun, 27 Feb 2011 19:41:40 +0000 (19:41 +0000)]
Finally... Import the latest open-source ZFS version - (SPA) 28.

Few new things available from now on:

- Data deduplication.
- Triple parity RAIDZ (RAIDZ3).
- zfs diff.
- zpool split.
- Snapshot holds.
- zpool import -F. Allows to rewind corrupted pool to earlier
  transaction group.
- Possibility to import pool in read-only mode.

MFC after: 1 month

13 years agoFix typo in kernel configuration entry.
gjb [Sun, 27 Feb 2011 17:14:06 +0000 (17:14 +0000)]
Fix typo in kernel configuration entry.

PR: 155074
Submitted by: Warren Block (wblock of wonkity com)
MFC after: 3 days

13 years agoForce DMA for controller found in Lenovo T510 (probably in others too).
pjd [Sun, 27 Feb 2011 13:58:20 +0000 (13:58 +0000)]
Force DMA for controller found in Lenovo T510 (probably in others too).
This makes reads 10 times faster.

Discussed with: mav