197172 Commits

Author SHA1 Message Date
rodrigc
b9241c62af Merge: r272769
Import byacc 20141006

PR: 193499
2014-10-11 19:38:29 +00:00
rodrigc
a4222aadd6 Merge: 272655
Import byacc 20141005 from vendor
2014-10-11 19:34:41 +00:00
rodrigc
e054537bc7 Merge: r272649
use calloc in get_line() when allocating line to ensure it is fully initialized,
 fixes a later uninitialized value in copy_param() (FreeBSD #193499).

PR: 193499
Submitted by: Thomas E. Dickey  <tom@invisible-island.net>
2014-10-11 19:28:22 +00:00
rodrigc
6fdcea3e5e Merge: r268811
Update to byacc 20140715

PR:             191020
Submitted by:   gcooper (yaneurabeya@gmail.com)
2014-10-11 19:18:00 +00:00
kib
82d8b580fd MFC r272538:
Slightly reword comment.  Move code, which is described by the
comment, after it.
2014-10-11 18:01:09 +00:00
kib
149982a012 MFC r272536:
Add kernel option KSTACK_USAGE_PROF.
2014-10-11 17:49:51 +00:00
gjb
d9503cbf77 Switch stable/10 back to -PRERELEASE now that releng/10.1 is
branched.

Sponsored by:	The FreeBSD Foundation
2014-10-11 16:16:05 +00:00
ae
cd29b4a4d0 MFC r272487:
Add UUID of FreeBSD slice to GPT scheme.
2014-10-11 06:04:44 +00:00
emaste
31f18a365b MFC r272762: Correct scale factor for T terabyte suffix
PR:		194250
2014-10-11 00:30:57 +00:00
pfg
e384592b57 MFC r271879:
awk: Use random(3) instead of rand(3)

While none of them is considered even near to cryptographic
level, random(3) is a better random generator than rand(3).

Use random(3) for awk as is done in other systems.

PR:		193147
2014-10-10 23:18:44 +00:00
jhb
5595ee4003 MFC 270828,271487,271495:
Add sysctls to export the BIOS SMAP and EFI memory maps along with
handlers in the sysctl(8) binary to format them.
2014-10-10 20:47:23 +00:00
bz
42c3399b29 MFC r272713:
Since introducing the extra mapping in r250103 (head) for architectural performance
 events we have actually counted 'Branch Instruction Retired' when people
 asked for 'Unhalted core cycles' using the 'unhalted-core-cycles' event mask
 mnemonic.

 Reviewed by:		jimharris
 Discussed with:	gnn, rwatson
Sponsored by:		DARPA/AFRL
2014-10-10 12:02:34 +00:00
smh
4347b3c38b MFC r272474:
Fix various issues with zvols

Sponsored by:	Multiplay
2014-10-10 01:01:04 +00:00
smh
303356caa9 MFC r271589:
Added missing ZFS sysctls

This also includes small additional direct changes as it still uses the old
way of handling tunables.

Sponsored by:	Multiplay
2014-10-10 00:51:23 +00:00
smh
b231fd93a0 MFC r271754:
Remove unused ZFS ARC functions

Sponsored by:	Multiplay
2014-10-10 00:28:19 +00:00
smh
7e6d3acc4d MFC r271802:
Add dtrace probe support for zfs SET_ERROR(..)

MFC r271873:
Fix static kernel build with options ZFS

MFC r271819:
Remove sys/types.h include as per style (9)

Sponsored by:	Multiplay
2014-10-10 00:26:00 +00:00
smh
227e064147 MFC r270759:
Refactor ZFS ARC reclaim logic to be more VM cooperative

MFC r270861:
Ensure that ZFS ARC free memory checks include cached pages

MFC r272483:
Refactor ZFS ARC reclaim checks and limits

Sponsored by:	Multiplay
2014-10-10 00:12:16 +00:00
hrs
e926a5c769 MFC r272393:
Resurrect set_rcvar() as a function to define a rc.conf variable.
  It defines a variable and its default value in load_rc_config() just after
  rc.conf is loaded.  "rcvar" command shows the current and the default values.
2014-10-09 23:52:33 +00:00
hrs
295bc031b8 MFC r271921:
Fix a typo.
2014-10-09 23:50:31 +00:00
hrs
33c910e72d MFC r271919:
Fix a bug which could make routed(8) daemon exit by sending a special RIP
  query from a remote machine, and disable accepting it by default.  This
  requests a routed(8) daemon to dump routing information base for debugging
  purpose.  An -i flag to enable it has been added.
2014-10-09 23:49:36 +00:00
hrs
c1d2c479c7 MFC r271909:
Revert changes in r269180.  It could cause -c N option to enter an
  infinite loop if no reply packet is received.
2014-10-09 23:48:20 +00:00
hrs
159d6219db MFC r271663:
Fix a typo; master server for iprop service should be singular.
2014-10-09 23:47:07 +00:00
hrs
fcd622891b MFC r271628:
Use generic SYSCTL_* macro instead of deprecated SYSCTL_VNET_*.
2014-10-09 23:46:17 +00:00
hrs
39888f6b56 MFC r271545, 271610:
Make net.inet.ip.sourceroute, net.inet.ip.accept_sourceroute, and
  net.inet.ip.process_options vnet-aware.
2014-10-09 23:45:26 +00:00
hrs
ff5a508f69 MFC r271411:
Fix a bug which could break extended attributes in a dump output.
  This occurred when a file was >892kB long and had a large data (>1kB)
  in the extended attributes.
2014-10-09 23:43:13 +00:00
hrs
a95d28f371 MFC r271410:
Fix header output when -P is specified and (ncpus - 1) != maxid.
2014-10-09 23:42:22 +00:00
hrs
b877e6c4f2 MFC r271145:
Fix a bug which prevented mount.fstab parameter from being converted
  when jail_JID_devfs_enable=NO.
2014-10-09 23:41:11 +00:00
hrs
639504a9ff MFC r270836:
Use ipv6_prefer when at least one ifconfig_IF_ipv6 is configured.
2014-10-09 23:40:08 +00:00
hrs
c277f8d098 MFC r270783:
Return false status only when adding a route is failed.  It could
  erroneously return false due to an afexists() check loop in routing_start().
2014-10-09 23:39:17 +00:00
hrs
b4afe774e4 MFC r270782:
Restructure rc.d scripts for kerberos5 daemons:

  - Rename $kerberos5_server_enable with $kdc_enable and rename
    rc.d/kerberos with rc.d/kdc.

  - Rename $kadmin5_server_enable with $kadmind_enable.

  - Rename ${kerberos5,kpasswdd}_server with ${kdc,kpasswdd}_program.

  - Fix rc.d/{kadmind,kerberos,kpasswdd,kfd} scripts not to change variables
    after load_rc_config().

  - Add rc.d/ipropd_master and rc.d/ipropd_slave scripts.  These are
    for iprop-master(8) and iprop-slave(8).  Keytab used for iprop service is
    defined in ipropd_{master,slave}_keytab (/etc/krb5.keytab by default).

  - Add dependency on rc.d/kdc to SERVERS.  rc.d/kdc must be invoked as early
    as possible before scripts divided by rc.d/SERVERS.

  Note that changes to rc.d/{kdc,kpasswdd,kadmind} are backward-compatible
  with the old configuration variables:
  ${kerberos5,kpasswdd,kadmin5}_server{,_enable,_flags}.
2014-10-09 23:35:23 +00:00
hrs
2197b3dd4a MFC r270780:
Fix rc.d/gssd script to define the default values in a standard way.

MFC r270781:
  - Add a warning message when an IPv6 address is specified with no prefixlen.
  - Use a parameter argument in jls(8) instead of doing grep.
2014-10-09 23:33:33 +00:00
hrs
d08a17cdad MFC r270234:
Recover sin6_scope_id of gateway addresses in riprecv() by using the if_index
  where a RIP packet was received.  This fixes a bug which prevented gateway
  addresses in fe80::/64 from being added.
2014-10-09 23:30:51 +00:00
hrs
fee8b9f992 MFC r269054:
Fix EtherIP.  TOS field must be initialized when the inner protocol is
  PF_LINK, and multicast/broadcast flag should always be dropped because
  the outer protocol uses unicast even when the inner address is not for
  unicast.  It had been broken since r236951 when gif_output() started to
  use IFQ_HANDOFF().
2014-10-09 23:29:44 +00:00
hrs
26a421d9ed MFC r266267, r267636:
Fix an issue in range specification handling when a "-foo" is specified in
  ifconfig_IF_aliasN.
2014-10-09 23:28:04 +00:00
hrs
ca07cfe57d MFC r266248:
Cancel DAD for an ifa when the ifp has ND6_IFF_IFDISABLED as early as
  possible and do not clear IN6_IFF_TENTATIVE.  If IFDISABLED was accidentally
  set after a DAD started, TENTATIVE could be cleared because no NA was
  received due to IFDISABLED, and as a result it could prevent DAD when
  manually clearing IFDISABLED after that.
2014-10-09 23:25:57 +00:00
hrs
90b42277dc MFC r265225:
Move configuration of IPv6 NDP flags to a point before handling ifconfig_IF.
  This fixes a race that a non-IPv4 interface can get an EUI64 LLA even if it
  has IFDISABLED nd6 flag at boot time.
2014-10-09 23:24:23 +00:00
hrs
afd3460b01 MFC r266177:
- Do not override sin6_scope_id in LLA when it is already set to non-zero.
    This fixes destination list in output of netstat -r.
  - Plug a memory leak.
  - Add RTM_VERSION check.
2014-10-09 23:23:12 +00:00
hrs
5500c83bb6 MFC r257036:
Return 0 if:

    1. "-u N" specified, no -f, and mdN found,
    2. no -u, "-f /pathname" specified, and mdN associated with /pathname found,
    3. "-u N" specified, "-f /pathname" specified, and both of them found,
    4. "-l" specified and no -f,
    5. "-l" specified, "-f /pathname" specified, and /pathname found.

  otherwise return -1.
2014-10-09 23:17:18 +00:00
hrs
0f665a39d5 MFC r256715:
Use long explicitly for the time difference.
2014-10-09 23:15:26 +00:00
hrs
d602c1189c MFC r256695:
- Add relative specification in expiration time.
  - Add proto3 option for RTF_PROTO3.
  - Use %lu for members of struct rt_metrics.
2014-10-09 23:14:02 +00:00
hrs
a86738247c MFC r258580:
Replace Sun RPC license in TI-RPC library with a 3-clause BSD license,
  with the explicit permission of Sun Microsystems in 2009.

MFC r258581, 258582:
  Replace Sun Industry Standards Source License for Sun RPC code with a
  3-clause BSD license as specified by Oracle America, Inc. in 2010.
  This license change was approved by Wim Coekaerts, Senior Vice
  President, Linux and Virtualization at Oracle Corporation.

MFC r259117, 259118:
  Replace Sun RPC license with a 3-clause BSD license.  This license change
  was approved in 2010 by Wim Coekaerts, Senior Vice President, Linux and
  Virtualization at Oracle Corporation.

MFC r259417:
  Replace Sun RPC license for TI-RPC library with a 3-clause BSD license,
  with the explicit permission of Sun Microsystems in 2009.
  The code in question in this file was copied from lib/libc/rpc/pmap_getport.c.
2014-10-09 23:05:32 +00:00
hrs
30afda21ea MFC r266857:
- Add rwlock to struct dadq.  A panic could occur when a large number of
    addresses performed DAD at the same time.
2014-10-09 22:56:38 +00:00
hrs
200a7a67a4 MFC r266494:
- Fix a bug which can make sysctl() fail when -F is specified.
  - Increase WID_IF_DEFAULT() from 6 to 8 (the default for AF_INET6) because
    we have interfaces with longer names than 6 chars like epairN{a,b}.
  - Style fixes.
2014-10-09 22:54:51 +00:00
mav
70056e5be9 MFC r272650: Set CAM_SIM_QUEUED flag before calling ctl_queue() to avoid race.
PR:		194128
Submitted by:	Scott M. Ferris <smferris@gmail.com>
Sponsored by:	EMC/Isilon Storage Division
2014-10-09 05:28:11 +00:00
ae
142c064467 MFC r271307:
Add the ability to set `prefer_source' flag to an IPv6 address.
  It affects the IPv6 source address selection algorithm (RFC 6724)
  and allows override the last rule ("longest matching prefix") for
  choosing among equivalent addresses. The address with `prefer_source'
  will be preferred source address.
2014-10-09 02:49:33 +00:00
marcel
4742b8fd12 MFC r272485: Fill cyclinder, head and sector fields for the EBR,
MBR and PC98 schemes.

Requested by: gjb
2014-10-08 22:13:18 +00:00
marcel
f816038a40 MFC 272384:
Improve performance of mking(1).

Requested by: gjb
2014-10-08 22:09:36 +00:00
marcel
27db89ec69 MFC 272198, 272217:
Add 3 long options (--version, --formats & --schemes) for getting
information about mkimg itself.

Requested by: gjb

Relnotes:	yes
2014-10-08 22:06:38 +00:00
marcel
951d95ff86 MFC 271965, 272072, 272086: Add QCOW v1 & v2 support
Requested by: gjb

Relnotes:	yes
2014-10-08 22:01:35 +00:00
pfg
db3266a5c5 MFC r272273, r272387, r272443, r272533 :
Add strptime(3) support for %U and %W

Add support for the missing POSIX-2001 %U and %W features: the
existing FreeBSD strptime code recognizes both directives and
validates that the week number lies in the permitted range,
but then simply discards the value.

Initial support for the feature was written by Paul Green.
David Carlier added the initial handling of tm_wday/tm_yday.
Major credit goes to Andrey Chernov for detecting much of the
brokenness and rewriting/cleaning most of the code, making it
much more robust.

Tested independently with the strptime test from the GNU C
library.

PR:		137307
Relnotes:	yes

MFC r272441 :

strptime: %s format fix.

Almost never needed in real life because %s is tends to be
only one format spec.
1) Return code of gmtime_r() is checked.
2) All flags are set.

Submitted by:	ache
2014-10-08 16:29:46 +00:00