]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
9 years agoMerge upstream r825: fix line continuation in whitespace
Dag-Erling Smørgrav [Sun, 19 Oct 2014 11:06:54 +0000 (11:06 +0000)]
Merge upstream r825: fix line continuation in whitespace

9 years agoProvide vfs suspension support only for filesystems which need it.
Mateusz Guzik [Sun, 19 Oct 2014 06:59:33 +0000 (06:59 +0000)]
Provide vfs suspension support only for filesystems which need it.

Need is expressed by providing vfs_susp_clean function in vfsops.

Differential Revision: D952
Reviewed by: kib (previous version)
MFC after: 2 weeks

9 years agoConvert a missed u_char cpu -> int cpu.
Adrian Chadd [Sun, 19 Oct 2014 04:38:02 +0000 (04:38 +0000)]
Convert a missed u_char cpu -> int cpu.

This was caught by a gcc build.

Reported by: luigi
Sponsored by: Norse Corp, Inc.

9 years agoMerge upstream r825: fix line continuation in whitespace
Dag-Erling Smørgrav [Sat, 18 Oct 2014 22:49:18 +0000 (22:49 +0000)]
Merge upstream r825: fix line continuation in whitespace

9 years agoAdd a complete implementation of MurmurHash3. Tweak both implementations
Dag-Erling Smørgrav [Sat, 18 Oct 2014 22:15:11 +0000 (22:15 +0000)]
Add a complete implementation of MurmurHash3.  Tweak both implementations
so they match the established idiom.  Document them in hash(9).

MFC after: 1 month
MFC with: r272906

9 years agoAdd tunable vfs.zfs.space_map_blksz for space map's maximum block size.
Xin LI [Sat, 18 Oct 2014 22:11:10 +0000 (22:11 +0000)]
Add tunable vfs.zfs.space_map_blksz for space map's maximum block size.

MFC after: 2 weeks

9 years agoUpdate the ULE scheduler + thread and kinfo structs to use int for cpuid
Adrian Chadd [Sat, 18 Oct 2014 19:36:11 +0000 (19:36 +0000)]
Update the ULE scheduler + thread and kinfo structs to use int for cpuid
rather than u_char.

To try and play nice with the ABI, the u_char CPU ID values are clamped
at 254.  The new fields now contain the full CPU ID, or -1 for no cpu.

Differential Revision: D955
Reviewed by: jhb, kib
Sponsored by: Norse Corp, Inc.

9 years agoAdd a workaround needed to fix a bug of Arasan Host Controller where it may
Luiz Otavio O Souza [Sat, 18 Oct 2014 19:01:07 +0000 (19:01 +0000)]
Add a workaround needed to fix a bug of Arasan Host Controller where it may
lose the contents of consecutive writes (that happens within two SD card
clock cycles).

This fixes the causes of instability during the SD card detection and
identification on Raspberry Pi (which happens at 400 kHz and so was much
more vulnerable to this issue).

Remove the previous workaround which clearly can't provide the same effect.

MFC after: 1 week
Relnotes: yes

9 years agoFix the chan address for mtx_sleep() on bus wait. Without this fix the
Luiz Otavio O Souza [Sat, 18 Oct 2014 18:27:24 +0000 (18:27 +0000)]
Fix the chan address for mtx_sleep() on bus wait.  Without this fix the
threads waiting for the bus would never wake.

X-MFC-With: r270230

9 years agoRework the Ti GPIO code to allow for both the OMAP4 and AM335X attachments
Andrew Turner [Sat, 18 Oct 2014 17:51:34 +0000 (17:51 +0000)]
Rework the Ti GPIO code to allow for both the OMAP4 and AM335X attachments
to be present. Thsi creates a new per-SoC driver that handles probe and
setting/getting the gpio flags.

Differential Revision: https://reviews.freebsd.org/D943
Reviewed by: loos, rpaulo
MFC after: 1 week

9 years agoRemove an unused mutex.
Rui Paulo [Sat, 18 Oct 2014 17:36:57 +0000 (17:36 +0000)]
Remove an unused mutex.

MFC after: 1 week

9 years agoUse IPFW_RULE_CNTR_SIZE macro instead of non-relevant ip_fw_cntr structure.
Alexander V. Chernikov [Sat, 18 Oct 2014 17:23:41 +0000 (17:23 +0000)]
Use IPFW_RULE_CNTR_SIZE macro instead of non-relevant ip_fw_cntr structure.

Found by: luigi

9 years agoMake VPD 80h (Serial Number) transfer length match serial number length.
Alexander Motin [Sat, 18 Oct 2014 17:11:02 +0000 (17:11 +0000)]
Make VPD 80h (Serial Number) transfer length match serial number length.

MFC after: 1 week

9 years agoMake the ti_mbox and ti_pruss drivers optional.
Rui Paulo [Sat, 18 Oct 2014 17:00:55 +0000 (17:00 +0000)]
Make the ti_mbox and ti_pruss drivers optional.

MFC after: 1 week

9 years agoAdd a driver for the TI watchdog.
Rui Paulo [Sat, 18 Oct 2014 16:59:21 +0000 (16:59 +0000)]
Add a driver for the TI watchdog.

The TI watchdog timer is present on BeagleBone's.  Since 2014, U-Boot
has been booting the BeagleBone with the watchdog enabled.  We need to
disable it on boot to avoid a spurious reset.
The timer isn't exactly precise, but it will do as a watchdog.  This
is also a reflection of the watchdog(9) API.

In the future, we could handle interrupts, but the watchdog(9) API
needs to be a bit smarter before that can happen.

Differential Revision: https://reviews.freebsd.org/D965
Reviewed by: andrew
MFC after: 1 week
Relnotes: yes

9 years agoAM335X FDT: use the oma3-wdt string for compatibility with Linux.
Rui Paulo [Sat, 18 Oct 2014 16:34:52 +0000 (16:34 +0000)]
AM335X FDT: use the oma3-wdt string for compatibility with Linux.

Submitted by: andrew
MFC after: 1 week

9 years ago* Zero rule buffer.
Alexander V. Chernikov [Sat, 18 Oct 2014 15:18:31 +0000 (15:18 +0000)]
* Zero rule buffer.
* Rename 'read' variable.

Pointed by: luigi

9 years agoAdd support for new USB 3G device.
Hans Petter Selasky [Sat, 18 Oct 2014 15:11:13 +0000 (15:11 +0000)]
Add support for new USB 3G device.

Submitted by: gabor@zahemszky.hu
MFC after: 1 week

9 years agoAdd an elf not so kgdb detects the kernel as a FreeBSD elf file. The
Andrew Turner [Sat, 18 Oct 2014 13:38:04 +0000 (13:38 +0000)]
Add an elf not so kgdb detects the kernel as a FreeBSD elf file. The
ELFNOTE macro is based on one from the FreeBSD/ARM Xen tree [1].

Obtained from: Julien Grall <julien.grall AT linaro.org> [1]

9 years agoRetire the unimplemented MAP_RENAME and MAP_NORESERVE flags to mmap(2).
John Baldwin [Sat, 18 Oct 2014 12:28:51 +0000 (12:28 +0000)]
Retire the unimplemented MAP_RENAME and MAP_NORESERVE flags to mmap(2).
Older binaries are still permitted to use these flags.

PR: 193961 (exp-run in ports)
Differential Revision: https://reviews.freebsd.org/D848
Reviewed by: kib

9 years agoDisable hyperv on pc98.
Yoshihiro Takahashi [Sat, 18 Oct 2014 08:07:17 +0000 (08:07 +0000)]
Disable hyperv on pc98.

9 years agoAM335x FDT: add an entry for the watchdog.
Rui Paulo [Sat, 18 Oct 2014 07:40:38 +0000 (07:40 +0000)]
AM335x FDT: add an entry for the watchdog.

MFC after: 1 week

9 years agoFix the watchdog/watchdog man pages.
Rui Paulo [Sat, 18 Oct 2014 07:38:46 +0000 (07:38 +0000)]
Fix the watchdog/watchdog man pages.

The default timeout is 128 seconds.

MFC after: 1 week

9 years agosh: Add some tests for backslash-newline continuation.
Jilles Tjoelker [Fri, 17 Oct 2014 21:52:57 +0000 (21:52 +0000)]
sh: Add some tests for backslash-newline continuation.

9 years agoFix to col when printing half-line feeds w/ -f option...
John-Mark Gurney [Fri, 17 Oct 2014 21:09:03 +0000 (21:09 +0000)]
Fix to col when printing half-line feeds w/ -f option...

Message-Id on openbsd-tech: 20141017195810.GJ132@iris.usta.de
Submitted by: Ingo Schwarze
Obtained from: OpenBSD
MFC after: 3 days

9 years ago* Fix table sets handling.
Alexander V. Chernikov [Fri, 17 Oct 2014 20:47:55 +0000 (20:47 +0000)]
* Fix table sets handling.
* Simplify formatting.

Suggested by: luigi

9 years agoUse pmc_destroy_pmc_descriptor() to actually free the pmc, which is
Mark Johnston [Fri, 17 Oct 2014 19:04:24 +0000 (19:04 +0000)]
Use pmc_destroy_pmc_descriptor() to actually free the pmc, which is
consistent with pmc_destroy_owner_descriptor(). Also be sure to destroy
PMCs if a process exits or execs without explicitly releasing them.

Reviewed by: bz, gnn
MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division
Differential Revision: https://reviews.freebsd.org/D958

9 years agoFix UEFI manpage whitespace and minor issues
Ed Maste [Fri, 17 Oct 2014 18:16:40 +0000 (18:16 +0000)]
Fix UEFI manpage whitespace and minor issues

Submitted by: wblock
MFC after: 4 days
Differential Revision: https://reviews.freebsd.org/D959

9 years agoConvert remaining {g,s}etenv->kern_{g,s}etenv
Davide Italiano [Fri, 17 Oct 2014 17:34:05 +0000 (17:34 +0000)]
Convert remaining {g,s}etenv->kern_{g,s}etenv
left over from r273174.

Reported by:    bz

9 years ago* Remove route caching in if_stf.
Alexander V. Chernikov [Fri, 17 Oct 2014 15:07:04 +0000 (15:07 +0000)]
* Remove route caching in if_stf.
* Copy necessary in6_ifa on stack instead of playing with refcounts.

9 years agoDo nothing in vt_upgrade if there is no vt driver
Ed Maste [Fri, 17 Oct 2014 13:55:45 +0000 (13:55 +0000)]
Do nothing in vt_upgrade if there is no vt driver

Previously, if no drivers attached at boot we would panic with
"vtbuf_fill_locked begin.tp_row 0 must be < screen height 0".

PR: 192248
Reviewed by: ray
MFC after: 3 days
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D954

9 years agoAdd basic UEFI boot procedure manpage
Ed Maste [Fri, 17 Oct 2014 13:50:37 +0000 (13:50 +0000)]
Add basic UEFI boot procedure manpage

Reviewed by: brueffer
MFC after: 4 days
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D959

9 years agoAdd support for new USB 3G device.
Hans Petter Selasky [Fri, 17 Oct 2014 13:40:17 +0000 (13:40 +0000)]
Add support for new USB 3G device.

Submitted by: gabor@zahemszky.hu
MFC after: 1 week

9 years agoFix build to not bogusly always rebuild vmm.ko.
Warner Losh [Fri, 17 Oct 2014 13:20:49 +0000 (13:20 +0000)]
Fix build to not bogusly always rebuild vmm.ko.

Rename vmx_assym.s to vmx_assym.h to reflect that file's actual use
and update vmx_support.S's include to match. Add vmx_assym.h to the
SRCS to that it gets properly added to the dependency list. Add
vmx_support.S to SRCS as well, so it gets built and needs fewer
special-case goo. Remove now-redundant special-case goo. Finally,
vmx_genassym.o doesn't need to depend on a hand expanded ${_ILINKS}
explicitly, that's all taken care of by beforedepend.

With these items fixed, we no longer build vmm.ko every single time
through the modules on a KERNFAST build.

Sponsored by: Netflix

9 years agoRemove useless debug.
Edward Tomasz Napierala [Fri, 17 Oct 2014 12:06:48 +0000 (12:06 +0000)]
Remove useless debug.

Sponsored by: The FreeBSD Foundation

9 years agoSupport stopping and restarting the AHCI command list via toggling
Tycho Nightingale [Fri, 17 Oct 2014 11:37:50 +0000 (11:37 +0000)]
Support stopping and restarting the AHCI command list via toggling
PxCMD.ST from '1' to '0' and back.  This allows the driver a chance to
recover if for instance a timeout occurred due to activity on the
host.

Reviewed by: grehan

9 years agoAdd -x waittime and -X timeout options for feature parity. These are
Hiroki Sato [Fri, 17 Oct 2014 09:33:09 +0000 (09:33 +0000)]
Add -x waittime and -X timeout options for feature parity.  These are
equivalent to -W and -t options of ping(8).  Different letters are used
because both have already been used for another purposes in ping6(8).

9 years ago- Fix lladdr configuration which could prevent LACP mode from working.
Hiroki Sato [Fri, 17 Oct 2014 09:08:44 +0000 (09:08 +0000)]
- Fix lladdr configuration which could prevent LACP mode from working.
- Fix LORs when a laggport interface has an IPv6 LLA.

PR: 194321

9 years agoAfter r273087,r273090,r273091,r273121 changes to gif(4) try to fix
Bjoern A. Zeeb [Fri, 17 Oct 2014 07:58:51 +0000 (07:58 +0000)]
After r273087,r273090,r273091,r273121 changes to gif(4) try to fix
NOIP builds for real.

MFC after: 27 days

9 years agoAdd provider's sectorsize and stripesize to confdot output.
Andrey V. Elsukov [Fri, 17 Oct 2014 06:58:04 +0000 (06:58 +0000)]
Add provider's sectorsize and stripesize to confdot output.

Submitted by: rpokala at panasas.com

9 years agomove linux*_locore.s and linux*_support.s to SRCS, remove the OBJS
Warner Losh [Fri, 17 Oct 2014 04:36:53 +0000 (04:36 +0000)]
move linux*_locore.s and linux*_support.s to SRCS, remove the OBJS
entry and remove now-redunant dependencies. Add assym.s to
linux*_locore.s build, as it depends on it.

With this change, linux*.ko no longer builds every time through a
KERNFAST run.

Sponsored by: Netflix

9 years agoDon't depend on @ or machine for assym.s or genassym.o. That's a
Warner Losh [Fri, 17 Oct 2014 04:36:48 +0000 (04:36 +0000)]
Don't depend on @ or machine for assym.s or genassym.o. That's a
vestige of a time when we needed to do that, but it is all handled by
beforedepend now. When we depend on the symlink, bmake will cause the
file to be rebuilt always.

With this change, dtrace.ko doesn't rebuild every time through a
KERNFAST run.

Sponsored by: Netfix

9 years agoAdd more descriptive metadata to the ISO images.
Glen Barber [Fri, 17 Oct 2014 03:55:33 +0000 (03:55 +0000)]
Add more descriptive metadata to the ISO images.

PR:  146079
Submitted by:  Roman Bogorodskiy
MFC after:  3 days
X-MFC-10.1:  yes
Sponsored by: The FreeBSD Foundation

9 years agoMake the sysctl(8) for checkutf8 positively defined and improve
Marcelo Araujo [Fri, 17 Oct 2014 02:11:09 +0000 (02:11 +0000)]
Make the sysctl(8) for checkutf8 positively defined and improve
the description of it.

Submitted by: Ronald Klop <ronald-lists@klop.ws>
Reviewed by: rmacklem
Approved by: rmacklem
Sponsored by: QNAP Systems Inc.

9 years agoAdd support of "/{udp,tcp,proto}" suffix into $firewall_myservices, which
Hiroki Sato [Fri, 17 Oct 2014 00:31:51 +0000 (00:31 +0000)]
Add support of "/{udp,tcp,proto}" suffix into $firewall_myservices, which
interpreted the listed items as port numbers of TCP services.

A service with no suffix still works and recognized as a TCP service for
backward compatibility.  It should be updated with /tcp suffix.

PR: 194292
MFC after: 1 week

9 years agoThe igb(4) driver supports 82580, i350, i354, i210 and i211 chipsets too,
Gavin Atkinson [Thu, 16 Oct 2014 23:07:09 +0000 (23:07 +0000)]
The igb(4) driver supports 82580, i350, i354, i210 and i211 chipsets too,
document them.

PR: 192301
MFC after: 1 week

9 years agoRemove duplicated code.
Xin LI [Thu, 16 Oct 2014 22:04:07 +0000 (22:04 +0000)]
Remove duplicated code.

Suggested by: jmg

9 years agoDon't define rules based on PROGS if PROGS is empty.
Mark Johnston [Thu, 16 Oct 2014 21:13:46 +0000 (21:13 +0000)]
Don't define rules based on PROGS if PROGS is empty.

Reviewed by: sjg, ngie
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

9 years agoAdd 4k quirks for PM853T Samsung SSD
Sean Bruno [Thu, 16 Oct 2014 20:33:04 +0000 (20:33 +0000)]
Add 4k quirks for PM853T Samsung SSD

MFC after: 2 weeks
Sponsored by: Limelight Networks

9 years agoThere's no need to override the clean target. The clean target works
Warner Losh [Thu, 16 Oct 2014 20:13:16 +0000 (20:13 +0000)]
There's no need to override the clean target. The clean target works
correctly without doing so.

9 years agoAdd the Dresden Elektronik deRFnode device to uftdi(4).
Joerg Wunsch [Thu, 16 Oct 2014 19:53:32 +0000 (19:53 +0000)]
Add the Dresden Elektronik deRFnode device to uftdi(4).

MFC after: 1 week

9 years agofwsectors and fwheads used to be somehwat arbitrary. However, they are
Warner Losh [Thu, 16 Oct 2014 19:52:12 +0000 (19:52 +0000)]
fwsectors and fwheads used to be somehwat arbitrary. However, they are
used to align partitions in gpart. We also try to align partitions by
stripe size when creating new media. Align these two concepts by
making fwsectors the same as the stripe size. Select a sensible number
of heads so we wind up with about 20 cylinders. This number was
selected to keep the rounding effects to a few percent while keeping
the number of cylinder groups low.

Sadly, it is not possible to make these numbers match the numbers used
by SD card readers. There apperas to be much variation between brands
so there's no one universal number. These numbers are also not aligned
to the stripe size, so some performance problems may still be present
when SD cards are created this way.

Also, these numbers will differ from the far less common SD to ATA
adapters, which present a different, but more uniform, set of numbers
that also happened to match the old defaults.

Nothing should change for current users. Any suboptimal performance
caused by misalignment will still be there. gpart will honor the
partitions that aren't on proper boudnaries, but editing the partition
tables may result in different alignments being used than before when
editing things natively.

Ideally, there'd be some way to override these values in the disk
subsystem by the user for the USB adapter use case where all "native"
notions of geometry disappear. This does not implement that.

9 years agoUpdate vt(4) for UEFI defaults and special keys
Ed Maste [Thu, 16 Oct 2014 18:49:50 +0000 (18:49 +0000)]
Update vt(4) for UEFI defaults and special keys

vt(4) is the default console for UEFI boot [1], and the bitmapped
kern.vt.spclkeys sysctl has been replaced with individual kern.vt.kbd_*
enable sysctls.

PR: 193710
Submitted by: wblock [1]
Reviewed by: wblock
MFC after: 3 days
Relnotes: Yes
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D953

9 years agoCorrect two typos
Steven Kreuzer [Thu, 16 Oct 2014 18:28:11 +0000 (18:28 +0000)]
Correct two typos

PR: 194350
Submitted by: jiashiun@gmail.com
Approved by: hrs (mentor)

9 years agoFollow up to r225617. In order to maximize the re-usability of kernel code
Davide Italiano [Thu, 16 Oct 2014 18:04:43 +0000 (18:04 +0000)]
Follow up to r225617. In order to maximize the re-usability of kernel code
in userland rename in-kernel getenv()/setenv() to kern_setenv()/kern_getenv().
This fixes a namespace collision with libc symbols.

Submitted by:   kmacy
Tested by:      make universe

9 years agoRegenerate src.conf.5 after:
Brooks Davis [Thu, 16 Oct 2014 15:59:00 +0000 (15:59 +0000)]
Regenerate src.conf.5 after:

r273170:
  MK_ARB_EABI was removed in r272350 so remove the documentation.
r273171:
  Per r273155, HYPERV is built by default on platforms where it makes
  sense and ignored on others.
r273172:
  Document that WITHOUT_TOOLCHAIN causes headers to not be installed, not
  just programs.

9 years agoDocument that WITHOUT_TOOLCHAIN causes headers to not be installed, not
Brooks Davis [Thu, 16 Oct 2014 15:55:13 +0000 (15:55 +0000)]
Document that WITHOUT_TOOLCHAIN causes headers to not be installed, not
just programs.

9 years agoPer r273155, HYPERV is built by default on platforms where it makes
Brooks Davis [Thu, 16 Oct 2014 15:54:23 +0000 (15:54 +0000)]
Per r273155, HYPERV is built by default on platforms where it makes
sense and ignored on others.

9 years agoMK_ARB_EABI was removed in r272350 so remove the documentation.
Brooks Davis [Thu, 16 Oct 2014 15:52:36 +0000 (15:52 +0000)]
MK_ARB_EABI was removed in r272350 so remove the documentation.

9 years agoFix the reported streams in a SCTP_STREAM_RESET_EVENT, if a
Michael Tuexen [Thu, 16 Oct 2014 15:36:04 +0000 (15:36 +0000)]
Fix the reported streams in a SCTP_STREAM_RESET_EVENT, if a
sent incoming stream reset request was responded with failed
or denied.
Thanks to Peter Bostroem from Google for reporting the issue.

MFC after: 3 days

9 years agoAdd an "empty" Makefile.pc98 because it doesn't need/want HYPERV. It
Warner Losh [Thu, 16 Oct 2014 14:08:59 +0000 (14:08 +0000)]
Add an "empty" Makefile.pc98 because it doesn't need/want HYPERV. It
is not relevant to the hardware it runs on.

9 years agoFix the type of pte_pa as when it is passed into _kvm_pa2off it is either
Andrew Turner [Thu, 16 Oct 2014 13:49:54 +0000 (13:49 +0000)]
Fix the type of pte_pa as when it is passed into _kvm_pa2off it is either
a uint64_t or a pointer to an off_t. With it being a u_long can result in
incorrect values being returned.

9 years agoUse lockless quota checks in qsync and qsyncvp.
Mateusz Guzik [Thu, 16 Oct 2014 12:41:14 +0000 (12:41 +0000)]
Use lockless quota checks in qsync and qsyncvp.

No strong objections from: kib, mckusick
MFC after: 1 week

9 years agoWhen removing an iSCSI session, check whether all conditions match,
Edward Tomasz Napierala [Thu, 16 Oct 2014 09:09:43 +0000 (09:09 +0000)]
When removing an iSCSI session, check whether all conditions match,
not if any of them matches.  This fixes "iscsictl -Rn" removing
unrelated sessions.

PR: 194034
MFC after: 1 month
Sponsored by: The FreeBSD Foundation

9 years agoImplement more functional CTL debug logging.
Alexander Motin [Thu, 16 Oct 2014 08:42:17 +0000 (08:42 +0000)]
Implement more functional CTL debug logging.

Setting bits in kern.cam.ctl.debug allows to log errors, commands and some
commands data respectively.

MFC after: 1 week

9 years agoFix automountd(8) not to leave zombies.
Edward Tomasz Napierala [Thu, 16 Oct 2014 08:33:04 +0000 (08:33 +0000)]
Fix automountd(8) not to leave zombies.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

9 years agoAdd two sysctl(8) to enable/disable NFSv4 server to check when setting
Marcelo Araujo [Thu, 16 Oct 2014 02:24:19 +0000 (02:24 +0000)]
Add two sysctl(8) to enable/disable NFSv4 server to check when setting
user nobody and/or setting group nogroup as owner of a file or directory.
Usually at the client side, if there is an username that is not in the
client's passwd database, some clients will send 'nobody@<your.dns.domain>'
in the wire and the NFSv4 server will treat it as an ERROR.
However, if you have a valid user nobody in your passwd database,
the NFSv4 server will treat it as a NFSERR_BADOWNER as its believes the
client doesn't has the username mapped.

Submitted by: Loic Blot <loic.blot@unix-experience.fr>
Reviewed by: rmacklem
Approved by: rmacklem
MFC after: 2 weeks

9 years agoPrevent ZFS leaking pool free space
Steven Hartland [Thu, 16 Oct 2014 02:23:27 +0000 (02:23 +0000)]
Prevent ZFS leaking pool free space

When processing async destroys ZFS would leak space every txg timeout
(5 seconds by default), if no writes occurred, until the pool is totally
full. At this point it would be unfixable without a pool recreation.

In addition if the machine was rebooted with the pool in this situation
would fail to import on boot, hanging indefinitely, as the import process
requires the ability to write data to the pool. Any attempts to query the
pool status during the hung import would not return as the import holds
the pool lock.

The only way to import such a pool would be to specify -o readonly=on
to the zpool import.

zdb -bb <pool> can be used to check for "deferred free" size which is where
this lost space will be counted.

MFC after: 3 days
Sponsored by: Multiplay

9 years agoRemove the "Unable to unwind further" message from DDB.
Rui Paulo [Thu, 16 Oct 2014 01:48:39 +0000 (01:48 +0000)]
Remove the "Unable to unwind further" message from DDB.

The ARM version of DDB is supposedly reliable enough making this
message benign.

9 years agoMove the adm1030 driver to the proper location, and rename it.
Justin Hibbits [Thu, 16 Oct 2014 01:32:22 +0000 (01:32 +0000)]
Move the adm1030 driver to the proper location, and rename it.

For compatibility, 'device windtunnel' is still supported, but one should use
'device adm1030' instead, and this has been updated in GENERIC and NOTES.

9 years agoHYPERV isn't available on all architectures, but just on by default
Warner Losh [Thu, 16 Oct 2014 00:33:06 +0000 (00:33 +0000)]
HYPERV isn't available on all architectures, but just on by default
for i386/amd64. Rather, it only works on i386/amd64 and should only be
built there. Rather than change the default based on which
architecutre, do things more directly by only building it on
i386/amd64 and having it always on. This is how we handle other
options that are relevant only for a few architectures.

9 years agoSlightly improve grammar in EAGAIN description.
Gavin Atkinson [Wed, 15 Oct 2014 23:39:47 +0000 (23:39 +0000)]
Slightly improve grammar in EAGAIN description.

PR: 176806
Submitted by: Jeremy Chadwick
MFC after: 3 days

9 years agosh: Make parseredir() a proper function instead of an emulated nested
Jilles Tjoelker [Wed, 15 Oct 2014 21:26:09 +0000 (21:26 +0000)]
sh: Make parseredir() a proper function instead of an emulated nested
function.

9 years agosh: Remove more gotos.
Jilles Tjoelker [Wed, 15 Oct 2014 21:20:56 +0000 (21:20 +0000)]
sh: Remove more gotos.

9 years agoMerge OpenSSL 1.0.1j.
Jung-uk Kim [Wed, 15 Oct 2014 19:29:22 +0000 (19:29 +0000)]
Merge OpenSSL 1.0.1j.

Relnotes: yes

9 years agoMerge OpenSSL 1.0.1j.
Jung-uk Kim [Wed, 15 Oct 2014 19:12:05 +0000 (19:12 +0000)]
Merge OpenSSL 1.0.1j.

9 years agoRemove setting BIO_DONE flag for BIOs that have done() method.
Alexander Motin [Wed, 15 Oct 2014 18:36:34 +0000 (18:36 +0000)]
Remove setting BIO_DONE flag for BIOs that have done() method.

This fixes use-after-free, caused by geom_disk, completing same BIO twice
to save extra allocation, and getting BIO_DONE set after the first.

MFC after: 1 week

9 years agoCorrect grammos.
Jens Schweikhardt [Wed, 15 Oct 2014 17:55:10 +0000 (17:55 +0000)]
Correct grammos.

MFC after: 3 weeks

9 years agoImport OpenSSL 1.0.1j.
Jung-uk Kim [Wed, 15 Oct 2014 17:32:57 +0000 (17:32 +0000)]
Import OpenSSL 1.0.1j.

9 years agoUpdate the OFED Linux compatibility layer and
Hans Petter Selasky [Wed, 15 Oct 2014 13:40:29 +0000 (13:40 +0000)]
Update the OFED Linux compatibility layer and
Mellanox hardware driver(s):

- Properly name an inclusion guard
- Fix compile warnings regarding unsigned enums
- Add two new sysctl nodes
- Remove all empty linux header files
- Make an error printout more verbose
- Use "mod_delayed_work()" instead of
  cancelling and starting a timeout.
- Implement more Linux scatterlist
  functions.

MFC after: 3 days
Sponsored by: Mellanox Technologies

9 years agoStyle changes for deadfs:
Konstantin Belousov [Wed, 15 Oct 2014 13:22:33 +0000 (13:22 +0000)]
Style changes for deadfs:
- ANSIfy VOPs.
- Remove trivial comments.
- Remove ARGSUSED.
- Remove copies of the vop_XXX_args structure definitions in comments.

Sponsored by: The FreeBSD Foundation
MFC after: 1 week

9 years agoWhen vnode bypass cannot be performed on the cdev file descriptor for
Konstantin Belousov [Wed, 15 Oct 2014 13:16:51 +0000 (13:16 +0000)]
When vnode bypass cannot be performed on the cdev file descriptor for
read/write/poll/ioctl, call standard vnode filedescriptor fop.  This
restores the special handling for terminals by calling the deadfs VOP,
instead of always returning ENXIO for destroyed devices or revoked
terminals.

Since destroyed (and not revoked) device would use devfs_specops VOP
vector, make dead_read/write/poll non-static and fill VOP table with
pointers to the functions, to instead of VOP_PANIC.

Noted and reviewed by: bde
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

9 years agoChange the deadfs poll VOP to return POLLIN|POLLRDNORM if the caller
Konstantin Belousov [Wed, 15 Oct 2014 13:08:53 +0000 (13:08 +0000)]
Change the deadfs poll VOP to return POLLIN|POLLRDNORM if the caller
is interested in i/o state.  Return POLLNVAL for invalid bits, similar
to poll_no_poll().  Note that POLLOUT must not be returned, since
POLLHUP is set.

Noted and reviewed by: bde
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

9 years agoImplement FIODTYPE for master ptys.
Konstantin Belousov [Wed, 15 Oct 2014 12:38:26 +0000 (12:38 +0000)]
Implement FIODTYPE for master ptys.

Requested and reviewed by: bde
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

9 years agoMake automountd(8) inform autofs(4) whether directory being handled can
Edward Tomasz Napierala [Wed, 15 Oct 2014 09:28:45 +0000 (09:28 +0000)]
Make automountd(8) inform autofs(4) whether directory being handled can
have wildcards.  This makes it possible for autofs(4) to avoid requesting
automountd(8) action on access to nonexistent nodes - unless wildcards
are actually used.

Note that this change breaks ABI for automountd(8).

Tested by: dhw@
MFC after: 1 month
Sponsored by: The FreeBSD Foundation

9 years agoAs pointed out by several people, r273114 was incorrect: it unconditionally
Dag-Erling Smørgrav [Wed, 15 Oct 2014 07:35:50 +0000 (07:35 +0000)]
As pointed out by several people, r273114 was incorrect: it unconditionally
disabled everything except TLS 1.0.  Replace it with a more carefully
wrought patch:

 - Switch the default for SSLv3 from on to off
 - Add environment variables to control TLS 1.1 and 1.2
 - In verbose mode, report which version is used
 - Update the man page to reflect these changes.

MFC after: 1 week

9 years agoSilence down a warning that doesn't provide any useful information unless
Edward Tomasz Napierala [Wed, 15 Oct 2014 07:09:45 +0000 (07:09 +0000)]
Silence down a warning that doesn't provide any useful information unless
debug is enabled.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

9 years agoAdd inet/inet6 to the dependency list. Without them if_gif is useless.
Andrey V. Elsukov [Wed, 15 Oct 2014 06:10:33 +0000 (06:10 +0000)]
Add inet/inet6 to the dependency list. Without them if_gif is useless.

MFC after: 1 month

9 years agoDon't take devmtx unnecessarily in vn_isdisk.
Mateusz Guzik [Wed, 15 Oct 2014 05:17:36 +0000 (05:17 +0000)]
Don't take devmtx unnecessarily in vn_isdisk.

MFC after: 1 week

9 years agoRemove a build artifact of the USDT tests.
Mark Johnston [Wed, 15 Oct 2014 03:15:46 +0000 (03:15 +0000)]
Remove a build artifact of the USDT tests.

MFC after: 3 days

9 years agoDrop support for SSLv3.
Dag-Erling Smørgrav [Wed, 15 Oct 2014 02:34:26 +0000 (02:34 +0000)]
Drop support for SSLv3.

MFC after: 1 week

9 years agoAdd a sysctl to allow disabling the monitoring thread.
Justin Hibbits [Wed, 15 Oct 2014 02:31:14 +0000 (02:31 +0000)]
Add a sysctl to allow disabling the monitoring thread.

Summary:
If a user uses powerd, or doesn't want to use the cycles monitoring, they can
now suspend the monitoring thread.

While here, reorganize the added prototypes to match existing groupings.

Reviewers: nwhitehorn, #powerpc, rpaulo

Reviewed By: #powerpc, rpaulo

Differential Revision: https://reviews.freebsd.org/D944
X-MFC-with: r273009

MFC after: 3 weeks

9 years agoSet the DROP_EN bit before the RX queue is brought up and active.
Adrian Chadd [Wed, 15 Oct 2014 01:22:56 +0000 (01:22 +0000)]
Set the DROP_EN bit before the RX queue is brought up and active.

He noticed issues setting this bit in SRRCTL after the queue was up,
so doing it from the sysctl handler isn't enough and may not actually
work correctly.

This commit doesn't remove the sysctl path or try to change its
behaviour.  I'll talk with others about how to finish fixing that
before I tackle that.

PR: kern/194311
Submitted by: luigi
MFC after: 3 days
Sponsored by: Norse Corp, Inc

9 years agofiledesc: plug 2 assignments to M_ZERO-ed pointers in falloc_noinstall
Mateusz Guzik [Wed, 15 Oct 2014 01:16:11 +0000 (01:16 +0000)]
filedesc: plug 2 assignments to M_ZERO-ed pointers in falloc_noinstall

No functional changes.

9 years agoEmulate "POP r/m".
Neel Natu [Tue, 14 Oct 2014 21:02:33 +0000 (21:02 +0000)]
Emulate "POP r/m".

This is needed to boot OpenBSD/i386 MP kernel in bhyve.

Reported by: grehan
MFC after: 1 week

9 years agoMake automount(8)/automountd(8) treat percent sign as a valid part
Edward Tomasz Napierala [Tue, 14 Oct 2014 19:55:34 +0000 (19:55 +0000)]
Make automount(8)/automountd(8) treat percent sign as a valid part
of path.  It's useful for spaces encoded as %20 as msdosfs labels.

Submitted by: glebius@
MFC after: 1 month

9 years agoUse '-e' to check if the virtio backing file has already been created.
Neel Natu [Tue, 14 Oct 2014 18:34:15 +0000 (18:34 +0000)]
Use '-e' to check if the virtio backing file has already been created.

The '-f' check works fine on a regular file but not if the backing file is
a device (e.g., /dev/md0). In this case it would print a misleading but
otherwise benign message about the backing file not being present.

Submitted by: Marcus Reid (marcus@blazingdot.com)
Discussed with: grehan

9 years agoMerge the following from ^/projects/release-vmimage:
Glen Barber [Tue, 14 Oct 2014 15:22:46 +0000 (15:22 +0000)]
Merge the following from ^/projects/release-vmimage:
r273076, r273077, r273079, r273095:

r273076:
  Add a separate make(1) target to release/Makefile to
  build FreeBSD virtual machine disk images for use on
  the Microsoft Azure service.

  For now, this target is not directly connected to the
  build, however can be manually invoked.

  The 'vm-azure' target invokes {amd64,i386}/mk-azure.sh,
  which does the heavy lifting to produce proper VHDs.
  mk-azure.sh uses a configuration file, defaulting to
  tools/azure.conf if otherwise unset.

r273077:
  Clear VM_RC_LIST.

r273079:
  Fix signal list to trigger umount(8).

r273095:
  Output an informational message when mkimg(1) runs, so it
  does not appear that the process has stopped while waiting
  for a 'y/n' response when waagent is deprovisioned.

Tested on: releng/10.1@r272876
MFC after: 3 days
X-MFC-10.1: yes
Sponsored by: The FreeBSD Foundation

9 years agoMerge the following from ^/projects/release-vmimage:
Glen Barber [Tue, 14 Oct 2014 15:03:06 +0000 (15:03 +0000)]
Merge the following from ^/projects/release-vmimage:
r272436, r272437, r272792:

r272436:
  Remove the first argument to panic(), which was initially
  intended to be the exit code, however when a non-zero exit
  code was returned to release/Makefile, this would prevent
  any remaining (and possibly successful) stages from being
  attempted.

r272437:

  If the vm-base target fails, prevent the vm-image target
  from being run since it cannot possibly succeed.

r272792:

  Add /usr/local/bin and /usr/local/sbin to PATH, needed
  if third-party software needs to use utilities outside
  of the base system during post-install stages (indexinfo
  is one culprit).

MFC after: 3 days
X-MFC-10.1: yes
Sponsored by: The FreeBSD Foundation

9 years agoopt_mrouting.h isn't needed anymore.
Andrey V. Elsukov [Tue, 14 Oct 2014 14:52:39 +0000 (14:52 +0000)]
opt_mrouting.h isn't needed anymore.

MFC after: 1 month