]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
14 years agoMake acl_to_text_np(3) not crash on long group or user names in NFSv4 ACLs.
Edward Tomasz Napierala [Sun, 28 Mar 2010 17:29:15 +0000 (17:29 +0000)]
Make acl_to_text_np(3) not crash on long group or user names in NFSv4 ACLs.

PR: amd64/145091
MFC after: 2 weeks

14 years agoSet hw.ofwfb.relax_mmap=1 by default. While these checks may be a good
Nathan Whitehorn [Sun, 28 Mar 2010 17:17:32 +0000 (17:17 +0000)]
Set hw.ofwfb.relax_mmap=1 by default. While these checks may be a good
idea in principle, X does not work without them on basically any hardware,
and this is probably the most frequent problem people run into on PowerPC.

Prodded by: rnoland
MFC after: 1 week

14 years agoDon't forget to bump the date in the man page.
Ed Schouten [Sun, 28 Mar 2010 13:40:13 +0000 (13:40 +0000)]
Don't forget to bump the date in the man page.

14 years agoChange all our own code to use st_*tim instead of st_*timespec.
Ed Schouten [Sun, 28 Mar 2010 13:16:08 +0000 (13:16 +0000)]
Change all our own code to use st_*tim instead of st_*timespec.

Also remove some local patches to diff(1) which are now unneeded.

14 years agoRename st_*timespec fields to st_*tim for POSIX 2008 compliance.
Ed Schouten [Sun, 28 Mar 2010 13:13:22 +0000 (13:13 +0000)]
Rename st_*timespec fields to st_*tim for POSIX 2008 compliance.

A nice thing about POSIX 2008 is that it finally standardizes a way to
obtain file access/modification/change times in sub-second precision,
namely using struct timespec, which we already have for a very long
time. Unfortunately POSIX uses different names.

This commit adds compatibility macros, so existing code should still
build properly. Also change all source code in the kernel to work
without any of the compatibility macros. This makes it all a less
ambiguous.

I am also renaming st_birthtime to st_birthtim, even though it was a
local extension anyway. It seems Cygwin also has a st_birthtim.

14 years agoAdd a comment explaining the previous commit.
Rui Paulo [Sun, 28 Mar 2010 12:55:31 +0000 (12:55 +0000)]
Add a comment explaining the previous commit.

Submitted by: sam

14 years agoWhen tearing down IPsec as part of a (virtual) network stack,
Bjoern A. Zeeb [Sun, 28 Mar 2010 06:51:50 +0000 (06:51 +0000)]
When tearing down IPsec as part of a (virtual) network stack,
do not try to free the same list twice but free both the
acquiring list and the security policy acquiring list.

Reviewed by: anchie
MFC after: 3 days

14 years agoUse standard types in preference to BSD types so that these header files
Justin T. Gibbs [Sun, 28 Mar 2010 00:10:09 +0000 (00:10 +0000)]
Use standard types in preference to BSD types so that these header files
can be used in applications compiled with only POSIX types visible.

MFC after: 2 weeks

14 years agoCorrectly handle preemption of pmap_update_pde_invalidate().
Alan Cox [Sat, 27 Mar 2010 23:53:47 +0000 (23:53 +0000)]
Correctly handle preemption of pmap_update_pde_invalidate().

X-MFC after: r205573

14 years agoSimplify pmap_growkernel(), making the i386 version more like the amd64
Alan Cox [Sat, 27 Mar 2010 18:24:27 +0000 (18:24 +0000)]
Simplify pmap_growkernel(), making the i386 version more like the amd64
version.

MFC after: 3 weeks

14 years agoDon't hold connection lock when doing reconnects as it makes I/Os wait for
Pawel Jakub Dawidek [Sat, 27 Mar 2010 16:35:07 +0000 (16:35 +0000)]
Don't hold connection lock when doing reconnects as it makes I/Os wait for
connection timeouts.

Reported by: Kevin Day <toasty@dragondata.com>

14 years agoFix lock leakage.
Alexander Motin [Sat, 27 Mar 2010 15:39:19 +0000 (15:39 +0000)]
Fix lock leakage.

PR: kern/145081

14 years ago(S)LIST_HEAD_INITIALIZER takes a (S)LIST_HEAD as an argument.
Antoine Brodin [Sat, 27 Mar 2010 13:43:18 +0000 (13:43 +0000)]
(S)LIST_HEAD_INITIALIZER takes a (S)LIST_HEAD as an argument.
Fix some wrong usages.
Note: this does not affect generated binaries as this argument is not used.

Approved by: harti@

14 years agoMerge improvements from kernel HID parser to the userland usbhid(3)
Kai Wang [Sat, 27 Mar 2010 08:00:16 +0000 (08:00 +0000)]
Merge improvements from kernel HID parser to the userland usbhid(3)
parser.  This merge does not change any API and should not break any
native or thirdparty applications.

Changes include:

* Merge multiple report ID support and other improvements from kernel
  HID parser.
* Ignore rid argument in hid_start_parser, parse all the report items since
  we now support multiple report ID.
* Skip report ID byte in hid_get_data() and set report ID byte in
  hid_set_data(), if report ID is non-zero.
* Reimplement hid_get_report_id: instead get report id from uhid device
  (which is always 0), try parsing the report descriptor and return the
  first report ID encountered.

Reviewed by: hps
Silent on: -usb mailing list

14 years agoBring up-to-date:
Marcel Moolenaar [Sat, 27 Mar 2010 06:53:11 +0000 (06:53 +0000)]
Bring up-to-date:
o   Switch to ITANIUM2 has the cpu. This has absolutely no effect
    on the code, but makes for a better example.
o   Drop COMPAT_FREEBSD6. We're tier 2, so you're supposed to run
    8-stable or newer.
o   Add PREEMPTION. It works now.
o   Remove HWPMC_HOOKS. We don't have support for hwpmc yet.

o   Add a bunch of new devices: atapist, hptiop, amr, ips, twa, igb,
    ixgbe, ae, age, alc, ale, bce, bfe, et, jme, msk, nge, sk, ste,
    stge, tx, vge, axe, rue, udav, fwip, and all USB serial.
o   Remove "legacy" devices: le, vx, dc, pcn, rl, sis.

Make sure to the module list is a superset of what goes into GENERIC.

14 years agoImplement interrupt to CPU binding. Assign interrupts to CPUs in a
Marcel Moolenaar [Sat, 27 Mar 2010 05:40:50 +0000 (05:40 +0000)]
Implement interrupt to CPU binding. Assign interrupts to CPUs in a
round-robin fashion, starting with the highest priority interrupt
on the highest-numbered CPU and cycling downwards.

14 years ago<machine/nexusvar.h> removed on ia64.
Marcel Moolenaar [Sat, 27 Mar 2010 03:17:39 +0000 (03:17 +0000)]
<machine/nexusvar.h> removed on ia64.

14 years agoRemove nx_pcibus from the nexus resource. Nexus is not involved
Marcel Moolenaar [Sat, 27 Mar 2010 03:15:34 +0000 (03:15 +0000)]
Remove nx_pcibus from the nexus resource. Nexus is not involved
with PCI busses. Remove nexus_read_ivar() and nexus_write_ivar()
to give default behaviour. Remove <machine/nexusvar.h> as well,
because there's nothing in it that's being used.

14 years agoUpdate the driver to Intel version 2.1.6
Jack F Vogel [Sat, 27 Mar 2010 00:21:40 +0000 (00:21 +0000)]
Update the driver to Intel version 2.1.6
- add some new hardware support for 82599
- Big change to interrupt architecture, it now
  uses a queue which contains an RX/TX pair as
  the recipient of the interrupt. This will reduce
  overall system interrupts/msix usage.
- Improved RX mbuf handling: the old get_buf routine
  is no longer synchronized with rxeof, this allows
  the elimination of packet discards due to mbuf
  allocation failure.
- Much simplified and improved AIM code, it now
  happens in the queue interrupt context and takes
  into account both the traffic on the RX AND TX
  side.
- variety of small tweaks, like ring size, that have
  been seen as performance improvements.
- Thanks to those that provided feedback or suggested
  changes, I hope I've caught all of them.

14 years agoRename disable_intr() to ia64_disable_intr() and rename enable_intr()
Marcel Moolenaar [Fri, 26 Mar 2010 21:22:02 +0000 (21:22 +0000)]
Rename disable_intr() to ia64_disable_intr() and rename enable_intr()
to ia64_enable_intr(). This reduces confusion with intr_disable() and
intr_restore().

Have configure_final() call ia64_finalize_intr() instead of enable_intr()
in preparation of adding support for binding interrupts to all CPUs.

14 years agoD'oh- isp_handle_index' logic was reversed (not used in FreeBSD).
Matt Jacob [Fri, 26 Mar 2010 20:22:18 +0000 (20:22 +0000)]
D'oh- isp_handle_index' logic was reversed (not used in FreeBSD).

MFC after: 1 week

14 years agoAllow building a cross-kgdb for ia64.
Marcel Moolenaar [Fri, 26 Mar 2010 19:41:40 +0000 (19:41 +0000)]
Allow building a cross-kgdb for ia64.

14 years agoHandle cross-builds for gdbserver.
Marcel Moolenaar [Fri, 26 Mar 2010 19:40:53 +0000 (19:40 +0000)]
Handle cross-builds for gdbserver.

14 years agoPass the correct pointer to fled_cb().
Rui Paulo [Fri, 26 Mar 2010 18:49:43 +0000 (18:49 +0000)]
Pass the correct pointer to fled_cb().

14 years agoRemove GNU cpio after fix of CVE-2010-0624.
Xin LI [Fri, 26 Mar 2010 17:02:32 +0000 (17:02 +0000)]
Remove GNU cpio after fix of CVE-2010-0624.

Note that this is actually a no-op for most users, as this GNU
cpio was broken on -HEAD and 8-STABLE since last March until
the recent fix.

FreeBSD 8.0+ uses BSD cpio by default and the code is being
actively maintained.

Blessed by: kientzle
With hat: secteam
MFC after: 3 days

14 years agoClean up some printing stuff so that we can have a bit finer control
Matt Jacob [Fri, 26 Mar 2010 15:13:31 +0000 (15:13 +0000)]
Clean up some printing stuff so that we can have a bit finer control
on debug output. Add a new platform function requirement to allow
for printing based upon the ITL nexus instead of the isp unit plus
channel, target and lun. This allows some printouts and error messages
from the core code to appear in the same format as the platform's
subsystem (in FreeBSD's case, CAM path).

MFC after: 1 week

14 years agoRevert r205683 to resolve some code quality issues which do not affect the
Alexander Leidinger [Fri, 26 Mar 2010 14:36:16 +0000 (14:36 +0000)]
Revert r205683 to resolve some code quality issues which do not affect the
build or use of linprocfs, before committing the reworked patch again.

Requested by: des

14 years agoHandling SIGPIPE will cause deadlock/crash.
Fabien Thomas [Fri, 26 Mar 2010 14:35:48 +0000 (14:35 +0000)]
Handling SIGPIPE will cause deadlock/crash.
Return an error immediatly in case of hard shutdown.

MFC after: 3days

14 years agoDo not overflow the term in the case of multi-line display.
Fabien Thomas [Fri, 26 Mar 2010 14:29:57 +0000 (14:29 +0000)]
Do not overflow the term in the case of multi-line display.

MFC after: 3days

14 years agoTighten my grip on pseudofs, procfs, linprocfs.
Dag-Erling Smørgrav [Fri, 26 Mar 2010 12:59:15 +0000 (12:59 +0000)]
Tighten my grip on pseudofs, procfs, linprocfs.

14 years agoFix some bogus values in linprocfs.
Alexander Leidinger [Fri, 26 Mar 2010 11:43:15 +0000 (11:43 +0000)]
Fix some bogus values in linprocfs.

Submitted by: Petr Salinger <Petr.Salinger@seznam.cz>
Verified on: GNU/kFreeBSD debian 8.0-1-686 (by submitter)
PR: 144584

14 years agoSupport only LOOKUP operation for "/" in relookup() because lookup()
Jaakko Heinonen [Fri, 26 Mar 2010 11:33:12 +0000 (11:33 +0000)]
Support only LOOKUP operation for "/" in relookup() because lookup()
can't succeed for CREATE, DELETE and RENAME.

Discussed with: bde

14 years ago- add some usb devices (scanner, printer, usb storage)
Alexander Leidinger [Fri, 26 Mar 2010 11:02:01 +0000 (11:02 +0000)]
- add some usb devices (scanner, printer, usb storage)
- add quirks for the usb storage

Reviewed by: hselasky

14 years agoUse last 16 bytes of serial number in metadata instead of first ones,
Alexander Motin [Fri, 26 Mar 2010 10:18:19 +0000 (10:18 +0000)]
Use last 16 bytes of serial number in metadata instead of first ones,
same as Intel MatrixRAID does.

PR: kern/124064

14 years agoFix a typo in a comment.
Alexander Leidinger [Fri, 26 Mar 2010 08:47:07 +0000 (08:47 +0000)]
Fix a typo in a comment.

14 years agoFix some problems which may lead to a panic:
Alexander Leidinger [Fri, 26 Mar 2010 08:42:11 +0000 (08:42 +0000)]
Fix some problems which may lead to a panic:
 - right order of src and dst in memcpy
 - NULL out the clips after freeing to prevent an accident

Noticed by: hselasky

14 years agoReplace sb_store64()/sb_load64() with mips3_sd()/mips3_ld() respectively.
Neel Natu [Fri, 26 Mar 2010 07:15:27 +0000 (07:15 +0000)]
Replace sb_store64()/sb_load64() with mips3_sd()/mips3_ld() respectively.

Obtained from NetBSD.

Suggested by: jmallett@

14 years agoo Fix typo.
Maxim Konovalov [Fri, 26 Mar 2010 05:35:25 +0000 (05:35 +0000)]
o Fix typo.

PR: docs/145031
Submitted by: olgeni
MFC after: 1 week

14 years agoo Trim leading w/space.
Maxim Konovalov [Fri, 26 Mar 2010 05:34:13 +0000 (05:34 +0000)]
o Trim leading w/space.

PR: docs/145030
Submitted by: olgeni
MFC after: 1 week

14 years agoOnly use the interval timer for clock interrupts on the BSP and
Marcel Moolenaar [Fri, 26 Mar 2010 02:29:15 +0000 (02:29 +0000)]
Only use the interval timer for clock interrupts on the BSP and
have the BSP use IPIs to trigger clock interrupts on the APs.
This allows us to run on hardware configurations for which the
ITC has non-uniform frequencies across CPUs.

While here, change the clock XIV to type IPI so as to protect
the interrupt delivery against CPU re-balancing once that's
implemented.

14 years agoPatch the experimental NFS server in a manner analagous to r205661
Rick Macklem [Fri, 26 Mar 2010 01:35:19 +0000 (01:35 +0000)]
Patch the experimental NFS server in a manner analagous to r205661
for the regular NFS server, to ensure that ESTALE is
returned to the client for all errors returned by VFS_FHTOVP().

MFC after: 2 weeks

14 years agoOur boot loader is capable of booting both i386 and amd64 kernels so
Xin LI [Fri, 26 Mar 2010 01:30:53 +0000 (01:30 +0000)]
Our boot loader is capable of booting both i386 and amd64 kernels so
call it "x86" instead of "i386".

Suggested by: jhb in response to Alexander Best's loader proposal
MFC after: 1 month

14 years agoPatch the regular NFS server so that it returns ESTALE to the client
Rick Macklem [Fri, 26 Mar 2010 01:19:29 +0000 (01:19 +0000)]
Patch the regular NFS server so that it returns ESTALE to the client
for all errors returned by VFS_FHTOVP(). This is required to ensure
that EIO doesn't get returned to the client when ZFS is used as the
server file system.

Tested by: korvus AT comcast.net
Reviewed by: jhb
MFC after: 2 weeks

14 years agoFix the ia64 build.
Nathan Whitehorn [Fri, 26 Mar 2010 00:53:13 +0000 (00:53 +0000)]
Fix the ia64 build.

Pointy hat to: me

14 years ago- update zfs and zpool manual pages to match the current state of the source
Daniel Gerzo [Fri, 26 Mar 2010 00:49:06 +0000 (00:49 +0000)]
- update zfs and zpool manual pages to match the current state of the source

PR: 144984
Submitted by: mm@
Approved by: pjd@
Obtained from: OpenSolaris
MFC after: 4 days

14 years agoCheck that gl_pathc is bigger than zero before derefencing gl_pathv.
Xin LI [Thu, 25 Mar 2010 22:41:01 +0000 (22:41 +0000)]
Check that gl_pathc is bigger than zero before derefencing gl_pathv.
When gl_pathc == 0, the content of gl_pathv is undefined.

PR: bin/144761
Submitted by: David BERARD <contact davidberard fr>
Obtained from: OpenBSD
MFC after: 1 week

14 years agoThe rmt client in GNU cpio could have a heap overflow when a malicious
Xin LI [Thu, 25 Mar 2010 20:02:54 +0000 (20:02 +0000)]
The rmt client in GNU cpio could have a heap overflow when a malicious
remote tape service returns deliberately crafted packets containing
more data than requested.

Fix this by checking the returned amount of data and bail out when it
is more than what we requested.

PR: gnu/145010
Submitted by: naddy
Reviewed by: imp
MFC after: immediately
Security: CVE-2010-0624

14 years agoDo not penalize correct or correctable VESA mode tables by calling another
Jung-uk Kim [Thu, 25 Mar 2010 17:51:05 +0000 (17:51 +0000)]
Do not penalize correct or correctable VESA mode tables by calling another
VBE function.  Most problems should be corrected by the mode table sanity
check and we only need the paranoid in extremely rare cases.

14 years agoA ptrace(2) by one processor may trigger a promotion in the address space
Alan Cox [Thu, 25 Mar 2010 17:24:03 +0000 (17:24 +0000)]
A ptrace(2) by one processor may trigger a promotion in the address space
of another process.  Modify pmap_promote_pde() to handle this.  (This is
not a problem on amd64 due to implementation differences.)

Reported by: jh@
MFC after: 1 week

14 years agoUse pci_get_max_read_req() and pci_set_max_read_req() to set maximim
Pyun YongHyeon [Thu, 25 Mar 2010 17:17:35 +0000 (17:17 +0000)]
Use pci_get_max_read_req() and pci_set_max_read_req() to set maximim
read request size.

14 years agoRevert accidentally committed initial real mode %sp change of r205347.
Jung-uk Kim [Thu, 25 Mar 2010 17:14:47 +0000 (17:14 +0000)]
Revert accidentally committed initial real mode %sp change of r205347.
Note I am keeping %ds change because X.org int10 handler does it and
it seems reasonable.

14 years agoOptimize real mode page table lookup.
Jung-uk Kim [Thu, 25 Mar 2010 17:03:52 +0000 (17:03 +0000)]
Optimize real mode page table lookup.

14 years agoFix stupid typos. Some VESA BIOSes directly call BIOS interrupt handlers
Jung-uk Kim [Thu, 25 Mar 2010 15:56:04 +0000 (15:56 +0000)]
Fix stupid typos.  Some VESA BIOSes directly call BIOS interrupt handlers
within the VBE interrupt handler.  Unfortunately it was causing real mode
page faults because we were fetching instructions from bogus addresses.
Pass me the pointyhat, please.

PR: kern/144654
MFC after: 3 days

14 years agoAdd the ELF relocation base to struct image_params. This will be
Nathan Whitehorn [Thu, 25 Mar 2010 14:31:26 +0000 (14:31 +0000)]
Add the ELF relocation base to struct image_params. This will be
required to correctly relocate the executable entry point's function
descriptor on powerpc64.

14 years agoChange the arguments of exec_setregs() so that it receives a pointer
Nathan Whitehorn [Thu, 25 Mar 2010 14:24:00 +0000 (14:24 +0000)]
Change the arguments of exec_setregs() so that it receives a pointer
to the image_params struct instead of several members of that struct
individually. This makes it easier to expand its arguments in the future
without touching all platforms.

Reviewed by: jhb

14 years agoChange the way text_addr and data_addr are computed to use the
Nathan Whitehorn [Thu, 25 Mar 2010 14:21:22 +0000 (14:21 +0000)]
Change the way text_addr and data_addr are computed to use the
executable status of segments instead of detecting the main text segment
by which segment contains the program entry point. This affects
obreak() and is required for correct operation of that function
on 64-bit PowerPC systems. The previous behavior was apparently
required only for the Alpha, which is no longer supported.

Reviewed by: jhb
Tested on: amd64, sparc64, powerpc

14 years agoPropagate CONF_CFLAGS (from makeoptions) to the module build too.
Alexander Leidinger [Thu, 25 Mar 2010 13:47:21 +0000 (13:47 +0000)]
Propagate CONF_CFLAGS (from makeoptions) to the module build too.

Discussed with: jhb (on arch@)

14 years agoWe are holding a write lock here so avoid aquiring it twice calling
Bjoern A. Zeeb [Thu, 25 Mar 2010 10:29:00 +0000 (10:29 +0000)]
We are holding a write lock here so avoid aquiring it twice calling
the "locked" version rather than the wrapper function.

MFC after: 6 days

14 years agoRemove disabled code. In 99% cases exports are send to ng_ksocket(4), which
Gleb Smirnoff [Thu, 25 Mar 2010 10:13:21 +0000 (10:13 +0000)]
Remove disabled code. In 99% cases exports are send to ng_ksocket(4), which
already forces queued mode, so what was suggested in disabled code is already
done.

14 years agofix another bug in "ipfw set N ..."
Luigi Rizzo [Wed, 24 Mar 2010 23:06:16 +0000 (23:06 +0000)]
fix another bug in "ipfw set N ..."

Submitted by: Marcin Wisnicki

14 years agoThis broke when we went to gnu99 as the default standard. Fix the build
Warner Losh [Wed, 24 Mar 2010 20:20:28 +0000 (20:20 +0000)]
This broke when we went to gnu99 as the default standard.  Fix the build
by reverting to the gnu89 standard.

14 years agoAdds the option of keeping per-cpu statistics in SCTP. This
Randall Stewart [Wed, 24 Mar 2010 20:02:40 +0000 (20:02 +0000)]
Adds the option of keeping per-cpu statistics in SCTP. This
may be useful since it gets rid of atomics but I want it to
remain an option until I can do further testing on if it really
speeds things up.

14 years agolagging file I forgot to commit with my nr-sack fixes... opps
Randall Stewart [Wed, 24 Mar 2010 20:01:14 +0000 (20:01 +0000)]
lagging file I forgot to commit with my nr-sack fixes... opps

Reviewed by: tuexen@freebsd.org

14 years agoFix for NR-Sack code. The code was NOT working properly when
Randall Stewart [Wed, 24 Mar 2010 19:45:36 +0000 (19:45 +0000)]
Fix for NR-Sack code. The code was NOT working properly when
enabled. Basically most of the operations were incorrect causing
bad sacks when you enabled nr-sack. The fixes range across
4 files and unifiy most of the processing so that we only test
nr_sack flags to decide which type of sack to generate.

Optimization left for this is to combine the sack generation
code and make it capable of generating either sack thus shrinking
out a routine.

Reviewed by: tuexen@freebsd.org

14 years agoPrint the pointer to the lock with the panic message. The previous
Bjoern A. Zeeb [Wed, 24 Mar 2010 19:21:26 +0000 (19:21 +0000)]
Print the pointer to the lock with the panic message. The previous
panic: rw lock not unlocked
was not really helpful for debugging. Now one can at least call
show lock <ptr>
form ddb to learn more about the lock.

MFC after: 3 days

14 years agoExpose MACHINE_CPU while building lib32 target.
Xin LI [Wed, 24 Mar 2010 18:40:57 +0000 (18:40 +0000)]
Expose MACHINE_CPU while building lib32 target.

14 years agomake the module loadable
Luigi Rizzo [Wed, 24 Mar 2010 18:35:31 +0000 (18:35 +0000)]
make the module loadable

Submitted by: Marcin Wisnicki

14 years agoDo not fetch precise time of request start when stats collection disabled.
Alexander Motin [Wed, 24 Mar 2010 18:04:25 +0000 (18:04 +0000)]
Do not fetch precise time of request start when stats collection disabled.

Reviewed by: pjd, phk

14 years agoNow actually implement reading/refreshing/returning data from the pfTablesAddrTable
Shteryana Shopova [Wed, 24 Mar 2010 16:07:33 +0000 (16:07 +0000)]
Now actually implement reading/refreshing/returning data from the pfTablesAddrTable
and modify the BEGEMOT-PF-MIB to add support for IPV6 address' statistics in the PF
tables via pfTablesAddrNetType and pfTablesAddrNet. While here, upgrade the
pf_tree.def file to the new format that includes enumerated values. Also make sure
to return SNMP_ERR_NOSUCHNAME for ALTQ objects, if ALTQ is disabled, so that the agent
will know to skip the pfAltq subtree when servicing GETNEXT requests from SNMP clients
(otherwise snmpwalk on begemotPf would stop at the pfAltq subtree with bsnmpd returning
SNMP_ERR_GENERR).

14 years ago- Remove const'ness from dlerror(3) prototype, for consistency with POSIX.
Pietro Cerutti [Wed, 24 Mar 2010 15:59:51 +0000 (15:59 +0000)]
- Remove const'ness from dlerror(3) prototype, for consistency with POSIX.

Approved by: cognet
MFC after: 1 week

14 years agoAlign memory access of 24-bit pixel renderer to word boundary.
Jung-uk Kim [Wed, 24 Mar 2010 15:40:18 +0000 (15:40 +0000)]
Align memory access of 24-bit pixel renderer to word boundary.

14 years agoTeach VGA framebuffer about 8-bit palette format for VESA.
Jung-uk Kim [Wed, 24 Mar 2010 15:37:47 +0000 (15:37 +0000)]
Teach VGA framebuffer about 8-bit palette format for VESA.

14 years agoHonor ip.fw.one_pass when a packet comes out of a pipe without being delayed.
Luigi Rizzo [Wed, 24 Mar 2010 15:16:59 +0000 (15:16 +0000)]
Honor ip.fw.one_pass when a packet comes out of a pipe without being delayed.
I forgot to handle this case when i did the mtag cleanup three months ago.

PR: 145004

14 years agoPrune empty directories.
Ed Schouten [Wed, 24 Mar 2010 15:16:05 +0000 (15:16 +0000)]
Prune empty directories.

14 years agoAdd missing Giant locking for the vfsconf list.
John Baldwin [Wed, 24 Mar 2010 14:20:37 +0000 (14:20 +0000)]
Add missing Giant locking for the vfsconf list.

Submitted by: kib

14 years agoUse gpart(8) to set the active boot partition.
Poul-Henning Kamp [Wed, 24 Mar 2010 11:21:33 +0000 (11:21 +0000)]
Use gpart(8) to set the active boot partition.

14 years agoo FreeBSD 7.3 added.
Maxim Konovalov [Wed, 24 Mar 2010 06:08:51 +0000 (06:08 +0000)]
o FreeBSD 7.3 added.

14 years agoFix periodic "t_delta 16.01359db7eb5eb3c0 too long" messages on the console by
Neel Natu [Wed, 24 Mar 2010 04:52:15 +0000 (04:52 +0000)]
Fix periodic "t_delta 16.01359db7eb5eb3c0 too long" messages on the console by
accounting for the "lost time" between when the timer interrupt fired
and when clock_intr() actually started executing.

14 years agoThe nargvstr and nenvstr properties of arginfo are ints, not longs,
Nathan Whitehorn [Wed, 24 Mar 2010 03:13:24 +0000 (03:13 +0000)]
The nargvstr and nenvstr properties of arginfo are ints, not longs,
so should be copied to userspace with suword32() instead of suword().
This alleviates problems on 64-bit big-endian architectures, and is a
no-op on all 32-bit architectures.

Tested on: amd64, sparc64, powerpc64

14 years agoAdapt r204907 and r205402, the amd64 implementation of the workaround for
Alan Cox [Wed, 24 Mar 2010 03:07:35 +0000 (03:07 +0000)]
Adapt r204907 and r205402, the amd64 implementation of the workaround for
AMD Family 10h Erratum 383, to i386.

Enable machine check exceptions by default, just like r204913 for amd64.

Enable superpage promotion only if the processor actually supports large
pages, i.e., PG_PS.

MFC after: 2 weeks

14 years agoFix the experimental NFS subsystem so that it uses the correct
Rick Macklem [Wed, 24 Mar 2010 02:02:02 +0000 (02:02 +0000)]
Fix the experimental NFS subsystem so that it uses the correct
preprocessor macro name for not requiring strict data alignment.

Suggested by: marius
MFC after: 2 weeks

14 years agoUpdate metadata information as well as upgrade instructions.
Xin LI [Tue, 23 Mar 2010 23:56:22 +0000 (23:56 +0000)]
Update metadata information as well as upgrade instructions.

14 years agoFix an off-by-one bug for the number of slots on a PCI/PCI-X bus.
Marcel Moolenaar [Tue, 23 Mar 2010 23:46:28 +0000 (23:46 +0000)]
Fix an off-by-one bug for the number of slots on a PCI/PCI-X bus.
We failed to setup PCI devices on slot 31 and that's where the
SATA controller is for the P2020 eval board.

14 years agoAdd my copyright here. It seems I have contributed enough code. :-)
Jung-uk Kim [Tue, 23 Mar 2010 23:19:23 +0000 (23:19 +0000)]
Add my copyright here.  It seems I have contributed enough code. :-)

14 years agoBe extremely careful when we determine bytes per scan line information.
Jung-uk Kim [Tue, 23 Mar 2010 23:10:17 +0000 (23:10 +0000)]
Be extremely careful when we determine bytes per scan line information.
First, we compare mode table data against minimum value.  If the mode table
does not make sense, we set the minimum in the mode info.  When we actually
set the mode, we try VESA BIOS function and compare it against the previous
value.  If it makes more sense, update the information.

14 years agoWhen the regular NFS server replied to a UDP client out of the replay
Rick Macklem [Tue, 23 Mar 2010 23:03:30 +0000 (23:03 +0000)]
When the regular NFS server replied to a UDP client out of the replay
cache, it did not free the request argument mbuf list, resulting in a leak.
This patch fixes that leak.

Tested by: danny AT cs.huji.ac.il
PR: kern/144330
Submitted by: to.my.trociny AT gmail.com (earlier version)
Reviewed by: dfr
MFC after: 2 weeks

14 years agoMFV: Update nc to the version from OpenBSD 4.7.
Xin LI [Tue, 23 Mar 2010 23:00:35 +0000 (23:00 +0000)]
MFV: Update nc to the version from OpenBSD 4.7.

MFC after: 1 month

14 years agoImport nc from OpenBSD's OPENBSD_4_7 as of today.
Xin LI [Tue, 23 Mar 2010 22:56:19 +0000 (22:56 +0000)]
Import nc from OpenBSD's OPENBSD_4_7 as of today.

14 years agoFall back to VGA palette functions if VESA function failed and DAC is still
Jung-uk Kim [Tue, 23 Mar 2010 22:50:22 +0000 (22:50 +0000)]
Fall back to VGA palette functions if VESA function failed and DAC is still
in 6-bit mode.  Although we have to check non-VGA compatibility bit here,
it seems there are too many broken VESA BIOSes out to rely on it.

14 years agoMap entire video memory again. This is a partial backout of r203535.
Jung-uk Kim [Tue, 23 Mar 2010 22:35:52 +0000 (22:35 +0000)]
Map entire video memory again.  This is a partial backout of r203535.
Although we do not use them all directly, it seems VGA render may access
unmapped memory region and cause kernel panic.

14 years agoSeparate 24-bit pixel draw from 32-bit case. Although it is slower, we do
Jung-uk Kim [Tue, 23 Mar 2010 22:16:57 +0000 (22:16 +0000)]
Separate 24-bit pixel draw from 32-bit case.  Although it is slower, we do
not want to write a useless zero to inaccessible memory region.

14 years agoImplement /proc/filesystems.
John Baldwin [Tue, 23 Mar 2010 21:49:33 +0000 (21:49 +0000)]
Implement /proc/filesystems.

Submitted by: Fernando Apesteguia fernando.apesteguia (gmail)

14 years agoReject attempts to create a MAP_ANON mapping with a non-zero offset.
John Baldwin [Tue, 23 Mar 2010 21:08:07 +0000 (21:08 +0000)]
Reject attempts to create a MAP_ANON mapping with a non-zero offset.

PR: kern/71258
Submitted by: Alexander Best
MFC after: 2 weeks

14 years agoAdd definitions for a 4th PCI host controller. No Freescale processor
Marcel Moolenaar [Tue, 23 Mar 2010 20:12:53 +0000 (20:12 +0000)]
Add definitions for a 4th PCI host controller. No Freescale processor
has all 4 implemented, but across the processors we now support all the
combinations. For example, the MPC8533 doesn't have a PCI controller
at 0xA0000, but does at 0xB0000.

14 years agoAdd PCI ID for MCS9901's parallel port.
Xin LI [Tue, 23 Mar 2010 20:08:18 +0000 (20:08 +0000)]
Add PCI ID for MCS9901's parallel port.

PR: kern/144713
Submitted by: gcooper
MFC after: 2 weeks

14 years agoEnable power management for E500 cores. Use "doze" for now to make
Marcel Moolenaar [Tue, 23 Mar 2010 19:30:56 +0000 (19:30 +0000)]
Enable power management for E500 cores. Use "doze" for now to make
sure the caches remain coherent. For single-core configurations and
with busdma changes we could eventually switch to "nap" and force
a D-cache invalidation as part of the DMA completion. To this end,
clear PSL_WE until after we handled the decrementer or external
interrupt as it tells us whether we just woke up or not.

14 years agoCorrect cross reference.
Xin LI [Tue, 23 Mar 2010 18:00:50 +0000 (18:00 +0000)]
Correct cross reference.

MFC after: 2 weeks

14 years agoWhen receiving a management frame, pass the mbuf to bpf before calling
Rui Paulo [Tue, 23 Mar 2010 14:31:31 +0000 (14:31 +0000)]
When receiving a management frame, pass the mbuf to bpf before calling
iv_recv_mgmt(). iv_recv_mgmt() will generate management frame responses
and pass them to bpf before the management frame that triggered the
response.

PR: 144323
Submitted by: Alexander Egorenkov <egorenar at gmail.com>
MFC after: 2 weeks
Sponsored by: iXsystems, inc.

14 years agoAdd MCS to the list of media types.
Rui Paulo [Tue, 23 Mar 2010 13:15:11 +0000 (13:15 +0000)]
Add MCS to the list of media types.

Sponsored by: iXsystems, inc.

14 years agoAdd a missing LINE_BREAK() after printing the roaming parameters in
Rui Paulo [Tue, 23 Mar 2010 12:05:25 +0000 (12:05 +0000)]
Add a missing LINE_BREAK() after printing the roaming parameters in
verbose mode.

Sponsored by: iXsystems, inc.
MFC after: 2 weeks