]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
10 years agoFix a logic error. Because of this inflateReset() wasn't being called and
Luiz Otavio O Souza [Mon, 3 Feb 2014 17:25:36 +0000 (17:25 +0000)]
Fix a logic error.  Because of this inflateReset() wasn't being called and
the output buffer wasn't being cleared between the inflate() calls,
producing zeroed output after the first inflate() call.

This fixes the read of mkuzip(8) images with geom_uncompress(4).

Reviewed by: ray
Approved by: adrian (mentor)

10 years agoRemove some unnecessary code. The offsets read from the first block are
Luiz Otavio O Souza [Mon, 3 Feb 2014 17:21:36 +0000 (17:21 +0000)]
Remove some unnecessary code.  The offsets read from the first block are
overwritten a few lines bellow.

Reviewed by: ray
Approved by: adrian (mentor)

10 years agoMove the check for standard keyword + optional inclusion specifier to
Warner Losh [Mon, 3 Feb 2014 16:54:53 +0000 (16:54 +0000)]
Move the check for standard keyword + optional inclusion specifier to
its proper location. Otherwise you could have 'file.c standard pci'
without an error. This construct isn't in our tree, and has no well
defined meaning.

10 years agoDon't believe we have a requirement until after we've checked all the
Warner Losh [Mon, 3 Feb 2014 16:47:10 +0000 (16:47 +0000)]
Don't believe we have a requirement until after we've checked all the
known key words. This will make error messages slightly better in
weird corner cases, but should otherwise be a nop.

10 years agoIn the 17 years since r30796, the mandatory keyword has never been used
Warner Losh [Mon, 3 Feb 2014 16:46:01 +0000 (16:46 +0000)]
In the 17 years since r30796, the mandatory keyword has never been used
in any files as far as I can tell, and is currently unused. Retire it.

10 years agoSlightly deobfuscate read_file() and likely pessimize the runtime
Warner Losh [Mon, 3 Feb 2014 15:10:44 +0000 (15:10 +0000)]
Slightly deobfuscate read_file() and likely pessimize the runtime
performance by epsilon.
(Translation: elminate bogus macros that hid 'returns' making it hard
 to read and moved a block of code inline rather than at the end of the
 fuction where it was effectively a 'gosub' kind of goto).

10 years agoFix the definition of hg_cmd.
Rui Paulo [Mon, 3 Feb 2014 08:15:09 +0000 (08:15 +0000)]
Fix the definition of hg_cmd.

MFC after: 3 days

10 years agoApply patch for CVE-2013-6393 [1] to fix heap-based buffer overflow when
Baptiste Daroussin [Mon, 3 Feb 2014 08:13:44 +0000 (08:13 +0000)]
Apply patch for CVE-2013-6393 [1] to fix heap-based buffer overflow when
parsing YAML tags.
Also apply a patch for hardenning the guards againt the issue

The only user in base in yaml is pkg(7) which uses the library a way that it is not affected

Submitted by: delphij
Obtained from: https://bugzilla.redhat.com/show_bug.cgi?id=1033990
MFC after: 3 days
Security: CVE-2013-6393

10 years agoApply patch for CVE-2013-6393 [1] to fix heap-based buffer overflow when
Baptiste Daroussin [Mon, 3 Feb 2014 08:00:45 +0000 (08:00 +0000)]
Apply patch for CVE-2013-6393 [1] to fix heap-based buffer overflow when
parsing YAML tags.
Also apply a patch for hardenning the guards againt the issue

The only user in base in yaml is pkg(7) which uses the library a way that it is not affected

Submitted by: delphij
Obtained from: https://bugzilla.redhat.com/show_bug.cgi?id=1033990
Security: CVE-2013-6393

10 years agodhclient: change the pidfile's permissions to 644
Eitan Adler [Mon, 3 Feb 2014 04:22:29 +0000 (04:22 +0000)]
dhclient: change the pidfile's permissions to 644

This change permits non-root users to determine if dhclient is running
('service dhclient status wlan0').

Discussed with: mjg, cperciva

10 years agoSort the list.
Ian Lepore [Mon, 3 Feb 2014 02:56:23 +0000 (02:56 +0000)]
Sort the list.

10 years agoAdd the imx sdhci controller.
Ian Lepore [Mon, 3 Feb 2014 02:52:07 +0000 (02:52 +0000)]
Add the imx sdhci controller.

10 years agoMake gas accept any PowerPC instruction by default. This is a local change,
Justin Hibbits [Mon, 3 Feb 2014 01:45:07 +0000 (01:45 +0000)]
Make gas accept any PowerPC instruction by default.  This is a local change,
and will not be submitted upstream.

Discussed with: nwhitehorn,rdivacky
MFC after: 1 month

10 years agoAdd driver for the ADT7460/ADT7467 fan controller found in later PowerBooks
Justin Hibbits [Mon, 3 Feb 2014 01:22:50 +0000 (01:22 +0000)]
Add driver for the ADT7460/ADT7467 fan controller found in later PowerBooks
and iBooks.  Original work by andreast.

MFC after: 1 month

10 years agoAdd missing file to Makefile.
Justin Hibbits [Mon, 3 Feb 2014 01:16:32 +0000 (01:16 +0000)]
Add missing file to Makefile.

MFC after: 1 month
X-MFC-with: 261342

10 years agoOnly use the CPU ID register if SMP is defined. Some non-MPCore armv6 cpu,
Olivier Houchard [Sun, 2 Feb 2014 23:29:51 +0000 (23:29 +0000)]
Only use the CPU ID register if SMP is defined. Some non-MPCore armv6 cpu,
such as the one found in the RPi, don't have it, and just hang when we try
to access it.

10 years agoInvalidate cachelines for bounce pages on PREREAD too, there may still be
Olivier Houchard [Sun, 2 Feb 2014 22:26:30 +0000 (22:26 +0000)]
Invalidate cachelines for bounce pages on PREREAD too, there may still be
stale entries from a previous transfer.

10 years agoAdd missing semicolon.
Ian Lepore [Sun, 2 Feb 2014 21:44:04 +0000 (21:44 +0000)]
Add missing semicolon.

10 years agoo Add prototype for tcon_bypass() used by dcu4
Ruslan Bukin [Sun, 2 Feb 2014 21:10:40 +0000 (21:10 +0000)]
o Add prototype for tcon_bypass() used by dcu4
o Add register definition

10 years agoChange the way pcpu and curthread are stored per-core:
Olivier Houchard [Sun, 2 Feb 2014 20:58:23 +0000 (20:58 +0000)]
Change the way pcpu and curthread are stored per-core:
the old way was to store pcpu in a register, and get curthread from pcpu,
which is not very atomic, and led to issues if the thread was migrated
to another core between the time we got the pcpu address and the time we
got curthread.
Instead, we now store curthread where pcpu used to be store, and we
calculate the pcpu address based on the cpu id.

10 years agoDon't call device_set_ivars() for the mmchs, it doesn't seem to be used,
Olivier Houchard [Sun, 2 Feb 2014 20:45:41 +0000 (20:45 +0000)]
Don't call device_set_ivars() for the mmchs, it doesn't seem to be used,
and it overrides the ivars set by the simplebus.

10 years agoAdd driver for Display Control Unit (DCU4).
Ruslan Bukin [Sun, 2 Feb 2014 20:25:27 +0000 (20:25 +0000)]
Add driver for Display Control Unit (DCU4).

10 years agoMake prefaulting more aggressive on hard faults. Previously, we would only
Alan Cox [Sun, 2 Feb 2014 20:21:53 +0000 (20:21 +0000)]
Make prefaulting more aggressive on hard faults.  Previously, we would only
map a fraction of the pages that were fetched by vm_pager_get_pages() from
secondary storage.  Now, we map them all in order to avoid future soft
faults.  This effect is most evident when a memory-mapped file is accessed
sequentially.  Previously, there were 6 soft faults for every hard fault.
Now, these soft faults are eliminated.

Sponsored by: EMC / Isilon Storage Division

10 years agoAdd support for Colibri VF50 Evaluation Board.
Ruslan Bukin [Sun, 2 Feb 2014 19:35:10 +0000 (19:35 +0000)]
Add support for Colibri VF50 Evaluation Board.

Colibri VF50 is a SODIMM200 Vybrid Family core module
and development board produced by Toradex AG.

Sponsored by: Machdep, Inc.

10 years agoFollow r261352 by updating all drivers which are children of simplebus
Ian Lepore [Sun, 2 Feb 2014 19:17:28 +0000 (19:17 +0000)]
Follow r261352 by updating all drivers which are children of simplebus
to check the status property in their probe routines.

Simplebus used to only instantiate its children whose status="okay"
but that was improper behavior, fixed in r261352.  Now that it doesn't
check anymore and probes all its children; the children all have to
do the check because really only the children know how to properly
interpret their status property strings.

Right now all existing drivers only understand "okay" versus something-
that's-not-okay, so they all use the new ofw_bus_status_okay() helper.

10 years agoSplit kernel configuration to chip common and board specific parts.
Ruslan Bukin [Sun, 2 Feb 2014 19:13:02 +0000 (19:13 +0000)]
Split kernel configuration to chip common and board specific parts.

10 years agoAssert input arguments to buf_send() and buf_recv().
Pawel Jakub Dawidek [Sun, 2 Feb 2014 19:06:00 +0000 (19:06 +0000)]
Assert input arguments to buf_send() and buf_recv().

Submitted by: Mariusz Zaborski <oshogbo@FreeBSD.org>

10 years agoFix sending empty nvlist.
Pawel Jakub Dawidek [Sun, 2 Feb 2014 19:03:52 +0000 (19:03 +0000)]
Fix sending empty nvlist.

Submitted by: Mariusz Zaborski <oshogbo@FreeBSD.org>

10 years agoo Expand device tree information
Ruslan Bukin [Sun, 2 Feb 2014 17:48:06 +0000 (17:48 +0000)]
o Expand device tree information
o Export iomuxc (pins) configuration to DTS
o Allow devices to assign clocks in DTS

10 years agoBe more robust with malformed interrupt config data. Instead of crashing
Ian Lepore [Sun, 2 Feb 2014 16:56:40 +0000 (16:56 +0000)]
Be more robust with malformed interrupt config data.  Instead of crashing
or going into a near-infinite loop, warn and make potentially-reasonable
assumptions.

10 years agoFix one remnant endian flaw here. The back-and-forth endian conversions are
Nathan Whitehorn [Sun, 2 Feb 2014 16:42:26 +0000 (16:42 +0000)]
Fix one remnant endian flaw here. The back-and-forth endian conversions are
confusing.

10 years agoAdd a set of helpers (ofw_bus_get_status() and ofw_bus_status_okay()) to
Nathan Whitehorn [Sun, 2 Feb 2014 16:41:54 +0000 (16:41 +0000)]
Add a set of helpers (ofw_bus_get_status() and ofw_bus_status_okay()) to
process "status" properties of OF nodes.

I've avoided adding new KOBJ methods here so that we don't have to modify
every ofw_bus in the tree. Since 100% of implementations of ofw_bus use
only ofw_bus_gen_*(), it might be worth garbage-collecting the other
methods as well.

10 years agoAdd back reference to buf(9) removed in r32223 as buf(9) was added
Bryan Drewery [Sun, 2 Feb 2014 14:13:51 +0000 (14:13 +0000)]
Add back reference to buf(9) removed in r32223 as buf(9) was added
in r42016.

Approved by: bapt (mentor)

10 years agoFix newsyslog(8) to use the size of the file instead of the blocks it
Bryan Drewery [Sun, 2 Feb 2014 14:11:34 +0000 (14:11 +0000)]
Fix newsyslog(8) to use the size of the file instead of the blocks it
takes on disk, as advertised in newsyslog.conf(5).

This fixes newsyslog(8) on ZFS with compression enabled to not have
large files compared to the expected rotation size.

  # grep remotes/messages /etc/newsyslog.conf
  /var/log/remote/messages       root:info       640  5     500  *     JC
  # ls -alh /var/log/remote/messages
  -rw-r-----  1 root  info    3.2M Jan 31 20:02 /var/log/remote/messages
  # newsyslog -vN|grep remote/messages
  /var/log/remote/messages <5J>: size (Kb): 464 [500] --> skipping
  # stat -f "st_size: %z st_blocks: %b" /var/log/remote/messages
  st_size: 3372627 st_blocks: 928
  # zfs get -H compressratio zroot/syslogs
  zroot/syslogs    compressratio   3.77x   -

With fix:

  # newsyslog -v | grep remote/messages
  /var/log/remote/messages <5J>: size (Kb): 3338 [500] --> trimming log....

Approved by: bapt (mentor)
PR: docs/150877
Reported by: Joshua Isom <jrisom@gmail.com>
MFC after: 2 weeks

10 years agoTake exclusive lock only when lle isn't NULL. We don't need write access
Andrey V. Elsukov [Sun, 2 Feb 2014 07:28:04 +0000 (07:28 +0000)]
Take exclusive lock only when lle isn't NULL. We don't need write access
to lle in most cases.

MFC after: 1 week
Sponsored by: Yandex LLC

10 years agoFix missing offset.
Nathan Whitehorn [Sun, 2 Feb 2014 05:52:34 +0000 (05:52 +0000)]
Fix missing offset.

10 years agoAllow nesting of simplebuses.
Nathan Whitehorn [Sun, 2 Feb 2014 05:41:12 +0000 (05:41 +0000)]
Allow nesting of simplebuses.

10 years agoFix typo. Sorry for breakage!
Nathan Whitehorn [Sun, 2 Feb 2014 05:21:12 +0000 (05:21 +0000)]
Fix typo. Sorry for breakage!

10 years agoUse m_defrag() instead of m_collapse() to compact a long mbuf chain
Bryan Venteicher [Sun, 2 Feb 2014 05:20:46 +0000 (05:20 +0000)]
Use m_defrag() instead of m_collapse() to compact a long mbuf chain

This should be an infrequent occurrence, so remove the per-queue
counters in favor of just global counters in the softc.

10 years agoDo not place the sglist used for Rx/Tx on the stack
Bryan Venteicher [Sun, 2 Feb 2014 05:15:36 +0000 (05:15 +0000)]
Do not place the sglist used for Rx/Tx on the stack

The sglist segment array has grown to a bit over 512 bytes (on
64-bit system) which is more than ideally should be put on the
stack. Instead allocate an appropriately sized sglist and hang
it off each Rx/Tx queue structure.

Bump the maximum number of Tx segments to 64 to make it unlikely
we'll have defragment an mbuf chain. Our previous count was
rounded up to this value since it is the next power of two, so
effective memory usage should not change.

Also only allocate the maximum number of Tx segments if TSO was
negotiated.

10 years agoUpdate all arm code that manipulates the PSR registers to use modern syntax.
Ian Lepore [Sun, 2 Feb 2014 00:48:15 +0000 (00:48 +0000)]
Update all arm code that manipulates the PSR registers to use modern syntax.

It turns out the version of gas we're using interprets the old '_all' mask
as 'fc' instead of 'fsxc'.  That is, "all" doesn't really mean "all".

This was the cause of the "wrong-endian register restore" bug that's
been causing problems with some cortex-a9 chips.  The 'endian' bit in the
spsr register would never get changed (it falls into the 'x' mask group)
and the first return-from-exception would fail if the chip had powered on
with garbage in the spsr register that included the big-endian bit.  It's
unknown why this affected only certain cortex-a9 chips.

10 years agoSwitch default Book-E scheduler to ULE, which works now, and enable
Nathan Whitehorn [Sat, 1 Feb 2014 20:56:50 +0000 (20:56 +0000)]
Switch default Book-E scheduler to ULE, which works now, and enable
CAPABILITIES stuff required to make ssh work.

Hopefully, Book-E can eventually be added to GENERIC, which would avoid
this kind of issue with bitrot. That will require figuring out how to link
Book-E and AIM kernels at the same address, however...

10 years agoULE works on Book-E since r258002, so remove statements to the contrary.
Nathan Whitehorn [Sat, 1 Feb 2014 20:46:35 +0000 (20:46 +0000)]
ULE works on Book-E since r258002, so remove statements to the contrary.

10 years agoAvoid spurious compiler warning about an uninitialized variable.
Nathan Whitehorn [Sat, 1 Feb 2014 20:06:52 +0000 (20:06 +0000)]
Avoid spurious compiler warning about an uninitialized variable.

10 years agoFix typo.
Nathan Whitehorn [Sat, 1 Feb 2014 19:25:15 +0000 (19:25 +0000)]
Fix typo.

10 years agoIn _pthread_kill(), if passed pthread is current thread, do not send
Konstantin Belousov [Sat, 1 Feb 2014 18:13:18 +0000 (18:13 +0000)]
In _pthread_kill(), if passed pthread is current thread, do not send
the signal second time, by adding the missed else before if statement.

While there, postpone initializing local curthread variable until
passed signal number is checked for validity.

Submitted by: John Wolfe <jlw@xinuos.com>
PR: threads/186309
MFC after: 1 week

10 years agoFix AT91SAM9260 to work with PA rather than VA device addresses.
Warner Losh [Sat, 1 Feb 2014 17:53:35 +0000 (17:53 +0000)]
Fix AT91SAM9260 to work with PA rather than VA device addresses.

10 years agoProvide a simpler and more standards-compliant simplebus implementation to
Nathan Whitehorn [Sat, 1 Feb 2014 17:41:54 +0000 (17:41 +0000)]
Provide a simpler and more standards-compliant simplebus implementation to
get the Routerboard 800 up and running with the vendor device tree. This
does not implement some BERI-specific features (which hopefully won't be
necessary soon), so move the old code to mips/beri, with a higher attach
priority when built, until MIPS interrupt domain support is rearranged.

10 years agoOpen Firmware interrupt specifiers can consist of arbitrary-length byte
Nathan Whitehorn [Sat, 1 Feb 2014 17:17:35 +0000 (17:17 +0000)]
Open Firmware interrupt specifiers can consist of arbitrary-length byte
strings and include arbitrary information (IRQ line/domain/sense). When the
ofw_bus_map_intr() API was introduced, it assumed that, as on most systems,
these were either 1 cell, containing an interrupt line, or 2, containing
a line number plus a sense code. It turns out a non-negligible number of
ARM systems use 3 (or even 4!) cells for interrupts, so make this more
general.

10 years agoRemove the .Ex macro that I used for testing.
Christian Brueffer [Sat, 1 Feb 2014 12:33:58 +0000 (12:33 +0000)]
Remove the .Ex macro that I used for testing.

Pointy hat: brueffer

10 years agoBring the exit status wording closer to what .Ex would produce.
Christian Brueffer [Sat, 1 Feb 2014 12:30:00 +0000 (12:30 +0000)]
Bring the exit status wording closer to what .Ex would produce.
Fixes a typo in the process.

MFC after: 1 week

10 years agoAdd definition for NetBSD 7.0, which is referenced in several manpages.
Sergey Kandaurov [Sat, 1 Feb 2014 10:36:35 +0000 (10:36 +0000)]
Add definition for NetBSD 7.0, which is referenced in several manpages.

Discussed with: uqs
MFC after: 5 days

10 years agoMerge mdocml v1.12.3 into head
Ulrich Spörlein [Sat, 1 Feb 2014 09:27:57 +0000 (09:27 +0000)]
Merge mdocml v1.12.3 into head

MFC after: 2 weeks

10 years agoAdd a comment about the origin of some structures, defines and so on.
Hans Petter Selasky [Sat, 1 Feb 2014 06:58:16 +0000 (06:58 +0000)]
Add a comment about the origin of some structures, defines and so on.

MFC after: 1 week

10 years agoAdd hwpmc(4) support for the PowerPC 970 class processors, direct events.
Justin Hibbits [Sat, 1 Feb 2014 02:03:50 +0000 (02:03 +0000)]
Add hwpmc(4) support for the PowerPC 970 class processors, direct events.
This also fixes asserts on removal of the module for the mpc74xx.

The PowerPC 970 processors have two different types of events: direct events
and indirect events.  Thus far only direct events are supported.  I included
some documentation in the driver on how indirect events work, but support is
for the future.

MFC after: 1 month

10 years agoTurn sandboxing on by default.
Dag-Erling Smørgrav [Sat, 1 Feb 2014 00:07:16 +0000 (00:07 +0000)]
Turn sandboxing on by default.

10 years agoMLINK ixgbe.4 to {if_ix.4, ix.4}. An update for ixgbe.4
Christian Brueffer [Fri, 31 Jan 2014 23:44:54 +0000 (23:44 +0000)]
MLINK ixgbe.4 to {if_ix.4, ix.4}.  An update for ixgbe.4
which deals with the "ix prefix being shared by two drivers"
situation is forthcoming.

Thanks to dwhite for the ixgbe history lesson.

MFC after: 1 week

10 years agoMove these for diff reduction against FDT work.
Warner Losh [Fri, 31 Jan 2014 23:38:05 +0000 (23:38 +0000)]
Move these for diff reduction against FDT work.

10 years agoMinor cleanup of comments.
Warner Losh [Fri, 31 Jan 2014 23:28:18 +0000 (23:28 +0000)]
Minor cleanup of comments.

10 years agoFix silly typo...
Warner Losh [Fri, 31 Jan 2014 23:18:30 +0000 (23:18 +0000)]
Fix silly typo...

10 years agoFix a range check for maximum transmit length. The existing code was
Hans Petter Selasky [Fri, 31 Jan 2014 22:42:26 +0000 (22:42 +0000)]
Fix a range check for maximum transmit length. The existing code was
off by 4 bytes in one case.

Approved by: kevlo @
MFC after: 2 weeks

10 years agoImport mdocml version 1.12.3
Ulrich Spörlein [Fri, 31 Jan 2014 19:59:03 +0000 (19:59 +0000)]
Import mdocml version 1.12.3

10 years agoBack out r261266 pending security buy-in.
Jamie Gritton [Fri, 31 Jan 2014 17:39:51 +0000 (17:39 +0000)]
Back out r261266 pending security buy-in.

  r261266:
  Add a jail parameter, allow.kmem, which lets jailed processes access
  /dev/kmem and related devices (i.e. grants PRIV_IO and PRIV_KMEM_WRITE).
  This in conjunction with changing the drm driver's permission check from
  PRIV_DRIVER to PRIV_KMEM_WRITE will allow a jailed Xorg server.

10 years agoSort Xr's.
Sergey Kandaurov [Fri, 31 Jan 2014 17:15:56 +0000 (17:15 +0000)]
Sort Xr's.

10 years ago[mdoc] Avoid a line break.
Sergey Kandaurov [Fri, 31 Jan 2014 16:27:06 +0000 (16:27 +0000)]
[mdoc] Avoid a line break.

10 years agoSwitch to using PAs rather than VAs for the addresses we map for
Warner Losh [Fri, 31 Jan 2014 15:38:05 +0000 (15:38 +0000)]
Switch to using PAs rather than VAs for the addresses we map for
devices. This is a nop, except for what's reported by atmelbus for the
resources.

It would be nice if we could dymanically allocated these things, but
the pmap_mapdev panics if we don't keep the static mappings, so we
still need to play the carefully allocate VA space between all
supported SoC game.

User's with their own devices may need to make adjustments.

10 years agoRename the AMD MSR_PERFCTR[0-3] so the Pentium Pro MSR_PERFCTR[0-1]
Tijl Coosemans [Fri, 31 Jan 2014 14:29:34 +0000 (14:29 +0000)]
Rename the AMD MSR_PERFCTR[0-3] so the Pentium Pro MSR_PERFCTR[0-1]
aren't redefined.

Reported by: "Trivedi, Nishank" <Nishank.Trivedi@netapp.com>
Discussed with: kib

10 years agoUpgrade to OpenSSH 6.5p1.
Dag-Erling Smørgrav [Fri, 31 Jan 2014 13:12:02 +0000 (13:12 +0000)]
Upgrade to OpenSSH 6.5p1.

10 years agoPull up vendor changes up to 2014-01-29
Ulrich Spörlein [Fri, 31 Jan 2014 12:26:30 +0000 (12:26 +0000)]
Pull up vendor changes up to 2014-01-29

- move local overrides into mdoc.local
- syncs us with git commit 819839b66c80e8dabe6cb24ea6319c26c9a2be14

Discussed with: ru
MFC after: 2 weeks

10 years agoo NetBSD 6.1.3 added.
Maxim Konovalov [Fri, 31 Jan 2014 08:48:25 +0000 (08:48 +0000)]
o NetBSD 6.1.3 added.

10 years agoFix for unexpected selection with two fingers sometimes.
Hans Petter Selasky [Fri, 31 Jan 2014 07:14:21 +0000 (07:14 +0000)]
Fix for unexpected selection with two fingers sometimes.
Fix for unexpected scrolling when click with two fingers.

Submitted by: Huang Wen Hui <huanghwh@gmail.com>
MFC after: 1 week

10 years agoadd a few missing links...
John-Mark Gurney [Fri, 31 Jan 2014 03:57:49 +0000 (03:57 +0000)]
add a few missing links...

Submitted by: J David
MFC after: 1 week

10 years agoUnbreak non-SMP builds. This was broken by r259284. Also, reorganize the
Justin Hibbits [Fri, 31 Jan 2014 03:55:34 +0000 (03:55 +0000)]
Unbreak non-SMP builds.  This was broken by r259284.  Also, reorganize the
code introduced in that revision a bit.

Reviewed by: nwhitehorn
MFC after: 3 weeks

10 years agoHack: Add explicit depends on bus_if.h and device_if.h to avoid a
Warner Losh [Fri, 31 Jan 2014 01:34:55 +0000 (01:34 +0000)]
Hack: Add explicit depends on bus_if.h and device_if.h to avoid a
chicken and egg problem in some compilation environments.

10 years agoWhen mapping an address, the bsh needs the same offset we do for other
Warner Losh [Fri, 31 Jan 2014 01:18:34 +0000 (01:18 +0000)]
When mapping an address, the bsh needs the same offset we do for other
things.

10 years agoMerge from CheriBSD:
Brooks Davis [Thu, 30 Jan 2014 22:26:51 +0000 (22:26 +0000)]
Merge from CheriBSD:
commit 1b41f6de7ca09e04fdc6f66bc478ea6c981a41b9
Author: Brooks Davis <brooks@one-eyed-alien.net>
Date:   Mon Jan 27 22:59:02 2014 +0000

    Now that mtree is always nmtree use it as mtree

Tested on: ref9-amd64
X-MFC after: never
Sponsored by: DARPA, AFRL

10 years agoThe -B flag is intended to take an argument.
Brooks Davis [Thu, 30 Jan 2014 21:47:12 +0000 (21:47 +0000)]
The -B flag is intended to take an argument.

Fix a couple typos in comments.

MFC after: 4 weeks
Sponsored by: DARPA, ARFL

10 years agoRegenerate for WITHOUT_FMTREE and WITHOUT_NCURSESW.
Brooks Davis [Thu, 30 Jan 2014 21:43:38 +0000 (21:43 +0000)]
Regenerate for WITHOUT_FMTREE and WITHOUT_NCURSESW.

MFC after: 4 weeks
Sponsored by: DARPA, AFRL

10 years agoAdd file missed in r261296.
Brooks Davis [Thu, 30 Jan 2014 21:41:25 +0000 (21:41 +0000)]
Add file missed in r261296.

MFC after: 4 weeks
Sponsored by: DARPA, AFRL

10 years agoMerge from CheriBSD:
Brooks Davis [Thu, 30 Jan 2014 21:37:43 +0000 (21:37 +0000)]
Merge from CheriBSD:
commit 2d581e8caf79d7a0f5a24590eccd06da90cccb74
Author: Brooks Davis <brooks@one-eyed-alien.net>
Date:   Mon Jan 27 22:57:51 2014 +0000

    Add WITHOUT_FMTREE to disable building fmtree.

MFC after: 4 weeks
Sponsored by: DARPA, AFRL

10 years agoMerge from CheriBSD:
Brooks Davis [Thu, 30 Jan 2014 21:32:25 +0000 (21:32 +0000)]
Merge from CheriBSD:
commit 70b8f0c127db6b80411789d237b403cc64a93573
Author: Brooks Davis <brooks@one-eyed-alien.net>
Date:   Mon Jan 27 22:53:57 2014 +0000

    Move mtree.5 to usr.sbin/nmtree.
    Remove note that mtree 2.0 format files aren't supported.

MFC after: 4 weeks
Sponsored by: DARPA, AFRL

10 years agoMerge from CheriBSD:
Brooks Davis [Thu, 30 Jan 2014 21:25:01 +0000 (21:25 +0000)]
Merge from CheriBSD:
commit 6b569451b92c48ccf1768da32e7e89189e1aa253
Author: Brooks Davis <brooks@one-eyed-alien.net>
Date:   Mon Jan 27 22:50:46 2014 +0000

    Always install nmtree as mtree.
    For compability, link mtree to nmtree.

X-MFC after: never
Sponsored by: DARPA, AFRL

10 years agoMerge from CheriBSD:
Brooks Davis [Thu, 30 Jan 2014 21:08:36 +0000 (21:08 +0000)]
Merge from CheriBSD:
commit c1acf022c533c5ae27e0cd556977eafe3f5959eb
Author: Brooks Davis <brooks@one-eyed-alien.net>
Date:   Fri Jan 17 21:46:44 2014 +0000

    Add an option WITHOUT_NCURSESW to suppress building and linking to
    libncursesw.  While wide character support it useful we'd like to
    only need one ncurses library on embedded systems.

MFC after: 4 weeks
Sponsored by: DARPA, AFRL

10 years agoRevert outdated info related to WITH_LIBCPLUSPLUS that was included in
Brooks Davis [Thu, 30 Jan 2014 20:54:56 +0000 (20:54 +0000)]
Revert outdated info related to WITH_LIBCPLUSPLUS that was included in
r261072.  src.conf.5 now matches makeman's output.

10 years agoRemove an unneeded space in the BERI merge.
Brooks Davis [Thu, 30 Jan 2014 20:39:56 +0000 (20:39 +0000)]
Remove an unneeded space in the BERI merge.

10 years agoThe timestamp bit is number 17, and not number 9, in the stat error
George V. Neville-Neil [Thu, 30 Jan 2014 18:32:33 +0000 (18:32 +0000)]
The timestamp bit is number 17, and not number 9, in the stat error
field of the receive descriptor.

MFC after: 1 week

10 years agoThe posix_madvise(3) and posix_fadvise(2) should return error on
Konstantin Belousov [Thu, 30 Jan 2014 18:04:39 +0000 (18:04 +0000)]
The posix_madvise(3) and posix_fadvise(2) should return error on
failure, same as posix_fallocate(2).

Noted by: Bob Bishop <rb@gid.co.uk>
Discussed with: bde
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

10 years agoVendor import of OpenSSH 6.5p1.
Dag-Erling Smørgrav [Thu, 30 Jan 2014 10:56:49 +0000 (10:56 +0000)]
Vendor import of OpenSSH 6.5p1.

10 years agoBump copyright dates
Dag-Erling Smørgrav [Thu, 30 Jan 2014 08:37:23 +0000 (08:37 +0000)]
Bump copyright dates

10 years agoImport libc++ 3.4 release. This contains a lot of bugfixes, and some
Dimitry Andric [Thu, 30 Jan 2014 07:44:22 +0000 (07:44 +0000)]
Import libc++ 3.4 release.  This contains a lot of bugfixes, and some
preliminary support for C++1y.

MFC after: 3 weeks

10 years agoFix the name of the dts file for the HL201...
Warner Losh [Thu, 30 Jan 2014 03:14:36 +0000 (03:14 +0000)]
Fix the name of the dts file for the HL201...

10 years agoVendor import of libc++ tags/RELEASE_34/final r197960:
Dimitry Andric [Wed, 29 Jan 2014 19:30:27 +0000 (19:30 +0000)]
Vendor import of libc++ tags/RELEASE_34/final r197960:
https://llvm.org/svn/llvm-project/libcxx/tags/RELEASE_34/final@197960

10 years agoRessurect the local change documenting
Sergey Kandaurov [Wed, 29 Jan 2014 19:28:52 +0000 (19:28 +0000)]
Ressurect the local change documenting
authpf's requirement for a mounted fdescfs(5).

PR: docs/186250
MFC after: 1 week

10 years agoFix the ordering of the arguments to printf in
Nick Hibma [Wed, 29 Jan 2014 16:24:50 +0000 (16:24 +0000)]
Fix the ordering of the arguments to printf in
uhub_child_location_string(). This produced bogus information in

dev.<USB driver>.<id>.%location

output from sysctl.

MFC after: 2 weeks

10 years agoMicro-optimize 8-bit blanking. This is the same as in ofw_syscons.
Justin Hibbits [Wed, 29 Jan 2014 15:50:01 +0000 (15:50 +0000)]
Micro-optimize 8-bit blanking.  This is the same as in ofw_syscons.

Reviewed by: ray
MFC after: 1 week

10 years agoEnhance the support for PCI legacy INTx interrupts and enable them in
John Baldwin [Wed, 29 Jan 2014 14:56:48 +0000 (14:56 +0000)]
Enhance the support for PCI legacy INTx interrupts and enable them in
the virtio backends.
- Add a new ioctl to export the count of pins on the I/O APIC from vmm
  to the hypervisor.
- Use pins on the I/O APIC >= 16 for PCI interrupts leaving 0-15 for
  ISA interrupts.
- Populate the MP Table with I/O interrupt entries for any PCI INTx
  interrupts.
- Create a _PRT table under the PCI root bridge in ACPI to route any
  PCI INTx interrupts appropriately.
- Track which INTx interrupts are in use per-slot so that functions
  that share a slot attempt to distribute their INTx interrupts across
  the four available pins.
- Implicitly mask INTx interrupts if either MSI or MSI-X is enabled
  and when the INTx DIS bit is set in a function's PCI command register.
  Either assert or deassert the associated I/O APIC pin when the
  state of one of those conditions changes.
- Add INTx support to the virtio backends.
- Always advertise the MSI capability in the virtio backends.

Submitted by: neel (7)
Reviewed by: neel
MFC after: 2 weeks

10 years agoAdd libexecinfo.
Sergey Kandaurov [Wed, 29 Jan 2014 14:14:09 +0000 (14:14 +0000)]
Add libexecinfo.

MFC after: 3 days

10 years agoAdd a jail parameter, allow.kmem, which lets jailed processes access
Jamie Gritton [Wed, 29 Jan 2014 13:41:13 +0000 (13:41 +0000)]
Add a jail parameter, allow.kmem, which lets jailed processes access
/dev/kmem and related devices (i.e. grants PRIV_IO and PRIV_KMEM_WRITE).
This in conjunction with changing the drm driver's permission check from
PRIV_DRIVER to PRIV_KMEM_WRITE will allow a jailed Xorg server.

Submitted by: netchild
MFC after: 1 week

10 years agor261230 broke the cases where the amount of data to be read is not
Dag-Erling Smørgrav [Wed, 29 Jan 2014 12:48:19 +0000 (12:48 +0000)]
r261230 broke the cases where the amount of data to be read is not
known in advance, or where the caller doesn't care and just keeps
reading until it hits EOF.

In fetch_read(): the socket is non-blocking, so read() will return 0
on EOF, and -1 (errno == EAGAIN) when the connection is still open but
there is no data waiting.  In the first case, we should immediately
return 0.  The EINTR case was also broken, although not in a way that
matters.

In fetch_writev(): use timersub() and timercmp() as in fetch_read().

In http_fillbuf(): set errno to a sensible value when an invalid chunk
header is encountered.

In http_readfn(): as in fetch_read(), a zero return from down the
stack indicates EOF, not an error.  Furthermore, when io->error is
EINTR, clear it (but no errno) before returning so the caller can
retry after dealing with the interrupt.

MFC after: 3 days

10 years ago- Remove some dead code.
Hans Petter Selasky [Wed, 29 Jan 2014 12:34:05 +0000 (12:34 +0000)]
- Remove some dead code.
- Use system provided functions for HID report requests.
- Nice the mode setting, because the USB hardware does appear to
handle the commands right away.

MFC after: 1 week