8 months agoUpgrade ncurses. 1/2
Daniel Fojt [Thu, 13 Aug 2020 16:27:16 +0000 (18:27 +0200)]
Upgrade ncurses. 1/2

Merge branch 'vendor/NCURSES' into master.

8 months agovendor/ncurses: upgrade from 6.0-20160305 to 6.2-20200212 vendor/NCURSES
Daniel Fojt [Wed, 12 Aug 2020 07:35:19 +0000 (09:35 +0200)]
vendor/ncurses: upgrade from 6.0-20160305 to 6.2-20200212

The TERMINAL structure in <term.h> is now opaque. Doing that allowed
making the structure larger, to hold the extended numeric data.
When configured for wide-characters (i.e. ncursesw), the TERMINAL
structure is extended and is named TERMTYPE2. When configured for
8-bit (narrow) characters, the TERMTYPE2 structure is not used.

For detailed description of all other changes, enhancements, bugfixes
and performance improvements, see:


8 months agoopenpam: Add back includes removed in 7196b98de8a8d.
Sascha Wildner [Tue, 18 Aug 2020 21:13:52 +0000 (23:13 +0200)]
openpam: Add back includes removed in 7196b98de8a8d.

I should have just added <security/openpam.h>.

8 months agoyacc(1): Add config.h and use it.
Sascha Wildner [Tue, 18 Aug 2020 19:07:17 +0000 (21:07 +0200)]
yacc(1): Add config.h and use it.

8 months ago__realpath.2: Fix typo.
Sascha Wildner [Tue, 18 Aug 2020 18:28:00 +0000 (20:28 +0200)]
__realpath.2: Fix typo.

8 months agokdump(8): fix indentation in mkioctls
Daniel Fojt [Tue, 18 Aug 2020 17:15:38 +0000 (19:15 +0200)]
kdump(8): fix indentation in mkioctls

8 months agosys/vfs/ext2fs: Don't do endian conversion twice
Tomohiro Kusumi [Tue, 18 Aug 2020 15:54:40 +0000 (00:54 +0900)]
sys/vfs/ext2fs: Don't do endian conversion twice

Doesn't affect anything on DragonFly.

from freebsd/freebsd@86fbc13431233b277bc8739539a18019ae53e88f

8 months agopthread - Respect RLIMIT_STACK for main thread's stack size
Michael Neumann [Mon, 17 Aug 2020 21:19:51 +0000 (23:19 +0200)]
pthread - Respect RLIMIT_STACK for main thread's stack size

Prior to this commit, the stack size of the main thread was fixed
at 4 MB which was too low for certain applications.

This commit fixes bootstrapping the lang/crystal compiler (see [1]).

Reviewed-by: dillon
Fixes-issue: #3234

[1]: https://github.com/crystal-lang/crystal/pull/9178

8 months agoFix the synopses of some libarchive and openpam manual pages.
Sascha Wildner [Mon, 17 Aug 2020 16:33:09 +0000 (18:33 +0200)]
Fix the synopses of some libarchive and openpam manual pages.

8 months ago<sys/elf_common.h>: Add GNU note types and NT_GNU_PROPERTY_TYPE_0 bits.
Sascha Wildner [Sat, 15 Aug 2020 15:06:15 +0000 (17:06 +0200)]
<sys/elf_common.h>: Add GNU note types and NT_GNU_PROPERTY_TYPE_0 bits.

Apparently some ports need those.

Reported-by: zrj
Taken-from:  FreeBSD (r348628)

8 months agobyacc: Add our local READMEs on master.
Sascha Wildner [Sat, 15 Aug 2020 06:22:03 +0000 (08:22 +0200)]
byacc: Add our local READMEs on master.

8 months agoMerge branch 'vendor/BYACC'
Sascha Wildner [Sat, 15 Aug 2020 06:21:09 +0000 (08:21 +0200)]
Merge branch 'vendor/BYACC'

8 months agovendor/BYACC: Remove our local READMEs from the vendor branch.
Sascha Wildner [Sat, 15 Aug 2020 06:20:45 +0000 (08:20 +0200)]
vendor/BYACC: Remove our local READMEs from the vendor branch.

8 months agolocaledef(1): Set yydebug only when YYDEBUG is set.
Sascha Wildner [Sat, 15 Aug 2020 06:10:52 +0000 (08:10 +0200)]
localedef(1): Set yydebug only when YYDEBUG is set.

8 months agoUpdate the pciconf(8) database.
Sascha Wildner [Sat, 15 Aug 2020 05:50:07 +0000 (07:50 +0200)]
Update the pciconf(8) database.

August 13, 2020 snapshot from https://pci-ids.ucw.cz

8 months ago<sys/random.h>: Add missing __{BEGIN,END}_DECLS.
Sascha Wildner [Sat, 15 Aug 2020 05:48:09 +0000 (07:48 +0200)]
<sys/random.h>: Add missing __{BEGIN,END}_DECLS.

Reported-by: zrj
8 months agousr.sbin/fstyp: Fix incorrect pfs_type test in ondisk inode
Tomohiro Kusumi [Thu, 13 Aug 2020 19:10:04 +0000 (04:10 +0900)]
usr.sbin/fstyp: Fix incorrect pfs_type test in ondisk inode

Fix the same bug fixed in c2795ad60fbf0e88fa2f1c2dc29905d9c4f1bf92.

8 months agoEnable -fno-common for world, too.
Sascha Wildner [Thu, 13 Aug 2020 18:14:00 +0000 (20:14 +0200)]
Enable -fno-common for world, too.

8 months agoStop mixing the userland specific <bsd.sys.mk> into the module build.
Sascha Wildner [Thu, 13 Aug 2020 18:13:47 +0000 (20:13 +0200)]
Stop mixing the userland specific <bsd.sys.mk> into the module build.

I don't know why it was there initially because we inherited it this way.

The only changes on the compile line are eliminating a -std=gcc99
(our userland -std setting) which was overridden by the kernel's
own -std=c99 anyway, and a second copy of our kernel warning flags.
By extension, it also makes the build log shorter by some percent.

8 months agodma - Update documentation
Matthew Dillon [Thu, 13 Aug 2020 05:25:17 +0000 (22:25 -0700)]
dma - Update documentation

* Add some important missing information to the manual page.

Submitted-by: Doug Hardie
8 months agoifconfig(8): Fix typo.
Sascha Wildner [Thu, 13 Aug 2020 01:39:00 +0000 (03:39 +0200)]
ifconfig(8): Fix typo.

Spotted-by: zrj
8 months agokernel - Fix multiple issues with if_tap and if_tun cloning (2)
Matthew Dillon [Wed, 12 Aug 2020 22:37:07 +0000 (15:37 -0700)]
kernel - Fix multiple issues with if_tap and if_tun cloning (2)

* For tap and tun, detect whether created by ifconfig or
  open("/dev/tap"...) etc and set MANUALMAKE flag appropriately.

* When closing a tap or tun interface and MANUALMAKE is not set,
  destroy the device, softc, and interface via if_clone_destroy().
  This fixes another issue where the various bitmaps could get out
  of sync.

8 months agokernel - Fix multiple issues with if_tap and if_tun cloning
Matthew Dillon [Wed, 12 Aug 2020 20:47:43 +0000 (13:47 -0700)]
kernel - Fix multiple issues with if_tap and if_tun cloning

* tap and tun were being auto-destroyed when manually created via
  ifconfig blah create, and not being auto-destroyed when auto-created
  via open /dev/tap or open /dev/tun.  Reverse the flag so it works

* The bitmap for the ifconfig based cloner and the bitmap maintained
  internally by if_tap and if_tun could get out of sync with each
  other due to if_clone_free_unit(ifp, ...) being issued after
  the ifc_destroy() (the ifp is garbage at that point).

* Remove a KASSERT() that can be triggered trivially from usermode
  (as root) in the interface cloning path.

Reported-by: zrj
8 months agosbin/hammer2: Fix -Wsometimes-uninitialized from 18f4f120fa
Tomohiro Kusumi [Wed, 12 Aug 2020 17:16:01 +0000 (02:16 +0900)]
sbin/hammer2: Fix -Wsometimes-uninitialized from 18f4f120fa

8 months agosys/vfs/hammer2: Remove misleading comment in readdir vop
Tomohiro Kusumi [Wed, 12 Aug 2020 15:51:28 +0000 (00:51 +0900)]
sys/vfs/hammer2: Remove misleading comment in readdir vop

since around c847e8387ad749d611d395742d337213aefef3b9 in 2015.

8 months agosbin/hammer2: Print iparent in "printinode" in hexadecimal
Tomohiro Kusumi [Wed, 12 Aug 2020 15:15:11 +0000 (00:15 +0900)]
sbin/hammer2: Print iparent in "printinode" in hexadecimal

8 months agokdump(8): Gather more ioctl names to resolve.
Sascha Wildner [Wed, 12 Aug 2020 14:45:56 +0000 (16:45 +0200)]
kdump(8): Gather more ioctl names to resolve.

8 months agosbin/hammer2: ec -> ecode for consistency
Tomohiro Kusumi [Tue, 11 Aug 2020 22:45:52 +0000 (07:45 +0900)]
sbin/hammer2: ec -> ecode for consistency

8 months agosbin/hammer2: Don't return 0 if "destroy*" failed
Tomohiro Kusumi [Tue, 11 Aug 2020 18:04:02 +0000 (03:04 +0900)]
sbin/hammer2: Don't return 0 if "destroy*" failed

8 months ago<sys/msgport.h>: For boolean_t, it is enough to include <sys/stdint.h>.
Sascha Wildner [Tue, 11 Aug 2020 22:14:47 +0000 (00:14 +0200)]
<sys/msgport.h>: For boolean_t, it is enough to include <sys/stdint.h>.

It was moved there from <sys/types.h> in 6b2b0a8b5c1c774a5c3cbb4c79bdc150.

8 months agokernel/iscsi: Remove iscsi's local definition of boolean_t.
Sascha Wildner [Tue, 11 Aug 2020 21:30:51 +0000 (23:30 +0200)]
kernel/iscsi: Remove iscsi's local definition of boolean_t.

It was locally defining boolean_t as int (4 bytes) for userland, but
boolean_t is _Bool (1 byte) in the kernel since quite some time.

This caused isc_opt_t's size being different in userland vs. kernel,
and ultimately caused the ioctl number of ISCSISETOPT, which includes
sizeof(isc_opt_t), to be different in userland vs. the kernel,
resulting in at first inexplicable ENOIOCTL issues when using

Change all 'boolean_t' usage to 'bool' which is available for both
userland and kernel, defined as _Bool.

Thanks-to: Georg "megaT" Bege <georg@bege.email> for spotting the ioctl
           number difference & testing

8 months agosbin/hammer2: Cleanup "info"
Tomohiro Kusumi [Tue, 11 Aug 2020 16:12:14 +0000 (01:12 +0900)]
sbin/hammer2: Cleanup "info"

Only volume, inode, indirect blockref (out of 9 types) needed for this.

8 months agosbin/fsck_hammer2: Fix incorrect pfs_type test in ondisk inode
Tomohiro Kusumi [Tue, 11 Aug 2020 15:47:08 +0000 (00:47 +0900)]
sbin/fsck_hammer2: Fix incorrect pfs_type test in ondisk inode

"ipdata.meta.pfs_type & HAMMER2_PFSTYPE_SUPROOT" happened to have
the same result (except HAMMER2_PFSTYPE_DUMMY could also match).

8 months agoetc/Makefile: add a notice to "check-deprecated-files"
Daniel Fojt [Tue, 11 Aug 2020 08:53:20 +0000 (10:53 +0200)]
etc/Makefile: add a notice to "check-deprecated-files"

When checking dependencies for deprecated system libraries, kernel may
complain on "foreign" (non-DragonFly) ELF binaries, like:

"ELF interpreter /lib64/ld-linux-x86-64.so.2 not found"

Unfortunately, these complaints are printed directly to terminal, not
stdout or stderr, and there is no way to redirect it. So just print
a notice in advance, to avoid possible users' confusion.

Pointed out by: Pierre-Alain TORET
Discussed with: Sascha Wildner

8 months agosbin/hammer2: Don't return 0 if "bulkfree" failed
Tomohiro Kusumi [Mon, 10 Aug 2020 17:11:19 +0000 (02:11 +0900)]
sbin/hammer2: Don't return 0 if "bulkfree" failed

8 months agosbin/hammer2: Make "dumpchain" print strerror if not HAMMER2 inode
Tomohiro Kusumi [Mon, 10 Aug 2020 17:08:36 +0000 (02:08 +0900)]
sbin/hammer2: Make "dumpchain" print strerror if not HAMMER2 inode

8 months agosbin/hammer2: Minor cleanups
Tomohiro Kusumi [Mon, 10 Aug 2020 16:25:09 +0000 (01:25 +0900)]
sbin/hammer2: Minor cleanups

8 months agoUpgrade dialog(1). 2/2
Daniel Fojt [Sun, 9 Aug 2020 14:13:29 +0000 (16:13 +0200)]
Upgrade dialog(1). 2/2

- adapt libdialog/Makefile
- regenerate dlg_config.h

8 months agoUpgrade dialog(1). 1/2
Daniel Fojt [Mon, 10 Aug 2020 15:51:21 +0000 (17:51 +0200)]
Upgrade dialog(1). 1/2

Merge branch 'vendor/DIALOG' into master.

8 months agovendor/dialog: upgrade from 1.2-20150920 to 1.3-20200327 vendor/DIALOG
Daniel Fojt [Wed, 5 Aug 2020 06:08:20 +0000 (08:08 +0200)]
vendor/dialog: upgrade from 1.2-20150920 to 1.3-20200327

Summary of notable changes:

- add "--week-start" option for calendar widget
- modify editbox widget to add a trailing newline if the text has none
  to ensure the last line is not ignored
- use Gregorian algorithm for leap year
- fix a regression from 2015/05/13 changes for escaping; it is necessary
  to retain backslashes within quotes to make "\Z" escapes work
- change explicit checks for space character used for select or toggle
  to make this rebindable to "TOGGLE"
- improve performance with very long command-lines
- interpret $DIALOGOPTS before expanding "--file", etc., to allow
  the environment variable to turn on tracing in that process
- improve handling of SIGWINCH for several widgets
- add options --print-text-only, and --print-text-size for scripts that
  adjust the widget size according to how the captions are formatted
- when trimming blanks, treat unconverted tabs the same as spaces
- allow for underline- and reverse-video flags in the ".rc" file

For detailed list of all changes, bugfixes and improvements, see CHANGES.

8 months agoboot/efi: Fix boot1's compilation with -fno-common.
Sascha Wildner [Mon, 10 Aug 2020 14:19:43 +0000 (16:19 +0200)]
boot/efi: Fix boot1's compilation with -fno-common.

boot1 needs no local definitions of BS, IH, RS and ST because they are
defined in libefi that boot1 links to.

8 months agosbin/hammer2: Use calloc(3)
Tomohiro Kusumi [Mon, 10 Aug 2020 12:05:43 +0000 (21:05 +0900)]
sbin/hammer2: Use calloc(3)

8 months agosbin/hammer2: Use nitems()
Tomohiro Kusumi [Mon, 10 Aug 2020 10:15:09 +0000 (19:15 +0900)]
sbin/hammer2: Use nitems()

8 months agosbin/hammer2: Fix no extern declaration errors
Tomohiro Kusumi [Sun, 9 Aug 2020 15:45:09 +0000 (00:45 +0900)]
sbin/hammer2: Fix no extern declaration errors

8 months agoFix GETATTR_LITE() build breakage with 'pseudo-device gzip' in the config.
Sascha Wildner [Sun, 9 Aug 2020 13:48:43 +0000 (15:48 +0200)]
Fix GETATTR_LITE() build breakage with 'pseudo-device gzip' in the config.

8 months agoboot/efi: Switch from HandleProtocol() to OpenProtocol().
Sascha Wildner [Sun, 9 Aug 2020 10:06:53 +0000 (12:06 +0200)]
boot/efi: Switch from HandleProtocol() to OpenProtocol().

HandleProtocol() is deprecated.

Bring in and use FreeBSD's OpenProtocolByHandle() helper function (which
is like the UEFI Spec's example) and generally reduce differences with
FreeBSD a bit more.

Taken-from: FreeBSD

8 months agoboot/efi: Move the loader's efi_main() from libefi to the loader itself.
Sascha Wildner [Sun, 9 Aug 2020 08:48:06 +0000 (10:48 +0200)]
boot/efi: Move the loader's efi_main() from libefi to the loader itself.

It will allow boot1 (that has its own efi_main()) to use libefi.

While here, reduce differences with FreeBSD a bit more.

Taken-from: FreeBSD

8 months agoboot/efi: Make DevicePathNodeLength()'s result a size_t.
Sascha Wildner [Sun, 9 Aug 2020 07:49:25 +0000 (09:49 +0200)]
boot/efi: Make DevicePathNodeLength()'s result a size_t.

Taken-from: FreeBSD

8 months agosbin/fsck_hammer2: Add HAMMER2_USE_OPENSSL
Tomohiro Kusumi [Sat, 8 Aug 2020 19:59:59 +0000 (04:59 +0900)]
sbin/fsck_hammer2: Add HAMMER2_USE_OPENSSL

8 months ago<sys/sysid.h>: Include <sys/types.h> for self-sufficiency.
Sascha Wildner [Sat, 8 Aug 2020 20:07:59 +0000 (22:07 +0200)]
<sys/sysid.h>: Include <sys/types.h> for self-sufficiency.

8 months agosbin/fsck_hammer2: Use RB_GENERATE() for better userspace portability
Tomohiro Kusumi [Sat, 8 Aug 2020 18:43:39 +0000 (03:43 +0900)]
sbin/fsck_hammer2: Use RB_GENERATE() for better userspace portability

8 months agokernel - Refactor GETATTR_QUICK() -> GETATTR_LITE()
Matthew Dillon [Sat, 8 Aug 2020 04:39:28 +0000 (21:39 -0700)]
kernel - Refactor GETATTR_QUICK() -> GETATTR_LITE()

* Refactor GETATTR_QUICK() into GETATTR_LITE() and use struct
  vattr_lite instead of struct vattr.  The original GETATTR_QUICK()
  just used a struct vattr.

  This change ensures that users of this new VOP do not attempt to
  access attr fields that are not populated.

Suggested-by: mjg
8 months agousb.4: Add urndis(4) reference in SEE ALSO.
Sascha Wildner [Sat, 8 Aug 2020 10:48:58 +0000 (12:48 +0200)]
usb.4: Add urndis(4) reference in SEE ALSO.

8 months agokernel: Remove <machine/npx.h> from two headers that do not need it.
Sascha Wildner [Sat, 8 Aug 2020 07:46:57 +0000 (09:46 +0200)]
kernel: Remove <machine/npx.h> from two headers that do not need it.

8 months agoRemove unneded #includes in three header files.
Sascha Wildner [Sat, 8 Aug 2020 07:26:39 +0000 (09:26 +0200)]
Remove unneded #includes in three header files.

Namely, <sys/ckpt.h>, <sys/posix4.h> and <sys/sfbuf.h>. None of them
needed anything from the headers they were including.

8 months ago<machine/tss.h>: Oops, it should have been <sys/types.h>.
Sascha Wildner [Fri, 7 Aug 2020 18:38:44 +0000 (20:38 +0200)]
<machine/tss.h>: Oops, it should have been <sys/types.h>.

We want integer types too.

8 months agodrm: Add linux/irqhandler.h
François Tigeot [Fri, 7 Aug 2020 16:42:14 +0000 (18:42 +0200)]
drm: Add linux/irqhandler.h

8 months ago<machine/tss.h>: Include <sys/cdefs.h> for __packed.
Sascha Wildner [Fri, 7 Aug 2020 06:24:51 +0000 (08:24 +0200)]
<machine/tss.h>: Include <sys/cdefs.h> for __packed.

8 months ago<machine/segments.h>: Move the inclusion of <sys/tls.h> to the top.
Sascha Wildner [Fri, 7 Aug 2020 06:17:57 +0000 (08:17 +0200)]
<machine/segments.h>: Move the inclusion of <sys/tls.h> to the top.

Mainly to get at <sys/types.h> for u_int* and <sys/cdefs.h> for __packed.

8 months ago<machine/md_var.h>: Include <sys/types.h> for u_int etc.
Sascha Wildner [Fri, 7 Aug 2020 06:16:17 +0000 (08:16 +0200)]
<machine/md_var.h>: Include <sys/types.h> for u_int etc.

8 months agolibarchive: Symbol.map cleanup
Daniel Fojt [Thu, 6 Aug 2020 18:56:59 +0000 (20:56 +0200)]
libarchive: Symbol.map cleanup

Reflect changes in last vendor update:

- __archive_write_open_filter() was made static
- __archive_write_close_filter() was dropped

Remove these from Symbol.map.

Pointed out by: Sascha Wildner

8 months agotools/tools/README: briefly describe chkldd
Daniel Fojt [Fri, 7 Aug 2020 05:36:37 +0000 (07:36 +0200)]
tools/tools/README: briefly describe chkldd

8 months agotools/tools/README: Clean up a bit.
Sascha Wildner [Fri, 7 Aug 2020 01:43:47 +0000 (03:43 +0200)]
tools/tools/README: Clean up a bit.

8 months agolibfetch: Add missing MLINK.
Sascha Wildner [Thu, 6 Aug 2020 15:39:01 +0000 (17:39 +0200)]
libfetch: Add missing MLINK.

8 months agodrm/linux: Add unsafe_put_user()
François Tigeot [Wed, 5 Aug 2020 17:49:40 +0000 (19:49 +0200)]
drm/linux: Add unsafe_put_user()

Obtained-from: FreeBSD

8 months agodrm: Add headers and infrastructure required by Linux 4.13+ code
François Tigeot [Wed, 5 Aug 2020 17:42:54 +0000 (19:42 +0200)]
drm: Add headers and infrastructure required by Linux 4.13+ code

9 months agolibhammer.3: Fix typo.
Sascha Wildner [Tue, 4 Aug 2020 15:37:37 +0000 (17:37 +0200)]
libhammer.3: Fix typo.

9 months agoBuild libssh with ldns support. 2/2
Daniel Fojt [Tue, 4 Aug 2020 09:47:39 +0000 (11:47 +0200)]
Build libssh with ldns support. 2/2

Hook ldns support into libssh via our libprivate_ldns:

- revise libraries build order
- adapt Makefiles
- update libssh/config.h
- drop libssh/openbsd-compat/getrrsetbyname.c, import
  getrrsetbyname-ldns.c instead

Approved by: Rimvydas Jasinskas

9 months agoBuild libssh with ldns support. 1/2
Daniel Fojt [Tue, 4 Aug 2020 09:33:09 +0000 (11:33 +0200)]
Build libssh with ldns support. 1/2

Merge branch 'vendor/LDNS' into master.

9 months agovendor/ldns: add missing header files vendor/LDNS
Daniel Fojt [Tue, 4 Aug 2020 09:16:13 +0000 (11:16 +0200)]
vendor/ldns: add missing header files

Add header files required for OpenSSH to build --with-ldns.

9 months agoUpgrade openssh. 2/2
Daniel Fojt [Tue, 28 Jul 2020 15:12:51 +0000 (17:12 +0200)]
Upgrade openssh. 2/2

- adapt Makefiles
- regenerate config.h and openbsd-compat/

9 months agoUpgrade openssh. 1/2
Daniel Fojt [Mon, 27 Jul 2020 09:52:49 +0000 (11:52 +0200)]
Upgrade openssh. 1/2

Merge branch 'vendor/OPENSSH' into master.

9 months agovendor/openssh: upgrade from 8.0p1 to 8.3p1 vendor/OPENSSH
Daniel Fojt [Wed, 22 Jul 2020 15:18:18 +0000 (17:18 +0200)]
vendor/openssh: upgrade from 8.0p1 to 8.3p1

Summary of notable changes:

- ssh(1), sshd(8), ssh-agent(1): add protection for private keys at
  rest in RAM against speculation and memory side-channel attacks like
  Spectre, Meltdown and Rambleed, openssh 8.1 and later encrypts private
  keys when they are not in use with a symmetric key that is derived from
  a relatively large "prekey" consisting of random data (currently 16KB)

- ssh(1), sshd(8), ssh-keygen(1): openssh 8.2 removes the "ssh-rsa"
  (RSA/SHA1) algorithm from those accepted for certificate signatures
  (i.e. the client and server CASignatureAlgorithms option) and will
  use the rsa-sha2-512 signature algorithm by default when the
  ssh-keygen(1) CA signs new certificates

- ssh(1), sshd(8): openssh 8.2 removes diffie-hellman-group14-sha1 from
  the default key exchange proposal for both the client and server

- ssh-keygen(1): the command-line options related to the generation and
  screening of safe prime numbers used by the diffie-hellman-group-* key
  exchange algorithms have changed, most options have been folded under
  the -O flag

- support PKCS8 as an optional format for storage of private keys to disk,
  native key format remains the default, but PKCS8 is a superior format to
  PEM if interoperability with non-OpenSSH software is required

- ssh(1), sshd(8): prefer to use chacha20 from libcrypto

- sshd(8): the sshd listener process title visible to ps(1) has changed
  to include information about the number of connections that are
  currently attempting authentication and the limits configured
  by MaxStartups

- sshd(8): when clients get denied by MaxStartups, send a notification
  prior to the SSH2 protocol banner according to RFC4253 section 4.2

- sshd(8): add an Include sshd_config keyword that allows including
  additional configuration files via glob(3) patterns

- sshd(8): make IgnoreRhosts a tri-state option: "yes" to ignore
  rhosts/shosts, "no" allow rhosts/shosts or (new) "shosts-only"
  to allow .shosts files but not .rhosts

- sshd(8): allow the IgnoreRhosts directive to appear anywhere in a
  sshd_config, not just before any Match blocks

- ssh(1), sshd(8): allow prepending a list of algorithms to the default
  set by starting the list with the '^' character, e.g.
  "HostKeyAlgorithms ^ssh-ed25519"

- ssh(1): allow forwarding a different agent socket to the path specified
  by $SSH_AUTH_SOCK, by extending the existing ForwardAgent option to
  accepting an explicit path or the name of an environment variable in
  addition to yes/no

- ssh(1): add %TOKEN percent expansion for the LocalFoward and
  RemoteForward keywords when used for Unix domain socket forwarding

- ssh(1): allow %n to be expanded in ProxyCommand strings

- sftp(1): reject an argument of "-1" in the same way as ssh(1) and
  scp(1) do instead of accepting and silently ignoring it

- sftp(1): check for user@host when parsing sftp target, this allows
  user@[] to work without a path

- sftp(1): fix a race condition in the SIGCHILD handler that could
  turn in to a kill(-1)

For detailed list of all improvements, enhancements and bugfixes see
release notes:


9 months agolibressl: keep cms.h
Daniel Fojt [Mon, 3 Aug 2020 08:22:31 +0000 (10:22 +0200)]
libressl: keep cms.h

Now, when we enabled CMS by default with LibreSSL 3.1.3, let's keep

Pointed out by: Sascha Wildner

9 months ago<sys/cdefs.h>: Add a compat macro for the C11 _Thread_local keyword.
Sascha Wildner [Sun, 2 Aug 2020 20:14:03 +0000 (22:14 +0200)]
<sys/cdefs.h>: Add a compat macro for the C11 _Thread_local keyword.

Taken-from: FreeBSD

9 months agoamdsmn.4: Move DragonFly info to HISTORY.
Sascha Wildner [Sun, 2 Aug 2020 19:06:11 +0000 (21:06 +0200)]
amdsmn.4: Move DragonFly info to HISTORY.

9 months agokm.4: Fix typo.
Sascha Wildner [Sun, 2 Aug 2020 19:03:55 +0000 (21:03 +0200)]
km.4: Fix typo.

9 months agoamd{smn,temp}.4: Clean up manual pages and add references to them.
Sascha Wildner [Sun, 2 Aug 2020 19:01:57 +0000 (21:01 +0200)]
amd{smn,temp}.4: Clean up manual pages and add references to them.

9 months agokernel: Some minor adjustments for amd{smn,temp}(4).
Sascha Wildner [Sun, 2 Aug 2020 18:32:41 +0000 (20:32 +0200)]
kernel: Some minor adjustments for amd{smn,temp}(4).

* Make compilable into the kernel and add to LINT64 and X86_64_GENERIC.

* Reduce some miscellaneous differences with FreeBSD.

* Bump date in manual pages.

9 months ago<sys/systm.h>: Add __assert_unreachable() for FreeBSD compatibility.
Sascha Wildner [Sun, 2 Aug 2020 18:29:54 +0000 (20:29 +0200)]
<sys/systm.h>: Add __assert_unreachable() for FreeBSD compatibility.

Taken-from: FreeBSD

9 months agoBring amdtemp from FreeBSD
Pierre-Alain TORET [Mon, 27 Jul 2020 19:42:49 +0000 (21:42 +0200)]
Bring amdtemp from FreeBSD

Tested-by: aly, deef
9 months agoBring amdsmn from FreeBSD
Pierre-Alain TORET [Mon, 27 Jul 2020 19:41:06 +0000 (21:41 +0200)]
Bring amdsmn from FreeBSD

9 months agokernel/powermng: Sort SUBDIRs.
Sascha Wildner [Sun, 2 Aug 2020 15:52:26 +0000 (17:52 +0200)]
kernel/powermng: Sort SUBDIRs.

9 months agolibc/dlfcn: Move build_phdr_info()'s attribute to the declaration.
Sascha Wildner [Sun, 2 Aug 2020 08:54:03 +0000 (10:54 +0200)]
libc/dlfcn: Move build_phdr_info()'s attribute to the declaration.

9 months agodrm: Fix dma_fence_wait()
François Tigeot [Sat, 1 Aug 2020 18:13:51 +0000 (20:13 +0200)]
drm: Fix dma_fence_wait()

It is supposed to return only 0 or negative values.

9 months agoMakefile.usr: Add '--ff-only' to 'git pull'
Aaron LI [Sat, 1 Aug 2020 06:34:55 +0000 (14:34 +0800)]
Makefile.usr: Add '--ff-only' to 'git pull'

Since version 2.27, Git will warn the pulling if not specified how to
reconcile divergent branch:

    warning: Pulling without specifying how to reconcile divergent
    branches is discouraged. You can squelch this message by running one
    of the following commands sometime before your next pull:

    git config pull.rebase false  # merge (the default strategy)
    git config pull.rebase true   # rebase
    git config pull.ff only       # fast-forward only

As a result, users may come into this issue when doing 'make src-update'
or 'make dports-update' tasks and need to resolve the 'git pull'
manually.  Add the '--ff-only' (i.e., fast-forward only, which is the
safest) to the 'git pull' command.

While there, adjust the update automation note and show it in
'src-update' and 'dports-update' tasks.

Credit: https://stackoverflow.com/a/62653400

Mentioned-by: noob237 (Gonzalo Nemmi)
9 months agoix(4): Fix a wrong check (&& -> ||).
Sascha Wildner [Fri, 31 Jul 2020 21:18:22 +0000 (23:18 +0200)]
ix(4): Fix a wrong check (&& -> ||).

This is also in Intel's ix-3.3.14.

Reviewed-by: sephe
9 months agore(4): Fix a wrong check. Looks like copy/paste but not adjusted properly.
Sascha Wildner [Fri, 31 Jul 2020 21:21:27 +0000 (23:21 +0200)]
re(4): Fix a wrong check. Looks like copy/paste but not adjusted properly.

This is also in Realtek's v196.04.

Reviewed-by: sephe
9 months agomfi(4): Fix a wrong check.
Sascha Wildner [Fri, 31 Jul 2020 21:22:55 +0000 (23:22 +0200)]
mfi(4): Fix a wrong check.

Taken-from: FreeBSD

9 months agolibc/locale: Remove some redundant redeclarations of __mb_sb_limit.
Sascha Wildner [Fri, 31 Jul 2020 17:54:07 +0000 (19:54 +0200)]
libc/locale: Remove some redundant redeclarations of __mb_sb_limit.

We already get an extern declaration from <ctype.h> (via <wchar.h>).

9 months agobuild.7: document more "upgrade" target details
Daniel Fojt [Fri, 31 Jul 2020 06:14:37 +0000 (08:14 +0200)]
build.7: document more "upgrade" target details

Mention "deprecated" objects and describe how to safely remove them from
newly upgraded system.

9 months agoAdd sanity check to "remove-deprecated-files" target.
Daniel Fojt [Sat, 25 Jul 2020 18:02:43 +0000 (20:02 +0200)]
Add sanity check to "remove-deprecated-files" target.

Import helper awk script to detect objects linked to particular

Separate the check to a new target "check-deprecated-files" in
etc/Makefile and utilize the script to report libraries that are
still in use.

Default is to check directories under /usr/local/. Additional places
to search may be specified via CHECK_DEPRECATED_DIRS variable, like:

   make CHECK_DEPRECATED_DIRS="/opt/lib /opt/bin" upgrade

Suggested and reviewed by: Sascha Wildner

9 months agolibstand: Add include guards to headers and cleanup.
Sascha Wildner [Thu, 30 Jul 2020 20:27:47 +0000 (22:27 +0200)]
libstand: Add include guards to headers and cleanup.

9 months agoUpgrade make(1). 2/2
Daniel Fojt [Thu, 30 Jul 2020 10:10:05 +0000 (12:10 +0200)]
Upgrade make(1). 2/2

- adapt Makefile
- regenerate config.h

9 months agoUpgrade make(1). 1/2
Daniel Fojt [Thu, 30 Jul 2020 10:09:09 +0000 (12:09 +0200)]
Upgrade make(1). 1/2

Merge branch 'vendor/BMAKE' into master.

9 months agovendor/bmake: upgrade from 20160818 to 20200710
Daniel Fojt [Thu, 30 Jul 2020 03:55:49 +0000 (05:55 +0200)]
vendor/bmake: upgrade from 20160818 to 20200710

Summary of notable changes:

- add :range and :_
- support for .DELETE_ON_ERROR
- allow specifying the utc value used by :{gm,local}time
- allow :_=var and avoid use of special context
- use -C arg "as is" if it contains no relative component
- when setting .OBJDIR, ignore '$' in paths
- add -v option to always fully expand values
- pass SIGINT etc onto child and wait for it to exit
- when target is out-of-date per normal make rules record
  value of .OODATE in meta file
- add :Or for reverse sort
- improvements to avoid unnecessary evaluation use enums
  for flags
- debugging output for :@
- fix for compare_expression when doEval=0

For detailed list see ChangeLog.

9 months agodsynth - Log the portdir for all bulk scan errors
Matthew Dillon [Wed, 29 Jul 2020 21:10:19 +0000 (14:10 -0700)]
dsynth - Log the portdir for all bulk scan errors

* All bulk scan errors are now able to log the portdir for the errors,
  and will also log the errors to 00_last_results.log.

* Implemented by setting stderr to a unix-domain socket during the run
  and using SO_PASSCRED.

* Requires a kernel which supports SO_PASSCRED.  Kernels which do not
  support SO_PASSCRED will still log the errors, but without the
  portdir prefix.

9 months agokernel - Implement SO_PASSCRED
Matthew Dillon [Wed, 29 Jul 2020 20:58:54 +0000 (13:58 -0700)]
kernel - Implement SO_PASSCRED

* Implement SO_PASSCRED.  This allows the receiving end of a local socket
  to request creds even if the sending end did not send any.

* Allows the use of a common local socket with multiple end points, e.g.
  for stderr, such that the receiving entity can distinguish between
  message sources.

Taken-from: Linux

9 months agosys/vfs/ext2fs: Disable calling ext2_htree_add_entry()
Tomohiro Kusumi [Wed, 29 Jul 2020 16:39:57 +0000 (01:39 +0900)]
sys/vfs/ext2fs: Disable calling ext2_htree_add_entry()

disabled creation of a new htree dirent index, but also disable adding
entries to an existing index created at elsewhere as this could also
possibly cause the issue mentioned in the comment right above.

9 months agolibressl: cleanup the build
Daniel Fojt [Wed, 29 Jul 2020 08:53:17 +0000 (10:53 +0200)]
libressl: cleanup the build

Drop our custom CRYPTO_{free,malloc}.c and use libressl's malloc-wrapper.c

Discussed with: Rimvydas Jasinskas