dragonfly.git
3 years agodrm/linux: Add get_task_pid()
François Tigeot [Wed, 22 Jul 2020 16:21:01 +0000 (18:21 +0200)]
drm/linux: Add get_task_pid()

3 years agoRemove fuse.ko via 'make upgrade'.
Sascha Wildner [Wed, 22 Jul 2020 16:18:28 +0000 (18:18 +0200)]
Remove fuse.ko via 'make upgrade'.

So the ever older module doesn't stay around.

3 years agoUpgrade libressl. 2/2
Daniel Fojt [Tue, 21 Jul 2020 11:07:52 +0000 (13:07 +0200)]
Upgrade libressl. 2/2

Update README.{DELETED,DRAGONFLY} and adapt Makefiles to vendor changes.

3 years agoUpgrade libressl. 1/2
Daniel Fojt [Mon, 20 Jul 2020 08:59:26 +0000 (10:59 +0200)]
Upgrade libressl. 1/2

Merge branch 'vendor/LIBRESSL' into master.

3 years agovendor/libressl: upgrade from 2.9.1 to 3.1.3
Daniel Fojt [Sat, 18 Jul 2020 07:42:07 +0000 (09:42 +0200)]
vendor/libressl: upgrade from 2.9.1 to 3.1.3

Summary of notable changes:

- fixed CVE-2019-1547 and CVE-2019-1563
- various side channels in DSA and ECDSA were addressed
- fixed PVK format output issue with openssl(1) dsa and rsa subcommand
- added cms subcommand to openssl(1)
- added -addext option to openssl(1) req subcommand
- added -groups option to openssl(1) s_server subcommand
- improved compatibility by backporting functionality and documentation
  from OpenSSL 1.1.1
- added RSA-PSS and RSA-OAEP methods from OpenSSL 1.1.1
- completed the port of RSA_METHOD accessors from the OpenSSL 1.1 API
- ported Cryptographic Message Syntax (CMS) implementation from OpenSSL
  1.1.1 and enabled by default
- completed initial TLS 1.3 implementation, TLS 1.3 is now enabled
  by default for the client side, with the server side to be enabled
  in a future release
- provided TLSv1.3 cipher suite aliases to match the names used
  in RFC 8446

For details see ChangeLog.

3 years agolibc/sys : display the table properly in sigaction(2) manual page
Pierre-Alain TORET [Wed, 22 Jul 2020 08:51:46 +0000 (10:51 +0200)]
libc/sys : display the table properly in sigaction(2) manual page

Taken-from: FreeBSD (r306496)

3 years agodrm: Implement dma-buf operations, enable most drm_prime code
François Tigeot [Wed, 22 Jul 2020 06:16:12 +0000 (08:16 +0200)]
drm: Implement dma-buf operations, enable most drm_prime code

Inspired-by: OpenBSD
3 years agosys/vfs/ext2fs: Remove ext2_{bread,brelse}() wrapper variants
Tomohiro Kusumi [Tue, 21 Jul 2020 16:54:07 +0000 (01:54 +0900)]
sys/vfs/ext2fs: Remove ext2_{bread,brelse}() wrapper variants

Given f9507b19dfcb670d0003163dcff7a6722eb4abda,
remove ext2_{bread,brelse}() wrapper variants which initially
emulated FreeBSD behavior, and use regular bread()/brelse() variants.

3 years agolibdmsg: Fix wrong check in dmsg_crypto_negotiate()'s error path.
Sascha Wildner [Mon, 20 Jul 2020 22:53:13 +0000 (00:53 +0200)]
libdmsg: Fix wrong check in dmsg_crypto_negotiate()'s error path.

3 years agosys/vfs/ext2fs: Add redundant ext2_brelse() on ext2_bread() error
Tomohiro Kusumi [Mon, 20 Jul 2020 17:10:11 +0000 (02:10 +0900)]
sys/vfs/ext2fs: Add redundant ext2_brelse() on ext2_bread() error

Preparation to remove ext2_{bread,brelse}() wrappers that were
initially adopted, and use regular bread()/brelse() variants.

Although not interested in making cleanups that would cause
nonfunctional diff from its origin, this one is better without
FreeBSD compat wrappers.

3 years ago<sys/objcache.h>: Mark two kernel functions as being like malloc().
Sascha Wildner [Mon, 20 Jul 2020 16:58:18 +0000 (18:58 +0200)]
<sys/objcache.h>: Mark two kernel functions as being like malloc().

3 years agosys/vfs/ext2fs: Fix function name in ihash collision message
Tomohiro Kusumi [Mon, 20 Jul 2020 16:16:15 +0000 (01:16 +0900)]
sys/vfs/ext2fs: Fix function name in ihash collision message

3 years agokernel - Detect fixed meltdown hardware on Intel (2)
Matthew Dillon [Mon, 20 Jul 2020 06:36:46 +0000 (23:36 -0700)]
kernel - Detect fixed meltdown hardware on Intel (2)

* Adjust last commit to work as intended.

Reported-by: mjg
3 years agosys/vfs/ext2fs: Drop i_devvp initialization in ext2_vget()
Tomohiro Kusumi [Sun, 19 Jul 2020 16:40:47 +0000 (01:40 +0900)]
sys/vfs/ext2fs: Drop i_devvp initialization in ext2_vget()

This line originally came from ext2_vget() in sys/gnu/vfs/ext2fs
is meaningless in sys/vfs/ext2fs.

3 years agosys/vfs/ext2fs: Add ext2_alloc_vnode()
Tomohiro Kusumi [Sun, 19 Jul 2020 16:08:44 +0000 (01:08 +0900)]
sys/vfs/ext2fs: Add ext2_alloc_vnode()

3 years agosys/vfs/ext2fs: Cleanup ext2_vget()/ext2_valloc()
Tomohiro Kusumi [Sun, 19 Jul 2020 15:12:07 +0000 (00:12 +0900)]
sys/vfs/ext2fs: Cleanup ext2_vget()/ext2_valloc()

ext2_valloc() shouldn't use VFS_VGET() (whereas sys/gnu/vfs/ext2fs does),
but is similar.
No functional changes.

3 years agolinux/kernel.h: Add some __printf() where appropriate.
Sascha Wildner [Sun, 19 Jul 2020 10:46:18 +0000 (12:46 +0200)]
linux/kernel.h: Add some __printf() where appropriate.

3 years ago<sys/stdint.h>: Use __GNUC_PREREQ__.
Sascha Wildner [Sun, 19 Jul 2020 10:03:18 +0000 (12:03 +0200)]
<sys/stdint.h>: Use __GNUC_PREREQ__.

3 years agokernel: Prepare for -fno-common becoming default in future compilers.
Sascha Wildner [Sun, 19 Jul 2020 08:41:29 +0000 (10:41 +0200)]
kernel: Prepare for -fno-common becoming default in future compilers.

Add an explicit -fcommon to the compilation of genassym.c and
vmx_genassym.c, just like we did for asmcontext.c in libc already.

genassym.o and vmx_genassym.o are used for the generation of the
respective *.h files (using genassym.sh) which fails without
-fcommon. They are not themselves linked into the kernel.

See dadd01b6c5da8ff83652d6c3be89b16f373af69a.

3 years agoSync ACPICA with Intel's version 20200717.
Sascha Wildner [Sun, 19 Jul 2020 08:08:09 +0000 (10:08 +0200)]
Sync ACPICA with Intel's version 20200717.

* Do not increment OperationRegion reference counts for field units.

* Fix some issues in iasl(8).

For detailed list, please see sys/contrib/dev/acpica/changes.txt.

3 years agokernel - Detect fixed meltdown hardware on Intel
Matthew Dillon [Sun, 19 Jul 2020 06:19:45 +0000 (23:19 -0700)]
kernel - Detect fixed meltdown hardware on Intel

* Detect fixed meltdown hardware on Intel.

* Display standard cpu features2 and features3 info during boot.

Requested-by: mjg
3 years agosys/vfs/ext2fs: Disable ext3 htree dirents for now
Tomohiro Kusumi [Sat, 18 Jul 2020 17:19:54 +0000 (02:19 +0900)]
sys/vfs/ext2fs: Disable ext3 htree dirents for now

Seeing occasional failure with buildworld test on ext2,
but not when mkfs'd with ^dir_index.

3 years agosys/vfs/fuse: Remove FUSE from Makefile for now
Tomohiro Kusumi [Sat, 18 Jul 2020 16:10:06 +0000 (01:10 +0900)]
sys/vfs/fuse: Remove FUSE from Makefile for now

Disable FUSE build for now.
Not much progress since first committed in 2019.

Note that FUSE is difficult to implement in BSD's from the way
VFS is designed (can't properly implement "fh").

3 years agosys/vfs/fuse: Fix fuse_vop_readdir()
Tomohiro Kusumi [Sat, 18 Jul 2020 15:33:34 +0000 (00:33 +0900)]
sys/vfs/fuse: Fix fuse_vop_readdir()

3 years agosys/vfs/autofs: Fix autofs_readdir()
Tomohiro Kusumi [Sat, 18 Jul 2020 15:33:10 +0000 (00:33 +0900)]
sys/vfs/autofs: Fix autofs_readdir()

3 years agosys/vfs/ext2fs: Use bp->b_loffset in ext2_readdir()
Tomohiro Kusumi [Sat, 18 Jul 2020 17:15:45 +0000 (02:15 +0900)]
sys/vfs/ext2fs: Use bp->b_loffset in ext2_readdir()

3 years agoAdd non-GPL ext2 filesystem (port from FreeBSD)
Tomohiro Kusumi [Fri, 17 Jul 2020 16:12:07 +0000 (01:12 +0900)]
Add non-GPL ext2 filesystem (port from FreeBSD)

The new ext2 will replace the existing sys/gnu/vfs/ext2fs in future,
which is known to have lots of issues. This is already better than
sys/gnu/vfs/ext2fs in many ways, but will keep it as an option for now
as there seems to be htree dirents and/or vop_readdir related bugs.

The new implementation supports ext3 htree dirents. Read support for
ext4 extents which exists in FreeBSD ext2 isn't implemented yet (TODO).
ACL/xattr are unsupported, and likely never will be.

With exception of DragonFly VFS specific part that can't reuse FreeBSD
code (vfsops, many vnops, bread/getblk/bio i/f difference, etc),
the new ext2 is designed to be close to upstream as much as possible.
The code is there for a reason to make clear the *real* diff without
introducing nonfunctional diff noises.

3 years agoUpgrade ldns and drill(1). 2/2
Daniel Fojt [Fri, 17 Jul 2020 05:11:08 +0000 (07:11 +0200)]
Upgrade ldns and drill(1). 2/2

- regenerate config.h, net.h and util.h
- update README.{DELETED,DRAGONFLY}
- update manpage drill.1: remove empty section "BUGS", merge duplicate
  sections "SEE ALSO" and remove a reference to dig(1)

3 years agoUpgrade ldns and drill(1). 1/2
Daniel Fojt [Fri, 17 Jul 2020 05:10:04 +0000 (07:10 +0200)]
Upgrade ldns and drill(1). 1/2

Merge branch 'vendor/LDNS' into master.

3 years agovendor/ldns: upgrade from 1.7.0 to 1.7.1
Daniel Fojt [Thu, 16 Jul 2020 06:54:34 +0000 (08:54 +0200)]
vendor/ldns: upgrade from 1.7.0 to 1.7.1

Notable bugfixes:

- drill -x crashes with malformed IPv4 address
- drill -DT fails for CNAME domain
- CDS & CDNSKEY RRsets should be signed with the KSK
- several potential NULL pointer dereferences
- memory leak with more EDNS sections
- time sensitive TSIG compare vulnerability
- only chase DS if signer is parent of owner

For details see commit history or changelog on github:

https://github.com/NLnetLabs/ldns/blob/release-1.7.1/Changelog

3 years agokernel - use built-in for ffsl()
Matthew Dillon [Thu, 16 Jul 2020 23:30:36 +0000 (16:30 -0700)]
kernel - use built-in for ffsl()

* Use built-in for ffsl(), reduces generated code and improves
  performance by using CMOV

* Remove old unused/dead code in ffs()

Submitted-by: mjg
3 years agoReference efibootmgr(8) in boot(8) manual page.
Sascha Wildner [Thu, 16 Jul 2020 20:00:47 +0000 (22:00 +0200)]
Reference efibootmgr(8) in boot(8) manual page.

3 years agoUpdate the pciconf(8) database.
Sascha Wildner [Thu, 16 Jul 2020 17:38:22 +0000 (19:38 +0200)]
Update the pciconf(8) database.

June 24, 2020 snapshot from https://pci-ids.ucw.cz

3 years agoFix a few typos across the tree.
Sascha Wildner [Thu, 16 Jul 2020 07:30:00 +0000 (09:30 +0200)]
Fix a few typos across the tree.

3 years agokernel: Remove some unused variables and a dead sysctl.
Sascha Wildner [Wed, 15 Jul 2020 18:41:16 +0000 (20:41 +0200)]
kernel: Remove some unused variables and a dead sysctl.

Reported-by: mjg
3 years agolibc/asmcontext: Fix building with -fno-common.
Sascha Wildner [Wed, 15 Jul 2020 09:24:34 +0000 (11:24 +0200)]
libc/asmcontext: Fix building with -fno-common.

asmcontext.h generation using genassym.sh isn't working properly with
-fno-common, so for now just specify -fcommon at the end of the flags.

Right now this is only needed for testing -fno-common because it is
not GCC's default yet.

This concludes the work to make buildworld succeed with -fno-common.

Thanks to Krzysztof Piecuch for helping with it.

3 years agolibc/asmcontext: Remove unneeded ASSYM()s.
Sascha Wildner [Mon, 13 Jul 2020 19:04:53 +0000 (21:04 +0200)]
libc/asmcontext: Remove unneeded ASSYM()s.

3 years agomail(1): Fix building with -fno-common.
Sascha Wildner [Wed, 15 Jul 2020 09:23:53 +0000 (11:23 +0200)]
mail(1): Fix building with -fno-common.

Similar to how we "fixed" tip(1).

-fno-common will be default in future compilers (GCC 10, for example).

3 years agotip(1): Fix building with -fno-common.
Sascha Wildner [Wed, 15 Jul 2020 09:23:19 +0000 (11:23 +0200)]
tip(1): Fix building with -fno-common.

We do so by adding 'EXTERN' to all offending variables and then defining
'EXTERN' to 'extern' for all .c files, except for one (tip.c). This is
the same "fix" that FreeBSD chose, to be cleaned up better at a later
point in time.

-fno-common will be default in future compilers (GCC 10, for example).

3 years agotelnet(1)/telnetd(8): Fix building with -fno-common.
Sascha Wildner [Wed, 15 Jul 2020 09:22:49 +0000 (11:22 +0200)]
telnet(1)/telnetd(8): Fix building with -fno-common.

-fno-common will be default in future compilers (GCC 10, for example).

3 years agodrm: restore pre-Linux 4.10 print functions
François Tigeot [Wed, 15 Jul 2020 09:23:35 +0000 (11:23 +0200)]
drm: restore pre-Linux 4.10 print functions

Newer versions tend to print garbage

3 years agodrm: Update base driver to Linux 4.10.17
François Tigeot [Mon, 13 Jul 2020 21:50:01 +0000 (23:50 +0200)]
drm: Update base driver to Linux 4.10.17

Thanks to Matthew Dillon <dillon@apollo.backplane.com>
for some VM fixes.

3 years agodrm/linux: Do not sleep when not required in schedule_timeout()
François Tigeot [Mon, 13 Jul 2020 05:57:03 +0000 (07:57 +0200)]
drm/linux: Do not sleep when not required in schedule_timeout()

3 years agotftp(1): Fix building with -fno-common
Krzysztof Piecuch [Sat, 11 Jul 2020 17:40:22 +0000 (17:40 +0000)]
tftp(1): Fix building with -fno-common

-fno-common will be default in future compilers (GCC 10, for example).

3 years agofsck(8), fsdb(8): Fix building with -fno-common
Krzysztof Piecuch [Fri, 10 Jul 2020 22:58:31 +0000 (22:58 +0000)]
fsck(8), fsdb(8): Fix building with -fno-common

-fno-common will be default in future compilers (GCC 10, for example).

3 years agodrm/linux: break from wait_event_xxx() loops sooner
François Tigeot [Sun, 12 Jul 2020 07:57:59 +0000 (09:57 +0200)]
drm/linux: break from wait_event_xxx() loops sooner

3 years agodrm/linux: Fix lost wakeup event issues with wait_event_xxx() routines
François Tigeot [Sun, 12 Jul 2020 07:52:15 +0000 (09:52 +0200)]
drm/linux: Fix lost wakeup event issues with wait_event_xxx() routines

Submitted-by: Matthew Dillon <dillon@apollo.backplane.com>
3 years agodrm/linux: Implement module_param() directives
François Tigeot [Sun, 12 Jul 2020 07:30:37 +0000 (09:30 +0200)]
drm/linux: Implement module_param() directives

* Properly define KBUILD_MODNAME where required

* Rewrite linux/moduleparam.h, Automatically generate suitable
  TUNABLE_INT() directives

3 years agodrm/linux: Import the radix-tree code from FreeBSD
François Tigeot [Sun, 12 Jul 2020 05:20:52 +0000 (07:20 +0200)]
drm/linux: Import the radix-tree code from FreeBSD

3 years agolibexec/dma: split body of mails not respecting RFC5322
Daniel Fojt [Sat, 11 Jul 2020 17:43:00 +0000 (19:43 +0200)]
libexec/dma: split body of mails not respecting RFC5322

When receiving mails with body not respecting RFC5322 [1] (may happen
with automatically generated mails, for example from cron(8)), try to
split by words finding the last space before 1000's character. If this
fails, then simply refuse to further receive and process such input.

Taken from: FreeBSD (revision 326641)
Discussed with: Sascha Wildner

[1] https://tools.ietf.org/html/rfc5322#section-2.1.1

3 years agodrm/linux: Fix an unlock without lock issue in dma_fence_default_wait()
François Tigeot [Sat, 11 Jul 2020 10:54:04 +0000 (12:54 +0200)]
drm/linux: Fix an unlock without lock issue in dma_fence_default_wait()

3 years agodrm/linux: fix races in the ww mutex code that can cause lockups
François Tigeot [Sat, 11 Jul 2020 09:58:18 +0000 (11:58 +0200)]
drm/linux: fix races in the ww mutex code that can cause lockups

Submitted-by: Matthew Dillon <dillon@apollo.backplane.com>
3 years agowsp(4): Clean up the Makefile.
Sascha Wildner [Fri, 10 Jul 2020 20:19:05 +0000 (22:19 +0200)]
wsp(4): Clean up the Makefile.

3 years agodump(8), restore(8): Fix building with -fno-common
Krzysztof Piecuch [Thu, 9 Jul 2020 21:23:18 +0000 (21:23 +0000)]
dump(8), restore(8): Fix building with -fno-common

-fno-common will be default in future compilers (GCC 10, for example).

taken-from: freebsd/freebsd@1e06b254773895e61b246dccbf418fd5c444d93a

3 years agolibexec/dma: upgrade from 0.9+ to 0.13+
Daniel Fojt [Fri, 10 Jul 2020 09:04:55 +0000 (11:04 +0200)]
libexec/dma: upgrade from 0.9+ to 0.13+

Summary of changes:

- use proper sysexits(3) codes
- handle getaddrinfo() failures for SMARTHOSTS gracefully
- improve authentication
- use space instead of tab in "From " separator
- improve logging
- refactor dma-mbox-create to use a /var/mail directory fd
- don't limit TLS client to TLSv1
- make MASQUERADE config setting override -f
- add support for RFC976 From_ lines
- add option to verify server certificate fingerprint
- fix RCPT TO to be compliant with RFC5321
- rename SECURETRANS option to SECURETRANSFER

For a complete commit history see:
https://github.com/corecode/dma/commits/master

3 years agoBring in FreeBSD's wsp(4), for Wellspring touchpads on Apple laptops.
Sascha Wildner [Thu, 9 Jul 2020 18:57:39 +0000 (20:57 +0200)]
Bring in FreeBSD's wsp(4), for Wellspring touchpads on Apple laptops.

This commit also removes ums(4) from the default kernel config file,
because it would otherwise claim this device. It is safe to remove,
and in fact FreeBSD also doesn't have it in their GENERIC, because
devd(8) will properly take care of loading the appropriate modules
for both ums(4) and wsp(4) and starting a moused(8).

Taken-from: FreeBSD
Tested-by: Patrick McDonough <~patrick/dfly@awk.is>
3 years agoUpgrade liblzma and xz(1). 2/2
Daniel Fojt [Thu, 9 Jul 2020 07:59:27 +0000 (09:59 +0200)]
Upgrade liblzma and xz(1). 2/2

Update README.{DELETED,DRAGONFLY}.

3 years agoUpgrade liblzma and xz(1). 1/2
Daniel Fojt [Thu, 9 Jul 2020 07:58:27 +0000 (09:58 +0200)]
Upgrade liblzma and xz(1). 1/2

Merge branch 'vendor/XZ' into master.

3 years agovendor/xz: upgrade from 5.2.4 to 5.2.5
Daniel Fojt [Wed, 8 Jul 2020 14:11:32 +0000 (16:11 +0200)]
vendor/xz: upgrade from 5.2.4 to 5.2.5

liblzma:
  - fixed several C99/C11 conformance bugs
  - added a very minor encoder speed optimization

xz:
  - fixed a crash in "xz -dcfv not_an_xz_file"
  - fixes for --flush-timeout

For details see NEWS.

3 years agojail.8: Fix display issue.
Sascha Wildner [Tue, 7 Jul 2020 08:22:31 +0000 (10:22 +0200)]
jail.8: Fix display issue.

The single quote at the start of a line caused mandoc(1) to ignore this
line completely. Not sure if this is correct behavior. Anyway, marking
up is a better choice.

Reported-by: Peeter Must
3 years agosbin/newfs_msdos: Add getchunksize()
Tomohiro Kusumi [Sun, 5 Jul 2020 04:33:29 +0000 (13:33 +0900)]
sbin/newfs_msdos: Add getchunksize()

from freebsd/freebsd@56d12eedec13c8b048eb729fe39078c8fb226b83

3 years agosbin/newfs_msdos: Gather writes to larger chunks (MAXPHYS)
Tomohiro Kusumi [Sun, 5 Jul 2020 02:40:53 +0000 (11:40 +0900)]
sbin/newfs_msdos: Gather writes to larger chunks (MAXPHYS)

from freebsd/freebsd@12cee841c6321be3959d19b54910d3afc750f096

3 years agosys/vfs/msdosfs: Implement VFS_STATVFS()
Tomohiro Kusumi [Sat, 4 Jul 2020 15:14:25 +0000 (00:14 +0900)]
sys/vfs/msdosfs: Implement VFS_STATVFS()

3 years agotest/test: oh well
Antonio Huete Jimenez [Sat, 4 Jul 2020 01:30:52 +0000 (03:30 +0200)]
test/test: oh well

3 years agotest/test: third?
Antonio Huete Jimenez [Sat, 4 Jul 2020 01:29:13 +0000 (03:29 +0200)]
test/test: third?

3 years agotest/test: second try
Antonio Huete Jimenez [Sat, 4 Jul 2020 01:26:11 +0000 (03:26 +0200)]
test/test: second try

3 years agotest/test: tinyurl y u no workie?
Antonio Huete Jimenez [Sat, 4 Jul 2020 01:09:40 +0000 (03:09 +0200)]
test/test: tinyurl y u no workie?

3 years ago<sys/cdefs.h>: Move various defines to <sys/systm.h> where they belong.
Sascha Wildner [Fri, 3 Jul 2020 23:20:35 +0000 (01:20 +0200)]
<sys/cdefs.h>: Move various defines to <sys/systm.h> where they belong.

Namely, __exclusive_cache_line, __read_frequently and __read_mostly.

While here, fix some whitespace.

No functional changes.

3 years agolibc/strxfrm: Remove an unneeded declaration.
Sascha Wildner [Fri, 3 Jul 2020 23:22:46 +0000 (01:22 +0200)]
libc/strxfrm: Remove an unneeded declaration.

The prototype comes in by including <string.h>.

3 years agosystimer.9: Fix for recent systimer work.
Sascha Wildner [Fri, 3 Jul 2020 13:53:27 +0000 (15:53 +0200)]
systimer.9: Fix for recent systimer work.

3 years agoefivar.3: Fix efi_set_variable() prototype.
Sascha Wildner [Fri, 3 Jul 2020 13:53:14 +0000 (15:53 +0200)]
efivar.3: Fix efi_set_variable() prototype.

3 years agoMerge branch vendor/AWK into master.
Daniel Fojt [Fri, 3 Jul 2020 08:23:05 +0000 (10:23 +0200)]
Merge branch vendor/AWK into master.

3 years agovendor/awk: upgrade from 20200612 to 20200702
Daniel Fojt [Fri, 3 Jul 2020 08:16:13 +0000 (10:16 +0200)]
vendor/awk: upgrade from 20200612 to 20200702

Bugfixes and maintenance:

- rename dprintf to DPRINTF and use C99 cpp variadic arguments
- fixed backslash not matching against [[:punct:]] (and other
  similar character classes)
- fixed concatenation regression
- fixed regression with changed SUBSEP in subscript

For details, see FIXES, or commit history at
https://github.com/onetrueawk/awk/commits/master

3 years agotun/tap: Don't repeat ifnet_attach_event and IFAN_ARRAIVAL
Aaron LI [Sun, 28 Jun 2020 15:20:53 +0000 (23:20 +0800)]
tun/tap: Don't repeat ifnet_attach_event and IFAN_ARRAIVAL

* The if_attach() called in tuncreate() already invokes
  'ifnet_attach_event' and announces IFAN_ARRAIVAL;
* The ether_ifattach() called in tapcreate() invokes if_attach() and
  thus would also do the above.

3 years agotun/tap: Use make_only_dev() for the autoclone device
Aaron LI [Sun, 28 Jun 2020 15:06:33 +0000 (23:06 +0800)]
tun/tap: Use make_only_dev() for the autoclone device

It's recommended and more correct to use make_only_dev() for the
autoclone device, because the later open action will call
devfs_spec_open() to create the device node in '/dev'.  See also the
make_autoclone_dev(9) man page.

Because the device created by make_only_dev() doesn't appear in '/dev',
devfs_find_device_by_name() cannot find it.  Therefore, we need to pass
the cdev_t returned by make_only_dev() to if_clone_create() so that the
{tun,tap}_clone_create() can get the device to create the tun/tap
interface.

Reviewed-by: dillon
3 years agoif_clone: Extend if_clone_create() by an extra parameter
Aaron LI [Thu, 2 Jul 2020 14:47:27 +0000 (22:47 +0800)]
if_clone: Extend if_clone_create() by an extra parameter

Currently, if_clone_create() accepts one caddr_t parameter that is
passed with the ifreq->ifr_data for the SIOCIFCREATE2 ioctl.

Extend this function by another caddr_t parameter so that callers could
pass extra data to the ifc->ifc_create() handler and won't conflict with
the SIOCIFCREATE2 ioctl calls.  This extension will be used by tun(4)
and tap(4) in a following commit.

Suggested-by: dillon
Reviewed-by: dillon
3 years agokernel/rtsock: Add a little whitespace.
Sascha Wildner [Thu, 2 Jul 2020 17:32:23 +0000 (19:32 +0200)]
kernel/rtsock: Add a little whitespace.

3 years agodhcpcd: Update README.DRAGONFLY
Roy Marples [Thu, 2 Jul 2020 14:12:08 +0000 (15:12 +0100)]
dhcpcd: Update README.DRAGONFLY

3 years agoMerge branch 'vendor/DHCPCD'
Roy Marples [Thu, 2 Jul 2020 14:10:15 +0000 (15:10 +0100)]
Merge branch 'vendor/DHCPCD'

3 years agodhcpcd: Update to version 9.1.3 with the following changes:
Roy Marples [Thu, 2 Jul 2020 14:08:00 +0000 (15:08 +0100)]
dhcpcd: Update to version 9.1.3 with the following changes:

 * inet6: Add support for reporting Mobile IPv6 RA's
 * inet6: Report RA Proxy flag if set
 * privsep: Don't handle any signals meant for the main process
 * eloop: Try and survive a signal storm
 * dhcpcd: Add an option to poll the interface carrier state
 * script: Make visible some link level parameters to lease dumping
 * inet6: Don't regen temp addresses we didn't add
 * privsep: Don't limit file writes if logging to a file
 * DHCP6: Fix lease timings with nodelay option

3 years agoroute: Ensure sockaddrs have valid lengths for RO_MISSFILTER.
Roy Marples [Thu, 2 Jul 2020 12:40:41 +0000 (13:40 +0100)]
route: Ensure sockaddrs have valid lengths for RO_MISSFILTER.

Taken from NetBSD

3 years agosystat(1): Fix building with -fno-common.
Sascha Wildner [Tue, 30 Jun 2020 21:11:15 +0000 (23:11 +0200)]
systat(1): Fix building with -fno-common.

-fno-common will be default in future compilers (GCC 10, for example).

3 years ago<sys/sockio.h>: Sort SIOC[SG]DRVSPEC better.
Sascha Wildner [Tue, 30 Jun 2020 18:03:30 +0000 (20:03 +0200)]
<sys/sockio.h>: Sort SIOC[SG]DRVSPEC better.

3 years agomake_autoclone_dev.9: Improve some description and markups
Aaron LI [Tue, 30 Jun 2020 15:53:55 +0000 (23:53 +0800)]
make_autoclone_dev.9: Improve some description and markups

3 years ago<sys/cdefs.h>: FWIW, add __unreachable from FreeBSD.
Sascha Wildner [Tue, 30 Jun 2020 12:31:23 +0000 (14:31 +0200)]
<sys/cdefs.h>: FWIW, add __unreachable from FreeBSD.

3 years agoRemove bsd.doc.mk via 'make upgrade'.
Sascha Wildner [Sun, 28 Jun 2020 21:06:17 +0000 (23:06 +0200)]
Remove bsd.doc.mk via 'make upgrade'.

3 years agoindent(1): fix building with -fno-common
Krzysztof Piecuch [Sun, 28 Jun 2020 10:35:29 +0000 (10:35 +0000)]
indent(1): fix building with -fno-common

Taken-from: freebsd/freebsd@e08f7da38459b29b19fd5766eb68864e203a1c93

-fno-common will be default in future compilers (GCC 10, for example).

3 years agosysvipcd(8): Fix building with -fno-common.
Sascha Wildner [Sun, 28 Jun 2020 09:23:38 +0000 (11:23 +0200)]
sysvipcd(8): Fix building with -fno-common.

-fno-common will be default in future compilers (GCC 10, for example).

3 years agopfctl(8): Fix building with -fno-common.
Sascha Wildner [Sun, 28 Jun 2020 09:23:14 +0000 (11:23 +0200)]
pfctl(8): Fix building with -fno-common.

-fno-common will be default in future compilers (GCC 10, for example).

3 years agomfiutil(8): Fix building with -fno-common.
Sascha Wildner [Sun, 28 Jun 2020 09:22:42 +0000 (11:22 +0200)]
mfiutil(8): Fix building with -fno-common.

-fno-common will be default in future compilers (GCC 10, for example).

This removes some redundant code.

Taken-from: FreeBSD

3 years agoinstaller(8): Fix building with -fno-common.
Sascha Wildner [Sun, 28 Jun 2020 09:22:04 +0000 (11:22 +0200)]
installer(8): Fix building with -fno-common.

-fno-common will be default in future compilers (GCC 10, for example).

3 years agotruss(1): Fix building with -fno-common.
Sascha Wildner [Sun, 28 Jun 2020 09:21:26 +0000 (11:21 +0200)]
truss(1): Fix building with -fno-common.

-fno-common will be default in future compilers (GCC 10, for example).

3 years agotop(1): Fix building with -fno-common.
Sascha Wildner [Sun, 28 Jun 2020 09:20:57 +0000 (11:20 +0200)]
top(1): Fix building with -fno-common.

-fno-common will be default in future compilers (GCC 10, for example).

3 years agoyp*(8): Fix building with -fno-common.
Sascha Wildner [Sun, 28 Jun 2020 09:20:19 +0000 (11:20 +0200)]
yp*(8): Fix building with -fno-common.

-fno-common will be default in future compilers (GCC 10, for example).

3 years agoetc/devd: recognize wireless network adapters
Daniel Fojt [Sun, 28 Jun 2020 07:10:56 +0000 (09:10 +0200)]
etc/devd: recognize wireless network adapters

Extend default devd(8) configuration to recognize wireless network
adapters, and automatically create child wlanX interfaces on attach.
Interfaces are created either according to rc.conf(5) or, in case
particular wireless device is not configured there, first unused
wlan is created for it.

Note: newly created wlan interface is not automatically brought up
and connected to any network. If such behaviour is desired, both
dhcpcd(8) and wpa_supplicant(8) (in interface matching mode) have to
be running (dhcpcd_enable and wpa_supplicant_enable in rc.conf(5)).

Discussed with: Sascha Wildner

3 years agoetc/devd: revise default devd.conf(5)
Daniel Fojt [Sun, 28 Jun 2020 07:05:29 +0000 (09:05 +0200)]
etc/devd: revise default devd.conf(5)

Revise $wifi-driver-regex and drop all drivers not supported on DragonFly.

Suggested by: Sascha Wildner

3 years agoRevert "libtelnet/telnetd(8): Fix building with -fno-common."
Sascha Wildner [Sat, 27 Jun 2020 21:30:41 +0000 (23:30 +0200)]
Revert "libtelnet/telnetd(8): Fix building with -fno-common."

This reverts commit e311a593a0939bb6b4c1f0de9ff58675c7c1403e.

Needs further work, because it broke building telnet(8).

3 years agolocate(1): Fix building with -fno-common.
Sascha Wildner [Sat, 27 Jun 2020 20:55:48 +0000 (22:55 +0200)]
locate(1): Fix building with -fno-common.

-fno-common will be default in future compilers (GCC 10, for example).

3 years agoiscontrol(8): Fix building with -fno-common.
Sascha Wildner [Sat, 27 Jun 2020 20:55:18 +0000 (22:55 +0200)]
iscontrol(8): Fix building with -fno-common.

-fno-common will be default in future compilers (GCC 10, for example).

3 years ago<efivar-dp.h>: Include <sys/types.h> to be self sufficient.
Sascha Wildner [Sat, 27 Jun 2020 19:06:54 +0000 (21:06 +0200)]
<efivar-dp.h>: Include <sys/types.h> to be self sufficient.