]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
9 years agoAdd a new __sentinel attribute.
Pedro F. Giffuni [Mon, 29 Jun 2015 00:30:30 +0000 (00:30 +0000)]
Add a new __sentinel attribute.

The sentinel attribute was originally implemented in OpenBSD's gcc and
later adopted by upstream GCC 4.0 (and clang). From the OpenBSD's
gcc-local manpage:

-   gcc recognizes the extra attribute __sentinel__, which can be used to
    mark varargs function that need a NULL pointer to mark argument
    termination, like execl(3).  This exposes latent bugs for 64-bit
    architectures, where a terminating 0 will expand to a 32-bit int, and
    not a full-fledged 64-bits pointer.

While here sort the visibility attributes.

Hinted-by: OpenBSD

9 years agomv: Improve message when moving two or more files to non-directory.
Jilles Tjoelker [Sun, 28 Jun 2015 21:36:00 +0000 (21:36 +0000)]
mv: Improve message when moving two or more files to non-directory.

The message text is from cp, which has had a nicer message for this since
2007 (PR bin/50656).

As with cp, the exit status changes from 64 to 1.

PR: 201083
MFC after: 1 week

9 years agoMake the system queue header file fully usable within C++ programs by
Hans Petter Selasky [Sun, 28 Jun 2015 21:06:45 +0000 (21:06 +0000)]
Make the system queue header file fully usable within C++ programs by
adding macros to define class lists.

This change is backwards compatible for all use within C and C++
programs. Only C++ programs will have added support to use the queue
macros within classes. Previously the queue macros could only be used
within structures.

The queue.3 manual page has been updated to describe the new
functionality and some alphabetic sorting has been done while
at it.

Differential Revision: https://reviews.freebsd.org/D2745
PR: 200827 (exp-run)
MFC after: 2 weeks

9 years agoFix a couple of missing lines that obscured the -p description.
Warren Block [Sun, 28 Jun 2015 20:53:36 +0000 (20:53 +0000)]
Fix a couple of missing lines that obscured the -p description.

Submitted by: Jonathan de Boyne Pollard <J.deBoynePollard-newsgroups@NTLWorld.com>
MFC after: 1 week

9 years agodconschat(8): Use NULL instead of 0 for the last argument in execl(3)
Pedro F. Giffuni [Sun, 28 Jun 2015 20:32:03 +0000 (20:32 +0000)]
dconschat(8): Use NULL instead of 0 for the last argument in execl(3)

Found while experimenting with the gcc sentinel attribute.

MFC after: 3 days

9 years agoOnly initialize libedit when necessary
Julio Merino [Sun, 28 Jun 2015 16:43:07 +0000 (16:43 +0000)]
Only initialize libedit when necessary

The code path to support units conversions from the command line
need not initialize neither libedit nor the history.  Therefore, only do
that when in interactive mode.

This hides the issue reported in PR bin/201167 whereby running commands
of the form 'echo "$(units ft in)"' would corrupt the terminal.  The real
issue causing the corruption most likely still remains somewhere.

PR: bin/201167
Differential Revision: D2935
Reviewed by: eadler

9 years agoAdd const to char * pointers. This breaks nothing, and means const
Mark Murray [Sun, 28 Jun 2015 12:52:28 +0000 (12:52 +0000)]
Add const to char * pointers. This breaks nothing, and means const
chars can be passed with no warnings.

9 years agoAnsify another function. This is the last in the file, I hope.
Mark Murray [Sun, 28 Jun 2015 10:51:08 +0000 (10:51 +0000)]
Ansify another function. This is the last in the file, I hope.

9 years agoANSIfy the only function that uses K&R definition in this file.
Mark Murray [Sun, 28 Jun 2015 09:44:58 +0000 (09:44 +0000)]
ANSIfy the only function that uses K&R definition in this file.

9 years agoSteve KArgl's commit bit taken in at his own request
Matthew Seaman [Sun, 28 Jun 2015 09:03:26 +0000 (09:03 +0000)]
Steve KArgl's commit bit taken in at his own request

With hat:     core-secretary
Approved by: core

9 years agoRemove unneeded data dependency, currently imposed by
Konstantin Belousov [Sun, 28 Jun 2015 05:04:08 +0000 (05:04 +0000)]
Remove unneeded data dependency, currently imposed by
atomic_load_acq(9), on it source, for x86.

Right now, atomic_load_acq() on x86 is sequentially consistent with
other atomics, code ensures this by doing store/load barrier by
performing locked nop on the source.  Provide separate primitive
__storeload_barrier(), which is implemented as the locked nop done on
a cpu-private variable, and put __storeload_barrier() before load, to
keep seq_cst semantic but avoid introducing false dependency on the
no-modification of the source for its later use.

Note that seq_cst property of x86 atomic_load_acq() is not documented
and not carried by atomics implementations on other architectures,
although some kernel code relies on the behaviour.  This commit does
not intend to change this.

Reviewed by: alc
Discussed with: bde
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks

9 years agoMake all shared library a relative symlink
Baptiste Daroussin [Sat, 27 Jun 2015 23:28:56 +0000 (23:28 +0000)]
Make all shared library a relative symlink

This makes sysroot usable for cross building, it also removes the need for
_SHLIBDIRPREFIX (keeps its definition since picobsd uses it and I have no time
to test it)

Differential Revision: https://reviews.freebsd.org/D2920
Submitted by: imp, adrian
Tested by: adrian

9 years agoInstead of hard-coding the PROVIDERS for upload, add the
Glen Barber [Sat, 27 Jun 2015 23:03:28 +0000 (23:03 +0000)]
Instead of hard-coding the PROVIDERS for upload, add the
VAGRANT_PROVIDERS variable.  Right now, it defaults to only
vmware_desktop, virtualbox support is to follow at some point.

While here, fix the hashicorp URL: s/vagrant/atlas/, which
was result of a sed(1) replace (and my fault).

Sponsored by: The FreeBSD Foundation

9 years agoRemove _ACCOUNT and add _USERNAME, _NAME, _VERSION for the
Glen Barber [Sat, 27 Jun 2015 22:59:29 +0000 (22:59 +0000)]
Remove _ACCOUNT and add _USERNAME, _NAME, _VERSION for the
VAGRANT_${VAR} variables extracted from VAGRANT_UPLOAD_CONF.

Set ATLAS_${VAR} to VAGRANT_${VAR} if VAGRANT_UPLOAD_CONF
is set.  There is intent to intentionally have separate
variants of configuration entries, but the defaults do not
yet have any reason to be different.

Sponsored by: The FreeBSD Foundation

9 years agoAdd default VAGRANT_IMG variable.
Glen Barber [Sat, 27 Jun 2015 22:54:16 +0000 (22:54 +0000)]
Add default VAGRANT_IMG variable.

Sponsored by: The FreeBSD Foundation

9 years agoAdd initial support for building Vagrant images for VMWare. Next steps will be adding...
Brad Davis [Sat, 27 Jun 2015 20:39:13 +0000 (20:39 +0000)]
Add initial support for building Vagrant images for VMWare. Next steps will be adding Virtualbox support and uploading to Hashicorp Atlas for others to consume.

Approved by: re (gjb)

9 years agoFix issues detected by 'mandoc -Tlint bhyveload.8'
Neel Natu [Sat, 27 Jun 2015 18:24:23 +0000 (18:24 +0000)]
Fix issues detected by 'mandoc -Tlint bhyveload.8'

Pointed out by: wblock
Differential Revision: https://reviews.freebsd.org/D2762

9 years agoUse correct flag in iovctl_start().
Patrick Kelsey [Sat, 27 Jun 2015 18:01:50 +0000 (18:01 +0000)]
Use correct flag in iovctl_start().

Differential Revision: https://reviews.freebsd.org/D2921
Reviewed by: rstone
Approved by: jmallett (mentor)
Sponsored by: Norse Corp, Inc.

9 years agoChange detection for the gnu_inline attribute.
Pedro F. Giffuni [Sat, 27 Jun 2015 15:13:14 +0000 (15:13 +0000)]
Change detection for the gnu_inline attribute.

According to the GCC documentation:
"This attribute is available in GCC 4.1.3 and later. It is available
if either of the preprocessor macros __GNUC_GNU_INLINE__ or
__GNUC_STDC_INLINE__ are defined."

We don't keep the gcc granularity up to the minor number so it's
better to use the documented way. Current clang defines both
macros.

Reference:
https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#Common-Function-Attributes

9 years agoFix compilation without INET6 and without INET and INET6 after
Bjoern A. Zeeb [Sat, 27 Jun 2015 12:37:09 +0000 (12:37 +0000)]
Fix compilation without INET6 and without INET and INET6 after
offload support was introduced in r284746.

While here also fix the ioctl() handler for IPv4 added in r279819,
which was never compiled in given opt_inet.h was not included.

9 years agoHandle errors from background write of the cylinder group blocks.
Konstantin Belousov [Sat, 27 Jun 2015 09:44:14 +0000 (09:44 +0000)]
Handle errors from background write of the cylinder group blocks.

First, on the write error, bufdone() call from ffs_backgroundwrite()
panics because pbrelvp() cleared bp->b_bufobj, while brelse() would
try to re-dirty the copy of the cg buffer.  Handle this by setting
B_INVAL for the case of BIO_ERROR.

Second, we must re-dirty the real buffer containing the cylinder group
block data when background write failed.  Real cg buffer was already
marked clean in ffs_bufwrite(). After the BV_BKGRDINPROG flag is
cleared on the real cg buffer in ffs_backgroundwrite(), buffer scan
may reuse the buffer at any moment. The result is lost write, and if
the write error was only transient, we get corrupted bitmaps.

We cannot re-dirty the original cg buffer in the
ffs_backgroundwritedone(), since the context is not sleepable,
preventing us from sleeping for origbp' lock.  Add BV_BKGDERR flag
(protected by the buffer object lock), which is converted into delayed
write by brelse(), bqrelse() and buffer scan.

In collaboration with: Conrad Meyer <cse.cem@gmail.com>
Reviewed by: mckusick
Sponsored by: The FreeBSD Foundation (kib),
  EMC/Isilon storage division (Conrad)
MFC after: 2 weeks

9 years agoMFi386: r278165
Yoshihiro Takahashi [Sat, 27 Jun 2015 09:01:49 +0000 (09:01 +0000)]
MFi386: r278165

  Silence a coverity warning about ignoring a return value.

9 years agoMFi386: r284878
Yoshihiro Takahashi [Sat, 27 Jun 2015 08:49:41 +0000 (08:49 +0000)]
MFi386: r284878

  Reduce warnings:

   - Add prototype for boot2 main()
   - Don't make assignment within if statement, split it into two.

9 years agoFix a vi-invoked typo.
Glen Barber [Sat, 27 Jun 2015 05:18:08 +0000 (05:18 +0000)]
Fix a vi-invoked typo.

Submitted by: jkim (privately)
Sponsored by: The FreeBSD Foundation

9 years agoAdd the ntfs alias and support it with the MBR and GPT schemes
Marcel Moolenaar [Sat, 27 Jun 2015 03:28:04 +0000 (03:28 +0000)]
Add the ntfs alias and support it with the MBR and GPT schemes
as DOSPTYP_NTFS and GPT_ENT_TYPE_MS_BASIC_DATA (resp).

9 years agoAdd initial support for automatically uploading GCE virtual
Glen Barber [Sat, 27 Jun 2015 01:29:59 +0000 (01:29 +0000)]
Add initial support for automatically uploading GCE virtual
machine images to the Google Compute Engine platform.

By default, gcutil/gsutil requires an Oauth2 login generated
from a URL that must be opened in a browser, a verification
code copied back to the terminal from which it was invoked,
etc., etc., making it near impossible for automation.

I've hacked together an evil solution to work around this,
so unless GCE_LOGIN_SKIP is set to a non-empty value, this
Makefile will not do anything useful.

As a result of this commit, remove the gce-package.sh script
that was never, nor will ever be, used.

MFC after: 3 days
X-MFC-Note: (hopefully)
Sponsored by: The FreeBSD Foundation

9 years agoshort circuit install -l rs
Baptiste Daroussin [Fri, 26 Jun 2015 23:55:02 +0000 (23:55 +0000)]
short circuit install -l rs

When requesting install(1) to only make relative symlinks, by pass all the
done to actually compute the relative symlink if the path given in argument is
already a relative path

9 years agoReduce warnings:
Xin LI [Fri, 26 Jun 2015 18:03:19 +0000 (18:03 +0000)]
Reduce warnings:

 - Add prototype for boot2 main()
 - Don't make assignment within if statement, split it into two.

No functional or binary change -- verified with sha256(1).

MFC after: 2 weeks

9 years agoverify_gla() needs to account for non-zero segment base addresses.
Tycho Nightingale [Fri, 26 Jun 2015 18:00:29 +0000 (18:00 +0000)]
verify_gla() needs to account for non-zero segment base addresses.

Reviewed by: neel

9 years agoPlug minor memory leak at r284765.
Alexander Motin [Fri, 26 Jun 2015 16:14:00 +0000 (16:14 +0000)]
Plug minor memory leak at r284765.

Reported by: Coverity
CID: 1308401
MFC after: 3 days

9 years agoClarify the note about Thumb-2 kernel support.
Glen Barber [Fri, 26 Jun 2015 13:33:46 +0000 (13:33 +0000)]
Clarify the note about Thumb-2 kernel support.

Submitted by: andrew
Sponsored by: The FreeBSD Foundation

9 years agoCounter part of mfi driver commit in mrsas
Kashyap D Desai [Fri, 26 Jun 2015 12:00:51 +0000 (12:00 +0000)]
Counter part of mfi driver commit in mrsas

Switch from make_dev_alias to make_dev_alias_p since make_dev_alias_p can
gracefully fail if the /dev/megaraid_sas_ioctl_node symlink already exists.
This can happen if mfi(4) and mrsas(4) are both attached to cards and
providing Linux emulation support.  Let the first one win.  An equivalent
change has been done in mfi(4).  Extra credit would be to pass the
Linux emulation call to the other driver when appropriate.  This will
probably be a rare case and the user can manually change where the symlink
points to.

MFC after:  3 days

9 years agoKernel panic may be observed by user, if MR controller is under Chip reset (OCR)
Kashyap D Desai [Fri, 26 Jun 2015 11:58:42 +0000 (11:58 +0000)]
Kernel panic may be observed by user, if MR controller is under Chip reset (OCR)
and there are some pending IOs at the time of OCR. This is mainly because of
recursive mutext in OCR and IO completion function call. Generic IO completion (from ISR) needs
sim_lock to be held before it calls completion to CAM (xpt_done), but in case of OCR path mrsas_ocr thread
itself take sim_lock, so this condition is now handled in this patch.

MFC after:  3 days

9 years agopc_curpmap is only in the armv6 pcpu data.
Andrew Turner [Fri, 26 Jun 2015 09:02:40 +0000 (09:02 +0000)]
pc_curpmap is only in the armv6 pcpu data.

9 years agoamd64: set the correct LMA values
Roger Pau Monné [Fri, 26 Jun 2015 07:12:17 +0000 (07:12 +0000)]
amd64: set the correct LMA values

The current linker script generates program headers with VMA == LMA:

Entry point 0xffffffff802e7000
There are 6 program headers, starting at offset 64

Program Headers:
  Type           Offset             VirtAddr           PhysAddr
                 FileSiz            MemSiz              Flags  Align
  PHDR           0x0000000000000040 0xffffffff80200040 0xffffffff80200040
                 0x0000000000000150 0x0000000000000150  R E    8
  INTERP         0x0000000000000190 0xffffffff80200190 0xffffffff80200190
                 0x000000000000000d 0x000000000000000d  R      1
      [Requesting program interpreter: /red/herring]
  LOAD           0x0000000000000000 0xffffffff80200000 0xffffffff80200000
                 0x00000000010559b0 0x00000000010559b0  R E    200000
  LOAD           0x0000000001056000 0xffffffff81456000 0xffffffff81456000
                 0x0000000000132638 0x000000000052ecf8  RW     200000
  DYNAMIC        0x0000000001056000 0xffffffff81456000 0xffffffff81456000
                 0x00000000000000d0 0x00000000000000d0  RW     8
  GNU_STACK      0x0000000000000000 0x0000000000000000 0x0000000000000000
                 0x0000000000000000 0x0000000000000000  RWE    8

This is fine for the FreeBSD loader, because it completely ignores p_paddr
and instead uses p_vaddr with a hardcoded offset. Other loaders however
acknowledge p_paddr (like the Xen ELF loader), in which case they will try
to load the kernel at the wrong place. Fix this by adding an AT keyword to
the first section specifying the physical address, other sections will
follow suit, so it ends up looking like:

Entry point 0xffffffff802e7000
There are 6 program headers, starting at offset 64

Program Headers:
  Type           Offset             VirtAddr           PhysAddr
                 FileSiz            MemSiz              Flags  Align
  PHDR           0x0000000000000040 0xffffffff80200040 0x0000000000200040
                 0x0000000000000150 0x0000000000000150  R E    8
  INTERP         0x0000000000000190 0xffffffff80200190 0x0000000000200190
                 0x000000000000000d 0x000000000000000d  R      1
      [Requesting program interpreter: /red/herring]
  LOAD           0x0000000000000000 0xffffffff80200000 0x0000000000200000
                 0x00000000010559b0 0x00000000010559b0  R E    200000
  LOAD           0x0000000001056000 0xffffffff81456000 0x0000000001456000
                 0x0000000000132638 0x000000000052ecf8  RW     200000
  DYNAMIC        0x0000000001056000 0xffffffff81456000 0x0000000001456000
                 0x00000000000000d0 0x00000000000000d0  RW     8
  GNU_STACK      0x0000000000000000 0x0000000000000000 0x0000000000000000
                 0x0000000000000000 0x0000000000000000  RWE    8

Tested on bare metal using the native FreeBSD loader and grub2 from TRUEOS.

Sponsored by: Citrix Systems R&D
Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D2783

9 years agoSplit the DMAR unit domains and contexts. Domains carry address space
Konstantin Belousov [Fri, 26 Jun 2015 07:01:29 +0000 (07:01 +0000)]
Split the DMAR unit domains and contexts.  Domains carry address space
and related data structures.  Contexts attach requests initiators to
domains.  There is still 1:1 correspondence between contexts and
domains on the running system, since only busdma currently allocates
them, using dmar_get_ctx_for_dev().

Large part of the change is formal rename of the ctx to domain, but
patch also reworks the context allocation and free to allow for
independent domain creation.

The helper dmar_move_ctx_to_domain() is introduced for future use, to
reassign request initiator from one domain to another.  The hard issue
which is not yet resolved with the context move is proper handling (or
reserving) RMRR entries in the destination domain as required by ACPI
DMAR table for moved context.

Tested by: pho
Sponsored by: The FreeBSD Foundation

9 years agoUn-static cpuset_which() - it's useful in other contexts, such as some
Adrian Chadd [Fri, 26 Jun 2015 04:14:05 +0000 (04:14 +0000)]
Un-static cpuset_which() - it's useful in other contexts, such as some
CPU set operations in my upcoming NUMA work.

Tested/compiled:

* i386 (run)
* amd64 (run)
* mips (run)
* mips64 (run)
* armv6 (built)

Sponsored by: Norse Corp, Inc.

9 years agoRename seq_* to mseq_*, to avoid clashes with seq.h (namely, seq_read.)
Adrian Chadd [Fri, 26 Jun 2015 04:12:06 +0000 (04:12 +0000)]
Rename seq_* to mseq_*, to avoid clashes with seq.h (namely, seq_read.)

9 years agoAdd support for additional architectures in ntp.
Cy Schubert [Fri, 26 Jun 2015 03:29:23 +0000 (03:29 +0000)]
Add support for additional architectures in ntp.

Differential Revision: D2720
Reviewed by: jmg, reoberto, andrew, ian, imp

9 years agoAnother attempt to make this compile on more architectures after r284777.
Bjoern A. Zeeb [Thu, 25 Jun 2015 23:16:01 +0000 (23:16 +0000)]
Another attempt to make this compile on more architectures after r284777.

9 years agoRevert r284860. I was looking at the wrong files.
Glen Barber [Thu, 25 Jun 2015 20:46:11 +0000 (20:46 +0000)]
Revert r284860.  I was looking at the wrong files.
Sigh.

Sponsored by: The FreeBSD Foundation

9 years agoIf INVARIANTS is specified, add ctor/dtor to junk memory if they are
John-Mark Gurney [Thu, 25 Jun 2015 20:44:46 +0000 (20:44 +0000)]
If INVARIANTS is specified, add ctor/dtor to junk memory if they are
unspecified...

Submitted by: Suresh Gumpula at Netapp
Differential Revision: https://reviews.freebsd.org/D2725

9 years agoFix an incorrect revision number.
Glen Barber [Thu, 25 Jun 2015 20:40:51 +0000 (20:40 +0000)]
Fix an incorrect revision number.

Sponsored by: The FreeBSD Foundation

9 years agoEnable the use of __builtin_va_* for ICC.
Tijl Coosemans [Thu, 25 Jun 2015 19:39:07 +0000 (19:39 +0000)]
Enable the use of __builtin_va_* for ICC.

PR: 198822
Submitted by: Sergey Melnikov <sergey.melnikov@intel.com>
MFC after: 5 days

9 years agoDocument r284237, file(1) updated to 5.23.
Glen Barber [Thu, 25 Jun 2015 18:44:59 +0000 (18:44 +0000)]
Document r284237, file(1) updated to 5.23.

Sponsored by: The FreeBSD Foundation

9 years agoDocument r283092, ACPICA updated to 20150515.
Glen Barber [Thu, 25 Jun 2015 18:44:57 +0000 (18:44 +0000)]
Document r283092, ACPICA updated to 20150515.

Sponsored by: The FreeBSD Foundation

9 years agoDocument r284329, OpenSSL update to 1.0.1o.
Glen Barber [Thu, 25 Jun 2015 18:44:55 +0000 (18:44 +0000)]
Document r284329, OpenSSL update to 1.0.1o.

Sponsored by: The FreeBSD Foundation

9 years agoDocument r258431, boot-time memory test on amd64 platforms is now
Glen Barber [Thu, 25 Jun 2015 18:44:53 +0000 (18:44 +0000)]
Document r258431, boot-time memory test on amd64 platforms is now
disabled by default.

Sponsored by: The FreeBSD Foundation

9 years agoDocument r279955, autofs(5) '-noauto' map addition.
Glen Barber [Thu, 25 Jun 2015 18:44:50 +0000 (18:44 +0000)]
Document r279955, autofs(5) '-noauto' map addition.

Sponsored by: The FreeBSD Foundation

9 years agoDocument r275681, autofs(5) '-media' map addition.
Glen Barber [Thu, 25 Jun 2015 18:44:48 +0000 (18:44 +0000)]
Document r275681, autofs(5) '-media' map addition.

Sponsored by: The FreeBSD Foundation

9 years agoUpdate the svn revision marker.
Glen Barber [Thu, 25 Jun 2015 18:44:46 +0000 (18:44 +0000)]
Update the svn revision marker.

Sponsored by: The FreeBSD Foundation

9 years agoDocument r284746, TSO and checksum offloading support in hv_netvsc(4).
Glen Barber [Thu, 25 Jun 2015 18:44:44 +0000 (18:44 +0000)]
Document r284746, TSO and checksum offloading support in hv_netvsc(4).

Sponsored by: The FreeBSD Foundation

9 years agoAdd missing '-' in Hyper-V.
Glen Barber [Thu, 25 Jun 2015 18:44:42 +0000 (18:44 +0000)]
Add missing '-' in Hyper-V.

Sponsored by: The FreeBSD Foundation

9 years agoDocument r284702, uart(4) update to support AMT on newer systems.
Glen Barber [Thu, 25 Jun 2015 18:44:40 +0000 (18:44 +0000)]
Document r284702, uart(4) update to support AMT on newer systems.

Sponsored by: The FreeBSD Foundation

9 years agoDocument r284589, fstyp(8) now recognizes ZFS and GELI filesystems.
Glen Barber [Thu, 25 Jun 2015 18:44:38 +0000 (18:44 +0000)]
Document r284589, fstyp(8) now recognizes ZFS and GELI filesystems.

Sponsored by: The FreeBSD Foundation

9 years agoMove the crypt(3) entries from userland-programs to
Glen Barber [Thu, 25 Jun 2015 18:44:36 +0000 (18:44 +0000)]
Move the crypt(3) entries from userland-programs to
userland-libraries.

Sponsored by: The FreeBSD Foundation

9 years agoDocument r284483, Blowfish crypt(3) now supports $2y$ format.
Glen Barber [Thu, 25 Jun 2015 18:44:34 +0000 (18:44 +0000)]
Document r284483, Blowfish crypt(3) now supports $2y$ format.

Sponsored by: The FreeBSD Foundation

9 years agoDocument r284297, lockstat(1) improvements.
Glen Barber [Thu, 25 Jun 2015 18:44:31 +0000 (18:44 +0000)]
Document r284297, lockstat(1) improvements.
Add ClusterHQ to sponsors.ent.

Sponsored by: The FreeBSD Foundation

9 years agoDocument r284273, initial ACPI support for aarch64.
Glen Barber [Thu, 25 Jun 2015 18:44:29 +0000 (18:44 +0000)]
Document r284273, initial ACPI support for aarch64.

Sponsored by: The FreeBSD Foundation

9 years agoDocument r284254, bmake updated to 20150606.
Glen Barber [Thu, 25 Jun 2015 18:44:27 +0000 (18:44 +0000)]
Document r284254, bmake updated to 20150606.

Sponsored by: The FreeBSD Foundation

9 years agoDocument r283959, EM_MULTIQUEUE kernel configuration option.
Glen Barber [Thu, 25 Jun 2015 18:44:25 +0000 (18:44 +0000)]
Document r283959, EM_MULTIQUEUE kernel configuration option.

Sponsored by: The FreeBSD Foundation

9 years agoDocument r283766, improved hang detection in em(4).
Glen Barber [Thu, 25 Jun 2015 18:44:22 +0000 (18:44 +0000)]
Document r283766, improved hang detection in em(4).

Sponsored by: The FreeBSD Foundation

9 years agoDocument r283766, ig4(4) addition.
Glen Barber [Thu, 25 Jun 2015 18:44:20 +0000 (18:44 +0000)]
Document r283766, ig4(4) addition.

Sponsored by: The FreeBSD Foundation

9 years agoDocument r283136, net.inet.tcp.hostcache.purgenow addition.
Glen Barber [Thu, 25 Jun 2015 18:44:18 +0000 (18:44 +0000)]
Document r283136, net.inet.tcp.hostcache.purgenow addition.

Sponsored by: The FreeBSD Foundation

9 years agoDocument r282988, alloc_align() added to malloc.h and stdlib.h.
Glen Barber [Thu, 25 Jun 2015 18:44:16 +0000 (18:44 +0000)]
Document r282988, alloc_align() added to malloc.h and stdlib.h.

Sponsored by: The FreeBSD Foundation

9 years agoDocument r282973, libgomp no longer built by default, unless building
Glen Barber [Thu, 25 Jun 2015 18:44:14 +0000 (18:44 +0000)]
Document r282973, libgomp no longer built by default, unless building
the base system GCC.

Sponsored by: The FreeBSD Foundation

9 years agoDocument r282901, RACCT/RCTL in GENERIC by default.
Glen Barber [Thu, 25 Jun 2015 18:44:12 +0000 (18:44 +0000)]
Document r282901, RACCT/RCTL in GENERIC by default.

Sponsored by: The FreeBSD Foundation

9 years agoDocument r282827, BeagleBone Black power button support added.
Glen Barber [Thu, 25 Jun 2015 18:44:10 +0000 (18:44 +0000)]
Document r282827, BeagleBone Black power button support added.

Sponsored by: The FreeBSD Foundation

9 years agoDocument r282783, freescale PCI Root Complex support added.
Glen Barber [Thu, 25 Jun 2015 18:44:08 +0000 (18:44 +0000)]
Document r282783, freescale PCI Root Complex support added.

Sponsored by: The FreeBSD Foundation

9 years agoDocument r282779, Thumb-2 support for ARMv7 added.
Glen Barber [Thu, 25 Jun 2015 18:44:06 +0000 (18:44 +0000)]
Document r282779, Thumb-2 support for ARMv7 added.

Sponsored by: The FreeBSD Foundation

9 years agoFix support for the null encryption algorithm which now requires
George V. Neville-Neil [Thu, 25 Jun 2015 18:38:58 +0000 (18:38 +0000)]
Fix support for the null encryption algorithm which now requires
a key.

Sponsored by: Rubicon Communications (Netgate)

9 years agoSort the cpu architectures by name rather than a combination of
Andrew Turner [Thu, 25 Jun 2015 16:47:11 +0000 (16:47 +0000)]
Sort the cpu architectures by name rather than a combination of
alphabetical order and appending new architectures to the end of the list.

Obtained from: ABT Systems Ltd
Sponsored by: The FreeBSD Foundation

9 years agoCorrect r284777 to use proper includes and remove dead code to unbreak kernel builds.
Ermal Luçi [Thu, 25 Jun 2015 15:05:58 +0000 (15:05 +0000)]
Correct r284777 to use proper includes and remove dead code to unbreak kernel builds.

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

9 years agoChange the hour:minute delimiter from ':' to '-', since
Glen Barber [Thu, 25 Jun 2015 14:24:06 +0000 (14:24 +0000)]
Change the hour:minute delimiter from ':' to '-', since
the former is an invalid character in EC2 images.

MFC after: 3 days
Sponsored by: The FreeBSD Foundation

9 years agoConsider PRERELEASE builds snapshots, in addition to CURRENT and
Glen Barber [Thu, 25 Jun 2015 13:40:00 +0000 (13:40 +0000)]
Consider PRERELEASE builds snapshots, in addition to CURRENT and
STABLE.

MFC after: 3 days
Sponsored by: The FreeBSD Foundation

9 years agoRemove limitations on setting WWNNs starting from 2.
Alexander Motin [Thu, 25 Jun 2015 10:03:38 +0000 (10:03 +0000)]
Remove limitations on setting WWNNs starting from 2.

It is odd that driver first tries to generate synthetic WWNN based on
WWPN starting from 2, but then refuses to use it.  If we don't trust
generated WWNN, we should probably not generate it.  Same time this
limitation prevents potentially valid WWNN setting by user.

9 years agoImplement fpgetmask, it's needed by Python.
Andrew Turner [Thu, 25 Jun 2015 08:22:25 +0000 (08:22 +0000)]
Implement fpgetmask, it's needed by Python.

Approved by: ABT Systems Ltd
Sponsored by: The FreeBSD Foundation

9 years agoExport __flt_rounds from the arm64 libc.so
Andrew Turner [Thu, 25 Jun 2015 08:15:47 +0000 (08:15 +0000)]
Export __flt_rounds from the arm64 libc.so

9 years agoProtect smbus ioctls in ig4 driver using a shared lock.
Michael Gmelin [Thu, 25 Jun 2015 07:52:51 +0000 (07:52 +0000)]
Protect smbus ioctls in ig4 driver using a shared lock.
Document locking semantics.

Differential Revision: https://reviews.freebsd.org/D2744
Reviewed by: jah, kib
Approved by: kib

9 years agoMerge changes from vendor driver 1.1.4:
Xin LI [Thu, 25 Jun 2015 06:15:08 +0000 (06:15 +0000)]
Merge changes from vendor driver 1.1.4:

  v1.1.4 2015-06-09
   * Fix a bug that FailLED was not initialized properly.
  v1.1.3 2015-05-19
   * Support Report Luns command.
  v1.1.2 2015-05-05
   * Fix a bug that report wrong physical sector size for 512e HDD.

Many thanks to HighPoint for continued support of FreeBSD!

This driver update is intended for 10.2-RELEASE.

Submitted by: Steve Chang
MFC after: 3 days

9 years agoAdd a note on the second sendmail fix for WeakDH interoperability.
Gregory Neil Shapiro [Thu, 25 Jun 2015 01:42:59 +0000 (01:42 +0000)]
Add a note on the second sendmail fix for WeakDH interoperability.

9 years agorlimit: fix a an old name in a comment: uihashtbl_mtx -> uihashtbl_lock
Mateusz Guzik [Thu, 25 Jun 2015 01:24:36 +0000 (01:24 +0000)]
rlimit: fix a an old name in a comment: uihashtbl_mtx -> uihashtbl_lock

9 years agorlimit: deduplicate code in chg* functions
Mateusz Guzik [Thu, 25 Jun 2015 00:15:37 +0000 (00:15 +0000)]
rlimit: deduplicate code in chg* functions

9 years agoEnsure ASSUME_ALWAYS_YES is set when deleting pkg(8) from the
Glen Barber [Wed, 24 Jun 2015 21:30:35 +0000 (21:30 +0000)]
Ensure ASSUME_ALWAYS_YES is set when deleting pkg(8) from the
DESTDIR, otherwise it can get stuck in ttyin.

This means no 10-STABLE EC2 images this week.

MFC after: 3 days
Sponsored by: The FreeBSD Foundation

9 years agosh: Fix some arithmetic undefined behaviour.
Jilles Tjoelker [Wed, 24 Jun 2015 20:51:48 +0000 (20:51 +0000)]
sh: Fix some arithmetic undefined behaviour.

Fix shifts of possibly negative numbers found with ubsan and avoid signed
integer overflow when hashing an extremely long command name.

MFC after: 1 week

9 years agoALTQ FAIRQ discipline import from DragonFLY
Ermal Luçi [Wed, 24 Jun 2015 19:16:41 +0000 (19:16 +0000)]
ALTQ FAIRQ discipline import from DragonFLY

Differential Revision:  https://reviews.freebsd.org/D2847
Reviewed by:    glebius, wblock(manpage)
Approved by:    gnn(mentor)
Obtained from:  pfSense
Sponsored by:   Netgate

9 years agoFix compilation when the armv6 world is being compiled without hw floating
Ian Lepore [Wed, 24 Jun 2015 18:29:34 +0000 (18:29 +0000)]
Fix compilation when the armv6 world is being compiled without hw floating
point support.  The fenv-vfp.c file overrides -mfloat-abi so it can use
floating point instructions if it detects support at runtime.  Make it also
override -mfpu in case the user has set -mfpu=none.

9 years agoFix a misplaced #endif (maybe a mismerge?). Emitting the symbol for CURPMAP
Ian Lepore [Wed, 24 Jun 2015 18:26:04 +0000 (18:26 +0000)]
Fix a misplaced #endif (maybe a mismerge?).  Emitting the symbol for CURPMAP
is not dependent on whether VFP (hardware floating point) is enabled.

9 years agoImplement fpsetmask. Some third-party software makes use of it, for example
Andrew Turner [Wed, 24 Jun 2015 16:18:58 +0000 (16:18 +0000)]
Implement fpsetmask. Some third-party software makes use of it, for example
perl.

Obtained from: ABT Systems Ltd
Sponsored by: The FreeBSD Foundation

9 years agoSet the alignment of the setjmp magic values correctly. The alignment needs
Andrew Turner [Wed, 24 Jun 2015 16:15:32 +0000 (16:15 +0000)]
Set the alignment of the setjmp magic values correctly. The alignment needs
to be before the lavel, otherwise an extra word may be added between the
label and the data.

Obtained from: ABT Systems Ltd
Sponsored by: The FReeBSD Foundation

9 years agoSeveral build changes for ix and ixv:
Eric Joyner [Wed, 24 Jun 2015 15:53:52 +0000 (15:53 +0000)]
Several build changes for ix and ixv:

- Allow ix and ixv to be built seperately.
- Re-enable building ix for i386 and amd64 archs
- Fix ixv Makefile.

Approved by: jfv (mentor)

9 years agoAt the suggestion of jhb, replace atomic_set/clear calls with use of
Sean Bruno [Wed, 24 Jun 2015 15:52:26 +0000 (15:52 +0000)]
At the suggestion of jhb, replace atomic_set/clear calls with use of
exclusive locks in the enable/disable interpreter path.

Tested with WITNESS/INVARIANTS on and off.

Reviewed by: sson davide

9 years agoTeach ctld about CTL's physical_port and virtual_port fields.
Alexander Motin [Wed, 24 Jun 2015 15:13:27 +0000 (15:13 +0000)]
Teach ctld about CTL's physical_port and virtual_port fields.

This allows ctld to work with isp(4) virtual ports, specifying them as
isp0/1, isp0/2, etc.  There are still problems on isp(4) layer with
disabling those ports after enabling, but hopefully they can be fixed.

MFC after: 3 days
Sponsored by: iXsystems, Inc.

9 years agoadd floatingpoint.h for arm64
Ed Maste [Wed, 24 Jun 2015 14:51:53 +0000 (14:51 +0000)]
add floatingpoint.h for arm64

On other architectures floatingpoint.h is a symlink to
machine/floatingpoint.h which in turn includes machine/ieeefp.h.
Do this on arm64 as well for now.

Sponsored by: The FreeBSD Foundation

9 years agoFix the floating-point exception values to line up with the hardware
Andrew Turner [Wed, 24 Jun 2015 12:19:49 +0000 (12:19 +0000)]
Fix the floating-point exception values to line up with the hardware
register bits. Nothing in base uses these as they are deprecated, however
third-party applications, such as perl, expect some of these functions to
exist.

Obtained from: ABT Systems Ltd
Sponsored by: The FreeBSD Foundation

9 years agoMention that using ports/net/malo-firmware-kmod to install the firmware.
Kevin Lo [Wed, 24 Jun 2015 09:28:43 +0000 (09:28 +0000)]
Mention that using ports/net/malo-firmware-kmod to install the firmware.

9 years agoFix reported_gone setting, missed in some cases.
Alexander Motin [Wed, 24 Jun 2015 09:06:12 +0000 (09:06 +0000)]
Fix reported_gone setting, missed in some cases.

This makes driver better track reported CAM_SEL_TIMEOUTs to properly
report device reappearance later.  This fixes target 0 not reappearing
after initiator mode disabled and then reenabled.

MFC after: 3 days

9 years agosfxge: skip VPD info population if access is denied
Andrew Rybchenko [Wed, 24 Jun 2015 06:25:20 +0000 (06:25 +0000)]
sfxge: skip VPD info population if access is denied

The patch allows to run on unprivileged PF (PFIOV) passed to
a virtual machine.

Reviewed by:    gnn
Sponsored by:   Solarflare Communications, Inc.
MFC after:      2 days
Differential Revision: https://reviews.freebsd.org/D2891

9 years agoTSO and checksum offloading support for Netvsc driver on Hyper-V.
Wei Hu [Wed, 24 Jun 2015 06:01:29 +0000 (06:01 +0000)]
TSO and checksum offloading support for Netvsc driver on Hyper-V.

Submitted by: whu
Reviewed by: royger
Approved by: royger
MFC after: 1 week
Relnotes: yes
Sponsored by: Microsoft OSTC
Differential Revision: https://reviews.freebsd.org/D2517

9 years agoSet some internal helpers as static and initialize few variables to silence
Marcelo Araujo [Wed, 24 Jun 2015 01:48:44 +0000 (01:48 +0000)]
Set some internal helpers as static and initialize few variables to silence
CLANG WARNINGS.
BUMP SHLIB_MAJOR version as the ABI potentially changed.

Also run an 'exp run' to double check if any external project are using
those functions. Thanks antoine@.

PR: 200807
Differential Revision: D2775
Reviewed by: kib, ngie