Commit Graph

197078 Commits

Author SHA1 Message Date
trasz
312a175bda MFC r271437:
Don't blindly assume the target agreed to transition to Full Feature Phase;
if we got a Login Response PDU without the "T" bit set, try again with
an empty request.  This fixes interoperability with COMSTAR.

Reviewed by:	mav
Tested by:	mav
Approved by:	re (kib)
Sponsored by:	The FreeBSD Foundation
2014-09-17 08:47:58 +00:00
trasz
e073d019f5 MFC r271167:
Make it possible to quote names in autofs maps using double quotes.

Note that this is a workaround, not a proper solution.  If you know
lex well, and want to help - please let me know, I'll explain how it
should work.

PR:		192968
Approved by:	re (kib)
Sponsored by:	The FreeBSD Foundation
2014-09-17 08:25:48 +00:00
trasz
595559f064 MFC r271319:
Fix ctld(8) to not forget to send TargetPortalGroupTag and TargetAlias
when the initiator skips security negotiation.  This fixes interoperability
with Xtend SAN initiator.

PR:		193021
Approved by:	re (marius)
Sponsored by:	The FreeBSD Foundation
2014-09-17 07:06:02 +00:00
lstewart
25b8a28db6 MFC r270160:
Destroy the "qdiffsample_zone" UMA zone on unload to avoid a use-after-unload
panic easily triggered by running "sysctl -a" after unload.

Reported and tested by:	Grenville Armitage <garmitage@swin.edu.au>
Approved by:	re(gjb)
2014-09-16 21:26:24 +00:00
gjb
ed5abc5007 Document SA-14:19
Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation
2014-09-16 19:25:27 +00:00
gjb
a289b49a0c Bump __FreeBSD_version after SA-14:19.tcp
Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation
2014-09-16 19:20:06 +00:00
grehan
71412b55f1 MFC virtio-net changes.
Re-tested with NetBSD/amd64 5.2.2, 6.1.4 and 7-beta.

r271299:
Add a callback to be notified about negotiated features.

r271338:
Allow vtnet operation without merged rx buffers.

NetBSD's virtio-net implementation doesn't negotiate
the merged rx-buffers feature. To support this, check
to see if the feature was negotiated, and then adjust
the operation of the receive path accordingly by using
a larger iovec, and a smaller rx header.
In addition, ignore writes to the (read-only) status byte.

Approved by:	re (glebius)
Obtained from:	Vincenzo Maffione, Universita` di Pisa (r271299)
2014-09-16 19:08:54 +00:00
smh
a60923d309 MFC 265253:
Don't treat TRIM requests returning ENOTSUP as an unexpected error

Approved by:	re (gjb)
Sponsored by:	Multiplay
2014-09-16 17:47:13 +00:00
delphij
f7baec35a3 Fix Denial of Service in TCP packet processing.
Security:	FreeBSD-SA-14:19.tcp
Approved by:	re (implicit, security advisory)
2014-09-16 09:48:35 +00:00
grehan
4f02bb3b6b MFC r270689:
Implement the 0x2B SUB instruction, and the OR variant of 0x81.

    Found with local APIC accesses from bitrig/amd64 bsd.rd, 07/15-snap.

Approved by:	re (rodrigc)
2014-09-16 01:59:19 +00:00
se
5a730084f5 MFC r271452:
Add two forgotten keymap names (fr.kbd and fr.acc.kbd) to the list
of files to be installed.

Approved by:	re
2014-09-15 20:08:07 +00:00
emaste
b2352fc201 MFC r268540 by nwhitehorn:
Allow up to 512K for boot code on GPT with BIOS. As pmbr.s says in
    a comment, "545K should be enough for any boot code". This rounds
    down slightly.

Approved by:	re
2014-09-15 17:56:55 +00:00
emaste
37dd226a2e MFC EFI support for the installer
r264978 (nwhitehorn):

    Add EFI support to the installer. This requires that the kernel
    provide a sysctl to determine what firmware is in use. This sysctl
    does not exist yet, so the following blocks are in front of the
    wheels:
    - I've provisionally called this "hw.platform" after the equivalent
      thing on PPC
    - The logic to check the sysctl is short-circuited to always choose
      BIOS.  There's a comment in the top of the file about how to turn
      this off.

    If IA64 acquired a boot1.efifat-like thing (probably with very few
    modifications), the same code could be adapted there.

r265016 (nwhitehorn):

    Finish connecting up installer UEFI support. If the kernel was
    booted using EFI, set up the disks for an EFI system. If booted from
    BIOS/CSM, set up for BIOS.

r268256 (nwhitehorn):

    After EFI support was added to the installer, it needed to allow
    boot partitions of types other than "freebsd-boot" (in particular,
    "efi").  This allows the removal of some nasty hacks for supporting
    PowerPC systems, in particular aliasing freebsd-boot to apple-boot
    on APM and an IBM-specific code on MBR.

    This changes the installer to use the correct names, which also
    breaks a degeneracy in the meaning of "freebsd-boot" that allows the
    addition of support for some newer IBM systems that can boot from
    GPT in addition to MBR. Since I have no idea how to detect which
    those systems are, leave the default on IBM PPC systems as MBR for
    now.

Approved by:	re
PR:		193658
Relnotes:	Yes
2014-09-15 17:49:46 +00:00
emaste
11d930cebb MFC r265171 by nwhitehorn: Use mkimg instead of md(4) and gpart [for powerpc].
Approved by:	re
2014-09-15 16:47:04 +00:00
trasz
95a8c9b2ac MFC r271187:
Avoid ctld(8) crash on getaddrinfo(3) failure.

Approved by:	re (gjb)
Sponsored by:	The FreeBSD Foundation
2014-09-15 16:40:27 +00:00
trasz
0c1d52f3f7 MFC r271169:
Turn two errors, which are possible to trigger only by bugs,
into assertions.

Approved by:	re (gjb)
Sponsored by:	The FreeBSD Foundation
2014-09-15 14:21:57 +00:00
trasz
17ea2e1bc5 MFC r271157:
Fix typo.

Approved by:	re (marius)
Sponsored by:	The FreeBSD Foundation
2014-09-15 14:04:55 +00:00
trasz
7619d6d5db MFC r271436:
Fix typo.

Approved by:	re (marius)
Sponsored by:	The FreeBSD Foundation
2014-09-15 13:19:40 +00:00
trasz
333bfc8652 MFC r271317:
Avoid unlocking unlocked mutex in RCTL jail code.  Specific test case
is attached to PR.

PR:		193457
Approved by:	re (kib)
Sponsored by:	The FreeBSD Foundation
2014-09-15 13:01:47 +00:00
brueffer
8f5f705c7e MFC: r271286
Use the right constants in comparisons.  This is currently a nop, as
MIN_RXD == MIN_TXD and MAX_RXD == MAX_TXD.

Reviewed by:    Eric Joyner @ Intel
Approved by:    re (kib)
2014-09-15 12:36:40 +00:00
trasz
7b29f9e4e1 MFC r271393:
Make it possible to disable NOP-In PDUs by the iSCSI initiator by setting
kern.cam.ctl.iscsi.ping_timeout to 0.  This fixes interoperability with
some initiators that don't properly support NOP-Ins, namely iPXE/gPXE.

Approved by:	re (kib)
2014-09-15 11:35:14 +00:00
royger
928f86ffd6 MFC r271099: revert r269814: blkfront: add support for unmapped IO
Current busdma code for unmapped bios will not properly align the
segment size, causing corruption on blkfront devices. Revert the commit
until busdma code is fixed.

Reported by:	mav
Approved by:	re
2014-09-15 08:58:17 +00:00
gjb
4f7be401fc MFC r271480, r271483, r271491:
r271480:
  Set PKG_CACHEDIR to an 'All/' directory one level lower
  to fix 'pkg repo' generating repository metadata for the
  on-disc packages.

r271483:
  Fix duplicate PKG_ABI in the PKG_CACHEDIR path.

r271491:
  Simplify dvd package population with pkg-1.3.

Approved by:	re (rodrigc)
Sponsored by:	The FreeBSD Foundation
2014-09-15 02:21:34 +00:00
gjb
891e8b94bd Define NO_TESTS instead of WITHOUT_TESTS for the etc/
'distribute' target to fix the WITH_TESTS=1 build.

This is a direct commit to stable/10.

Submitted by:	ngie
Approved by:	re (rodrigc)
Sponsored by:	The FreeBSD Foundation
2014-09-14 23:25:10 +00:00
wblock
ccf4edfa98 MFC r271434:
Update motd, clarifying the information and adding pointers to other
resources.

Approved by:	re@ (marius@)
2014-09-14 02:55:17 +00:00
pfg
661c0752aa MFC r271149:
Apply known workarounds for less modern MacBooks.

The legacy USB circuit tends to give trouble on older MacBooks.
While the original report covered MacBook4, extend the fix
preemptively for the newer MacBookPro4 too.

PR:		191693
Reviewed by:	emaste
Approved by:	re
2014-09-13 18:27:47 +00:00
mav
9ea19c975a MFC r271407: Extend UNMAP blacklist on all STEC SSD models.
None of existing STEC devices need UNMAP or even support it well,
having many limitations and even hanging sometimes executing those
commands. New devices that may use UNMAP going to be released under
HGST name.

Approved by:	re (delphij)
2014-09-13 17:13:04 +00:00
mav
85a1618ec2 MFC r271362:
Make ctl_port_mask an array to support more then 32 ports.

Overflow reported by Coverity.

CID:		1229894

Approved by:	re (marius)
2014-09-13 17:08:27 +00:00
mav
953b084519 MFC r271163, 271196:
Invert AHCI_Q_NOBSYRES quirk meaning, waiting for readiness by default.

I gave up to update list of Marvell chips that require this quirk.
The final nail was growing number of PCIe/M.2 SSDs where Marvell
chips have PCI IDs of different vendors.

Approved by:	re (delphij)
2014-09-13 16:02:43 +00:00
gjb
dd436f76ca Include the 'mini' (bootonly) UEFI memstick image
in the list of IMAGES.

This is a direct commit to stable/10.

Approved by:	re (marius)
Sponsored by:	The FreeBSD Foundation
2014-09-12 19:32:18 +00:00
gjb
ebd65b549a Connect the UEFI-capable disc1.iso and dvd1.iso variants
to the build.

This is a direct commit to stable/10.

Approved by:	re (marius)
Sponsored by:	The FreeBSD Foundation
2014-09-12 18:23:22 +00:00
gjb
adfa0b6f79 MFC r271284:
Include the gssapi_krb5 library in KRB5_LDFLAGS.

PR:		156245
Approved by:	re (marius)
Sponsored by:	The FreeBSD Foundation
2014-09-12 17:06:55 +00:00
gjb
9d621a762d MFC r271331:
Change how the recommended mailing list to track is
  added to the footer of the release/doc/ pages by
  moving a hard-coded value (that is subject to human
  error to change) to release.ent where other values
  are regularly changed, and adding parsing logic to
  release.xsl.

Approved by:	re (implicit, relnotes)
Sponsored by:	The FreeBSD Foundation
2014-09-12 17:01:14 +00:00
emaste
52dc56108e MFC r264995 (nwhitehorn):
Add script to setup bootable CD ISOs for both BIOS and EFI systems.
    Tested and working on QEMU. Actually using this script as the regular
    image generator, like with the memstick one, will require that the
    kernel support EFI too. In particular, the following two things are
    required:
    1. vt(9) be the default console driver
    2. vt_efifb and vt_vga be able to coexist usefully in the same kernel

    One other note here is that this requires newfs_msdos and mdconfig,
    which is really ugly. NetBSD's makefs at least seems to support FAT
    now. If that actually works, it should be imported and we can get rid
    of the mdconfig mess.

Approved by:	re
Relnotes:	Yes
Sponsored by:	The FreeBSD Foundation
2014-09-12 16:37:56 +00:00
kib
7102c46339 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)
2014-09-12 16:22:01 +00:00
gjb
306ae7f936 Update stable/10 to -BETA1 as part of the 10.1-RELEASE
cycle.

Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation
2014-09-12 00:05:15 +00:00
smh
a8fade0c78 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
2014-09-11 18:42:51 +00:00
ian
a5cc4ff425 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)
2014-09-11 15:36:36 +00:00
kib
9b5b98982c MFC r270993 (by mjg):
Fix up proc_realparent to always return correct process.

Approved by:	re (delphij)
2014-09-11 11:25:10 +00:00
emaste
8081f48b5d 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
2014-09-11 01:53:55 +00:00
jhb
b2f9aa76a4 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)
2014-09-10 15:45:18 +00:00
delphij
692154fe89 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)
2014-09-10 13:21:44 +00:00
delphij
81bb44f925 MFC r271222:
Fix typo.

Submitted by:	Dmitry Morozovsky <marck rinet ru>
Approved by:	re (gjb)
2014-09-10 13:13:30 +00:00
hselasky
286e3aee5d MFC r271218:
Update mixer description for FastTrackPro.

Approved by:	re, marius
2014-09-10 10:09:34 +00:00
kib
f5031098f4 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)
2014-09-10 09:47:16 +00:00
hselasky
b6b97251b9 MFC r271017 and r271018:
Add new quirk.

PR:        193279
Approved by:	re, marius
2014-09-10 09:40:51 +00:00
hselasky
09056c8e71 MFC r270992:
Fix logical error.

Approved by:	re, glebius
2014-09-10 06:48:23 +00:00
gjb
2d2a97f0cf Bump __FreeBSD_version after SA-14:18
Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation
2014-09-10 00:19:33 +00:00
ian
e41a7eca9f MFC r271050: Disable DIAGNOSTIC on low-end ARM platforms.
Approved by:	re(gjb)
2014-09-09 23:31:30 +00:00
ian
8a19588768 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)
2014-09-09 22:24:01 +00:00