Commit Graph

190002 Commits

Author SHA1 Message Date
Tijl Coosemans
43a252019d MFC r271651, r271719, r272138, r272457, r272845, r275476, r275518, r275614,
r275819, r276176, r278154, r278160, r278339, r279127, r279240, r279491,
    r279493, r279856, r283032, r284423, r284426, r284427, r284428

Merge changes to libm from the past 9 months.  This includes improvements
to the Bessel functions and adds the C99 function lgammal.
2015-06-25 13:01:10 +00:00
Andriy Gapon
6038ab7c5f MFC r284308: MFV r284042: 1778 Assertion failed: rn->rn_nozpool == B_FALSE 2015-06-25 08:11:39 +00:00
Alexander Motin
4075ce5637 MFC r284698: Dump additional config bytes for INIT_FIRMWARE_MULTI_ID. 2015-06-25 07:25:40 +00:00
Alexander Motin
cfbaee6078 MFC r284697: Add logging of executed mailbox command names.
Previously those commands were logged only as part of register dump,
that is not very readable.
2015-06-25 07:24:47 +00:00
Alexander Motin
5ef297ab73 MFC r284540:
In case of target mode disable at least ISP2532 return invalid zero
ct_rxid value on CTIO completion.  Try to workaround that using tag_id
from the CCB, pointed by still valid ct_syshandle.

I don't know whether this is valid fix or dirty hack, but considering that
alternative is indefinitely stuck command -- it worth trying.
2015-06-25 07:23:35 +00:00
Alexander Motin
b53e1bfe5b MFC r274675 (by jhb), r274708:
Convert the refire_notify_ack timer from timeout(9) to callout(9).
2015-06-25 07:22:37 +00:00
Alexander Motin
430a85578b MFC r284640: Bring per-port LUN enable/disable code up to date:
- remove last remnants of never implemented multiple targets support;
 - implement missing support for LUN mapping in this area.

Due to existing locking constraints LUN mapping code is practically
unlocked at this point.  Hopefully it is not racy enough to live until
somebody get idea how to call sleeping fronend methods under lock also
taken by the same frontend in non-sleepable context. :(
2015-06-25 07:11:48 +00:00
Alexander Motin
66374f6379 MFC r284627: Remove some dead and duplicate LUN enabling code. 2015-06-25 07:10:51 +00:00
Alexander Motin
1c2bf93c59 MFC r284639: Introduce separate lock for tokens to reduce ctl_lock scope. 2015-06-25 07:09:39 +00:00
Alexander Motin
8ee2b43a57 MFC r284641:
Fix REPORT LUNS command output for the case when same LUN mapped to same
port several times.  While it is unusual configuration, it is not illegal.
2015-06-25 07:08:46 +00:00
Alexander Motin
f152331ae7 MFC r284622: Remove device queue freeze handling and replace it with dummy.
At this point CTL has no known use case for device queue freezes.
Same time existing (considered to be broken) code was found to cause
modify-after-free issues.
2015-06-25 07:07:32 +00:00
Alexander Motin
04ae133b8f MFC r284541:
Change ATIO/INOT counting to prevent periph destruction while requests
are still running inside CTL.
2015-06-25 07:06:24 +00:00
Gregory Neil Shapiro
a7e77dfebf Add a note on the second sendmail fix for WeakDH interoperability. 2015-06-25 01:51:14 +00:00
Gregory Neil Shapiro
198a517774 MFC: An additional fix for the openssl Weak DH remediation:
The import of openssl to address the FreeBSD-SA-15:10.openssl security
     advisory includes a change which rejects handshakes with DH parameters
     below 768 bits.  sendmail releases prior to 8.15.2 (not yet released),
     defaulted to a 512 bit DH parameter setting for client connections.

     The first fix committed last week changed the default to 1024 bits.

     This commit fixes the case where the DHParameters option is set to a
     file which doesn't exist, which is the case on newer versions of
     FreeBSD which enable STARTTLS by default by auto-creating TLS
     certificates.
2015-06-25 01:49:44 +00:00
Xin LI
0c24b26c2b MFC r284237,284277:
file 5.23.

Relnotes:	yes
2015-06-24 19:58:14 +00:00
Ermal Luçi
b1411af83b MFC r284512: Properly handle locking on the ARP protocol request sending. 2015-06-24 19:06:54 +00:00
Glen Barber
a6f224f210 MFC r284683:
Enable ttyu1, ttyu2, ttyu3 for arm installations.

 This should make all consoles available, whether it
 is VGA, HDMI, serial, or JTAG, but more importantly
 enables all consoles when ttyu0 is not predictable.
 For example, the Pandaboard ES apparently has three
 consoles available, but the DB9/RS232 serial port is
 ttyu2, so not available by default after the system
 boots.

Sponsored by:	The FreeBSD Foundation
2015-06-24 18:58:42 +00:00
Glen Barber
02b1ae96c2 MFC r284660, r284676:
r284660:
  Remove the Azure-local vm_extra_create_disk(), since we no longer
  need qemu-img to convert the final VHD image to an Azure-compatible
  format.

  Although the waagent utility is installed from ports, create the
  symlink to /usr/sbin, pending investigation on where this is
  hard-coded, so it can be reported upstream.

 r284676:
  Append the hour and minute to the snapshot suffix for EC2
  AMIs and Azure VM images.  This is particularly helpful for
  testing to avoid name collisions, but also useful for cases
  where a necessary rebuild is done before the date changes.

Sponsored by:	The FreeBSD Foundation
2015-06-24 18:56:28 +00:00
Marcel Moolenaar
ca39686dce MFC r284269, r284270, r284655, r284656, r284658:
VHD fixes for Microsoft Azure:
1.  Round the image size to the VHD geometry and then round to a
    multiple of 1MB.
2.  Change the creator OS from "FBSD" to "Wi2k". It matters...
3.  Bump the VHD tool version and the mkimg version.

Approved by:	re (gjb)
2015-06-24 18:40:34 +00:00
Andriy Gapon
b380aaff0a MFC r284306: MFV r284036: 5961 Fix stack overflow in zfs_create_fs 2015-06-24 14:41:54 +00:00
Andriy Gapon
e96c544154 MFC r284303: MFV r283534: 5515 dataset user hold doesn't reject empty tags 2015-06-24 14:39:26 +00:00
Andriy Gapon
070e34fa4c MFC r284301: MFV r284040: check that datasets are snapshots 2015-06-24 14:37:55 +00:00
Andriy Gapon
f1305de75e MFC r284309: zfs clone should not mount the clone if canmount == noauto 2015-06-24 14:30:04 +00:00
Christian Brueffer
2de048bb17 MFH: r284250
Consistently use trailing whitespace in passphrase prompts.

PR:		193496
Submitted by:	Fabian Keil
2015-06-24 12:21:25 +00:00
Christian Brueffer
f90eb10d51 MFH: r284249
Correct Hawaii's admission day.

PR:		192651
2015-06-24 12:19:11 +00:00
Andrew Gallatin
155e188277 Fix r284612: As pointed out by jhb, in stable branches, if_baudrate
is 32b on 32b platforms.  So rather than a simple MFC of r284612,
we need to use if_initbaudrate() to properly express a 40Gb speed.

Spotted by: jhb
Sponsored by: Netflix
2015-06-23 22:31:04 +00:00
Konstantin Belousov
31d97bc93a Revert part of the r283303 (by jhb):
Revert MFC of r270223, which bumped MAXCPU on amd64 from 64 to 256.
The cpuset_getaffinity(2) and cpuset_setaffinity(2) check minimum set
size, which now fails for binaries compiled on 10.0 with MAXCPU == 64.

Submitted by:	jhb
PR:	  200802
2015-06-23 06:30:36 +00:00
Devin Teske
0f74f20e3d MFC r284609: Interim fix for "Login not found" error.
PR:		bin/196514
2015-06-23 04:17:12 +00:00
Devin Teske
a3bc3f6015 MFC r283863:
Fix a debug statement. Only the callback function (performing the
incrementing of dpv_overall_oread) knows what its purpose is (and
often times it was bytes, not lines).

MFC r283975 (araujo):
Clean up unused variable and silence clang warnings.
2015-06-23 04:03:54 +00:00
Devin Teske
9e68b3addb MFC r284672 (antoine):
Install version.4th.8 again
It was disconnected from installation in r281081, but was never removed
from the tree or added to ObsoleteFiles.inc
2015-06-23 03:56:05 +00:00
Andrew Gallatin
fcdc69f9b5 MFC r284612: Fix a typo
Sponsored by:	Netflix
2015-06-22 19:37:04 +00:00
Jung-uk Kim
dd8d0ebc21 MFC: r284578
Fix a typo.
2015-06-22 16:24:27 +00:00
Michael Tuexen
8b3b5b8415 When using KTRACE, set a variable to the appropriate value and don't
leave it initialized at NULL.
Since the affected functions where moved from sys/kern/uipc_syscalls.c
to sys/netinet/sctp_syscalls.c it was not possible to MFC r284613.
Therefore, this is a direct commit with the corresponding changes of r284613.

Reported by:	Coverity
CID:		1018058, 1018060
2015-06-22 06:06:38 +00:00
Michael Tuexen
33d4a735b3 MFC r284604:
Don't leak sockets.

Reported by:	Coverity
CID:		1306785
2015-06-22 05:36:08 +00:00
Michael Tuexen
bc27b3a149 MFC r284596:
When setting the primary address, return an error whenever it fails.
2015-06-22 05:34:13 +00:00
Michael Tuexen
686a78e395 MFC r284547:
Fix a bug reported by coverity. Since AF_UNIX sockets don't
have multiple addresses, the problem didn't show up during testing.

Reported by:	Coverity
CID:		1306787
2015-06-22 05:31:29 +00:00
Glen Barber
c52703953e MFC r284617:
Fix path to waagent.

Sponsored by:	The FreeBSD Foundation
2015-06-22 00:54:47 +00:00
Edward Tomasz Napierala
91ac2708ca MFC r283141:
Remove the warning about invalid PE checksum; apparently nothing
cares about those checksums anyway.

Sponsored by:	The FreeBSD Foundation
2015-06-21 07:00:54 +00:00
Edward Tomasz Napierala
685fd47a2b MFC r283285:
Advertise ctlstat(8) a little better.

Sponsored by:	The FreeBSD Foundation
2015-06-21 06:54:54 +00:00
Edward Tomasz Napierala
c66676c4b0 MFC r281929:
Fix growfs(8) build with debug enabled (make -DGFSDBG).

Sponsored by:	The FreeBSD Foundation
2015-06-21 06:49:44 +00:00
Edward Tomasz Napierala
8eb18e8074 MFC r282238:
Remove spurious period.

Sponsored by:	The FreeBSD Foundation
2015-06-21 06:44:32 +00:00
Edward Tomasz Napierala
33b46fb628 MFC r282236:
Make rctl(8) more user-friendly when RACCT/RCTL is disabled for some reason.

Sponsored by:	The FreeBSD Foundation
2015-06-21 06:40:43 +00:00
Edward Tomasz Napierala
56acfd8c9f MFC r282857:
Document RCTL events in devd.conf(5).

Sponsored by:	The FreeBSD Foundation
2015-06-21 06:36:54 +00:00
Edward Tomasz Napierala
65b53c583d MFC r282213:
Add kern.racct.enable tunable and RACCT_DISABLED config option.
The point of this is to be able to add RACCT (with RACCT_DISABLED)
to GENERIC, to avoid having to rebuild the kernel to use rctl(8).

MFC r282901:

Build GENERIC with RACCT/RCTL support by default.  Note that it still
needs to be enabled by adding "kern.racct.enable=1" to /boot/loader.conf.

Note those two are MFC-ed together, because the latter one changes the
name of RACCT_DISABLED option to RACCT_DEFAULT_TO_DISABLED.  Should have
committed the renaming separately...

Relnotes:	yes
Sponsored by:	The FreeBSD Foundation
2015-06-21 06:28:26 +00:00
Glen Barber
25a080cf58 MFC r284567:
Add Makefile.azure, used to upload VHD images to the
  Microsoft Azure environment, similar to the EC2 AMIs.

Sponsored by:	The FreeBSD Foundation
2015-06-21 04:39:34 +00:00
Mark Johnston
aa65477643 MFC r284127:
witness: don't warn about matrix inconsistencies without holding the mutex

Lock order checking is done without the witness mutex held, so multiple
threads that are racing to establish a new lock order may read matrix
entries that are in an inconsistent state. Don't print a warning in this
case, but instead just redo the check after taking the witness lock.
2015-06-21 00:36:02 +00:00
Rick Macklem
cc290d393b MFC: r284531
Document that a forced dismount of an NFSv3 mount when the
NLM (rpc.lockd) is running can crash the system.
Unfortunately this is not easy to fix, but I have left
PR#200585 open.
2015-06-20 23:15:57 +00:00
Edward Tomasz Napierala
07bb16e045 MFC r281820:
Add hint about "volmode=dev" to ctl.conf(5).

Sponsored by:	The FreeBSD Foundation
2015-06-20 15:55:53 +00:00
Dimitry Andric
bdf150f7b1 MFC r284346:
Fix the following clang 3.7.0 warnings in lib/libfetch/http.c:

    lib/libfetch/http.c:1628:26: error: address of array 'purl->user'
    will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion]
                                    aparams.user = purl->user ?
                                                   ~~~~~~^~~~ ~
    lib/libfetch/http.c:1630:30: error: address of array 'purl->pwd'
    will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion]
                                    aparams.password = purl->pwd?
                                                       ~~~~~~^~~~
    lib/libfetch/http.c:1657:25: error: address of array 'url->user'
    will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion]
                                    aparams.user = url->user ?
                                                   ~~~~~^~~~ ~
    lib/libfetch/http.c:1659:29: error: address of array 'url->pwd'
    will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion]
                                    aparams.password = url->pwd ?
                                                       ~~~~~^~~ ~
    lib/libfetch/http.c:1669:25: error: address of array 'url->user'
    will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion]
                                    aparams.user = url->user ?
                                                   ~~~~~^~~~ ~
    lib/libfetch/http.c:1671:29: error: address of array 'url->pwd'
    will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion]
                                    aparams.password = url->pwd ?
                                                       ~~~~~^~~ ~

Since url->user and url->pwd are arrays, they can never be NULL, so the
checks can be removed.

Reviewed by:	bapt
Differential Revision: https://reviews.freebsd.org/D2673
2015-06-20 13:30:09 +00:00
Dimitry Andric
5b44bc1fd9 MFC r284167:
Merge r283870 from amd64:

Remove unneeded NULL checks in trap_fatal().

Since td_name is an array member of struct thread, it can never be NULL,
so the check can be removed.  In addition, curproc can never be NULL,
so remove the if statement, and splice the two printfs() together.

While here, remove the u_long cast, and use the correct printf format
specifier for curproc->p_pid.

Requested by:	jhb
2015-06-20 13:25:28 +00:00