]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
9 years agoRemove rednandt file.
Cy Schubert [Fri, 3 Apr 2015 10:17:36 +0000 (10:17 +0000)]
Remove rednandt file.

Submitted by: jkim

9 years agoAdd support for thread local storage on arm64 to the runtime linker. The
Andrew Turner [Fri, 3 Apr 2015 09:35:52 +0000 (09:35 +0000)]
Add support for thread local storage on arm64 to the runtime linker. The
ABI specifies that, for R_AARCH64_TLSDESC relocations, we use the symbol
value, addend, and object tls offset to calculate the offset from the tls
base. We then cache this value for future reference.

Differential Revision: https://reviews.freebsd.org/D2183
Reviewed by: kib
Sponsored by: The FreeBSD Foundation

9 years agoFix powerpc/ps3 build, too.
Jung-uk Kim [Fri, 3 Apr 2015 02:37:43 +0000 (02:37 +0000)]
Fix powerpc/ps3 build, too.

9 years agoFix mips build, really. :-(
Jung-uk Kim [Fri, 3 Apr 2015 02:31:59 +0000 (02:31 +0000)]
Fix mips build, really. :-(

9 years agoRevert .PATH changes to fix mips build.
Jung-uk Kim [Fri, 3 Apr 2015 02:27:40 +0000 (02:27 +0000)]
Revert .PATH changes to fix mips build.

Reported by: bz
Pointy hat to: jkim

9 years agoRemove redundant mtx_lock/unlock in ciss_name_device. This is a guaranteed
Peter Wemm [Thu, 2 Apr 2015 23:12:18 +0000 (23:12 +0000)]
Remove redundant mtx_lock/unlock in ciss_name_device. This is a guaranteed
insta-panic on device add/remove.  This is only called from the notify
thread which already holds the lock while calling this function.

9 years agofortune/tools/do_uniq.py
Eitan Adler [Thu, 2 Apr 2015 22:42:23 +0000 (22:42 +0000)]
fortune/tools/do_uniq.py

slight imporvements to do_uniq.py:
- use with open()
- don't depend on sys.argv directly
- fix style

9 years agoWhen an mbuf allocation fails in the receive path, the mbuf containing the received...
David C Somayajulu [Thu, 2 Apr 2015 21:55:03 +0000 (21:55 +0000)]
When an mbuf allocation fails in the receive path, the mbuf containing the received packet is not sent to the host net
work stack and is reused again on the receive ring.  Remaining received packets in the ring are not processed in that
invocation of bxe_rxeof() and defered to the task thread.

MFC after: 5 days

9 years agoMake die available as rtld_die for use by MD relocation code
Ed Maste [Thu, 2 Apr 2015 21:35:36 +0000 (21:35 +0000)]
Make die available as rtld_die for use by MD relocation code

Reviewed by: kib
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D2213

9 years agolibc: Eliminate duplicate copies of __vdso_gettc.c
Ed Maste [Thu, 2 Apr 2015 21:18:11 +0000 (21:18 +0000)]
libc: Eliminate duplicate copies of __vdso_gettc.c

Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D2152

9 years agoSpeed up symbol lookup for the amd64 kernel modules.
Konstantin Belousov [Thu, 2 Apr 2015 20:14:51 +0000 (20:14 +0000)]
Speed up symbol lookup for the amd64 kernel modules.

Amd64 uses relocatable object files as the modules format.  It is good
WRT not having unneeded overhead for PIC code, in particular, due to
absence of useless GOT and PLT.  But the cost is that the module
linking process cannot use hash to speed up the symbol lookup, and
that each reference to the symbol requiring a relocation, instead of
single-place relocation in GOT.

Cache the successfull symbol lookup results in the module symbol
table, using the newly allocated SHN_FBSD_CACHED value from
SHN_LOOS-HIOS range as an indicator.  The SHN_FBSD_CACHED together
with the non-existent definition of the found symbol are reverted
after successfull relocations, which is done under kld_sx lock, so it
should not be visible to other consumers of the symbol table.

Submitted by: Conrad Meyer
Differential Revision:  https://reviews.freebsd.org/D1718
MFC after: 3 weeks

9 years agoInstall newly added brand-*.4th and logo-*.4th files and reduce duplication.
Jung-uk Kim [Thu, 2 Apr 2015 20:07:05 +0000 (20:07 +0000)]
Install newly added brand-*.4th and logo-*.4th files and reduce duplication.

Reviewed by: dteske
Pointy hat to: dteske

9 years agoMove i386/efi files to new home in efi/loader/arch/i386
Ed Maste [Thu, 2 Apr 2015 18:57:35 +0000 (18:57 +0000)]
Move i386/efi files to new home in efi/loader/arch/i386

This was not (and still is not) connected to the build, but the EFI
loader is in the process of being built for other than amd64 so these
files ought to live in their eventual MD location.

9 years agoUse proper CHAN_TCP_PACKET_DEFAULT for agent forwarding when HPN disabled.
Bryan Drewery [Thu, 2 Apr 2015 18:43:25 +0000 (18:43 +0000)]
Use proper CHAN_TCP_PACKET_DEFAULT for agent forwarding when HPN disabled.

The use of CHAN_TCP_WINDOW_DEFAULT here was fixed in upstream OpenSSH
in CVS 1.4810, git 5baa170d771de9e95cf30b4c469ece684244cf3e:

  - dtucker@cvs.openbsd.org 2007/12/28 22:34:47
    [clientloop.c]
    Use the correct packet maximum sizes for remote port and agent forwarding.
    Prevents the server from killing the connection if too much data is queued
    and an excessively large packet gets sent.  bz #1360, ok djm@.

The change was lost due to the the way the original upstream HPN patch
modified this code. It was re-adding the original OpenSSH code and never
was properly fixed to use the new value.

MFC after: 2 weeks

9 years agoarp(8): add support for printing and deleting entries of type
Mark Johnston [Thu, 2 Apr 2015 18:18:40 +0000 (18:18 +0000)]
arp(8): add support for printing and deleting entries of type
IFT_INFINIBAND, used in IPoIB.

PR: 151594
Submitted by: Anthony Cornehl <accornehl@gmail.com>
Reviewed by: hselasky
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

9 years agoAdd stub functions to build libkvm. There will be added, but we need them
Andrew Turner [Thu, 2 Apr 2015 17:30:19 +0000 (17:30 +0000)]
Add stub functions to build libkvm. There will be added, but we need them
now get the toolchain target building.

Differential Revision: https://reviews.freebsd.org/D2185
Sponsored by: The FreeBSD Foundation

9 years agoExclude the floating-point functions from libgcc_s on arm64, they are
Andrew Turner [Thu, 2 Apr 2015 17:06:15 +0000 (17:06 +0000)]
Exclude the floating-point functions from libgcc_s on arm64, they are
unneeded and will be provided by compiler-rt.

Sponsored by: The FreeBSD Foundation

9 years agoOnly use the CROSS_BINUTILS_PREFIX tool if it exists.
Andrew Turner [Thu, 2 Apr 2015 17:03:02 +0000 (17:03 +0000)]
Only use the CROSS_BINUTILS_PREFIX tool if it exists.

Reviewed by: emaste
Sponsored by: The FreeBSD Foundation

9 years agoExtend fixes made in r278103 and r38754 by copying the complete packet
Hans Petter Selasky [Thu, 2 Apr 2015 15:47:37 +0000 (15:47 +0000)]
Extend fixes made in r278103 and r38754 by copying the complete packet
header and not only partial flags and fields. Firewalls can attach
classification tags to the outgoing mbufs which should be copied to
all the new fragments. Else only the first fragment will be let
through by the firewall. This can easily be tested by sending a large
ping packet through a firewall. It was also discovered that VLAN
related flags and fields should be copied for packets traversing
through VLANs. This is all handled by "m_dup_pkthdr()".

Regarding the MAC policy check in ip_fragment(), the tag provided by
the originating mbuf is copied instead of using the default one
provided by m_gethdr().

Tested by: Karim Fodil-Lemelin <fodillemlinkarim at gmail.com>
MFC after: 2 weeks
Sponsored by: Mellanox Technologies
PR: 7802

9 years agoProvide better debugging information in tcp_timer_activate() and
Julien Charbon [Thu, 2 Apr 2015 14:43:07 +0000 (14:43 +0000)]
Provide better debugging information in tcp_timer_activate() and
tcp_timer_active()

Differential Revision: https://reviews.freebsd.org/D2179
Suggested by: bz
Reviewed by: jhb
Approved by: jhb

9 years agoProvide a comment explaining issues with the counter(9) trick, so that
Gleb Smirnoff [Thu, 2 Apr 2015 14:22:59 +0000 (14:22 +0000)]
Provide a comment explaining issues with the counter(9) trick, so that
people won't copy and paste it blindly.

Prodded by: ian
Sponsored by: Nginx, Inc.

9 years agoAdd articles, avoid use of "you", simplify a few sentences.
Warren Block [Thu, 2 Apr 2015 13:51:06 +0000 (13:51 +0000)]
Add articles, avoid use of "you", simplify a few sentences.

MFC after: 1 week

9 years agoStop including machine/fdt.h, it's not needed.
Andrew Turner [Thu, 2 Apr 2015 13:02:25 +0000 (13:02 +0000)]
Stop including machine/fdt.h, it's not needed.

Sponsored by: The FreeBSD Foundation

9 years agoWe may not be using gcc to compile this.
Andrew Turner [Thu, 2 Apr 2015 12:58:04 +0000 (12:58 +0000)]
We may not be using gcc to compile this.

Sponsored by: The FreeBSD Foundation

9 years agoAdd the generic timer registers to sysreg.h and cpu-v6.h, and use the
Andrew Turner [Thu, 2 Apr 2015 12:56:06 +0000 (12:56 +0000)]
Add the generic timer registers to sysreg.h and cpu-v6.h, and use the
access functions in the generic timer driver.

Differential Revision: https://reviews.freebsd.org/D2198
Sponsored by: The FreeBSD Foundation

9 years agoAdd IPv6 example to iscsi.conf(5) and tweak ordering.
Edward Tomasz Napierala [Thu, 2 Apr 2015 11:52:34 +0000 (11:52 +0000)]
Add IPv6 example to iscsi.conf(5) and tweak ordering.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

9 years agoUpdate open(2) to make it more obvious that O_NOCTTY and O_TTY_INIT
Edward Tomasz Napierala [Thu, 2 Apr 2015 11:41:04 +0000 (11:41 +0000)]
Update open(2) to make it more obvious that O_NOCTTY and O_TTY_INIT
are ignored.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

9 years agoRewrite iscsi.conf(5) to better match iscsictl(8).
Edward Tomasz Napierala [Thu, 2 Apr 2015 11:18:43 +0000 (11:18 +0000)]
Rewrite iscsi.conf(5) to better match iscsictl(8).

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

9 years agoRemove unused code.
Edward Tomasz Napierala [Thu, 2 Apr 2015 10:19:24 +0000 (10:19 +0000)]
Remove unused code.

Differential Revision: https://reviews.freebsd.org/D2195
Reviewed by: kib@, imp@
MFC after: 1 month
Sponsored by: The FreeBSD Foundation

9 years agoEnsure the cross assembler, linker and objcopy are used for the build32
Dimitry Andric [Thu, 2 Apr 2015 06:58:17 +0000 (06:58 +0000)]
Ensure the cross assembler, linker and objcopy are used for the build32
stage, just like for the regular world stage.

Reviewed by: rodrigc, imp, bapt, emaste
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D2187

9 years ago- Make interrupt resource optional: some upstream FDT blobs (e.g. TI's) do
Oleksandr Tymoshenko [Thu, 2 Apr 2015 03:25:35 +0000 (03:25 +0000)]
- Make interrupt resource optional: some upstream FDT blobs (e.g. TI's) do
    not have interupt property in pl310 node. Interrupt is used only to
    detect cache activity when L2 cache is disabled, it's not vital for
    normal operations.
- Fix intrhook allocation/initialization

9 years agoHandle multiple "gpio-leds"-compatible nodes
Oleksandr Tymoshenko [Thu, 2 Apr 2015 02:43:48 +0000 (02:43 +0000)]
Handle multiple "gpio-leds"-compatible nodes

There are cases when gpioled nodes in DTS come from different sources
(e.g. standard Beaglebone Black LEDs in main DTS + shield LEDs in
overlay DTS) so instead of handling only first compatible node go
through all child nodes

9 years agoUse ^[[m mode-ending (as-in screen.4th `me') versus ^[[37m
Devin Teske [Thu, 2 Apr 2015 01:49:12 +0000 (01:49 +0000)]
Use ^[[m mode-ending (as-in screen.4th `me') versus ^[[37m

MFC after: 3 days
X-MFC-to: stable/10

9 years agoEliminate literal escape sequences from *.4th
Devin Teske [Thu, 2 Apr 2015 01:48:12 +0000 (01:48 +0000)]
Eliminate literal escape sequences from *.4th

Suggested by: alfred
MFC after: 3 days
X-MFC-to: stable/10

9 years agoUse fg/b/me from screen.4th instead of literals
Devin Teske [Thu, 2 Apr 2015 01:46:17 +0000 (01:46 +0000)]
Use fg/b/me from screen.4th instead of literals

MFC after: 3 days
X-MFC-to: stable/10

9 years agoTry to unbreak the build after r280971 by providing the missing
Bjoern A. Zeeb [Thu, 2 Apr 2015 00:30:53 +0000 (00:30 +0000)]
Try to unbreak the build after r280971 by providing the missing
#include header for SYSINIT.

9 years agoo Use new function ip_fillid() in all places throughout the kernel,
Gleb Smirnoff [Wed, 1 Apr 2015 22:26:39 +0000 (22:26 +0000)]
o Use new function ip_fillid() in all places throughout the kernel,
  where we want to create a new IP datagram.
o Add support for RFC6864, which allows to set IP ID for atomic IP
  datagrams to any value, to improve performance. The behaviour is
  controlled by net.inet.ip.rfc6864 sysctl knob, which is enabled by
  default.
o In case if we generate IP ID, use counter(9) to improve performance.
o Gather all code related to IP ID into ip_id.c.

Differential Revision: https://reviews.freebsd.org/D2177
Reviewed by: adrian, cy, rpaulo
Tested by: Emeric POUPON <emeric.poupon stormshield.eu>
Sponsored by: Netflix
Sponsored by: Nginx, Inc.
Relnotes: yes

9 years agoPrior to aborting due to an instruction emulation error, it is always
Tycho Nightingale [Wed, 1 Apr 2015 20:36:07 +0000 (20:36 +0000)]
Prior to aborting due to an instruction emulation error, it is always
interesting to see what the guest's %rip and instruction bytes are.

Reviewed by: grehan

9 years agoMake changes to busdma code in tx/rx path similar to the ones made in r257541.
Eric Joyner [Wed, 1 Apr 2015 17:19:55 +0000 (17:19 +0000)]
Make changes to busdma code in tx/rx path similar to the ones made in r257541.

- bus_dmamap_create() does not take the BUS_DMA_NOWAIT flag
- properly unload maps
- do not assign NULL to dma map pointers

Submitted by: Konstantin Belousov <kostikbel@gmail.com>
Approved by: jfv (mentor)
MFC after: 1 week

9 years agoCorrectly handle __fcntl_compat symbol for the !SYSCALL_COMPAT case.
Konstantin Belousov [Wed, 1 Apr 2015 16:55:30 +0000 (16:55 +0000)]
Correctly handle __fcntl_compat symbol for the !SYSCALL_COMPAT case.
Both .weak and .alias assembler directives only work when assembling
the file which defines the symbol.

Reported and tested by: andrew
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

9 years agoFix integer truncation bug in malloc(9)
Ryan Stone [Wed, 1 Apr 2015 12:42:26 +0000 (12:42 +0000)]
Fix integer truncation bug in malloc(9)

A couple of internal functions used by malloc(9) and uma truncated
a size_t down to an int.  This could cause any number of issues
(e.g. indefinite sleeps, memory corruption) if any kernel
subsystem tried to allocate 2GB or more through malloc.  zfs would
attempt such an allocation when run on a system with 2TB or more
of RAM.

Note to self: When this is MFCed, sparc64 needs the same fix.

Differential revision: https://reviews.freebsd.org/D2106
Reviewed by: kib
Reported by: Michael Fuckner <michael@fuckner.net>
Tested by: Michael Fuckner <michael@fuckner.net>
MFC after: 2 weeks

9 years agopf: Deal with runt packets
Kristof Provost [Wed, 1 Apr 2015 12:16:56 +0000 (12:16 +0000)]
pf: Deal with runt packets

On Ethernet packets have a minimal length, so very short packets get padding
appended to them. This padding is not stripped off in ip6_input() (due to
support for IPv6 Jumbograms, RFC2675).
That means PF needs to be careful when reassembling fragmented packets to not
include the padding in the reassembled packet.

While here also remove the 'Magic from ip_input.' bits. Splitting up and
re-joining an mbuf chain here doesn't make any sense.

Differential Revision: https://reviews.freebsd.org/D2189
Approved by: gnn (mentor)

9 years agoPreserve IPv6 fragment IDs accross reassembly and refragmentation
Kristof Provost [Wed, 1 Apr 2015 12:15:01 +0000 (12:15 +0000)]
Preserve IPv6 fragment IDs accross reassembly and refragmentation

When forwarding fragmented IPv6 packets and filtering with PF we
reassemble and refragment. That means we generate new fragment headers
and a new fragment ID.

We already save the fragment IDs so we can do the reassembly so it's
straightforward to apply the incoming fragment ID on the refragmented
packets.

Differential Revision: https://reviews.freebsd.org/D2188
Approved by: gnn (mentor)

9 years agomultiboot: fix error codes
Roger Pau Monné [Wed, 1 Apr 2015 10:10:20 +0000 (10:10 +0000)]
multiboot: fix error codes

Return EINVAL instead of EFTYPE if we have a multiboot kernel loaded but
failed to load the modules. This makes it clear that the kernel/module
should be handled by the multiboot handler but something went wrong.

Sponsored by: Citrix Systems R&D

9 years agomultiboot: zero mod list array
Roger Pau Monné [Wed, 1 Apr 2015 10:02:28 +0000 (10:02 +0000)]
multiboot: zero mod list array

Zero the list of modules array before using it, or else we might pass
uninitialized data in unused fields of the struct that will make Xen choke.
Also add a check to make sure malloc succeeds.

Sponsored by: Citrix Systems R&D

9 years agoAdd the arm64 parts of libthread_db.
Andrew Turner [Wed, 1 Apr 2015 08:37:50 +0000 (08:37 +0000)]
Add the arm64 parts of libthread_db.

Differential Revision: https://reviews.freebsd.org/D2184
Reviewed by: imp
Sponsored by: The FreeBSD Foundation

9 years agoAdd the arm64 defines for cddl code.
Andrew Turner [Wed, 1 Apr 2015 08:31:56 +0000 (08:31 +0000)]
Add the arm64 defines for cddl code.

Differential Revision: https://reviews.freebsd.org/D2186
Reviewed by: emaste
Sponsored by: The FreeBSD Foundation

9 years agoMove the efi loaders to be under sys/boot/efi. This will help us add
Andrew Turner [Wed, 1 Apr 2015 08:30:40 +0000 (08:30 +0000)]
Move the efi loaders to be under sys/boot/efi. This will help us add
support for booting arm and arm64 from UEFI.

Differential Revision: https://reviews.freebsd.org/D2164
Reviewed by: emaste, imp (previous version)
Sponsored by: The FreeBSD Foundation

9 years agoRefine r280308. Do not completely disable timestamping of devfs nodes
Konstantin Belousov [Wed, 1 Apr 2015 08:25:40 +0000 (08:25 +0000)]
Refine r280308.  Do not completely disable timestamping of devfs nodes
on reads or writes, the time marks are used to display idle time by
w(1) [1].  Instead, use vfs.devfs.dotimes as the selector of default
precision vs. using time_second.  The later gives seconds precision,
which is good enough for the purpose.

Note that timestamp updates are unlocked and the updates itself, as
well as the check in devfs_timestamp, are non-atomic.

Noted by: truckman [1]
Reviewed by: bde
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

9 years agoMigrate the TL-WR1043nd v2 to use the new map based MAC hints mechanism.
Adrian Chadd [Wed, 1 Apr 2015 06:44:39 +0000 (06:44 +0000)]
Migrate the TL-WR1043nd v2 to use the new map based MAC hints mechanism.

This programs separate, correct mac addresses for the ethernet and
wlan interfaces.

9 years agoDon't use a private copy of the ANI definitions - use the HAL definitions.
Adrian Chadd [Wed, 1 Apr 2015 04:57:27 +0000 (04:57 +0000)]
Don't use a private copy of the ANI definitions - use the HAL definitions.

Whilst I'm at it:

* fix the NI+ to be correct, rather than NI-;
* use the diag api codes, now that the HAL is public.

Tested:

* AR9380, STA mode

9 years agoUse the HAL API for returning ar5212AniState, rather than just dumping
Adrian Chadd [Wed, 1 Apr 2015 04:56:22 +0000 (04:56 +0000)]
Use the HAL API for returning ar5212AniState, rather than just dumping
AniState itself.

9 years agoExpose the ANI state / statistics using the public ANI function, rather than
Adrian Chadd [Wed, 1 Apr 2015 04:56:10 +0000 (04:56 +0000)]
Expose the ANI state / statistics using the public ANI function, rather than
the ar9300_* definitions.

.. which of course don't match, and athstats was reading garbage ANI
data.

9 years agoStart the process of migrating the ANI statistics out of the HALs and into
Adrian Chadd [Wed, 1 Apr 2015 03:42:46 +0000 (03:42 +0000)]
Start the process of migrating the ANI statistics out of the HALs and into
the top-level HAL.

The athstats program is blindly using a copy of the ar5212 ANI stats structure
to pull out ANI statistics/state and this is problematic for the AR9300
HAL.

So:

* Define HAL_ANI_STATS and HAL_ANI_STATE
* Use HAL_ANI_STATS inside the AR5212 HAL

This commit doesn't (yet) convert the ar5212AniState -> HAL_ANI_STATE when
exporting it to userland; that'll come in the next commit.

9 years agoWhoops! "arc commit --revision" != "arc diff --update"
Devin Teske [Wed, 1 Apr 2015 02:05:26 +0000 (02:05 +0000)]
Whoops! "arc commit --revision" != "arc diff --update"

9 years agoAdd "GELI Passphrase:" prompt to boot loader.
Devin Teske [Wed, 1 Apr 2015 02:01:34 +0000 (02:01 +0000)]
Add "GELI Passphrase:" prompt to boot loader.

Summary:
Add "GELI Passphrase:" prompt to boot loader.

A new loader.conf(5) option of geom_eli_passphrase_prompt="YES" will now
allow you to enter your geli(8) root-mount credentials prior to invoking
the kernel.

See check-password.4th(8) for details.

Differential Revision: https://reviews.freebsd.org/D2105
Reviewed by: (your name[s] here)
MFC after: 3 days
X-MFC-to: stable/10
Relnotes: yes

Test Plan:
Drop a head copy of check-password.4th into /boot and then apply the patch
(only the patch to /boot/check-password.4th is required; no other changes are
required but you do have to have a HEAD copy of check-password.4th to
apply the patch).

NB: The rest of your /boot files can be up to 2 years old but no older.
NB: The test won't work unless your kernel has the following change

https://svnweb.freebsd.org/base?view=revision&revision=273489

Now, put into /boot/loader.conf:

geom_eli_passphrase_prompt="YES"

and reboot.

You should be prompted for a GELI passphrase before the menu (if enabled),
just after loading loader.conf(5).

NB: It doesn't matter if you're using GELI or not. However if you are using
GELI and a sufficiently new enough release (has SVN r273489) and you entered
the proper passphrase to mount your GELI encrypted root device(s), you should
notice that the boot process did not stop (you went from loader all the way to login).

Reviewers: cperciva, allanjude, scottl, kmoore

Subscribers: jkh, imp

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

9 years agoSolve dreaded "dictionary full" issue by segregating words into new
Devin Teske [Wed, 1 Apr 2015 01:54:28 +0000 (01:54 +0000)]
Solve dreaded "dictionary full" issue by segregating words into new
vocabularies delay-processing, password-processing, version-processing,
frame-drawing, menu-infrastructure, menu-namespace, menu-command-helpers,
and menusets-infrastructure. The net effect is to remove almost 200
definitions from the main forth vocabulary reducing the dictionary size
by over 50%. The chances of hitting "dictionary full" should be greatly
reduced by this patch.

MFC after: 3 days
X-MFC-to: stable/10

9 years agoWhen forced to draw ASCII lines/boxen, use `=' for the horizontal line
Devin Teske [Wed, 1 Apr 2015 01:25:58 +0000 (01:25 +0000)]
When forced to draw ASCII lines/boxen, use `=' for the horizontal line
when double frames are requested versus single.

MFC after: 3 days
X-MFC-to: stable/10

9 years agoSecurely overwrite (zero) user input when we finish password checks.
Devin Teske [Wed, 1 Apr 2015 01:22:30 +0000 (01:22 +0000)]
Securely overwrite (zero) user input when we finish password checks.

MFC after: 3 days
X-MFC-to: stable/10

9 years agoAdd remainder of supported ANSI escape sequences.
Devin Teske [Wed, 1 Apr 2015 01:17:36 +0000 (01:17 +0000)]
Add remainder of supported ANSI escape sequences.

MFC after: 3 days
X-MFC-to: stable/10

9 years agoMove beastie to logo-*.4th; brands to brand-*.4th
Devin Teske [Wed, 1 Apr 2015 01:14:19 +0000 (01:14 +0000)]
Move beastie to logo-*.4th; brands to brand-*.4th

Suggested by: jkh, alfred
MFC after: 3 days
X-MFC-to: stable/10

9 years agoUpdate elftoolchain to upstream revision 3179
Ed Maste [Wed, 1 Apr 2015 01:08:01 +0000 (01:08 +0000)]
Update elftoolchain to upstream revision 3179

Some notable changes:
- libdwarf: Fixed DWARF4 line section
- elfcopy: Implement --localize-hidden
- nm: handle object name referenced by DW_AT_specification
- elfcopy: Add --strip-dwo and --extract-dwo options for split DWARF
- readelf: add remaining arm64 dynamic relocation names
- nm: Avoid integer overflow in value comparison

Relnotes: Yes
Sponsored by: The FreeBSD Foundation

9 years agoComments. No functional change.
Devin Teske [Wed, 1 Apr 2015 00:49:34 +0000 (00:49 +0000)]
Comments. No functional change.

MFC after: 3 days
X-MFC-to: stable/10

9 years agoFix overflow bugs in and remove obsolete limit from kernel RPC
Garrett Wollman [Wed, 1 Apr 2015 00:45:47 +0000 (00:45 +0000)]
Fix overflow bugs in and remove obsolete limit from kernel RPC
implementation.

The kernel RPC code, which is responsible for the low-level scheduling
of incoming NFS requests, contains a throttling mechanism that
prevents too much kernel memory from being tied up by NFS requests
that are being serviced.  When the throttle is engaged, the RPC layer
stops servicing incoming NFS sockets, resulting ultimately in
backpressure on the clients (if they're using TCP).  However, this is
a very heavy-handed mechanism as it prevents all clients from making
any requests, regardless of how heavy or light they are.  (Thus, when
engaged, the throttle often prevents clients from even mounting the
filesystem.)  The throttle mechanism applies specifically to requests
that have been received by the RPC layer (from a TCP or UDP socket)
and are queued waiting to be serviced by one of the nfsd threads; it
does not limit the amount of backlog in the socket buffers.

The original implementation limited the total bytes of queued requests
to the minimum of a quarter of (nmbclusters * MCLBYTES) and 45 MiB.
The former limit seems reasonable, since requests queued in the socket
buffers and replies being constructed to the requests in progress will
all require some amount of network memory, but the 45 MiB limit is
plainly ridiculous for modern memory sizes: when running 256 service
threads on a busy server, 45 MiB would result in just a single
maximum-sized NFS3PROC_WRITE queued per thread before throttling.

Removing this limit exposed integer-overflow bugs in the original
computation, and related bugs in the routines that actually account
for the amount of traffic enqueued for service threads.  The old
implementation also attempted to reduce accounting overhead by
batching updates until each queue is fully drained, but this is prone
to livelock, resulting in repeated accumulate-throttle-drain cycles on
a busy server.  Various data types are changed to long or unsigned
long; explicit 64-bit types are not used due to the unavailability of
64-bit atomics on many 32-bit platforms, but those platforms also
cannot support nmbclusters large enough to cause overflow.

This code (in a 10.1 kernel) is presently running on production NFS
servers at CSAIL.

Summary of this revision:
* Removes 45 MiB limit on requests queued for nfsd service threads
* Fixes integer-overflow and signedness bugs
* Avoids unnecessary throttling by not deferring accounting for
  completed requests

Differential Revision: https://reviews.freebsd.org/D2165
Reviewed by: rmacklem, mav
MFC after: 30 days
Relnotes: yes
Sponsored by: MIT Computer Science & Artificial Intelligence Laboratory

9 years agoFix "MOVS" instruction memory to MMIO emulation. Currently updates to
Tycho Nightingale [Wed, 1 Apr 2015 00:15:31 +0000 (00:15 +0000)]
Fix "MOVS" instruction memory to MMIO emulation.  Currently updates to
%rdi, %rsi, etc are inadvertently bypassed along with the check to
see if the instruction needs to be repeated per the 'rep' prefix.

Add "MOVS" instruction support for the 'MMIO to MMIO' case.

Reviewed by: neel

9 years agoAdd code for creating an EC2 AMI.
Colin Percival [Wed, 1 Apr 2015 00:00:17 +0000 (00:00 +0000)]
Add code for creating an EC2 AMI.

9 years agoWhitespace and cleanup. No functional change(s).
Devin Teske [Tue, 31 Mar 2015 23:09:54 +0000 (23:09 +0000)]
Whitespace and cleanup. No functional change(s).

MFC after: 3 days
X-MFC-to: stable/10

9 years agoOptimize bootmsg to use fg/bg/me from screen.4th
Devin Teske [Tue, 31 Mar 2015 23:00:48 +0000 (23:00 +0000)]
Optimize bootmsg to use fg/bg/me from screen.4th
NB: screen.4th is included by way of check-password.4th

MFC after: 3 days
X-MFC-to: stable/10

9 years agoComments. No functional change(s).
Devin Teske [Tue, 31 Mar 2015 22:32:35 +0000 (22:32 +0000)]
Comments. No functional change(s).

MFC after: 3 days
X-MFC-to: stable/10

9 years agoWhitespace. No functional change(s).
Devin Teske [Tue, 31 Mar 2015 22:10:40 +0000 (22:10 +0000)]
Whitespace. No functional change(s).

MFC after: 3 days
MFH: stable/10

9 years agoChange contents of the exec variable in loader.conf to be friendly to both
Devin Teske [Tue, 31 Mar 2015 21:46:44 +0000 (21:46 +0000)]
Change contents of the exec variable in loader.conf to be friendly to both
Ficl/Forth and Lua. No visible change for Forth while enabling Lua support.

Submitted by: rpaulo

9 years agoFix typo in a comment.
Devin Teske [Tue, 31 Mar 2015 21:34:42 +0000 (21:34 +0000)]
Fix typo in a comment.

MFC after: 3 days
X-MFC-to: stable/10 stable/9

9 years agosh: Add more tests for exotic IFS splitting.
Jilles Tjoelker [Tue, 31 Mar 2015 20:59:37 +0000 (20:59 +0000)]
sh: Add more tests for exotic IFS splitting.

9 years agowordexp: Explicitly pass along IFS.
Jilles Tjoelker [Tue, 31 Mar 2015 20:51:01 +0000 (20:51 +0000)]
wordexp: Explicitly pass along IFS.

Per Austin group issue #884, sh should not import IFS from the environment
but always set it to $' \t\n'. For wordexp(), however, it is documented and
useful for it to use IFS from the environment.

Since sh currently imports IFS from the environment, this change has no
functional effect.

MFC after: 1 week

9 years agoImport ELF toolchain rev 3179
Ed Maste [Tue, 31 Mar 2015 20:01:37 +0000 (20:01 +0000)]
Import ELF toolchain rev 3179

From http://svn.code.sf.net/p/elftoolchain/code

9 years agoAdd limited to the default restrictions.
Xin LI [Tue, 31 Mar 2015 19:56:46 +0000 (19:56 +0000)]
Add limited to the default restrictions.

X-MFC-with: r280849

9 years agoFix build.
Cy Schubert [Tue, 31 Mar 2015 19:35:32 +0000 (19:35 +0000)]
Fix build.

9 years agoConstify.
Xin LI [Tue, 31 Mar 2015 19:12:13 +0000 (19:12 +0000)]
Constify.

Suggested by: rdivacky
MFC after: 2 weeks

9 years agoAdd the fe* symbols to libm for arm64.
Andrew Turner [Tue, 31 Mar 2015 19:07:28 +0000 (19:07 +0000)]
Add the fe* symbols to libm for arm64.

Sponsored by: The FreeBSD Foundation

9 years agoRemove bogus cast.
Kevin Lo [Tue, 31 Mar 2015 15:03:58 +0000 (15:03 +0000)]
Remove bogus cast.

9 years agoThe offset variable has been cleared all bits except IP6F_OFF_MASK.
Andrey V. Elsukov [Tue, 31 Mar 2015 14:41:29 +0000 (14:41 +0000)]
The offset variable has been cleared all bits except IP6F_OFF_MASK.
Use ip6f_mf variable instead of checking its bits.

9 years agounwind-d2 build workaround for arm64
Ed Maste [Tue, 31 Mar 2015 13:37:32 +0000 (13:37 +0000)]
unwind-d2 build workaround for arm64

The __builtin_init_dwarf_reg_size_table function is unimplemented in
clang 3.6 for AArch64. Comment it out for now and replace it with
a message and abort.

Tracked in upstream LLVM PR 22997
https://llvm.org/bugs/show_bug.cgi?id=22997

Submitted by: andrew

9 years agoCorrect copyright typo
Ed Maste [Tue, 31 Mar 2015 12:53:07 +0000 (12:53 +0000)]
Correct copyright typo

9 years agoAdd kernel config files for Hardkernel Odroid-C1 and Visson ATV-102 devices.
Ganbold Tsagaankhuu [Tue, 31 Mar 2015 11:59:57 +0000 (11:59 +0000)]
Add kernel config files for Hardkernel Odroid-C1 and Visson ATV-102 devices.

Submitted by:   John Wehle
Approved by:   stas (mentor)

9 years agoAdd device tree files for Hardkernel Odroid-C1 and Visson ATV-102 devices.
Ganbold Tsagaankhuu [Tue, 31 Mar 2015 11:55:56 +0000 (11:55 +0000)]
Add device tree files for Hardkernel Odroid-C1 and Visson ATV-102 devices.

Submitted by: John Wehle
Approved by: stas (mentor)

9 years agoAdd necessary changes to support various Amlogic SoC devices
Ganbold Tsagaankhuu [Tue, 31 Mar 2015 11:50:46 +0000 (11:50 +0000)]
Add necessary changes to support various Amlogic SoC devices
specially aml8726-m6 and aml8726-m8b SoC based devices.
aml8726-m6 SoC exist in devices such as Visson ATV-102.
Hardkernel ODROID-C1 board has aml8726-m8b SoC.

The following support is included:
  Basic machdep code
  SMP
  Interrupt controller
  Clock control driver (aka gate)
  Pinctrl
  Timer
  Real time clock
  UART
  GPIO
  I2C
  SD controller
  SDXC controller
  USB
  Watchdog
  Random number generator
  PLL / Clock frequency measurement
  Frame buffer

Submitted by:   John Wehle
Approved by:    stas (mentor)

9 years agoUse appropriate timeout_t* instead of void* in tcp_timer_activate()
Julien Charbon [Tue, 31 Mar 2015 10:17:13 +0000 (10:17 +0000)]
Use appropriate timeout_t* instead of void* in tcp_timer_activate()

Suggested by: imp
Differential Revision: https://reviews.freebsd.org/D2154
Reviewed by: imp, jhb
Approved by: jhb

9 years agoAdd the arm64 code to the runtime linker. It's not able to be built as we
Andrew Turner [Tue, 31 Mar 2015 09:51:19 +0000 (09:51 +0000)]
Add the arm64 code to the runtime linker. It's not able to be built as we
still need libc_pic for a few things, but this is expected to be ready
soon.

Differential Revision: https://reviews.freebsd.org/D2136
Reviewed by: kib
Sponsored by: The FreeBSD Foundation

9 years ago- Fix -Wsign issue
Enji Cooper [Tue, 31 Mar 2015 06:51:13 +0000 (06:51 +0000)]
- Fix -Wsign issue
- Bump up to WARNS=6

9 years agoMinor cleanup before converting to ATF testcases
Enji Cooper [Tue, 31 Mar 2015 06:50:28 +0000 (06:50 +0000)]
Minor cleanup before converting to ATF testcases

- Remove blank (tab-only) lines.
- Fix -Wunused warnings.
- Bump up to WARNS= 6

9 years agoCleanup and do minor refactoring before converting testcases to ATF
Enji Cooper [Tue, 31 Mar 2015 06:43:55 +0000 (06:43 +0000)]
Cleanup and do minor refactoring before converting testcases to ATF

- Convert errx(-1, ..) to errx(1, ..)
- Move the aio(4) checks to a single function (aio_available); use modfind(2)
  instead of depending on SIGSYS (doesn't work when aio(4) support is missing,
  not documented in the aio syscall manpages).
- Use aio_available liberally in the testcase functions
- Use mkstemp(3) + unlink(2) instead of mktemp(3)
- Fix some -Wunused warnings
- Bump WARNS to 6

MFC after: 1 week
Submitted by: mjohnston [*]
Sponsored by: EMC / Isilon Storage Division

9 years agoCCSRBAR_VA is mpc85xx-specific, so add guards, and include the proper header
Justin Hibbits [Tue, 31 Mar 2015 05:29:44 +0000 (05:29 +0000)]
CCSRBAR_VA is mpc85xx-specific, so add guards, and include the proper header
file for it.

MFC after: 1 month

9 years agomachine/fdt.h no longer exists for powerpc.
Justin Hibbits [Tue, 31 Mar 2015 05:26:30 +0000 (05:26 +0000)]
machine/fdt.h no longer exists for powerpc.

MFC after: 1 month

9 years ago- Remove more files when MK_ZONEINFO == no
Dmitry Marakasov [Tue, 31 Mar 2015 04:44:46 +0000 (04:44 +0000)]
- Remove more files when MK_ZONEINFO == no

MFC after: 1 week
Reviewed by: ngie
Approved by: ngie
Differential Revision: D1600

9 years ago- Remove more files when MK_TESTS_SUPPORT == no
Dmitry Marakasov [Tue, 31 Mar 2015 04:43:25 +0000 (04:43 +0000)]
- Remove more files when MK_TESTS_SUPPORT == no

MFC after: 1 week
Reviewed by: ngie
Approved by: ngie
Differential Revision: D1600

9 years ago- Remove more files when MK_LEGACY_CONSOLE == no
Dmitry Marakasov [Tue, 31 Mar 2015 04:42:00 +0000 (04:42 +0000)]
- Remove more files when MK_LEGACY_CONSOLE == no

MFC after: 1 week
Reviewed by: ngie
Approved by: ngie
Differential Revision: D1600

9 years ago- Remove more files when MK_KERBEROS_SUPPORT == no
Dmitry Marakasov [Tue, 31 Mar 2015 04:39:59 +0000 (04:39 +0000)]
- Remove more files when MK_KERBEROS_SUPPORT == no

MFC after: 1 week
Reviewed by: ngie
Approved by: ngie
Differential Revision: D1600

9 years ago- Remove more files when MK_KDUMP == no
Dmitry Marakasov [Tue, 31 Mar 2015 04:37:57 +0000 (04:37 +0000)]
- Remove more files when MK_KDUMP == no

MFC after: 1 week
Reviewed by: ngie
Approved by: ngie
Differential Revision: D1600

9 years ago- Remove more files when MK_JAIL == no
Dmitry Marakasov [Tue, 31 Mar 2015 04:36:51 +0000 (04:36 +0000)]
- Remove more files when MK_JAIL == no

MFC after: 1 week
Reviewed by: ngie
Approved by: ngie
Differential Revision: D1600

9 years agoIt would help if I committed the right patch...
Colin Percival [Tue, 31 Mar 2015 04:35:35 +0000 (04:35 +0000)]
It would help if I committed the right patch...