]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
9 years agoAdd support for the uart classes to set their default register shift value.
Andrew Turner [Sat, 11 Apr 2015 17:16:23 +0000 (17:16 +0000)]
Add support for the uart classes to set their default register shift value.
This is needed with the pl011 driver. Before this change it would default
to a shift of 0, however the hardware places the registers at 4-byte
addresses meaning the value should be 2.

This patch fixes this for the pl011 when configured using the fdt. The
other drivers have a default value of 0 to keep this a no-op.

MFC after: 1 week

9 years agoReplace struct filedesc argument in getsock_cap with struct thread
Mateusz Guzik [Sat, 11 Apr 2015 16:00:33 +0000 (16:00 +0000)]
Replace struct filedesc argument in getsock_cap with struct thread

This is is a step towards removal of spurious arguments.

9 years agofd: remove filedesc argument from fdclose
Mateusz Guzik [Sat, 11 Apr 2015 15:40:28 +0000 (15:40 +0000)]
fd: remove filedesc argument from fdclose

Just accept a thread instead. This makes it consistent with fdalloc.

No functional changes.

9 years agoAdd fdt support to the arm loader.efi
Andrew Turner [Sat, 11 Apr 2015 11:00:53 +0000 (11:00 +0000)]
Add fdt support to the arm loader.efi

9 years agoOnly add -fPIC to CFLAGS and -Wl,-znocombreloc to LDFLAGS on x86, they
Andrew Turner [Sat, 11 Apr 2015 10:36:48 +0000 (10:36 +0000)]
Only add -fPIC to CFLAGS and -Wl,-znocombreloc to LDFLAGS on x86, they
shouldn't be used on arm.

9 years agoMove reloc.c to the top level Makefile as it has become generic.
Andrew Turner [Sat, 11 Apr 2015 10:21:26 +0000 (10:21 +0000)]
Move reloc.c to the top level Makefile as it has become generic.

9 years agoUpdate the arm efi ldscript to generate a valid efi binary
Andrew Turner [Sat, 11 Apr 2015 10:07:58 +0000 (10:07 +0000)]
Update the arm efi ldscript to generate a valid efi binary

9 years agoThis modifies several FreeBSD drivers to use the GNU approach to
Ganbold Tsagaankhuu [Sat, 11 Apr 2015 08:34:41 +0000 (08:34 +0000)]
This modifies several FreeBSD drivers to use the GNU approach to
supply clk81 information.  It also changes the hardware strings
in some of the drivers to match what's present in the GNU files.

Submitted by:  John Wehle
Reviewed by:   imp

9 years agoThis modifies several FreeBSD drivers to use the hardware strings
Ganbold Tsagaankhuu [Sat, 11 Apr 2015 08:30:37 +0000 (08:30 +0000)]
This modifies several FreeBSD drivers to use the hardware strings
present in the GNU dts files.

Submitted by:  John Wehle
Reviewed by:   imp

9 years agoThis modifies the FreeBSD Amlogic DTS files to use the GNU files
Ganbold Tsagaankhuu [Sat, 11 Apr 2015 08:27:38 +0000 (08:27 +0000)]
This modifies the FreeBSD Amlogic DTS files to use the GNU files
as the base.

Submitted by: John Wehle
Reviewed by: imp

9 years agoThe GNU files don't include a DTS for the aml8726-m8b (which has
Ganbold Tsagaankhuu [Sat, 11 Apr 2015 08:25:53 +0000 (08:25 +0000)]
The GNU files don't include a DTS for the aml8726-m8b (which has
cortex-a5 cores unlike the aml8726-m8 which has cortex-a9 cores).

Submitted by: John Wehle
Reviewed by: imp

9 years agoThe GNU Amlogic DTS files have some errors (e.g. bad register
Ganbold Tsagaankhuu [Sat, 11 Apr 2015 08:17:39 +0000 (08:17 +0000)]
The GNU Amlogic DTS files have some errors (e.g. bad register
address, bad IRQ, etc) which are fixed by this patch.

John has sent these changes to the author of the files who said
he'll propagate the changes further upstream.

Submitted by: John Wehle
Reviewed by: imp

9 years agoFix even more warnings..
Enji Cooper [Sat, 11 Apr 2015 07:37:21 +0000 (07:37 +0000)]
Fix even more warnings..

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

9 years agoFix more warnings I didn't catch in the first go-around
Enji Cooper [Sat, 11 Apr 2015 07:35:30 +0000 (07:35 +0000)]
Fix more warnings I didn't catch in the first go-around

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

9 years agoFix warnings, bump WARNS to 6, and use a temporary socket instead of one in /tmp
Enji Cooper [Sat, 11 Apr 2015 07:33:04 +0000 (07:33 +0000)]
Fix warnings, bump WARNS to 6, and use a temporary socket instead of one in /tmp

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

9 years ago- Remove the .t wrapper and put the "magic" of determining the number of
Enji Cooper [Sat, 11 Apr 2015 06:40:38 +0000 (06:40 +0000)]
- Remove the .t wrapper and put the "magic" of determining the number of
  testcases into the .c file
- Require root for now because it fails with SOCK_RAW without root privileges
- Increment the test count properly on socket create failure

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

9 years agoFix the knob twiddling to work properly per src.opts.mk
Enji Cooper [Sat, 11 Apr 2015 06:38:50 +0000 (06:38 +0000)]
Fix the knob twiddling to work properly per src.opts.mk

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

9 years agonetmap: improve the netmap attach message on FreeBSD.
Rui Paulo [Sat, 11 Apr 2015 06:20:46 +0000 (06:20 +0000)]
netmap: improve the netmap attach message on FreeBSD.

MFC after: 1 week

9 years agoCatch up with r281373 and r281379.
Jung-uk Kim [Sat, 11 Apr 2015 05:38:07 +0000 (05:38 +0000)]
Catch up with r281373 and r281379.

9 years agoGenerate temporary files with mkstemp instead of mktemp
Enji Cooper [Sat, 11 Apr 2015 05:20:01 +0000 (05:20 +0000)]
Generate temporary files with mkstemp instead of mktemp

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

9 years agoGarbage collect argc/argv and bump WARNS to 6
Enji Cooper [Sat, 11 Apr 2015 03:57:35 +0000 (03:57 +0000)]
Garbage collect argc/argv and bump WARNS to 6

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

9 years agoGarbage collect argc/argv and bump WARNS to 6
Enji Cooper [Sat, 11 Apr 2015 03:56:23 +0000 (03:56 +0000)]
Garbage collect argc/argv and bump WARNS to 6

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

9 years ago- Garbage collect argc/argv
Enji Cooper [Sat, 11 Apr 2015 03:54:43 +0000 (03:54 +0000)]
- Garbage collect argc/argv
- Use random paths instead of one in /tmp

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

9 years ago- Garbage collect argc/argv; bump WARNS to 6
Enji Cooper [Sat, 11 Apr 2015 03:43:43 +0000 (03:43 +0000)]
- Garbage collect argc/argv; bump WARNS to 6
- Make the socket path random and move it out of /tmp as that's outside ATF's
  prescribed path

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

9 years agoFix warnings and bump WARNS to 6
Enji Cooper [Sat, 11 Apr 2015 03:38:49 +0000 (03:38 +0000)]
Fix warnings and bump WARNS to 6
- Staticize variables as needed
- Garbage collect argc/argv
- Fix -Wsign-compare warnings by casting small sizeof to (int)

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

9 years agoGarbage collect argc/argv and bump WARNS to 6
Enji Cooper [Sat, 11 Apr 2015 03:35:33 +0000 (03:35 +0000)]
Garbage collect argc/argv and bump WARNS to 6

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

9 years agoMark signum unused in signal_handler; bump WARNS to 6
Enji Cooper [Sat, 11 Apr 2015 03:24:49 +0000 (03:24 +0000)]
Mark signum unused in signal_handler; bump WARNS to 6

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

9 years agoMerge ACPICA 20150410.
Jung-uk Kim [Sat, 11 Apr 2015 03:23:41 +0000 (03:23 +0000)]
Merge ACPICA 20150410.

9 years agoFix a -Wuninitialized warning by setting the socket to -1 and bump WARNS to 6
Enji Cooper [Sat, 11 Apr 2015 03:19:48 +0000 (03:19 +0000)]
Fix a -Wuninitialized warning by setting the socket to -1 and bump WARNS to 6

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

9 years ago- Don't use /tmp because it's outside ATF's prescribed sandbox
Enji Cooper [Sat, 11 Apr 2015 03:18:14 +0000 (03:18 +0000)]
- Don't use /tmp because it's outside ATF's prescribed sandbox
- Replace a hardcoded PATH_MAX value with sizeof(path)
- Use path like an array, not a pointer, and always try to unlink it in cleanup

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

9 years agoFix warnings and bump WARNS to 6
Enji Cooper [Sat, 11 Apr 2015 03:13:09 +0000 (03:13 +0000)]
Fix warnings and bump WARNS to 6
- Garbage collect argc/argv (-Wunused)
- sleep(3) will always return an unsigned int; don't check for return codes <0
  (-Wsign-compare)

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

9 years ago- Garbage collect argc/argv (-Wunused)
Enji Cooper [Sat, 11 Apr 2015 02:59:45 +0000 (02:59 +0000)]
- Garbage collect argc/argv (-Wunused)
- Bump WARNS to 6

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

9 years ago- Use static buffers for temporary file paths instead of strdup of constant strings
Enji Cooper [Sat, 11 Apr 2015 02:50:44 +0000 (02:50 +0000)]
- Use static buffers for temporary file paths instead of strdup of constant strings
- Don't use /tmp because it's outside ATF's prescribed sandbox
- Use mkstemp instead of mktemp to eliminate warning

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

9 years agoAttempt to fix build after 281351 by defining full prototype for the
Xin LI [Sat, 11 Apr 2015 01:06:59 +0000 (01:06 +0000)]
Attempt to fix build after 281351 by defining full prototype for the
functions that were moved to ip_reass.c.

9 years agoMerge changes from vendor driver version 1.1.1:
Xin LI [Sat, 11 Apr 2015 00:45:03 +0000 (00:45 +0000)]
Merge changes from vendor driver version 1.1.1:

v1.1.1 2015-03-26
 * Support 4Kn drive.
 * Change the SCSI target ID of the disk to be the index of physical
   connetion to the HBA.
 * Support staggered drive spin up.
 * Fix a bug that command would be timeout because of improper
   interrupt service routine.
 * Error handling to avoid scsi command lost which caused system
   hang up.
 * Fix a bug that fail to get the devcie's serial number via
   FreeNAS WebGUI.

Many thanks to HighPoint for continued support of FreeBSD!

MFC after: 2 weeks

9 years agoFix libfifolog dependency on libz
Ed Maste [Fri, 10 Apr 2015 21:24:38 +0000 (21:24 +0000)]
Fix libfifolog dependency on libz

Consumers should not need to encode fifolog's dependency on libz.
Handle it automatically in src.libnames.mk.

Differential Revision: https://reviews.freebsd.org/D2278
Reviewed by: bapt
Sponsored by: The FreeBSD Foundation

9 years agoiwn, wlan: fix typos
Eitan Adler [Fri, 10 Apr 2015 20:55:17 +0000 (20:55 +0000)]
iwn, wlan: fix typos
Fxi tow typos

Obtained from: DragonFlyBSD
MFC after: 3 days

9 years agoUse explicitly sized types in EFI module metadata
Ed Maste [Fri, 10 Apr 2015 19:26:45 +0000 (19:26 +0000)]
Use explicitly sized types in EFI module metadata

This will allow the same metadata struct to be used on all platforms.

Differential Revision: https://reviews.freebsd.org/D2275
Reviewed by: jhb

9 years agoFix the IPV6_MULTICAST_IF sockopt handling. RFC 3493 says when the
Andrey V. Elsukov [Fri, 10 Apr 2015 19:09:51 +0000 (19:09 +0000)]
Fix the IPV6_MULTICAST_IF sockopt handling. RFC 3493 says when the
interface index is specified as zero, the system should select the
interface to use for outgoing multicast packets. Even the comment
for the in6p_set_multicast_if() function says about index of zero.
But in fact for zero index the function just returns EADDRNOTAVAIL.

I.e. if you first set some interface and then will try reset it
with zero ifindex, you will get EADDRNOTAVAIL.

Reset im6o_multicast_ifp to NULL when interface index specified as
zero. Also return EINVAL in case when ifnet_byindex() returns NULL.
This will be the same behaviour as when ifindex is bigger than
V_if_index. And return EADDRNOTAVAIL only when interface is not
multicast capable.

Reported by: Olivier Cochard-LabbĂ©
MFC after: 2 weeks
Sponsored by: Yandex LLC

9 years agoRemove docs that are not shipped with nvi anymore
Baptiste Daroussin [Fri, 10 Apr 2015 19:07:43 +0000 (19:07 +0000)]
Remove docs that are not shipped with nvi anymore

Reported by: emaste

9 years agotmpfs_getattr(): Return more correct allocated byte counts.
Will Andrews [Fri, 10 Apr 2015 19:04:39 +0000 (19:04 +0000)]
tmpfs_getattr(): Return more correct allocated byte counts.

For VREG vnodes, return the resident page count (multiplied by PAGE_SIZE)
for the tmpfs node's anonymous VM object that stores actual file contents.

For all other vnodes, return the tmpfs_node's tn_size, which should not
be rounded to a page.

This change allows using stat(2) to identify a sparse file on tmpfs.

Reviewed by: kib
MFC after: 1 week

9 years agoAdd build support for i386 loader.efi
Ed Maste [Fri, 10 Apr 2015 18:49:43 +0000 (18:49 +0000)]
Add build support for i386 loader.efi

Kernel changes are required for this to be useful but this will allow
others to experiment.

Differential Revision: https://reviews.freebsd.org/D2276

9 years agoLimit EFI framebuffer metadata to amd64 for now
Ed Maste [Fri, 10 Apr 2015 18:08:09 +0000 (18:08 +0000)]
Limit EFI framebuffer metadata to amd64 for now

The i386 loader.efi does not yet exist. Avoid dealing with vt and
framebuffer issues there until the initial bootstrapping is done.

9 years agoImport ACPICA 20150410.
Jung-uk Kim [Fri, 10 Apr 2015 17:54:53 +0000 (17:54 +0000)]
Import ACPICA 20150410.

9 years agoUpdate nvi to 2.1.3 which fixes the data corruption when locale conversion
Baptiste Daroussin [Fri, 10 Apr 2015 17:50:28 +0000 (17:50 +0000)]
Update nvi to 2.1.3 which fixes the data corruption when locale conversion
failed

9 years agoFor reasons that I am not understand yet, using the libmd version of
Xin LI [Fri, 10 Apr 2015 17:21:47 +0000 (17:21 +0000)]
For reasons that I am not understand yet, using the libmd version of
SHA256 would make libarchive based application to give:

archive_read_extract(): Lzma library error: Corrupted input data

(Internally this is LZMA_DATA_ERR)

However, the libmd version of SHA256 is supposed to give same result
as the bundled version do, and xz(1) is not affected.

As a precaution, revert the SHA256 portion of r281316 for now until
we figure out why it breaks libarchive interoperability as we can't
yet rule out this change have introduced an ABI breakage.

9 years agoUse OF_getencpropalloc() to handle endianess of the properties.
Ian Lepore [Fri, 10 Apr 2015 13:50:57 +0000 (13:50 +0000)]
Use OF_getencpropalloc() to handle endianess of the properties.

Submitted by: Michal Meloun

9 years agoAdd a pmap_kremove_device() to undo mappings made with pmap_kenter_device().
Ian Lepore [Fri, 10 Apr 2015 13:26:35 +0000 (13:26 +0000)]
Add a pmap_kremove_device() to undo mappings made with pmap_kenter_device().

Previously we used pmap_kremove(), but with ARM_NEW_PMAP it does the remove
in a way that isn't SMP-coherent (which is appropriate in some circumstances
such as mapping/unmapping sf buffers).  With matching enter/remove routines
for device mappings, each low-level implementation can do the right thing.

Reviewed by: Svatopluk Kraus <onwahe@gmail.com>

9 years agoImport nvi 2.1.3
Baptiste Daroussin [Fri, 10 Apr 2015 13:26:05 +0000 (13:26 +0000)]
Import nvi 2.1.3

Approved by: peter

9 years agoThe "get latency" and "get bitmode" device commands are read operations,
Ian Lepore [Fri, 10 Apr 2015 13:20:31 +0000 (13:20 +0000)]
The "get latency" and "get bitmode" device commands are read operations,
not writes.

9 years agoRedo r274966. Instead of global all-interface all-vnet undocumented sysctl,
Gleb Smirnoff [Fri, 10 Apr 2015 09:50:13 +0000 (09:50 +0000)]
Redo r274966. Instead of global all-interface all-vnet undocumented sysctl,
use per-interface flag, and document it.

Sponsored by: Nginx, Inc.

9 years agoUse _exit, not exit in forked process
Enji Cooper [Fri, 10 Apr 2015 09:37:53 +0000 (09:37 +0000)]
Use _exit, not exit in forked process

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

9 years agoRemove argc/argv (-Wunused)
Enji Cooper [Fri, 10 Apr 2015 09:27:23 +0000 (09:27 +0000)]
Remove argc/argv (-Wunused)

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

9 years agoFix warnings
Enji Cooper [Fri, 10 Apr 2015 09:26:21 +0000 (09:26 +0000)]
Fix warnings

- Remove argc/argv (-Wunused)
- Mark some parameters to socket_listen_update __unused (-Wunused)

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

9 years agoRemove argc/argv (-Wunused)
Enji Cooper [Fri, 10 Apr 2015 09:23:00 +0000 (09:23 +0000)]
Remove argc/argv (-Wunused)

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

9 years ago- Parameterize out the number of accept/connect attempts
Enji Cooper [Fri, 10 Apr 2015 09:21:07 +0000 (09:21 +0000)]
- Parameterize out the number of accept/connect attempts
- Randomize the bind port to allow 2+ consecutive calls in < 10 minutes, and
  to also not fail if (for instance) there's a server already listening on port
  8080
- Don't leak the listening socket / fds into the child process
- Fix warnings:
-- Remove argc/argv (-Wunused)
-- Mark sig __unused (-Wunused)
-- Mark quit static (-Wmissing-variable-declarations)

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

9 years agoPort the EFI reloc codeto work on arm64. This used the rela relocation
Andrew Turner [Fri, 10 Apr 2015 09:15:35 +0000 (09:15 +0000)]
Port the EFI reloc codeto work on arm64. This used the rela relocation
table so wiill need the addend included in the relocation calculation.

Sponsored by: The FreeBSD Foundation

9 years agoFix -Wunused warnings, bump WARNS to 6
Enji Cooper [Fri, 10 Apr 2015 08:01:49 +0000 (08:01 +0000)]
Fix -Wunused warnings, bump WARNS to 6

The output is still broken if prove -rv is run and the testcase aborts
prematurely with fail_assertion (the testcase doesn't really conform to TAP
protocol properly, except when it completes fully)

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

9 years agoFix -Wunused warnings, bump WARNS to 6
Enji Cooper [Fri, 10 Apr 2015 07:59:46 +0000 (07:59 +0000)]
Fix -Wunused warnings, bump WARNS to 6

The testcase fails today on subtest # 9

The output is still broken if prove -rv is run and the testcase aborts
prematurely (the testcase doesn't really conform to TAP protocol properly,
except when it completes fully)

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

9 years agoFix warnings, fix a typo in a testcase description, bump WARNS to 3
Enji Cooper [Fri, 10 Apr 2015 07:35:53 +0000 (07:35 +0000)]
Fix warnings, fix a typo in a testcase description, bump WARNS to 3

- Remove argc/argv (-Wunused)
- Cast len in comparison to size_t (-Wsign-compare)

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

9 years agoUMA zone limit can be lowered, so remove protection against from
Gleb Smirnoff [Fri, 10 Apr 2015 06:56:49 +0000 (06:56 +0000)]
UMA zone limit can be lowered, so remove protection against from
the sysctl_handle_uma_zone_max().

Sponsored by: Nginx, Inc.

9 years agoo Use Jenkins hash. With previous hash, for a single source IP address and
Gleb Smirnoff [Fri, 10 Apr 2015 06:55:43 +0000 (06:55 +0000)]
o Use Jenkins hash. With previous hash, for a single source IP address and
  sequential IP ID case (e.g. ping -f), distribution fell into 8-10 buckets
  out of 64. With Jenkins hash, distribution is even.
o Add random seed to the hash.

Sponsored by: Nginx, Inc.

9 years agoMove all code related to IP fragment reassembly to ip_reass.c. Some
Gleb Smirnoff [Fri, 10 Apr 2015 06:02:37 +0000 (06:02 +0000)]
Move all code related to IP fragment reassembly to ip_reass.c.  Some
function names have changed and comments are reformatted or added, but
there is no functional change.

Claim copyright for me and Adrian.

Sponsored by: Nginx, Inc.

9 years agoImport ACPICA 20150408.
Jung-uk Kim [Thu, 9 Apr 2015 23:08:47 +0000 (23:08 +0000)]
Import ACPICA 20150408.

9 years ago- Fix support with new elftoolchain readelf(1)
Bryan Drewery [Thu, 9 Apr 2015 22:16:35 +0000 (22:16 +0000)]
- Fix support with new elftoolchain readelf(1)
- Fix not finding global symbols by checking for D and R.
- Follow symlinks
- Show which matching symbol was used to consider the library needed.

Discussed with: bapt

9 years agoNow that IP reassembly is no longer under single lock, book-keeping amount
Gleb Smirnoff [Thu, 9 Apr 2015 22:13:27 +0000 (22:13 +0000)]
Now that IP reassembly is no longer under single lock, book-keeping amount
of allocations in V_nipq is racy.  To fix that, we would simply stop doing
book-keeping ourselves, and rely on UMA doing that.  There could be a
slight overcommit due to caches, but that isn't a big deal.

o V_nipq and V_maxnipq go away.
o net.inet.ip.fragpackets is now just SYSCTL_UMA_CUR()
o net.inet.ip.maxfragpackets could have been just SYSCTL_UMA_MAX(), but
  historically it has special semantics about values of 0 and -1, so
  provide sysctl_maxfragpackets() to handle these special cases.
o If zone limit lowers either due to net.inet.ip.maxfragpackets or due to
  kern.ipc.nmbclusters, then new function ipq_drain_tomax() goes over
  buckets and frees the oldest packets until we are in the limit.
  The code that (incorrectly) did that in ip_slowtimo() is removed.
o ip_reass() doesn't check any limits and calls uma_zalloc(M_NOWAIT).
  If it fails, a new function ipq_reuse() is called. This function will
  find the oldest packet in the currently locked bucket, and if there is
  none, it will search in other buckets until success.

Sponsored by: Nginx, Inc.

9 years agortsold does not need to link to libkvm
Baptiste Daroussin [Thu, 9 Apr 2015 21:52:14 +0000 (21:52 +0000)]
rtsold does not need to link to libkvm

9 years agorpc.locked does not need to link to libutil
Baptiste Daroussin [Thu, 9 Apr 2015 21:48:17 +0000 (21:48 +0000)]
rpc.locked does not need to link to libutil

9 years agobhyvectl does not need to link to libutil
Baptiste Daroussin [Thu, 9 Apr 2015 21:39:58 +0000 (21:39 +0000)]
bhyvectl does not need to link to libutil

9 years agoFix overlinking in bhyve:
Baptiste Daroussin [Thu, 9 Apr 2015 21:38:40 +0000 (21:38 +0000)]
Fix overlinking in bhyve:

libvmmapi is actually needed to be linked to libutil, not bhyve nor bhyveload

9 years agoDon't enable RX and TX before their initial configuration is done, i. e.
Marius Strobl [Thu, 9 Apr 2015 21:35:44 +0000 (21:35 +0000)]
Don't enable RX and TX before their initial configuration is done, i. e.
after setting up interrupt moderation but before turning interrupts on.
This matches what Realtek's r8168 Linux driver does as of version 8.039.00
and fixes problems with certain incarnations of certain MAC revisions
like the interface requiring an extra up/down-cycle after boot to start
working or DMA configuration not being adhered to.

PR: 193743, 197535
MFC after: 1 week

9 years agoauthpf does not need to link to libmd
Baptiste Daroussin [Thu, 9 Apr 2015 21:33:57 +0000 (21:33 +0000)]
authpf does not need to link to libmd

9 years agoPrint 64-bit addresses cleary with leading zeros to avoid confusions.
Jung-uk Kim [Thu, 9 Apr 2015 21:32:40 +0000 (21:32 +0000)]
Print 64-bit addresses cleary with leading zeros to avoid confusions.

MFC after: 1 week

9 years agoIn the ip_reass() do packet examination and adjusting before acquiring
Gleb Smirnoff [Thu, 9 Apr 2015 21:32:32 +0000 (21:32 +0000)]
In the ip_reass() do packet examination and adjusting before acquiring
locks and doing lookups.

Sponsored by: Nginx, Inc.

9 years agoRemove uneeded link to libkiconv
Baptiste Daroussin [Thu, 9 Apr 2015 21:30:11 +0000 (21:30 +0000)]
Remove uneeded link to libkiconv

9 years agoConvert mt(1) and libmt to LIBADD
Baptiste Daroussin [Thu, 9 Apr 2015 21:26:38 +0000 (21:26 +0000)]
Convert mt(1) and libmt to LIBADD

While here fix missing link to libbsdxml for libmt
Fix overlinking in mt(1)
Make add an indirect libmt dependency on bsdxml to allow static linking if
needed

9 years agoDo not crash when RSDT/XSDT contains an empty entry.
Jung-uk Kim [Thu, 9 Apr 2015 21:26:23 +0000 (21:26 +0000)]
Do not crash when RSDT/XSDT contains an empty entry.

Reported by: Slawa Olhovchenkov <slw@zxy.spb.ru>
MFC after: 3 days

9 years agoRemove uneeded sbuf header
Baptiste Daroussin [Thu, 9 Apr 2015 21:23:27 +0000 (21:23 +0000)]
Remove uneeded sbuf header

9 years agoMake ip reassembly queue mutexes per-vnet, putting them into the structure
Gleb Smirnoff [Thu, 9 Apr 2015 21:17:07 +0000 (21:17 +0000)]
Make ip reassembly queue mutexes per-vnet, putting them into the structure
that they protect.

Sponsored by: Nginx, Inc.

9 years agoiscsictl(8) does not actually needs to be linked to libcam nor libutil
Baptiste Daroussin [Thu, 9 Apr 2015 21:14:40 +0000 (21:14 +0000)]
iscsictl(8) does not actually needs to be linked to libcam nor libutil

9 years agoConvert cftmerge to LIBADD and remove link on libdwarf which is not needed
Baptiste Daroussin [Thu, 9 Apr 2015 21:08:21 +0000 (21:08 +0000)]
Convert cftmerge to LIBADD and remove link on libdwarf which is not needed

9 years agobsnmptools does not depends on libcrypto
Baptiste Daroussin [Thu, 9 Apr 2015 21:05:48 +0000 (21:05 +0000)]
bsnmptools does not depends on libcrypto

9 years ago- ggatel.8 currently doesn't mention the 'rescue' command and
Jason Helfman [Thu, 9 Apr 2015 20:58:38 +0000 (20:58 +0000)]
- ggatel.8 currently doesn't mention the 'rescue' command and
  documents a non-existing 'attach' command instead.
- while here address a spelling error

PR: 199111
Differential Revision: https://reviews.freebsd.org/D2259
Submitted by: fk@fabiankeil.de
Obtained from: ElectroBSD
Approved by: wblock (mentor)
MFC after: 1 week

9 years agoRemove EOL whitespace from i386 EFI loader source
Ed Maste [Thu, 9 Apr 2015 19:48:42 +0000 (19:48 +0000)]
Remove EOL whitespace from i386 EFI loader source

9 years agoUpdate documented OEM string in newfs_msdos(8).
Pedro F. Giffuni [Thu, 9 Apr 2015 19:07:01 +0000 (19:07 +0000)]
Update documented OEM string in newfs_msdos(8).

This was updated in r203868 to better match the naming scheme
in other OSs that use FAT.

MFC after: 3 days

9 years agoMFV r281278:
Xin LI [Thu, 9 Apr 2015 18:03:27 +0000 (18:03 +0000)]
MFV r281278:

 - Update xz to 5.2.1, where the most visible change is that it
   fixed a compression-ratio regression in fast mode LZMA1 and
   LZMA2 and used cpuset_getaffinity() for CPU cores detection.
 - Make liblzma use the base system SHA256 implementation instead of
   the bundled one.
 - Additional annotation in config.h for FreeBSD specific tweaks.
 - Refresh symbols in XZprivate_1.0 to reflect reality.

Relnotes: yes
MFC after: 1 month (TBD)

9 years agoAvoid escaping EOL for line continuation
Ed Maste [Thu, 9 Apr 2015 15:08:39 +0000 (15:08 +0000)]
Avoid escaping EOL for line continuation

Reported by: kib

9 years agoRevert 281276 as unnecessary. Proper change to be committed
George V. Neville-Neil [Thu, 9 Apr 2015 14:44:30 +0000 (14:44 +0000)]
Revert 281276 as unnecessary.  Proper change to be committed
to the base polling code in a subsequent commit.

Pointed out by: glebius

Sponsored by: Rubicon Communications (NetGate)

9 years agoar: Disallow directory traversal
Ed Maste [Thu, 9 Apr 2015 13:45:17 +0000 (13:45 +0000)]
ar: Disallow directory traversal

Set ARCHIVE_EXTRACT_SECURE_SYMLINKS and ARCHIVE_EXTRACT_SECURE_NODOTDOT
as in bsdtar to prevent extraction of archive entries whose pathnames
contain .. or whose target directory would be altered by a symlink.
Also disallow absolute pathnames.

We don't currently provide an option to disable this behaviour (as
bsdtar's -P does). It is unlikely to be a problem in practice for ar(1),
but the -P option is not currently used and available if we want to
consider it for this purpose.

Differential Revision: https://reviews.freebsd.org/D1524
Reported by: Alexander Cherepanov <cherepan@mccme.ru>
Approved by: delphij
Obtained from: ELF tool chain ar, Ticket #474
MFC after: 1 week
Relnotes: Yes
Sponsored by: The FreeBSD Foundation

9 years agoRemove sleeps from geom_up thread on device destruction.
Alexander Motin [Thu, 9 Apr 2015 13:09:05 +0000 (13:09 +0000)]
Remove sleeps from geom_up thread on device destruction.

MFC after: 3 days.

9 years agoFix the check for maximum mbuf's size needed to send ND6 NA and NS.
Andrey V. Elsukov [Thu, 9 Apr 2015 12:57:58 +0000 (12:57 +0000)]
Fix the check for maximum mbuf's size needed to send ND6 NA and NS.
It is acceptable that the size can be equal to MCLBYTES. In the later
KAME's code this check has been moved under DIAGNOSTIC ifdef, because
the size of NA and NS is much smaller than MCLBYTES. So, it is safe to
replace the check with KASSERT.

PR: 199304
Discussed with: glebius
MFC after: 1 week

9 years agoAdd R_AARCH64_NONE, the null relocation.
Andrew Turner [Thu, 9 Apr 2015 10:28:05 +0000 (10:28 +0000)]
Add R_AARCH64_NONE, the null relocation.

9 years agoPrint error values with hex to make it easier to find the EFI error type.
Andrew Turner [Thu, 9 Apr 2015 10:15:47 +0000 (10:15 +0000)]
Print error values with hex to make it easier to find the EFI error type.

9 years agoOnly use -fPIC when building boot1.efi for x86.
Andrew Turner [Thu, 9 Apr 2015 10:08:10 +0000 (10:08 +0000)]
Only use -fPIC when building boot1.efi for x86.

Sponsored by: The FreeBSD Foundation

9 years agoAdd the arm64 machine dependent parts of ficl. This is not machine
Andrew Turner [Thu, 9 Apr 2015 10:00:26 +0000 (10:00 +0000)]
Add the arm64 machine dependent parts of ficl. This is not machine
dependent, as most copies of these files are identical, but unfortunately
this is still needed.

Sponsored by: The FreeBSD Foundation

9 years agoUse TAILQ_FOREACH_SAFE() instead of implementing it ourselves.
Gleb Smirnoff [Thu, 9 Apr 2015 09:00:32 +0000 (09:00 +0000)]
Use TAILQ_FOREACH_SAFE() instead of implementing it ourselves.

Sponsored by: Nginx, Inc.

9 years agoIf V_maxnipq is set to zero, drain the queue here and now, instead of
Gleb Smirnoff [Thu, 9 Apr 2015 08:56:23 +0000 (08:56 +0000)]
If V_maxnipq is set to zero, drain the queue here and now, instead of
relying on timeouts.

Sponsored by: Nginx, Inc.

9 years agoo Since we always update either fragdrop or fragtimeout stat counter when we
Gleb Smirnoff [Thu, 9 Apr 2015 08:52:02 +0000 (08:52 +0000)]
o Since we always update either fragdrop or fragtimeout stat counter when we
  free a fragment, provide two inline functions that do that for us:
  ipq_drop() and ipq_timeout().
o Rename ip_free_f() to ipq_free() to match the name scheme of IP reassembly.
o Remove assertion from ipq_free(), since it requires extra argument to be
  passed, but locking scheme is simple enough and function is static.

Sponsored by: Nginx, Inc.

9 years agoRename ip_drain_locked() to ip_drain_vnet(), since the function differs
Gleb Smirnoff [Thu, 9 Apr 2015 08:37:16 +0000 (08:37 +0000)]
Rename ip_drain_locked() to ip_drain_vnet(), since the function differs
from ip_drain() not in locking, but in the scope of its work.

Sponsored by: Nginx, Inc.

9 years agoRemove debugging code that sneaked in.
Gleb Smirnoff [Thu, 9 Apr 2015 07:52:03 +0000 (07:52 +0000)]
Remove debugging code that sneaked in.