]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/log
FreeBSD/stable/10.git
9 years agoMFC r270798:
kib [Fri, 12 Sep 2014 16:22:01 +0000 (16:22 +0000)]
MFC r270798:
Process STT_GNU_IFUNC when doing non-plt relocations.

MFC r270802:
Only do the second pass over non-plt relocations when the first pass
found IFUNCs.

Approved by: re (gjb)

git-svn-id: svn://svn.freebsd.org/base/stable/10@271469 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoUpdate stable/10 to -BETA1 as part of the 10.1-RELEASE
gjb [Fri, 12 Sep 2014 00:05:15 +0000 (00:05 +0000)]
Update stable/10 to -BETA1 as part of the 10.1-RELEASE
cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@271444 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r266497:
smh [Thu, 11 Sep 2014 18:42:51 +0000 (18:42 +0000)]
MFC r266497:
Add sysctls for ZFS dirty data tuning.

MFC r266533:
Improve sysctl descriptions for new ZFS sysctls.

Approved by: re (marius)
Sponsored by: Multiplay

git-svn-id: svn://svn.freebsd.org/base/stable/10@271435 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoDisable debugging-related options in all ARM kernel configs for stable-10.
ian [Thu, 11 Sep 2014 15:36:36 +0000 (15:36 +0000)]
Disable debugging-related options in all ARM kernel configs for stable-10.
This is a direct commit to stable-10.  The following options are disabled
in all arm kernel configs:

DEADLKRES
DIAGNOSTIC
INVARIANTS
INVARIANTS_SUPPORT
WITNESS
WITNESS_SKIPSPIN
Approved by: re(gjb)

git-svn-id: svn://svn.freebsd.org/base/stable/10@271428 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r270993 (by mjg):
kib [Thu, 11 Sep 2014 11:25:10 +0000 (11:25 +0000)]
MFC r270993 (by mjg):
Fix up proc_realparent to always return correct process.

Approved by: re (delphij)

git-svn-id: svn://svn.freebsd.org/base/stable/10@271423 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC Clang debug info crash fix
emaste [Thu, 11 Sep 2014 01:53:55 +0000 (01:53 +0000)]
MFC Clang debug info crash fix

r271282: Merge Clang debug info crash fix rev 200797:

      Debug info: fix a crasher when when emitting debug info for
      not-yet-completed templated types. getTypeSize() needs a complete type.

      rdar://problem/15931354

r271283: Add clang patch for r271282

  Note that r271282 contains only the src change from Clang rev 200797.
  This patch file includes two follow-on changes to the test case, which
  do not apply to the copy in the FreeBSD tree.

  Upstream Clang revisions:

  200797:

      Debug info: fix a crasher when when emitting debug info for
      not-yet-completed templated types. getTypeSize() needs a complete type.

      rdar://problem/15931354

  200798:

      Simplify testcase from r200797 some more.

  200805:

      Further simplify r200797 and add an explanatory comment.

PR: 193347
Approved by: re
Sponsored by: DARPA, AFRL

git-svn-id: svn://svn.freebsd.org/base/stable/10@271414 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 270823,270825,270829:
jhb [Wed, 10 Sep 2014 15:45:18 +0000 (15:45 +0000)]
MFC 270823,270825,270829:
Use a unit number allocator to provide suitable st_dev and st_ino values
for POSIX shared memory descriptors.  The implementation is similar to
that used for pipes.

Approved by: re (gjb for 10)

git-svn-id: svn://svn.freebsd.org/base/stable/10@271399 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271226: MFV r271223:
delphij [Wed, 10 Sep 2014 13:21:44 +0000 (13:21 +0000)]
MFC r271226: MFV r271223:

In dnode_sync(), do dnode_increase_indirection() before processing
the dn_next_nblkptr.

Illumos issue:
    5117 space map reallocation can cause corruption

Approved by: re (gjb)

git-svn-id: svn://svn.freebsd.org/base/stable/10@271392 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271222:
delphij [Wed, 10 Sep 2014 13:13:30 +0000 (13:13 +0000)]
MFC r271222:

Fix typo.

Submitted by: Dmitry Morozovsky <marck rinet ru>
Approved by: re (gjb)

git-svn-id: svn://svn.freebsd.org/base/stable/10@271390 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271218:
hselasky [Wed, 10 Sep 2014 10:09:34 +0000 (10:09 +0000)]
MFC r271218:
Update mixer description for FastTrackPro.

Approved by: re, marius

git-svn-id: svn://svn.freebsd.org/base/stable/10@271375 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271000:
kib [Wed, 10 Sep 2014 09:47:16 +0000 (09:47 +0000)]
MFC r271000:
Delay the return from thread_single(SINGLE_EXIT) until all threads are
really destroyed by thread_stash() after the last switch out.

MFC r271007:
Retire thread_unthread().

MFC r271008:
Style.

Approved by: re (marius)

git-svn-id: svn://svn.freebsd.org/base/stable/10@271372 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271017 and r271018:
hselasky [Wed, 10 Sep 2014 09:40:51 +0000 (09:40 +0000)]
MFC r271017 and r271018:
Add new quirk.

PR:        193279
Approved by: re, marius

git-svn-id: svn://svn.freebsd.org/base/stable/10@271370 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r270992:
hselasky [Wed, 10 Sep 2014 06:48:23 +0000 (06:48 +0000)]
MFC r270992:
Fix logical error.

Approved by: re, glebius

git-svn-id: svn://svn.freebsd.org/base/stable/10@271355 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoBump __FreeBSD_version after SA-14:18
gjb [Wed, 10 Sep 2014 00:19:33 +0000 (00:19 +0000)]
Bump __FreeBSD_version after SA-14:18

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@271341 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271050: Disable DIAGNOSTIC on low-end ARM platforms.
ian [Tue, 9 Sep 2014 23:31:30 +0000 (23:31 +0000)]
MFC r271050: Disable DIAGNOSTIC on low-end ARM platforms.

Approved by: re(gjb)

git-svn-id: svn://svn.freebsd.org/base/stable/10@271339 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r270882, r270930:
ian [Tue, 9 Sep 2014 22:24:01 +0000 (22:24 +0000)]
MFC r270882, r270930:

  In ARM asm code, ensure that every ENTRY(foo) has a matching END(foo).
  The EABI unwind info requires a .fnend for every .fnstart, and newer
  binutils will complain about seeing two .fnstart in a row.  This change
  allows newer tools to compile our code.

  Do not generate unwind info in asm functions if _STANDALONE is defined.
  The .fnend op causes the assembler to emit RELOC references to unwind
  support functions that don't exist in libstand.

Approved by: re(gjb)

git-svn-id: svn://svn.freebsd.org/base/stable/10@271337 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoConnect the UEFI-capable memstick.img to the build.
gjb [Tue, 9 Sep 2014 21:07:21 +0000 (21:07 +0000)]
Connect the UEFI-capable memstick.img to the build.

This is a direct commit to stable/10, as the script
in head/ does UEFI by default.

Approved by: re (rodrigc)
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@271334 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC improved vt(4) font generation
emaste [Tue, 9 Sep 2014 20:36:56 +0000 (20:36 +0000)]
MFC improved vt(4) font generation

r266851: Add VGAROM 8x8, 8x14 and 8x16 fonts for vt(4)

  These are converted from syscons(4) cp437 fonts.

r267306: Add vgarom font source

  These are in 'GNU Unifont' format, and are converted from syscons(4)
  cp437 fonts.

r267400: Add thin versions of VGAROM 8x8 and 8x16 fonts for vt(4)

  These are converted from syscons(4) cp437-thin-8x* fonts.

r267423: Build vt(4) fonts during buildworld

  vtfontcvt(8) is now built during buildworld, so can be used as a
  bootstrap tool to create vt(4) fonts from source .hex or .bdf font
  files, rather than having uuencoded binary fonts in the tree.

r267578: Add glyphs from converted syscons iso* fonts

  This consists of the unique glyphs from the following font files in
  /usr/share/syscons/fonts:

  iso*.fnt     ISO-8859-1 West European
  iso02*.fnt   ISO-8859-2 Central European
  iso04*.fnt   ISO-8859-4 Baltic
  iso05*.fnt   ISO-8859-5 Cyrillic
  iso07*.fnt   ISO-8859-7 Greek
  iso08*.fnt   ISO-8859-8 Hebrew
  iso09*.fnt   ISO-8859-9 Turkish
  iso15*.fnt   ISO-8859-15 West European

r268022: Rename the WITHOUT_VT_SUPPORT knob to WITHOUT_VT

  The _SUPPORT knobs have a consistent meaning which differs from the
  behaviour controlled by this knob.  As the knob is opt-out and has not
  appeared in a release the impact should be low.

Approved by: re
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@271333 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r270065:
ian [Tue, 9 Sep 2014 19:47:35 +0000 (19:47 +0000)]
MFC r270065:

  Move the imx6 sysctl temperature info to hw.imx6 where all the other
  soc-wide info lives.  It was under dev.imx6_anatop.0.

Approved by: re(gjb)

git-svn-id: svn://svn.freebsd.org/base/stable/10@271330 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r270858, 270879:
ian [Tue, 9 Sep 2014 19:26:55 +0000 (19:26 +0000)]
MFC r270858, 270879:

  Remove duplicated option FDT from individual Wandboard configs, leave
  the one in the common IMX6 file that they all include.

Approved by: re(gjb)

git-svn-id: svn://svn.freebsd.org/base/stable/10@271329 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r270862, r270878: MMU fixes for kernel startup.
ian [Tue, 9 Sep 2014 18:17:43 +0000 (18:17 +0000)]
MFC r270862, r270878: MMU fixes for kernel startup.

  Fix the handling of MMU type in the AP entry code.  The ARM_MMU_V6/V7
  symbols are always #defined to 0 or 1, so use #if SYM not #if defined(SYM).
  Also, it helps if you include the header file that defines the symbols.

  The Marvell PJ4B cpu family is armv7, not armv6.

Approved by: re(gjb)

git-svn-id: svn://svn.freebsd.org/base/stable/10@271327 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoDocument SA-14:18.
gjb [Tue, 9 Sep 2014 17:38:55 +0000 (17:38 +0000)]
Document SA-14:18.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@271324 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC UEFI memstick build script
emaste [Tue, 9 Sep 2014 16:11:04 +0000 (16:11 +0000)]
MFC UEFI memstick build script

r264935 (gjb):

    Add a separate script to build the memstick.img and the
    mini-memstick.img with UEFI support.

    As the comments in the file suggest, 1) there must
    be existing ${.OBJDIR}/usr/src/release/{release,bootonly};
    2) TARGET/TARGET_ARCH must be amd64; and 3) it must be
    a vt(4)-enabled kernel with vt_efifb (*not* vt_vga).

    This script is not hooked into release/Makefile in any way
    until further testing is complete.

r264992 (nwhitehorn):

    Make a dual-boot BIOS/UEFI memstick image. Testing required before
    this gets renamed make-memstick.sh.

r265017 (nwhitehorn):

    loader's GPT support on BIOS does not seem to like the root
    filesystem being the last filesystem on the disk for some reason
    when made by this script. Add a vestigial swap partition to allow
    this to boot with QEMU BIOS.

Approved by: re
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@271318 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMerge r270928: explicitly free packet on PF_DROP, otherwise a "quick"
glebius [Tue, 9 Sep 2014 10:29:27 +0000 (10:29 +0000)]
Merge r270928: explicitly free packet on PF_DROP, otherwise a "quick"
rule with "route-to" may still forward it.

PR: 177808
Approved by: re (gjb)

git-svn-id: svn://svn.freebsd.org/base/stable/10@271306 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r267176, r267181, r268445 (ATF-related commits):
ngie [Tue, 9 Sep 2014 04:00:30 +0000 (04:00 +0000)]
MFC r267176, r267181, r268445 (ATF-related commits):

Phabric: https://reviews.freebsd.org/D706
Approved by: rpaulo (mentor)
Approved by: re (gjb)
Reviewed by: jmmv
Sponsored by: EMC / Isilon Storage Division

r267176:

 Add the *_TESTS_SH_SED_* functionality to atf.test.mk.

 This exists already in plain.test.mk and tap.test.mk and should have been
 added to atf.test.mk too when the feature was first introduced.

 (It is probably time to address the related TODOs but I will do that
 separately.)

r267181:

 Move atf-sh from /usr/bin/ to /usr/libexec/

 In r266650, we made libatf-c and libatf-c++ private libraries so that no
 components outside of the source tree could unintendedly depend on them.

 This change does the same for the "atf-sh library" by moving the atf-sh
 interpreter from its public location in /usr/bin/ to the private location
 in /usr/libexec/.  Our build system will ensure that our own test programs
 use the right binary, but users won't be able to depend on atf-sh by
 "mistake".

 Committing this now to ride the UPDATING notice added with r267172 today.

r268445:

 Fix atf-sh's integration_test

 With the move of atf-sh into /usr/libexec in r267181, some of the
 tests in the integration_test program broke because they could not
 execute atf-sh from the path any longer.

 This slipped through because I do have a local atf installation in
 my home directory that appears in my path, hence the tests could
 still execute my own version.

 Fix this by forcing /usr/libexec to appear at the beginning of the
 path when attempting to execute atf-sh.

 To make upgrading easy (and to avoid an unnecessary entry in UPDATING),
 make integration_test depend on the Makefile so that a rebuild of the
 shell script is triggered.  This requires a hack in the *.test.mk files
 to ensure the Makefile is not treated as a source to the generated
 program.  Ugly, I know, but I don't have a better way of doing this at
 the moment.  Will think of one once I address the TODO in the *.test.mk
 files that suggests generalizing the file generation functionality.

 PR: 191052
 Reviewed by: Garrett Cooper

git-svn-id: svn://svn.freebsd.org/base/stable/10@271298 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r265014: Report boot method (BIOS/UEFI) via sysctl machdep.bootmethod
emaste [Mon, 8 Sep 2014 21:10:51 +0000 (21:10 +0000)]
MFC r265014: Report boot method (BIOS/UEFI) via sysctl machdep.bootmethod

Approved by: re
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@271289 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r270927:
ae [Mon, 8 Sep 2014 19:40:59 +0000 (19:40 +0000)]
MFC r270927:
  Add the reverse part to rule #9. Also change its description in the
  netstat(8) output.

Approved by: re (gjb)

git-svn-id: svn://svn.freebsd.org/base/stable/10@271288 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years ago- Document 263725, ctld(8) 'portal-group' is overrideable.
gjb [Mon, 8 Sep 2014 15:42:47 +0000 (15:42 +0000)]
- Document 263725, ctld(8) 'portal-group' is overrideable.
- Document 263726, ctld(8) 'auth-group' default entry.

Submitted by: trasz
Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@271277 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoDocument r263720, hostname- and IP-based restrictions added
gjb [Mon, 8 Sep 2014 15:42:45 +0000 (15:42 +0000)]
Document r263720, hostname- and IP-based restrictions added
to ctld(8).

Submitted by: trasz
Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@271276 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271047: Avoid ./ in zoneinfo entries in METALOG
emaste [Mon, 8 Sep 2014 15:40:55 +0000 (15:40 +0000)]
MFC r271047: Avoid ./ in zoneinfo entries in METALOG

Use of "find ." resulted in METALOG entries with an extra ./ -- e.g.,
./usr/share/zoneinfo/./America/Toronto.  Avoid this by using globbing
via "find *" instead.

Approved by: re
Sponsored by: DARPA, AFRL

git-svn-id: svn://svn.freebsd.org/base/stable/10@271275 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r270976: Allow standalone debug for non-default ${PROG} targets
emaste [Mon, 8 Sep 2014 15:28:17 +0000 (15:28 +0000)]
MFC r270976: Allow standalone debug for non-default ${PROG} targets

This allows WITH_DEBUG_FILES to produce standalone debug for the ELF
runtime linker.

We previously disabled standalone debug files for bsd.prog.mk consumers
that included a non-default ${PROG} target, but this is not required.

Consumers that do not support standalone debug are still handled by
disabling it for statically linked binaries, and for those that specify
a non-default binary format.

Sponsored by: DARPA, AFRL
Approved by: re

git-svn-id: svn://svn.freebsd.org/base/stable/10@271274 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoDocument r271260, support for /etc/rc.d/<service>/
gjb [Mon, 8 Sep 2014 15:00:01 +0000 (15:00 +0000)]
Document r271260, support for /etc/rc.d/<service>/
subdirectories.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@271273 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoDocument r271234, mrsas(4) enabled in GENERIC for amd64
gjb [Mon, 8 Sep 2014 14:59:59 +0000 (14:59 +0000)]
Document r271234, mrsas(4) enabled in GENERIC for amd64
and i386.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@271272 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoDocument r271205, powerpc ATI Radeon 9700 backlight fix.
gjb [Mon, 8 Sep 2014 14:59:57 +0000 (14:59 +0000)]
Document r271205, powerpc ATI Radeon 9700 backlight fix.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@271271 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoDocument r271153, KSTACK_PAGES increased 4 -> 8 on powerpc64.
gjb [Mon, 8 Sep 2014 14:59:55 +0000 (14:59 +0000)]
Document r271153, KSTACK_PAGES increased 4 -> 8 on powerpc64.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@271270 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years ago- Refine entry for r271130 since a follow-up commit
gjb [Mon, 8 Sep 2014 14:59:53 +0000 (14:59 +0000)]
- Refine entry for r271130 since a follow-up commit
  adds 64-bit libstand.

- Document r271135, initial UEFI boot support.

- Document r271136, boot1.efi, boot1.efifat, loader.efi
  installed to /boot.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@271269 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoDocument r271130, sys/boot/libstand moved to 32-bit specific
gjb [Mon, 8 Sep 2014 14:59:51 +0000 (14:59 +0000)]
Document r271130, sys/boot/libstand moved to 32-bit specific
directory naming convention.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@271268 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoDocument r271128, several performance enhancements to vt(4).
gjb [Mon, 8 Sep 2014 14:59:49 +0000 (14:59 +0000)]
Document r271128, several performance enhancements to vt(4).

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@271267 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoDocument r271116, ofwfb updated to work with
gjb [Mon, 8 Sep 2014 14:59:47 +0000 (14:59 +0000)]
Document r271116, ofwfb updated to work with
x11-servers/xorg-server.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@271266 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoDocument r271111, vt(4) enabled for PS3.
gjb [Mon, 8 Sep 2014 14:59:45 +0000 (14:59 +0000)]
Document r271111, vt(4) enabled for PS3.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@271265 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoDocument r271095, vt(4) keymap support added to the syscons
gjb [Mon, 8 Sep 2014 14:59:43 +0000 (14:59 +0000)]
Document r271095, vt(4) keymap support added to the syscons
rc(8) startup script.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@271264 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 271048:
jhb [Mon, 8 Sep 2014 14:45:58 +0000 (14:45 +0000)]
MFC 271048:
Always seek back to the beginning of a regular directory, even if the
previous seek location was 0.  Without this, readdir() would see
dd_loc of zero and call getdirentries() which would start reading
entries at the current seek location of the directory ignoring the
first batch of entries.  Also, rewinddir() should always seek so that
it reads the directory from the beginning to get updated entries.

PR: 192935
Approved by: re (gjb)

git-svn-id: svn://svn.freebsd.org/base/stable/10@271263 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFH (r270392, r270676, r270679, r270698): add support for subdirectories in rc.conf.d
des [Mon, 8 Sep 2014 11:18:27 +0000 (11:18 +0000)]
MFH (r270392, r270676, r270679, r270698): add support for subdirectories in rc.conf.d

Approved by: re (glebius)

git-svn-id: svn://svn.freebsd.org/base/stable/10@271260 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r270973
kadesai [Mon, 8 Sep 2014 08:25:33 +0000 (08:25 +0000)]
MFC r270973

r270973
Fix for WITNESS warning while doing xpt_rescan.
This happen when converting any JBOD to RAID or creating
any new RAID from Unconfigured Drives.

Without this fix, user may see call trace if  WITNESS is enabled.
System may panic when reconfiguring the RAID.

Reviewed by: ambrisko
Approved by: re (gleb)

---

git-svn-id: svn://svn.freebsd.org/base/stable/10@271252 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoFix previous commit: unbreak build of libkvm by including sys/systm.h
marcel [Sun, 7 Sep 2014 21:40:14 +0000 (21:40 +0000)]
Fix previous commit: unbreak build of libkvm by including sys/systm.h
only when _KERNEL is defined.

Approved by: re@ (implicit)

git-svn-id: svn://svn.freebsd.org/base/stable/10@271239 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r256956:
smh [Sun, 7 Sep 2014 21:30:47 +0000 (21:30 +0000)]
MFC r256956:
Improve ZFS N-way mirror read performance by using load and locality
information.

MFC r260713:
Fix ZFS mirror code for handling multiple DVA's

Also make the addition of the d_rotation_rate binary compatible. This allows
storage drivers compiled for 10.0 to work by preserving the ABI for disks.

Approved by: re (gjb)
Sponsored by: Multiplay

git-svn-id: svn://svn.freebsd.org/base/stable/10@271238 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r262351:
rodrigc [Sun, 7 Sep 2014 20:11:23 +0000 (20:11 +0000)]
MFC r262351:

    Remove KASSERT from in6p_lookup_mcast_ifp().

    When the devel/jenkins port, version 1.551 was started,
    the kernel would panic if INVARIANTS was enabled in the kernel config.

    Suggested by: bms

Approved by: re (gjb)

git-svn-id: svn://svn.freebsd.org/base/stable/10@271236 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271137:
markj [Sun, 7 Sep 2014 18:43:26 +0000 (18:43 +0000)]
MFC r271137:
Add mrsas(4) to GENERIC for i386 and amd64.

Approved by: re (gjb)

git-svn-id: svn://svn.freebsd.org/base/stable/10@271234 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271078:
gjb [Sun, 7 Sep 2014 00:44:59 +0000 (00:44 +0000)]
MFC r271078:
  Fix typo: s/_maske/_mask/

Approved by: re (rodrigc)
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@271214 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r269701:
jhibbits [Sat, 6 Sep 2014 22:37:47 +0000 (22:37 +0000)]
MFC r269701:

Set the si_code appropriately for exception-caused signals.

LLDB checks the si_code, and aborts if a code isn't known.

Approved by: re (gjb)
Relnotes: yes

git-svn-id: svn://svn.freebsd.org/base/stable/10@271212 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoFix the PCPU access macros. It was found that the PCPU pointer, when
marcel [Sat, 6 Sep 2014 22:17:54 +0000 (22:17 +0000)]
Fix the PCPU access macros. It was found that the PCPU pointer, when
held in register r13, is used outside the bounds of critical_enter()
and critical_exit() by virtue of optimizations performed by the
compiler. The net effect being that address computations of fields
in the PCPU structure could be relative to the PCPU structure of the
CPU on which the address computation was performed and not related
to the CPU that executes the actual load or store operation.
The typical failure mode being that the per-CPU cache of UMA got
corrupted due to accesses from other CPUs.

Adding more volatile decorating to the register expression does not
help. The thinking being that volatile is assumed to work on memory
references and not register references. Thus, the fix is to perform
the address computation using a volatile inline assembly statement.

Additionally, since the reference is fundamentally non-atomic on ia64
by virtue of have a distinct address computation followed by the
actual load or store operation, it is required to wrap the entire
PCPU access in a critical section.

With PCPU_GET and friends requiring curthread now that they're in a
critical section, low-level use of these macros in functions like
cpu_switch() is not possible anymore. Consequently, a second order
set of changes is needed to avoid using PCPU_GET and friends where
curthread is either not set yet, or in the process of being changed.
In those cases, explicit dereferencing of pcpup is needed. In those
cases it is also possible to do that.

This is a direct commit to stable/10.

Approved by: re@ (marius)

git-svn-id: svn://svn.freebsd.org/base/stable/10@271211 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271043:
gjb [Sat, 6 Sep 2014 20:16:45 +0000 (20:16 +0000)]
MFC r271043:
  Update the autofs(5) manual to reflect it first appeared iN
  FreeBSD 10.1-RELEASE.

Approved by: re (marius)
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@271210 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r259657,r264205,r264207:
jhibbits [Sat, 6 Sep 2014 19:38:40 +0000 (19:38 +0000)]
MFC r259657,r264205,r264207:

r259657:

Add suspend/resume capabilities to the ATI backlight ppc driver.

With this, also shut off the display (DPMS-style) and disable the
clocking when the backlight level is set to 0.  This is taken from the
radeonkms driver (radeon_legacy_encoders.c) which doesn't yet support
PowerPC.

r264205,r264207:

Fix the ATI backlight driver off/on handling.  Now this driver works
correctly with the ATI Radeon 9700 in the PowerBook G4 1.67GHz.

Code shamelessly taken in spirit from the radeonkms driver, which I
hope will make this driver redundant in the future.

Approved by: re (marius)
Relnotes: yes (not suspend/resume, but the rest)

git-svn-id: svn://svn.freebsd.org/base/stable/10@271205 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r270423:
mav [Sat, 6 Sep 2014 15:26:38 +0000 (15:26 +0000)]
MFC r270423:
Restore pre-r239157 handling of sched_yield(), when thread time slice
was aborted, allowing other threads to run.  Without this change thread
is just rescheduled again, that was illustrated by provided test tool.

PR: 192926
Submitted by: eric@vangyzen.net
Approved by: re (marius)

git-svn-id: svn://svn.freebsd.org/base/stable/10@271194 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r269228:
mav [Sat, 6 Sep 2014 15:24:48 +0000 (15:24 +0000)]
MFC r269228:
Add support for SOUND_MIXER_INFO IOCTL, used by gstreamer.

Submitted by:   Dmitry Luhtionov <dmitryluhtionov@gmail.com>
Approved by: re (marius)

git-svn-id: svn://svn.freebsd.org/base/stable/10@271193 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 270826:
jhb [Sat, 6 Sep 2014 15:15:06 +0000 (15:15 +0000)]
MFC 270826:
MFamd64: Add a machdep.bootmethod sysctl to inform the installer which
firmware method was used for booting.  This is hardcoded to BIOS on i386.

PR: 192962
Approved by: re (gjb)

git-svn-id: svn://svn.freebsd.org/base/stable/10@271191 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r270348:
markj [Sat, 6 Sep 2014 04:39:26 +0000 (04:39 +0000)]
MFC r270348:
Add some missing checks for unsupported interfaces (e.g. pflog(4)) when
handling ioctls. While here, remove duplicated checks for a NULL ifp in
in6_control(): this check is already done near the beginning of the
function.

MFC r270349:
Suppress warnings when retrieving protocol stats from interfaces that
don't support IPv6 (e.g. pflog(4)).

PR: 189117
Approved by: re (gjb)

git-svn-id: svn://svn.freebsd.org/base/stable/10@271185 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 270722:
jhb [Fri, 5 Sep 2014 17:44:10 +0000 (17:44 +0000)]
MFC 270722:
Correct the destroy example.  The -n argument is not needed (and is not
valid).

Approved by: re (gjb for 10)

git-svn-id: svn://svn.freebsd.org/base/stable/10@271177 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 270674:
jhb [Fri, 5 Sep 2014 17:22:20 +0000 (17:22 +0000)]
MFC 270674:
Clarify that the -c argument clears the list of tracepoints specified by
-t (it does not clear all tracepoints).

Approved by: re (gjb for 10)

git-svn-id: svn://svn.freebsd.org/base/stable/10@271176 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 270222:
jhb [Fri, 5 Sep 2014 15:45:20 +0000 (15:45 +0000)]
MFC 270222:
Bump the default size of cpuset_t masks in userland from 128 bits to 256.

This should not be an ABI change since the various public APIs that use
cpusets all include an explicit size parameter in addition to the cpuset
parameter.

Approved by: re (gjb)

git-svn-id: svn://svn.freebsd.org/base/stable/10@271172 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r261095,r263464,r263752,r264189
jhibbits [Fri, 5 Sep 2014 15:13:41 +0000 (15:13 +0000)]
MFC r261095,r263464,r263752,r264189

r263464,r263752,r275189:

Mask out SRR1 bits that aren't exported to the MSR.

This appears to fix a strange condition with X on 32-bit PowerBooks I
observed, caused by one of these bits getting set in the mcontext, but
not set in the thread, which is a symptom of another problem, more
difficult to diagnose.  Since these bits aren't exported anyway, this
change makes it more explicit that the bits aren't MSR-related in SRR1.

r261095:

Fix 32-bit signal handling on ppc64.  This was broken when the
PSL_USERSTATIC macro was changed.  Since copying 64-bit srr1 into
32-bit srr1 drops the upper 32 bits, any bits set in the context were
dropped, meaning the context check fails.  Since 32-bit set_context()
can't change those bits anyway, copy the ones from the current context
(td->td_frame) before calling set_context().

Approved by: re
Relnotes: yes (Affects 10-stable, but not 10.0-release)

git-svn-id: svn://svn.freebsd.org/base/stable/10@271171 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r270797:
kib [Fri, 5 Sep 2014 13:25:27 +0000 (13:25 +0000)]
MFC r270797:
Direct access to the quota files, in particular, lookup, causes lock
conflict with the quota metadata access. Mark quota vnode lock as
recursive and always exclusive to avoid the problem.

Approved by: re (gjb)

git-svn-id: svn://svn.freebsd.org/base/stable/10@271162 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoAdd function and wrapper to switch lockmgr and vnode lock back to
kib [Fri, 5 Sep 2014 13:22:28 +0000 (13:22 +0000)]
Add function and wrapper to switch lockmgr and vnode lock back to
auto-promotion of shared to exclusive.

Approved by: re (gjb)

git-svn-id: svn://svn.freebsd.org/base/stable/10@271161 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r258078,258079
jhibbits [Fri, 5 Sep 2014 05:07:38 +0000 (05:07 +0000)]
MFC r258078,258079

Increase the stack size for ppc64 from 4 pages to 8.

I found a stack overflow when a coredump was taken onto a ZFS volume with
heavy network activity.  2 DSI traps, plus one DECR trap, along with several
function calls in the stack, overflowed the 4 pages.  8 page stack fixes this.

Discussed with: nwhitehorn
Approved by: re
Relnotes: yes

git-svn-id: svn://svn.freebsd.org/base/stable/10@271153 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoAdd UPDATING entry for r271116
emaste [Thu, 4 Sep 2014 21:10:24 +0000 (21:10 +0000)]
Add UPDATING entry for r271116

Noticed by: nwhitehorn

git-svn-id: svn://svn.freebsd.org/base/stable/10@271138 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC boot1.efi stub loader
emaste [Thu, 4 Sep 2014 21:05:04 +0000 (21:05 +0000)]
MFC boot1.efi stub loader

r264391 (nwhitehorn):

  Add a simple EFI stub loader. This is a quick and dirty of boot1.chrp
  from the PowerPC port with all the Open Firmware bits removed and
  replaced by their EFI counterparts. On the whole, I think I prefer
  Open Firmware.

  This code is supposed to be an immutable shim that sits on the EFI
  system partition, loads /boot/loader.efi from UFS and tells the real
  loader what disk/partition to look at. It finds the UFS root partition
  by the somewhat braindead approach of picking the first UFS partition
  it can find. Better approaches are called for, but this works for now.
  This shim loader will also be useful for secure boot in the future,
  which will require some rearchitecture.

r264403 (nwhitehorn):

  Fix buildworld. I had some local bits in my build tree that caused
  this to work by accident.

r264404 (nwhitehorn):

  Add my copyright here. Most of this is unmodified from the original
  sparc64 version, but at least some indication of changes that postdate
  the actual invention of EFI is probably a good idea.

r264414 (nwhitehorn):

  Apparently some of the i386 boot blocks are so close to full that
  adding single lines to ufsread.c spills them over. Duplicate a whole
  bunch of code to get file sizes into boot1.efi/boot1.c rather than
  modifying ufsread.c.

r264975 (nwhitehorn):

  Add generation of an EFI filesystem to hold boot1.efi. This is a near-
  exact copy of the code from boot1.chrp again.

  The resulting image is installed to /boot/boot1.efifat. If dd'ed to an
  800K "efi" partition, it should result in a bootable system.

r268975 (sbruno): Remove boot1.efi during clean target.

Relnotes: Yes
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@271136 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC UEFI loader
emaste [Thu, 4 Sep 2014 21:01:10 +0000 (21:01 +0000)]
MFC UEFI loader

This MFC consists of the following SVN revisions:
  258741 261568 261603 261668 263115 263117 263968 264078 264087 264088
  264092 264095 264115 264132 264208 264261 264262 264263 264319 265028
  265057 268974

Detailed commit messages:

r258741: Note that libstand is 32-bit on amd64 and powerpc64

r261568: Build libstand as a 64-bit library on amd64

  The 32-bit bootloaders now link against libstand.a in
  sys/boot/libstand32, so there is no need to force /usr/lib/libstand.a
  to be 32-bit.

r261603: Don't force efi to a 32-bit build on amd64

r261668: Build libstand as a 64-bit library on ppc64

  The 32-bit bootloaders now link against libstand.a in
  sys/boot/libstand32, so there is no need to force /usr/lib/libstand.a
  to be 32-bit.

  This is equivalent to r261568 for amd64.

r263115: Add amd64 EFI headers

r263117: Connect 64-bit boot ficl to the build

  It is not yet used, but this will ensure it doesn't get broken.

r263968: Use EFI types for EFI values (silences warnings).

  EFI UINTN is actually a 64-bit type on 64-bit processors.

r264078: Put each source file on a separate line

  This will simplify rebasing the amd64 UEFI patch set.

r264087: Build boot/ficl as 64-bit library on amd64

  The 32-bit bootloaders on amd64 now use the 32-bit version in ficl32,
  as is done with libstand32.  The native 64-bit ficl will be used by the
  upcoming UEFI loader.

r264088: Merge efilib changes from projects/uefi

  r247216: Add the ability for a device to have an "alias" handle.

  r247379: Fix network device registration.

  r247380: Adjust our load device when we boot from CD under UEFI.

    The process for booting from a CD under UEFI involves adding a FAT
    filesystem containing your loader code as an El Torito boot image.
    When UEFI detects this, it provides a block IO instance that points
    at the FAT filesystem as a child of the device that represents the CD
    itself. The problem being that the CD device is flagged as a "raw
    device" while the boot image is flagged as a "logical partition".
    The existing EFI partition code only looks for logical partitions and
    so the CD filesystem was rendered invisible.

    To fix this, check the type of each block IO device. If it's found to
    be a CD, and thus an El Torito boot image, look up its parent device
    and add that instead so that the loader will then load the kernel from
    the CD filesystem.  This is done by using the handle for the boot
    filesystem as an alias.

    Something similar to this will be required for booting from other media
    as well as the loader will live in the EFI system partition, not on the
    partition containing the kernel.

  r247381: Remove a scatalogical debug printf that crept in.

r264092: Add -fPIC for amd64

r264095: Support UEFI booting on amd64 via loader.efi

  This is largely the work from the projects/uefi branch, with some
  additional refinements.  This is derived from (and replaces) the
  original i386 efi implementation; i386 support will be restored later.

  Specific revisions of note from projects/uefi:

  r247380:

    Adjust our load device when we boot from CD under UEFI.

    The process for booting from a CD under UEFI involves adding a FAT
    filesystem containing your loader code as an El Torito boot image.
    When UEFI detects this, it provides a block IO instance that points at
    the FAT filesystem as a child of the device that represents the CD
    itself. The problem being that the CD device is flagged as a "raw
    device" while the boot image is flagged as a "logical partition". The
    existing EFI partition code only looks for logical partitions and so
    the CD filesystem was rendered invisible.

    To fix this, check the type of each block IO device. If it's found to
    be a CD, and thus an El Torito boot image, look up its parent device
    and add that instead so that the loader will then load the kernel from
    the CD filesystem.  This is done by using the handle for the boot
    filesystem as an alias.

    Something similar to this will be required for booting from other
    media as well as the loader will live in the EFI system partition, not
    on the partition containing the kernel.

  r246231:

    Add necessary code to hand off from loader to an amd64 kernel.

  r246335:

    Grab the EFI memory map and store it as module metadata on the kernel.

    This is the same approach used to provide the BIOS SMAP to the kernel.

  r246336:

    Pass the ACPI table metadata via hints so the kernel ACPI code can
    find them.

  r246608:

    Rework copy routines to ensure we always use memory allocated via EFI.

    The previous code assumed it could copy wherever it liked. This is not
    the case. The approach taken by this code is pretty ham-fisted in that
    it simply allocates a large (32MB) buffer area and stages into that,
    then copies the whole area into place when it's time to execute. A more
    elegant solution could be used but this works for now.

  r247214:

    Fix a number of problems preventing proper handover to the kernel.

    There were two issues at play here. Firstly, there was nothing
    preventing UEFI from placing the loader code above 1GB in RAM. This
    meant that when we switched in the page tables the kernel expects to
    be running on, we are suddenly unmapped and things no longer work. We
    solve this by making our trampoline code not dependent on being at any
    given position and simply copying it to a "safe" location before
    calling it.

    Secondly, UEFI could allocate our stack wherever it wants. As it
    happened on my PC, that was right where I was copying the kernel to.
    This did not cause happiness. The solution to this was to also switch
    to a temporary stack in a safe location before performing the final
    copy of the loaded kernel.

  r246231:

    Add necessary code to hand off from loader to an amd64 kernel.

  r246335:

    Grab the EFI memory map and store it as module metadata on the kernel.

    This is the same approach used to provide the BIOS SMAP to the kernel.

  r246336:

    Pass the ACPI table metadata via hints so the kernel ACPI code can
    find them.

  r246608:

    Rework copy routines to ensure we always use memory allocated via EFI.

    The previous code assumed it could copy wherever it liked. This is not
    the case. The approach taken by this code is pretty ham-fisted in that
    it simply allocates a large (32MB) buffer area and stages into that,
    then copies the whole area into place when it's time to execute. A more
    elegant solution could be used but this works for now.

  r247214:

    Fix a number of problems preventing proper handover to the kernel.

    There were two issues at play here. Firstly, there was nothing
    preventing UEFI from placing the loader code above 1GB in RAM. This
    meant that when we switched in the page tables the kernel expects to
    be running on, we are suddenly unmapped and things no longer work. We
    solve this by making our trampoline code not dependent on being at any
    given position and simply copying it to a "safe" location before
    calling it.

    Secondly, UEFI could allocate our stack wherever it wants. As it
    happened on my PC, that was right where I was copying the kernel to.
    This did not cause happiness. The solution to this was to also switch
    to a temporary stack in a safe location before performing the final
    copy of the loaded kernel.

  r247216:

    Use the UEFI Graphics Output Protocol to get the parameters of the
    framebuffer.

r264115: Fix printf format mismatches

r264132: Connect sys/boot/amd64 to the build

r264208: Do not build the amd64 UEFI loader with GCC

  The UEFI loader causes buildworld to fail when building with (in-tree)
  GCC, due to a typedef redefinition.  As it happens the in-tree GCC
  cannot successfully build the UEFI loader anyhow, as it does not support
  __attribute__((ms_abi)).  Thus, just avoid trying to build it with GCC,
  rather than disconnecting it from the build until the underlying issue
  is fixed.

r264261: Correct a variable's type for 64-bit Ficl

  FICL_INT is long.

r264262: Fix printf args for 64-bit archs

r264263: Add explicit casts to quiet warnings in libefi

r264319: Fix EFI loader object tree creation on 9.x build hosts

  Previously ${COMPILER_TYPE} was checked in sys/boot/amd64, and the efi
  subdirectory was skipped altogether for gcc (since GCC does not support
  a required attribute).  However, during the early buildworld stages
  ${COMPILER_TYPE} is the existing system compiler (i.e., gcc on 9.x build
  hosts), not the compiler that will eventually be used.  This caused
  "make obj" to skip the efi subdirectory.  In later build stages
  ${COMPILER_TYPE} is "clang", and then the efi loader would attempt to
  build in the source directory.

r265028 (dteske): Disable the beastie menu for EFI console ...

  which doesn't support ANSI codes (so things like `at-xy', `clear', and
  other commands don't work making it impossible to generate a living
  menu).

r265057 (nwhitehorn): Turn off various fancy instruction sets...

  as well as deduplicate some options.  This makes the EFI loader build
  work with CPUTYPE=native in make.conf on my Core i5.

r268974 (sbruno): Supress clang warning for FreeBSD printf %b and %D formats

Relnotes: Yes
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@271135 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r269077 (sbruno): libstand qdivrem warning fixes
emaste [Thu, 4 Sep 2014 20:49:11 +0000 (20:49 +0000)]
MFC r269077 (sbruno): libstand qdivrem warning fixes

  libstand's qdivrem.c assumes that sizeof(int) == sizeof(long), this is not
  true on amd64 I'm not quite positive this is the "correct" solution for
  this but it does seem to compile and shut up the spew of warnings when
  compiling libstand for userboot.

  Add two _Static_asserts() so that in the future somebody will get a compile
  failure if an architecture develops that violates the assumptions of this
  code. (strongly suggested by jmg)

  Change commetns to indicate int types instead of long.  (noted by ian in
  phabric review)

  Phabric:    https://phabric.freebsd.org/D443

git-svn-id: svn://svn.freebsd.org/base/stable/10@271134 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r263005 by royger: howto_names: unify declaration
emaste [Thu, 4 Sep 2014 20:47:14 +0000 (20:47 +0000)]
MFC r263005 by royger: howto_names: unify declaration

git-svn-id: svn://svn.freebsd.org/base/stable/10@271132 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC libstand32 clean target fixes
emaste [Thu, 4 Sep 2014 20:44:41 +0000 (20:44 +0000)]
MFC libstand32 clean target fixes

r269029 (sbruno):

  Update so that clean target in sys/boot will delete the symlink
  created for machine

r269036 (sbruno):

  Delete the entire cleandepend/cleanmachine target thing now that its
  been cleared out in r269029

git-svn-id: svn://svn.freebsd.org/base/stable/10@271131 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agor261567: Build a 32-bit libstand under sys/boot/
emaste [Thu, 4 Sep 2014 20:35:53 +0000 (20:35 +0000)]
r261567: Build a 32-bit libstand under sys/boot/

  A 32-bit libstand is needed on 64-bit platforms for use by various
  bootloaders.  Previously only the 32-bit version was built, installed
  as /usr/lib/libstand.a.

  A new 64-bit libstand consumer will arrive in the near future, so move
  the bootloader-specific 32-bit version to sys/boot/libstand32/.

  Explicitly link against this version in the 32-bit loaders.

r261614: Build a 32-bit libstand under sys/boot/ for ppc64

  This change is equivalent to r261567 for i386/amd64.

Relnotes: Yes
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@271130 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r261591 (nwhitehorn):
emaste [Thu, 4 Sep 2014 20:21:30 +0000 (20:21 +0000)]
MFC r261591 (nwhitehorn):

  Make libstand setjmp work for both 64- and 32-bit ABIs.

git-svn-id: svn://svn.freebsd.org/base/stable/10@271129 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC vt(4) improvements / sync with HEAD
emaste [Thu, 4 Sep 2014 20:18:08 +0000 (20:18 +0000)]
MFC vt(4) improvements / sync with HEAD

These are largely dumbbell@'s changes.  Most significantly they address
the extreme performance degradation with VGA hardware.

SVN revisions in this MFC:
  269471 270290 270293 270322 270324 270329 270331 270336 270338 270340
  270341 270342 270343 270388 270390 270404 270411 270412 270413 270431
  270446 270448 270485 270587 270589 270613 270618 270620 270667 270702
  270707 270708 270720 270721 270785 270786

Detailed commit list:

r270290: Test if the cursor is shown only once

  Later, we just see if the "struct mouse_cursor" pointer is set. This
  avoids the need to mess with all the conditions several times; this
  has been error prone.

  While here, rename the variable "m" to a more meaningful "cursor",
  like it's done elsewhere in the code.

r270293: Rename the "mouse_cursor" structure to "vt_mouse_cursor"

  At the same time, "w" and "h" members are now called "width" and
  "height". The goal is to have a more "public" structure, because it
  will soon be passed as argument to a new callback, replacing
  vd_bitbltchr_t.

r269471 (ray):

  Fix vt_vga driver to draw not-8-bit-aligned fonts correctly.
  Still one bug here: mouse left some gaps on track when moving left.

r270322:

  Add new vd_bitblt_text_t callback, and implement it for vt_vga

  Compared to the deprecated vd_bitbltchr_t callback, vd_bitblt_text_t
  receives:
    o  the whole text buffer
    o  the dirty area
    o  the mouse cursor (map, position, colors)

  This allows the backend to perform optimization on how to draw things.
  The goal is to remove vd_bitbltchr_t and vd_putchar_t, once all driver
  are converted (only vt_vga is included in this commit).

  In vt_vga, this allows to draw the text and the cursor in one pass,
  without ever reading from video memory (because it has all the context).
  The main benefit is the speed improvement: no more slideshow during
  boot!

  Other bugs fixed in vt_vga are:
    o  left-most characters are drawn properly (the left-most pixels were
       missing with bold characters and some wide letters such as 'm')
    o  no more black square around the cursor
    o  no cursor flickering when the text is scrolling

  There are still many problems to fix: the known issues are marked with
  "FIXME" inside the code.

r270411:

  vt_fb: Implement vd_bitblt_text_t for vt_fb and derivatives

r270412:

  creator_fb: Implement vd_bitblt_text_t

r270413: ofwfb: Implement vd_bitblt_text_t

r270324: vt_vga: Clip the draw area to never draw offscreen

  This fixes a bug when two windows use different fonts, but a longer-
  term solution is required. The dirty area should be stored as pixels,
  not character cells, because such coordinates don't have the same
  meaning in all windows, when using different fonts.

r270329: Mark new mouse position as dirty only when it's actually displayed

r270331: Store cursor bitmap & colors in struct vt_device

  This removes the need to specify them to each call to vd_bitblt_text_t
  and, therefore, simplifies the API.

r270336: Give the window to vd_bitblt_text_t callback

  ... instead of both the buffer and the font. Again, this simplifies
  the API.

r270338: The offset to center the text area is per-window now

  The previous global offset, based on the last loaded font, had no
  meaning for other windows. This caused a shifted text area, often
  partly out-of-screen.

r270341:  vt_vga: Remove a "FIXME" comment; the issue was solved in r270338

r270340: Don't run vt_set_border() and vt_flush() concurrently

  In the case of vt_vga, the two concurrent calls were writing to the
  same VGA registers, causing incorrect refresh of the screen.

r270342: Use the actual size of the mouse when marking its position as dirty

  This fixes a bug where part of the cursor was not erased.

r270343: Remove "FIXME" about multiple locking of vt_buf in vt_flush()

  After some testing, it appears that acquiring the lock once and keeping
  it longer is slower than taking it multiple times.

  While here, fix a typo in another comment.

r270388: vt_vga: Give only the character part of term_char_t to vga_get_cp437()

  This fixes a bug where vga_get_cp437() was called with an invalid
  argument. The screen was then filled with '?' instead of the actual
  character.

r270390: Fix a crash in vt_mark_mouse_position_as_dirty() when in textmode

  In textmode, no font is loaded, thus the page fault in
  vt_mark_mouse_position_as_dirty() when it wants the font width/height.

  For now, create a fake area for the textmode. This needs to be
  modified if vt_vga gains mouse support in textmode.

  While here, fix a build failure when SC_NO_CUTPASTE is defined:
  vt_mark_mouse_position_as_dirty() must not be included in this case.

r270404: Fix cursor handling in vt_flush()

  There were situations where the cursor was not erased/redrawn or its
  position was marked as dirty even though it's not displayed. The code
  is now more straightforward.

  At the same, add a function to determine if the cursor covers a given
  area. This is used by backends to know if they need to draw the
  cursor.

  This new function should be paired with a new state in struct
  vt_device, called vd_mshown, which indicates if the cursor should be
  displayed.  This again simplifies vd_bitblt_text_t callback's API.

r270431: vt(4): Add vd_bitblt_bmp_t callback

  The code was already there in all backends, we just expose it. This is
  used to display the splash screen.

r270446: Remove vd_bitbltchr_t

  It's replaced by vd_bitblt_text_t, which gives more context to the
  backend and allows it to perform more efficiently when redrawing a
  given area.

r270448: Fix order of arguments (x <-> y) when showing the splash screen

r270485: vt_vga: Fix the display of the splash screen

r270587: Take font offset into account in vt_is_cursor_in_area()

  This fixes a "General protection fault" in vt_vga, where
  vt_is_cursor_in_area() erroneously reported that the cursor was over
  the text. This led to negative integers stored in "unsigned int" and
  chaos.

r270589: The cursor coordinates are relative to the drawn area

  ... not the whole screen. Don't use font offsets in
  vt_mark_mouse_position_as_dirty().

  This fixes a bug where the mouse position wasn't marked as dirty when
  approaching the borders of the drawn area.

r270613: Store a rectangle for the drawable area, not just the top-left corner

  This allows backends to verify they do not draw outside of this area.
  This fixes a bug in vt_vga where the text was happily drawn over the
  right and bottom margins, when using the Gallant font.

r270618: Intialize drawable area rectangle each time a font is loaded

  This also fixes a problem where early in boot, the area was zero,
  leading to nothing displayed for a few seconds.

r270620: vt_vga: Use Write Mode 0 to draw group of 8 pixels using 3 or more colors

  This replaces the method based on Write Mode 3, which required reads
  from the video memory to load the latches.

r270667: When creating a window buffer, fill it entirely

  ... not just the visible part.

  This fixes a bug where, when switching from eg. vt_vga to vt_fb (ie.
  the resolution goes up), the originally hidden, uninitialized area of
  the buffer is displayed on the screen. This leads to a missing text
  cursor when it's over an unitialized area.

  This was also visible when selecting text: the uninitialized area was
  not highlighted.

  Internally, this area was zeroed: characters were all 0x00000000,
  meaning the foreground and background color was black. Now, everything
  is filled with a space with a gray foreground color, like the visible
  area.

  While here, remove the check for the mute flag and always use
  TERMINAL_NORM_ATTR as the character attribute (ie. gray foreground,
  black background).

r270702: Implement basic support for KDSETMODE ioctl

  With the current implementation, this allows an X11 server to tell
  the console it switches a particular window in "graphics mode". This
  information is used by the mouse handling code to ignore sysmouse events
  in the window taken by the X server: only him should receive those
  events.

r270707: Pause the vt_flush() timer when the screen is up-to-date

  The timer is restarted whenever a window buffer is marked as dirty or
  the mouse cursor moves.

  There's still room for improvement. For instance, we should not mark a
  window buffer as dirty when this window isn't displayed.

r270708: vt(4): Recompute the drawable area when the resolution changes

  This was only done when the font changed.

r270720: vt(4): Fix mouse cursor handling in vt_fb/creator_vt/ofwfb

  There were two issues:
    1. The area given to vt_is_cursor_in_area() was adding the drawable
       area offset, something already handled by this function.
    2. The cursor was shifted on the screen by the offset of this area
       and thus was misplaced or not erased. Furthermore, when reaching
       the bottom or right borders, the cursor was either totally
       removed or not erased correctly.

r270721: vt(4): If the terminal shrinks, make sure the mouse is inside
   the new area

r270785: vt(4): Change vb_history_size from "int" to "unsigned int"

  CID: 12300021230003

r270786: Indicate that KDSETRAD case falls through the next case

  CID: 1229953

Relnotes: Yes

git-svn-id: svn://svn.freebsd.org/base/stable/10@271128 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r270710 and r270821:
hselasky [Thu, 4 Sep 2014 20:12:36 +0000 (20:12 +0000)]
MFC r270710 and r270821:
- Update the OFED Linux Emulation layer as a preparation for a
hardware driver update from Mellanox Technologies.
- Remove empty files from the OFED Linux Emulation layer.
- Fix compile warnings related to printf() and the "%lld" and "%llx"
format specifiers.
- Add some missing 2-clause BSD copyrights.
- Add "Mellanox Technologies, Ltd." to list of copyright holders.
- Add some new compatibility files.
- Fix order of uninit in the mlx4ib module to avoid crash at unload
using the new module_exit_order() function.

Sponsored by: Mellanox Technologies

git-svn-id: svn://svn.freebsd.org/base/stable/10@271127 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r270216:
ngie [Thu, 4 Sep 2014 20:02:28 +0000 (20:02 +0000)]
MFC r270216:

  Add ${LIBC} to DPADD to fix "make checkdpadd"

  Phabric: D632
  Approved by: jmmv (mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/10@271125 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r270299 (dumbbell): vt_vga: When clearing video memory, don't read from it
emaste [Thu, 4 Sep 2014 19:22:01 +0000 (19:22 +0000)]
MFC r270299 (dumbbell): vt_vga: When clearing video memory, don't read from it

  The goal is to clear the video memory, in case an application drew to
  it. So the content shouldn't be loaded in the latches, it can't be
  trusted anyway.

  This improves a bit the window switch speed.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@271121 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r269685 (nwhitehorn): Retire vd_maskbitbltchr.
emaste [Thu, 4 Sep 2014 19:13:07 +0000 (19:13 +0000)]
MFC r269685 (nwhitehorn): Retire vd_maskbitbltchr.

  The same functionality can be obtained by testing for mask != NULL in
  vd_bitbltchr, which all implementations of vd_bitbltchr() were doing
  anyway.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@271120 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r269636 by nwhitehorn:
emaste [Thu, 4 Sep 2014 18:54:01 +0000 (18:54 +0000)]
MFC r269636 by nwhitehorn:

  Set fb_pbase properly on PowerPC in the case where we have to guess at
  the right register bank for the framebuffer. Disable the assigned-
  addresses path on SPARC since it is just a hack for IBM PPC systems
  and was neither relevant for nor worked on SPARC anyway.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@271118 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC fbd(4) and vt_fb disentanglement:
emaste [Thu, 4 Sep 2014 18:43:40 +0000 (18:43 +0000)]
MFC fbd(4) and vt_fb disentanglement:

r268472 (ray):

  Should check fb_read method presence instead of double check for fb_write.

r269620 (nwhitehorn):

  Retire various intertwined bits of fbd(4) and vt_fb, in particular the
  pixel modification indirection. No actual drivers use it and those
  that might (e.g. creatorfb) use custom implementations of
  vd_bitbltchr().

Relnotes: No
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@271117 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r269278 (nwhitehorn):
emaste [Thu, 4 Sep 2014 18:34:22 +0000 (18:34 +0000)]
MFC r269278 (nwhitehorn):

  Make mmap() of the console device when using ofwfb work like other
  supported framebuffer drivers. This lets ofwfb work with
  xf86-video-scfb and makes the driver much more generic and less
  PCI-centric. This changes some user-visible behavior and will require
  updates to the xorg-server port on PowerPC when using ATI graphics
  cards.

Relnotes: Yes
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@271116 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r268350 (nwhitehorn):
emaste [Thu, 4 Sep 2014 18:30:33 +0000 (18:30 +0000)]
MFC r268350 (nwhitehorn):

  Use common vt_fb parts in ofwfb as far as we are able without
  sacrificing performance.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@271115 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r265883,268898:
nwhitehorn [Thu, 4 Sep 2014 18:28:30 +0000 (18:28 +0000)]
MFC r265883,268898:

Repair bitrot in PS3 memory and interrupt allocation.

git-svn-id: svn://svn.freebsd.org/base/stable/10@271114 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r268880:
nwhitehorn [Thu, 4 Sep 2014 18:24:47 +0000 (18:24 +0000)]
MFC r268880:
Allow mappings of memory not previously direct-mapped by the kernel when
calling mmap on /dev/mem and add a handler for the possible userland
machine checks that may result. Remove some pointless and wrong copy/paste
that has been in here for a decade as well.

This results in a /dev/mem with identical semantics to the x86 version.

git-svn-id: svn://svn.freebsd.org/base/stable/10@271113 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC vt(4) driver for Sun creator(4) framebuffers
emaste [Thu, 4 Sep 2014 18:18:29 +0000 (18:18 +0000)]
MFC vt(4) driver for Sun creator(4) framebuffers

r269601 (nwhitehorn):

  Add a simple unaccelerated vt(4) framebuffer driver for Sun
  framebuffers handled by creator(4) (Sun Creator 3D, Elite 3D, etc.).
  This provides vt(4) consoles on all devices currently supported by
  syscons on sparc64.  The driver should also be easily adaptable to
  support newer Sun framebuffers such as the XVR-500 and higher.

  Many thanks to dumbbell@ (Jean-Sebastien Pedron) for testing this
  remotely during development.

r269783 (dumbbell):

  vt(4): Colors are indexed against a console palette, not a VGA palette

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@271112 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC PS3 vt(4) console support
emaste [Thu, 4 Sep 2014 18:15:36 +0000 (18:15 +0000)]
MFC PS3 vt(4) console support

r265871 (nwhitehorn):

  Move the PS3 framebuffer console to use vt instead of syscons and
  adjust GENERIC64 for PowerPC to use vt with it.

  Much to my chagrin, PS3 support seems to have bitrotted somewhat since
  the last time I tried it. ehci panics on attach and interrupt handling
  seems to be faulty. This should be fixed soon...

r269783 (dumbbell):

  Fix two files forgotten in r269783 (vt_generate_cons_palette)

r268895 (nwhitehorn):

  Enable X11 via xf86-video-scfb on the Playstation 3. This commit made
  from an xterm running for the first time on said Playstation.

Approved by: nwhitehorn
Relnotes: yes

git-svn-id: svn://svn.freebsd.org/base/stable/10@271111 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoFix debug output that has erroneously been committed with the last update.
se [Thu, 4 Sep 2014 17:21:54 +0000 (17:21 +0000)]
Fix debug output that has erroneously been committed with the last update.

Obtained from: Jan Beich

git-svn-id: svn://svn.freebsd.org/base/stable/10@271109 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r270512 r270513 r270754
rodrigc [Thu, 4 Sep 2014 16:55:01 +0000 (16:55 +0000)]
MFC r270512 r270513 r270754
   - add comments which describe exit status codes of /usr/sbin/bhyve
   - move bhyvectl --destroy outside of the while loop
   - Use "file -s" so that we can run vmrun.sh against special devces such as
     /dev/md memory files systems or zvols

git-svn-id: svn://svn.freebsd.org/base/stable/10@271106 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r260047: Clean up license text
emaste [Thu, 4 Sep 2014 16:51:45 +0000 (16:51 +0000)]
MFC r260047: Clean up license text

  - Renumber Regents clauses
  - Remove clause 3 and 4 from TNF license, following upstream change

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@271105 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r270757:
tijl [Thu, 4 Sep 2014 16:05:12 +0000 (16:05 +0000)]
MFC r270757:

In r253839 the default behaviour of ld(1) was changed such that all
libraries that need to be linked into an executable or library have to be
listed on the command line explicitly.  This commit fixes a bug in ld(1)
where it would scan dependencies of the libraries on the command line and
link them if needed if they were also found in ld.so.cache.

The important bit of the patch is the initialisation of needed.by such that
libraries found by scanning dependencies are marked as such and not used in
the link.

The patch is a backport of binutils git commit
d5c8b1f8561426b41aa5330ed60f578178fe6be2

The author gave permission to use it under GPLv2 terms.

PR: 192062

git-svn-id: svn://svn.freebsd.org/base/stable/10@271103 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r270931: Fix typo ("by" -> "be").
se [Thu, 4 Sep 2014 13:47:55 +0000 (13:47 +0000)]
MFC r270931: Fix typo ("by" -> "be").

git-svn-id: svn://svn.freebsd.org/base/stable/10@271096 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r270647: Add references to vt(4) and the configuration files in /usr/sha
se [Thu, 4 Sep 2014 13:45:16 +0000 (13:45 +0000)]
MFC r270647: Add references to vt(4) and the configuration files in /usr/sha
MFC r270653: Update man-pages to correctly refer to changed pathes and namin
MFC r270657: More man pages that need to know about vt in addition to syscon
MFC r270659: (by pluknet@) Missed comma.
MFC r270660: Back-out the references to vt(4) from this man-page. It appears
MFC r270933: Add references to vt(4) to further man-pages.
MFC r270934: Final patches to the tools used to convert syscons keymaps for
MFC r270935: Add vt(4) support to the console initialisation script, specifi

Second batch of MFCs to add support for Unicode keymaps for use with vt(4).

It contains the following changes:

- Add references to vt(4) to relevant man-pages.
- Update comment in defaults/rc.conf to mention vt
- Update rc.d/syscons to warn about syscons keymaps used under vt.
  An attempt is made to identify the vt keymap to load instead.
- Minor changes to the conversion tool based on mail comments on keymaps.

Relnotes: yes

git-svn-id: svn://svn.freebsd.org/base/stable/10@271095 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoDocument r271069, Mac Mini 3,1 support added to asmc(4).
gjb [Thu, 4 Sep 2014 11:15:38 +0000 (11:15 +0000)]
Document r271069, Mac Mini 3,1 support added to asmc(4).

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@271092 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agodrm/radeon: Fix a memory leak when radeonkms is unloaded
dumbbell [Thu, 4 Sep 2014 09:42:36 +0000 (09:42 +0000)]
drm/radeon: Fix a memory leak when radeonkms is unloaded

This an MFC of r270750.

git-svn-id: svn://svn.freebsd.org/base/stable/10@271090 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoDocument r262566, sshd(8) startup script creates ed25519 keys
gjb [Thu, 4 Sep 2014 02:14:57 +0000 (02:14 +0000)]
Document r262566, sshd(8) startup script creates ed25519 keys
if ENOENT on startup.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@271081 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoDocument r264438, mdconfig(8) rc.conf(5) listing is no longer
gjb [Thu, 4 Sep 2014 02:14:55 +0000 (02:14 +0000)]
Document r264438, mdconfig(8) rc.conf(5) listing is no longer
required to be sequential.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@271080 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoDocument r259141, jail(8) ipv6 allocation startup bug.
gjb [Thu, 4 Sep 2014 02:14:53 +0000 (02:14 +0000)]
Document r259141, jail(8) ipv6 allocation startup bug.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@271079 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r270289:
neel [Thu, 4 Sep 2014 01:38:31 +0000 (01:38 +0000)]
MFC r270289:
Change file permissions for some setuid executables so they are "o+r".
The executable itself doesn't contain any privileged information.

An example of where this is useful is when makefs(8) is creating an image
that includes /sbin/shutdown. This can now be done without root privileges.

git-svn-id: svn://svn.freebsd.org/base/stable/10@271075 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r270844:
pfg [Thu, 4 Sep 2014 00:40:41 +0000 (00:40 +0000)]
MFC r270844:
Minor space/tab cleanups.

Most of them were ripped from the GSoC 2104
SMAP + kpatch project (but unrelated).
Only cosmetic changes.

Taken from: Oliver Pinter (op@)

git-svn-id: svn://svn.freebsd.org/base/stable/10@271071 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMerge r268303 from head:
gavin [Wed, 3 Sep 2014 23:29:06 +0000 (23:29 +0000)]
Merge r268303 from head:

  Add support to asmc(4) for Macmini 3,1.

PR: 190195
Submitted by: fbsdbugs2 sentry.org
Relnotes: yes

git-svn-id: svn://svn.freebsd.org/base/stable/10@271069 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMerge r270677 from head:
gavin [Wed, 3 Sep 2014 23:18:13 +0000 (23:18 +0000)]
Merge r270677 from head:

  Fix xref, pam(8) -> pam(3)

PR: 193045
Submitted by: rsimmons0 gmail com

git-svn-id: svn://svn.freebsd.org/base/stable/10@271067 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f