]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
6 years agoMFC r332451:
ae [Thu, 19 Apr 2018 10:08:28 +0000 (10:08 +0000)]
MFC r332451:
  Fix indenting in ipv6.c file, use tabs instead of mixing tabs and spaces.

6 years agoMFC r332449:
ae [Thu, 19 Apr 2018 10:06:53 +0000 (10:06 +0000)]
MFC r332449:
  Remove printing of "not" keyword from print_ip6() function.

  After r331668 handling of F_NOT flag done in one place by
  print_instruction() function. Also remove unused argument from
  print_ip[6]() functions.

6 years agoMFC r332448:
ae [Thu, 19 Apr 2018 10:05:12 +0000 (10:05 +0000)]
MFC r332448:
  Remove printing of "not" keyword from print_ip() function.

  After r331668 handling of F_NOT flag done in one place by
  print_instruction() function.

6 years agofix pc98 compilation issue in r332760
avg [Thu, 19 Apr 2018 08:56:54 +0000 (08:56 +0000)]
fix pc98 compilation issue in r332760

pc98 GENERIC still doesn't build, but at least there would be fewer
issues to fix.

6 years agoMFC r331878: unify amd64 and i386 cpu_reset() in x86/cpu_machdep.c
avg [Thu, 19 Apr 2018 07:15:40 +0000 (07:15 +0000)]
MFC r331878: unify amd64 and i386 cpu_reset() in x86/cpu_machdep.c

stable/11 note: PC98 support was removed in head, so in this branch it
needed to be handled directly

6 years agoMFC r331875: x86 cpu_reset: if failed to switch to BSP proceed to cpu_reset_real
avg [Thu, 19 Apr 2018 06:18:21 +0000 (06:18 +0000)]
MFC r331875: x86 cpu_reset: if failed to switch to BSP proceed to cpu_reset_real

6 years agoMFC r331874: x86 cpu_reset_proxy: no need to stop_cpus() the original processor
avg [Thu, 19 Apr 2018 06:09:10 +0000 (06:09 +0000)]
MFC r331874: x86 cpu_reset_proxy: no need to stop_cpus() the original processor

6 years agoMFC r331666: ZFS vn_rele_async: catch up with the use of refcount(9) for the vnode...
avg [Thu, 19 Apr 2018 06:03:50 +0000 (06:03 +0000)]
MFC r331666: ZFS vn_rele_async: catch up with the use of refcount(9) for the vnode use count

It's not sufficient nor required to use the vnode interlock when
checking if we are going to drop the last use count as the code in
vputx() uses refcount (atomic) operations for both checking and
decrementing the use code.  Apply the same method to vn_rele_async().
While here, remove vn_rele_inactive(), a wrapper around vrele() that
didn't add any value.

Also, the change required making vfs_refcount_release_if_not_last()
public.  I've made vfs_refcount_acquire_if_not_zero() public as well.
They are in sys/refcount.h now.  While making the move I've dropped the
vfs_ prefix.

Sponsored by: Panzura

6 years agoMFC r331616: vfs_donmount: in certain cases try r/o mount if r/w mount fails
avg [Thu, 19 Apr 2018 05:37:32 +0000 (05:37 +0000)]
MFC r331616: vfs_donmount: in certain cases try r/o mount if r/w mount fails

If the operation is not an update, if neither r/w nor r/o mode is
explicitly requested, if the error code hints at the possibility of the
media being read-only, and if the fallback is allowed, then we can try
to automatically downgrade to the readonly mode.

This is especially useful for auto-mounting of removable media that
sometimes can happen to be write-protected.

The fallback to r/o is not enabled by default.  It can be requested on a
per-mount basis with a new mount option, 'autoro'.  Or it can be
globally allowed by setting vfs.default_autoro.

Relnotes: yes

6 years agoMFC r328957:
pfg [Thu, 19 Apr 2018 02:47:21 +0000 (02:47 +0000)]
MFC r328957:
{ext2|ufs}_readdir: Avoid setting negative ncookies.

ncookies cannot be negative or the allocator will fail. This should only
happen if a caller is very broken but we can still try to survive the
event.

We should probably also verify for uio_resid > MAXPHYS but in that case
it is not clear that just clipping the ncookies value is an adequate
response.

6 years agoMFC r332416: Refactor currdev setting
kevans [Thu, 19 Apr 2018 01:15:19 +0000 (01:15 +0000)]
MFC r332416: Refactor currdev setting

Refactor the currdev setting to find the device we booted from. Limit
searching when we don't already have a reasonable currdev from that to
the same device only. Search a little harder for ZFS volumes as that's
needed for loader.efi to live on an ESP.

6 years agoMFC r332429, r332431
kevans [Thu, 19 Apr 2018 01:14:01 +0000 (01:14 +0000)]
MFC r332429, r332431

r332429:
cron(8): Reload database if an existing job in cron.d changed as well

Directory mtime will only change if a file is added or removed, not
modified. For /var/cron/tabs, this is fine because of how crontab(1) manages
it using temp files so all crontab(1) changes will trigger a reload of the
database.

For /etc/cron.d and /usr/local/etc/cron.d, this is not necessarily the case.
Instead of checking their mtime, we should descend into them and check mtime
on all jobs also.

r332431:
cron(8): Correct test sense

We're about to use the result of fstat(2) either way, so don't do that if it
fails...

6 years agoMFC r332561,r332573: Rename volume label for ESP
kevans [Thu, 19 Apr 2018 01:10:53 +0000 (01:10 +0000)]
MFC r332561,r332573: Rename volume label for ESP

MFC r332561: Rename volume label for ESP

Harry Schmalzbauer reports that some firmware, in his experience, trips
over the ESP we install due to the volume label. It has been theorized that
this is due to some confusion with the label and the path on the ESP to
boot1.efi.

Regardless, Harry found that renaming the label seems to fix it.

MFC r332573: Regenerate FAT templates after r332561

PR: 214282

6 years agoMFC r332452: Update vt(4) "Terminus BSD Console" font to v4.46
emaste [Thu, 19 Apr 2018 00:40:34 +0000 (00:40 +0000)]
MFC r332452: Update vt(4) "Terminus BSD Console" font to v4.46

"Terminus BSD Console" is a derivative of Terminus that is provided
by Mr. Dimitar Zhekov under the 2-clause BSD license for use by the
FreeBSD vt(4) console and other BSDs.

PR: 227409
Sponsored by: The FreeBSD Foundation

6 years agoMFC 331466:
jhb [Thu, 19 Apr 2018 00:11:02 +0000 (00:11 +0000)]
MFC 331466:
Add a workaround to the hypervisor detection for older versions of KVM.

Originally KVM set %eax to 0 in the cpuid leaf 0x4000000 rather than
to the highest supported leaf in the hypervisor "branch".  Detect this
case and fixup the %eax value so that the hypervisor is still
detected.

6 years agoMFC r332641: MFV man pages update from r329502:
mav [Wed, 18 Apr 2018 20:31:42 +0000 (20:31 +0000)]
MFC r332641: MFV man pages update from r329502:
7614 zfs device evacuation/removal.

6 years agoMFC r331936, r331942, r331943, r331945, r331947, r331948
cy [Wed, 18 Apr 2018 19:18:14 +0000 (19:18 +0000)]
MFC r331936, r331942, r331943, r331945, r331947, r331948

Add new gets_s(3) stdio function.

This implements the gets_s(3) function as documented at
http://en.cppreference.com/w/c/io/gets. It facilitates the
optional removal of gets(3).

Reviewed by: ed
Relnotes: yes
Differential Revision: https://reviews.freebsd.org/D12785

6 years agoMFC r332388:
shurd [Wed, 18 Apr 2018 18:45:04 +0000 (18:45 +0000)]
MFC r332388:

Make BPF global lock an SX

This allows NIC drivers to sleep on polling config operations.

PR: 323477
Submitted by: Matthew Macy <mmacy@mattmacy.io>
Reviewed by: shurd
Sponsored by: Limelight Networks
Differential Revision: https://reviews.freebsd.org/D14982

6 years agoFix a typo.
gjb [Wed, 18 Apr 2018 16:27:06 +0000 (16:27 +0000)]
Fix a typo.

Submitted by: adamw
Sponsored by: The FreeBSD Foundation

6 years agoMFC r326278 (manu):
gjb [Wed, 18 Apr 2018 16:22:23 +0000 (16:22 +0000)]
MFC r326278 (manu):

 growfs: Commit the changes after expanding the partition

 This fix the problem in arm snapshot present since at least 6 months
 where growfs was failing at firstboot and dropped you in a single
 user shell.

Note: In addition to this merge, kern.geom.part.mbr.enforce_chs has
been enabled on the build machine to mitigate against the issue in
the PR referenced.

PR: 226536
Sponsored by: The FreeBSD Foundation

6 years agoFix an incomplete sentence.
gjb [Wed, 18 Apr 2018 14:55:01 +0000 (14:55 +0000)]
Fix an incomplete sentence.

Submitted by: markj
Sponsored by: The FreeBSD Foundation

6 years agoDocument r325473, rsh(1) '-N' flag addition.
gjb [Wed, 18 Apr 2018 14:43:33 +0000 (14:43 +0000)]
Document r325473, rsh(1) '-N' flag addition.

Sponsored by: The FreeBSD Foundation

6 years agoDocument r328716, new nvmecontrol(8) WDC-specific control options.
gjb [Wed, 18 Apr 2018 14:43:32 +0000 (14:43 +0000)]
Document r328716, new nvmecontrol(8) WDC-specific control options.

Sponsored by: The FreeBSD Foundation

6 years agoDocument r328668, nvmecontrol(8) SMART data returned in a numeric
gjb [Wed, 18 Apr 2018 14:43:31 +0000 (14:43 +0000)]
Document r328668, nvmecontrol(8) SMART data returned in a numeric
value instead of a hex value.

Sponsored by: The FreeBSD Foundation

6 years agoDocument r331603, sysctl(8) support for setting multiple values to
gjb [Wed, 18 Apr 2018 14:43:30 +0000 (14:43 +0000)]
Document r331603, sysctl(8) support for setting multiple values to
a multi-value node.

Sponsored by: The FreeBSD Foundation

6 years agoDocument r322910, umount(8) '-N' flag addition.
gjb [Wed, 18 Apr 2018 14:43:29 +0000 (14:43 +0000)]
Document r322910, umount(8) '-N' flag addition.

Sponsored by: The FreeBSD Foundation

6 years agoDocument r326413, pfctl(8) route-to properly handles interfaces with
gjb [Wed, 18 Apr 2018 14:43:28 +0000 (14:43 +0000)]
Document r326413, pfctl(8) route-to properly handles interfaces with
multiple IP addresses.

Sponsored by: The FreeBSD Foundation

6 years agoDocument r327592, mdmfs(8) tmpfs(5) support.
gjb [Wed, 18 Apr 2018 14:43:27 +0000 (14:43 +0000)]
Document r327592, mdmfs(8) tmpfs(5) support.

Sponsored by: The FreeBSD Foundation

6 years agoDocument r331729, ifconfig(8) random MAC address generation.
gjb [Wed, 18 Apr 2018 14:43:26 +0000 (14:43 +0000)]
Document r331729, ifconfig(8) random MAC address generation.

Sponsored by: The FreeBSD Foundation

6 years agoDocument r328604, fsck_ffs(8) exit with non-zero status if filesystem
gjb [Wed, 18 Apr 2018 14:43:25 +0000 (14:43 +0000)]
Document r328604, fsck_ffs(8) exit with non-zero status if filesystem
is not repaired.

Sponsored by: The FreeBSD Foundation

6 years agoDocument r324674, fsck_ffs(8) no longer reports a filesystem as
gjb [Wed, 18 Apr 2018 14:43:24 +0000 (14:43 +0000)]
Document r324674, fsck_ffs(8) no longer reports a filesystem as
'modified' if only the timestamp in the superblock changed.

Sponsored by: The FreeBSD Foundation

6 years agoDocument r330692, dhclient(8) RFC2131 compliance fix.
gjb [Wed, 18 Apr 2018 14:43:23 +0000 (14:43 +0000)]
Document r330692, dhclient(8) RFC2131 compliance fix.

Sponsored by: The FreeBSD Foundation

6 years agoDocument r326778, camcontrol(8) ZAC device type output.
gjb [Wed, 18 Apr 2018 14:43:22 +0000 (14:43 +0000)]
Document r326778, camcontrol(8) ZAC device type output.

Sponsored by: The FreeBSD Foundation

6 years agoDocument r328599, service(8) '-j' flag addition.
gjb [Wed, 18 Apr 2018 14:43:21 +0000 (14:43 +0000)]
Document r328599, service(8) '-j' flag addition.

Sponsored by: The FreeBSD Foundation

6 years agoDocument r330307, cxgbe(4) firmware version 1.16.63.0.
gjb [Wed, 18 Apr 2018 14:43:20 +0000 (14:43 +0000)]
Document r330307, cxgbe(4) firmware version 1.16.63.0.

Sponsored by: The FreeBSD Foundation

6 years agoDocument r327871, cpucontrol(8) CPU feature re-evaluation ('-e').
gjb [Wed, 18 Apr 2018 14:43:19 +0000 (14:43 +0000)]
Document r327871, cpucontrol(8) CPU feature re-evaluation ('-e').

Sponsored by: The FreeBSD Foundation

6 years agoDocument r324380, cpucontrol(8) '-n' flag addition.
gjb [Wed, 18 Apr 2018 14:43:18 +0000 (14:43 +0000)]
Document r324380, cpucontrol(8) '-n' flag addition.

Sponsored by: The FreeBSD Foundation

6 years agoDocument r322254, bsdinstall(8) UEFI-only boot on arm64.
gjb [Wed, 18 Apr 2018 14:43:17 +0000 (14:43 +0000)]
Document r322254, bsdinstall(8) UEFI-only boot on arm64.

Sponsored by: The FreeBSD Foundation

6 years agoDocument r321413, bhyve virtio_console(4) support.
gjb [Wed, 18 Apr 2018 14:43:16 +0000 (14:43 +0000)]
Document r321413, bhyve virtio_console(4) support.

Sponsored by: The FreeBSD Foundation

6 years agoDocument r321241, crontab(1) '-f' flag added.
gjb [Wed, 18 Apr 2018 14:43:15 +0000 (14:43 +0000)]
Document r321241, crontab(1) '-f' flag added.

Sponsored by: The FreeBSD Foundation

6 years agoDocument r321287, sesutil(8) libxo(3) support.
gjb [Wed, 18 Apr 2018 14:43:14 +0000 (14:43 +0000)]
Document r321287, sesutil(8) libxo(3) support.

Sponsored by: The FreeBSD Foundation

6 years agoDocument r330694, "@" and "!" now allowed in GECOS fields.
gjb [Wed, 18 Apr 2018 14:43:13 +0000 (14:43 +0000)]
Document r330694, "@" and "!" now allowed in GECOS fields.

Sponsored by: The FreeBSD Foundation

6 years agoDocument r326848, pw(8) expiration handling fix.
gjb [Wed, 18 Apr 2018 14:43:12 +0000 (14:43 +0000)]
Document r326848, pw(8) expiration handling fix.

Sponsored by: The FreeBSD Foundation

6 years agoDocument r322919, pw(8) 'usermod' update to handle empty secondary
gjb [Wed, 18 Apr 2018 14:43:11 +0000 (14:43 +0000)]
Document r322919, pw(8) 'usermod' update to handle empty secondary
group lists (-G '').

Sponsored by: The FreeBSD Foundation

6 years agoDocument r321262, newsyslog(8) RFC5424-compliant log rotation
gjb [Wed, 18 Apr 2018 14:43:10 +0000 (14:43 +0000)]
Document r321262, newsyslog(8) RFC5424-compliant log rotation
messages.

Sponsored by: The FreeBSD Foundation

6 years agoDocument r331586, mlx5io(4) and mlx5tool(8) additions.
gjb [Wed, 18 Apr 2018 14:43:09 +0000 (14:43 +0000)]
Document r331586, mlx5io(4) and mlx5tool(8) additions.

Sponsored by: The FreeBSD Foundation

6 years agoFix the revision efibootmgr(8) was merged to stable/11.
gjb [Wed, 18 Apr 2018 14:43:08 +0000 (14:43 +0000)]
Fix the revision efibootmgr(8) was merged to stable/11.

Sponsored by: The FreeBSD Foundation

6 years agoDocument r326725, efibootmgr(8) addition.
gjb [Wed, 18 Apr 2018 14:43:07 +0000 (14:43 +0000)]
Document r326725, efibootmgr(8) addition.

Sponsored by: The FreeBSD Foundation

6 years agoDocument r321929, diskinfo(8) '-s' also includes the device model.
gjb [Wed, 18 Apr 2018 14:43:06 +0000 (14:43 +0000)]
Document r321929, diskinfo(8) '-s' also includes the device model.

Sponsored by: The FreeBSD Foundation

6 years agoDocument r321927, diskinfo(8) '-s' and '-p' flag additions.
gjb [Wed, 18 Apr 2018 14:43:05 +0000 (14:43 +0000)]
Document r321927, diskinfo(8) '-s' and '-p' flag additions.

Sponsored by: The FreeBSD Foundation

6 years agoDocument r325003, diskinfo(8) rotation rate and TRIM/UNMAP support
gjb [Wed, 18 Apr 2018 14:43:04 +0000 (14:43 +0000)]
Document r325003, diskinfo(8) rotation rate and TRIM/UNMAP support
displayed.

Sponsored by: The FreeBSD Foundation

6 years agoDocument r329114, GELI passphrase length no longer visible during
gjb [Wed, 18 Apr 2018 14:43:03 +0000 (14:43 +0000)]
Document r329114, GELI passphrase length no longer visible during
boot by default.

Sponsored by: The FreeBSD Foundation

6 years agoDocument r322172, libxo(3) 0.8.4.
gjb [Wed, 18 Apr 2018 14:43:02 +0000 (14:43 +0000)]
Document r322172, libxo(3) 0.8.4.

Sponsored by: The FreeBSD Foundation

6 years agoDocument r330106, NTP 4.2.8p11.
gjb [Wed, 18 Apr 2018 14:43:01 +0000 (14:43 +0000)]
Document r330106, NTP 4.2.8p11.

Sponsored by: The FreeBSD Foundation

6 years agoDocument r324581, mandoc(1) 1.14.3.
gjb [Wed, 18 Apr 2018 14:43:00 +0000 (14:43 +0000)]
Document r324581, mandoc(1) 1.14.3.

Sponsored by: The FreeBSD Foundation

6 years agoDocument r321303, libarchive(3) 3.3.2.
gjb [Wed, 18 Apr 2018 14:42:59 +0000 (14:42 +0000)]
Document r321303, libarchive(3) 3.3.2.

Sponsored by: The FreeBSD Foundation

6 years agoDocument r328874, file(1) 5.32.
gjb [Wed, 18 Apr 2018 14:42:58 +0000 (14:42 +0000)]
Document r328874, file(1) 5.32.

Sponsored by: The FreeBSD Foundation

6 years agoDocument r322442, subversion 1.9.7.
gjb [Wed, 18 Apr 2018 14:42:57 +0000 (14:42 +0000)]
Document r322442, subversion 1.9.7.

Sponsored by: The FreeBSD Foundation

6 years agoDocument r327234, tcpdump(1) 4.9.2.
gjb [Wed, 18 Apr 2018 14:42:56 +0000 (14:42 +0000)]
Document r327234, tcpdump(1) 4.9.2.

Sponsored by: The FreeBSD Foundation

6 years agoDocument r331662, tzdata version 2018d.
gjb [Wed, 18 Apr 2018 14:42:55 +0000 (14:42 +0000)]
Document r331662, tzdata version 2018d.

Sponsored by: The FreeBSD Foundation

6 years agoDocument r331500, TIAO USB multi-protocol adapter support.
gjb [Wed, 18 Apr 2018 14:42:54 +0000 (14:42 +0000)]
Document r331500, TIAO USB multi-protocol adapter support.

Sponsored by: The FreeBSD Foundation

6 years agoDocument r326892, Amazon EC2 instances now use Amazon Time Sync
gjb [Wed, 18 Apr 2018 14:42:53 +0000 (14:42 +0000)]
Document r326892, Amazon EC2 instances now use Amazon Time Sync
Service, NTP service internal to the EC2 infrastructure.

Sponsored by: The FreeBSD Foundation

6 years agoDocument r323136 which I overlooked, OpenSSH 7.5p1.
gjb [Wed, 18 Apr 2018 14:42:52 +0000 (14:42 +0000)]
Document r323136 which I overlooked, OpenSSH 7.5p1.

Sponsored by: The FreeBSD Foundation

6 years agoDocument r323134, OpenSSH version 7.4p1.
gjb [Wed, 18 Apr 2018 14:42:51 +0000 (14:42 +0000)]
Document r323134, OpenSSH version 7.4p1.

Sponsored by: The FreeBSD Foundation

6 years agoDocument r331638, OpenSSL 1.0.2o.
gjb [Wed, 18 Apr 2018 14:42:50 +0000 (14:42 +0000)]
Document r331638, OpenSSL 1.0.2o.

Sponsored by: The FreeBSD Foundation

6 years agoDocument r321092, ln(1) '-F' behavior fixed.
gjb [Wed, 18 Apr 2018 14:42:49 +0000 (14:42 +0000)]
Document r321092, ln(1) '-F' behavior fixed.

Sponsored by: The FreeBSD Foundation

6 years agoDocument r324270, ps(1) realtime and idle priorities in state flags.
gjb [Wed, 18 Apr 2018 14:42:48 +0000 (14:42 +0000)]
Document r324270, ps(1) realtime and idle priorities in state flags.

Sponsored by: The FreeBSD Foundation

6 years agoDocument r324271, ps(1) capsicum capability mode state information.
gjb [Wed, 18 Apr 2018 14:42:47 +0000 (14:42 +0000)]
Document r324271, ps(1) capsicum capability mode state information.

Sponsored by: The FreeBSD Foundation

6 years agoDocument r328140, df(1) '--si' alias to '-H'.
gjb [Wed, 18 Apr 2018 14:42:46 +0000 (14:42 +0000)]
Document r328140, df(1) '--si' alias to '-H'.

Sponsored by: The FreeBSD Foundation

6 years agoDocument r331471, ps(1) 'jail' keyword.
gjb [Wed, 18 Apr 2018 14:42:45 +0000 (14:42 +0000)]
Document r331471, ps(1) 'jail' keyword.

Sponsored by: The FreeBSD Foundation

6 years agoDocument r330570, less(1) v530.
gjb [Wed, 18 Apr 2018 14:42:44 +0000 (14:42 +0000)]
Document r330570, less(1) v530.

Sponsored by: The FreeBSD Foundation

6 years agoDocument r331246, bmake version 20180222.
gjb [Wed, 18 Apr 2018 14:42:43 +0000 (14:42 +0000)]
Document r331246, bmake version 20180222.

Sponsored by: The FreeBSD Foundation

6 years agoDocument r331838, clang, lld, lldb, llvm, etc. update to 6.0.0.
gjb [Wed, 18 Apr 2018 14:42:42 +0000 (14:42 +0000)]
Document r331838, clang, lld, lldb, llvm, etc. update to 6.0.0.

Sponsored by: The FreeBSD Foundation

6 years agoInitial pruning of the relnotes page post-11.1-RELEASE.
gjb [Wed, 18 Apr 2018 14:42:41 +0000 (14:42 +0000)]
Initial pruning of the relnotes page post-11.1-RELEASE.

Sponsored by: The FreeBSD Foundation

6 years agoMFC r332458:
ken [Tue, 17 Apr 2018 15:34:08 +0000 (15:34 +0000)]
MFC r332458:
  ------------------------------------------------------------------------
  r332458 | ken | 2018-04-12 15:21:18 -0600 (Thu, 12 Apr 2018) | 34 lines

  Handle Programmable Early Warning for control commands in sa(4).

  When the tape position is inside the Early Warning area, the tape
  drive will return a sense key of NO SENSE, and an ASC/ASCQ of
  0x00,0x02, which means: End-of-partition/medium detected".  If
  this was in response to a control command like WRITE FILEMARKS,
  we correctly translate this as informational status and return
  0 from saerror().

  Programmable Early Warning should be handled the same way, but
  we weren't handling it that way.  As a result, if a PEW status
  (sense key of NO SENSE, ASC/ASCQ of 0x00,0x07, "Programmable early
  warning detected") came back in response to a WRITE FILEMARKS,
  we returned an error.

  The impact of this was that if an application was writing to a
  sa(4) device, and a PEW area was set (in the Device Configuration
  Extension subpage -- mode page 0x10, subpage 1), and a filemark
  needed to be written on close, we could wind up returning an error
  to the user on close because of a "failure" to write the filemarks.

  It actually isn't a failure, but rather just a status report from
  the drive, and shouldn't be treated as a failure.

  sys/cam/scsi/scsi_sa.c:
   For control commands in saerror(), treat asc/ascq 0x00,0x07
   the same as 0x00,{0-5} -- not an error.  Return 0, since
   the command actually did succeed.

  Reported by: Dr. Andreas Haakh <andreas@haakh.de>
  Tested by: Dr. Andreas Haakh <andreas@haakh.de>
  Sponsored by: Spectra Logic
  ------------------------------------------------------------------------

6 years agoMFC r332421: vt: add three more cp437 mappings for vga textmode
emaste [Tue, 17 Apr 2018 12:51:28 +0000 (12:51 +0000)]
MFC r332421: vt: add three more cp437 mappings for vga textmode

In UTF-8 locales mandoc uses a number of characters outside of the Basic
Latin group, e.g. from general punctuation or miscellaneous mathematical
symbols, and these rendered as ? in text mode.

This change adds (char, replacement, code point, description):

    – - U+2013 En Dash
    ⟨ < U+27E8 Mathematical Left Angle Bracket
    ⟩ > U+27E9 Mathematical Right Angle Bracket

This change addresses some common cases; there are others that still
need to be added after a more thorough review.

PR: 227409
Sponsored by: The FreeBSD Foundation

6 years agoMFC r332387: Annotate geom modules with MODULE_VERSION
kevans [Tue, 17 Apr 2018 02:18:04 +0000 (02:18 +0000)]
MFC r332387: Annotate geom modules with MODULE_VERSION

GEOM ELI may double ask the password during boot. Once at loader time, and
once at init time.

This happens due a module loading bug. By default GEOM ELI caches the
password in the kernel, but without the MODULE_VERSION annotation, the
kernel loads over the kernel module, even if the GEOM ELI was compiled into
the kernel. In this case, the newly loaded module
purges/invalidates/overwrites the GEOM ELI's password cache, which causes
the double asking.

This MFC commit differs slightly from head, due to pc98 removal. These
changes were trivial and should be obvious.

6 years agoMFC r332390: make-memstick.sh: put partition args on separate lines
emaste [Tue, 17 Apr 2018 00:46:21 +0000 (00:46 +0000)]
MFC r332390: make-memstick.sh: put partition args on separate lines

This makes it easier to identify the individual partition types and
facilitates comparisons across architectures.

Sponsored by: The FreeBSD Foundation

6 years agoMFC of 332264, 332266, 332415:
mckusick [Tue, 17 Apr 2018 00:03:32 +0000 (00:03 +0000)]
MFC of 332264, 332266, 332415:

Check for errors in libufs getino() and gracefully fail descriptor
upgrade request in ufs_disk_write().

6 years agoMFC r332353:
tuexen [Mon, 16 Apr 2018 21:22:12 +0000 (21:22 +0000)]
MFC r332353:

Don't show the number of currently established SCTP associations,
since this is not monotonically increasing. It's number can be
derived from the other counters shown.

6 years agoMFC r332273:
tuexen [Mon, 16 Apr 2018 21:20:34 +0000 (21:20 +0000)]
MFC r332273:
Fix a logical inversion bug.
Thanks to Irene Ruengeler for finding and reporting this bug.

6 years agoMFC r332271:
tuexen [Mon, 16 Apr 2018 21:18:44 +0000 (21:18 +0000)]
MFC r332271:

Small cleanup, no functional change.

6 years agoMFC r332269:
tuexen [Mon, 16 Apr 2018 21:17:18 +0000 (21:17 +0000)]
MFC r332269:

Fix a signed/unsigned warning showing up for the userland stack
on some platforms.
Thanks to Felix Weinrank for reporting the issue.

6 years agoMFC 331324: Ensure thread library is initialized in pthread_testcancel().
jhb [Mon, 16 Apr 2018 20:45:21 +0000 (20:45 +0000)]
MFC 331324: Ensure thread library is initialized in pthread_testcancel().

Call _thr_check_init() before reading curthread in pthread_testcancel().

If a constructor in a library creates a semaphore via sem_init() and
then waits for it via sem_wait(), the program can core dump in
_pthread_testcancel() called from sem_wait().  This is because the
semaphore implementation lives in libc, so the library's constructors
can be run before libthr's constructors.

Sponsored by: DARPA / AFRL

6 years agoMFC r325313:
trasz [Mon, 16 Apr 2018 17:30:33 +0000 (17:30 +0000)]
MFC r325313:

Make syscall_timing(1) default to a temporary file when run without -p.

6 years agoMFC r325318:
trasz [Mon, 16 Apr 2018 17:29:50 +0000 (17:29 +0000)]
MFC r325318:

Add benchmark for access(2).

6 years agoMFC r325316:
trasz [Mon, 16 Apr 2018 17:28:59 +0000 (17:28 +0000)]
MFC r325316:

Add benchmark for getresuid(2) - three pointers, although only "output" ones,
and quite lightwait.

The purpose of this commit, and the previous one, is to be able to measure
overhead of pointer arguments - in case you're running a strange architecture
where pointers and integers are quite different things at the hardware level.

6 years agoMFC r325315:
trasz [Mon, 16 Apr 2018 17:27:13 +0000 (17:27 +0000)]
MFC r325315:

Add select(2) benchmark.  It takes four pointers; unfortunately it's
somewhat heavy.

6 years agoMFC r325314:
trasz [Mon, 16 Apr 2018 17:26:32 +0000 (17:26 +0000)]
MFC r325314:

Add getpriority(2) benchmark; it's a lightweight syscall which does pretty
much nothing - just like getuid(2) - but takes arguments.

6 years agoMFC r325317:
trasz [Mon, 16 Apr 2018 17:25:52 +0000 (17:25 +0000)]
MFC r325317:

Add bad_open benchmark, which measures failed opens by calling
open("", O_RDONLY);.

6 years agoMFC r331013:
trasz [Mon, 16 Apr 2018 17:24:33 +0000 (17:24 +0000)]
MFC r331013:

Fix iSCSI target crash on session reinstation.

The crash scenario goes like this: there's a thread waiting on "reinstate";
because it doesn't update the timeout counter it gets terminated by the
callout; at this point the maintenance thread starts the termination routine.
The first thread finishes waiting, proceeds to icl_conn_handoff(), and drops
the refcount, which allows the maintenance thread to free its resources.  At
this point another thread receives a PDU.  Boom.

PR: 222898, 219866
Sponsored by: playkey.net

6 years agoMFC r330937:
trasz [Mon, 16 Apr 2018 17:22:51 +0000 (17:22 +0000)]
MFC r330937:

Fix typo in a warning message.

6 years agoMFC r330741:
trasz [Mon, 16 Apr 2018 17:22:09 +0000 (17:22 +0000)]
MFC r330741:

Make iscsictl(1) display "Disabled" status for disabled sessions.

6 years agoMFC r330740:
trasz [Mon, 16 Apr 2018 17:21:26 +0000 (17:21 +0000)]
MFC r330740:

Check for duplicates when modifying an iSCSI session.  Previously we did
this check on open, but "iscsictl -M", or an iSCSI redirect received by
iscsid(8) could end up with two sessions with the same target name and
portal.

6 years agoMFC r330024:
trasz [Mon, 16 Apr 2018 17:18:06 +0000 (17:18 +0000)]
MFC r330024:

.Xr rctl(8) and cpuset(1).

PR: 225935

6 years agoMFC r328342:
trasz [Mon, 16 Apr 2018 17:15:26 +0000 (17:15 +0000)]
MFC r328342:

Add SPDX identifiers to linux_ptrace.c and cfumass.c.

6 years agoMFC r328336:
trasz [Mon, 16 Apr 2018 17:14:42 +0000 (17:14 +0000)]
MFC r328336:

Add missing SPDX identifier in iscsid(8).

6 years agoMFC r328335:
trasz [Mon, 16 Apr 2018 17:13:54 +0000 (17:13 +0000)]
MFC r328335:

Add SPDX identifiers for uefisign(8) sources.

6 years agoMFC r328195:
trasz [Mon, 16 Apr 2018 17:13:09 +0000 (17:13 +0000)]
MFC r328195:

Add usb_template(4) to RPI-B kernel config.  This is to support the USB OTG
functionality on Raspberry Pi 0.

6 years agoMFC r327777:
trasz [Mon, 16 Apr 2018 17:12:18 +0000 (17:12 +0000)]
MFC r327777:

Make nullfs properly report MNT_AUTOMOUNTED set on the nullfs mount itself,
instead of copying from the underlying filesystem.

PR: 224851