PC-BSD/trueos 6544f1alibexec/rc/rc.d Makefile

Fix build

PC-BSD/trueos 6d661deusr.sbin/periodic/etc/daily 480.leapfile-ntpd

Merge pull request #407 from trueos/ZackaryWelch-patch-1

Update 480.leapfile-ntpd

PC-BSD/trueos 96bc343usr.sbin/periodic/etc/daily 480.leapfile-ntpd

Update 480.leapfile-ntpd

Fixed periodic leapfile script to correct function calls to the latest ntpd naming

PC-BSD/trueos d652e60sys/dev/iicbus ads111x.c, sys/dev/netmap netmap_pt.c

Merge pull request #406 from trueos/trueos12-update-20190910

Trueos12 update 20190910

PC-BSD/trueos 7b696e1sys/dev/iicbus ads111x.c, sys/dev/netmap netmap_pt.c

Merge pull request #405 from trueos/fbsd12-update-20190910

Fbsd12 update 20190910

PC-BSD/trueos b7b22cccontrib/wpa/src/common dpp.c, contrib/wpa/src/drivers nl80211_copy.h driver_atheros.c

Merge pull request #404 from trueos/fbsdm-update-20190910

Fbsdm update 20190910

PC-BSD/trueos 0419230sbin/camcontrol camcontrol.c, stand/i386/libi386 vidconsole.c

Merge pull request #403 from trueos/fbsd-head-20190910

Fbsd head 20190910

PC-BSD/trueos 149bbafsys/dev/iicbus ads111x.c, sys/dev/netmap netmap_pt.c

Merge branch 'stable/12' of https://github.com/freebsd/freebsd into 

Signed-off-by: Martin Wilke <miwi at ixsystems.com>

PC-BSD/trueos d151c3fsys/dev/iicbus ads111x.c, sys/dev/netmap netmap_pt.c

Merge branch 'stable/12' of https://github.com/freebsd/freebsd into fbsd12-update-20190910

Signed-off-by: Martin Wilke <miwi at ixsystems.com>

PC-BSD/trueos 8fc2a6dcontrib/wpa/src/common dpp.c, contrib/wpa/src/drivers nl80211_copy.h driver_atheros.c

Merge branch 'master' of https://github.com/freebsd/freebsd into fbsdm-update-20190910

Signed-off-by: Martin Wilke <miwi at ixsystems.com>

PC-BSD/trueos 6f48192sbin/camcontrol camcontrol.c, stand/i386/libi386 vidconsole.c

Merge branch 'master' of https://github.com/freebsd/freebsd into fbsd-head-20190910

Signed-off-by: Martin Wilke <miwi at ixsystems.com>

PC-BSD/trueos 5be6460sys/net rtsock.c

Fix build for the platforms where db_expr_t is not long

Sponsored by:   The FreeBSD Foundation
+1-11 files

PC-BSD/trueos 03c2edd. ObsoleteFiles.inc

Fix bad path

Reported by:    zeising
+2-21 files

PC-BSD/trueos a93a130sbin/devd Makefile token.l

Stop linking to libl by specifying we do not need yywrap

MFC after: 3 days

PC-BSD/trueos 006510b. ObsoleteFiles.inc

Remove a blankline wrongly added in r351781
+0-11 files

PC-BSD/trueos 742ce16usr.bin/colldef parse.y scan.l, usr.bin/mklocale yacc.y mklocale.1

Remove mklocale(1) and colldef(1) which are deprecated since FreeBSD 11

In FreeBSD 11 along with the rework on the collation, mklocale(1) and colldef(1)
has been replaced by localedef(1) (a note has been added to the manpage to state
mklocale(1) and colldef(1) has been kept around to be able to build older
versions of FreeBSD. None of the version requiring those tools are supported
anymore so it is time to remove them from base

PC-BSD/trueos 1fe7d75lib/libc/locale euc.5 setlocale.3

In FreeBSD 11 localedef(1) has replaced the mklocale(1) and colldef(1)
tools to generate the locales data. state it in the libc manpages.

MFC after:      3 days

PC-BSD/trueos 3cfc2efshare/man/man7 hier.7

Remove reference to mklocale regarding the nls directory

mklocale never had anything to do with the content of this directory

MFC after:      3 days

PC-BSD/trueos 7d8ffeeusr.sbin/ctld Makefile token.l, usr.sbin/ndiscvt Makefile inf-token.l

Stop linking to libl by specifying we do not need yywrap

MFC after: 3 days

PC-BSD/trueos f4ac417usr.sbin/kbdcontrol Makefile lex.l

Stop linking to libl by specifying we do not need yywrap

MFC after: 3 days

PC-BSD/trueos 78ee626usr.sbin/jail Makefile jaillex.l

Stop linking to libl by specifying we do not need yywrap

MFC after: 3 days

PC-BSD/trueos 3106141usr.sbin/apmd Makefile apmdlex.l

Stop linking to libl by specifying we do not need yywrap

MFC after:      3 days

PC-BSD/trueos ca7a23busr.sbin/rrenumd Makefile lexer.l

by specifyng we do not use yywrap we can avoid linking to libl and liby

MFC after:      3 days

PC-BSD/trueos cb4ab42usr.sbin/config Makefile

config: do not link against libl, it is not needed

MFC after:      3 days

PC-BSD/trueos b6945c1usr.bin/proccontrol proccontrol.c

MFC r351774:
Add stackgap control mode to proccontrol(1).

PR:     239894

PC-BSD/trueos a3ece95lib/libc/sys procctl.2, sys/compat/freebsd32 freebsd32_misc.c

MFC r351773:

PR:     239894

PC-BSD/trueos 7ff75f4usr.bin/calendar calendar.c io.c

Fix 'calendar -a' in several ways.

o Do not run any iconv() processing in -a. The locale of root user is not
  what is desired by most of the users who receive their calendar mail.
  Just assume that users store their calendars in a format that is readable
  to them. This fixes regression from r344340.
o fork() and setusercontext(LOGIN_SETALL) for every user. This makes LANG
  set inside a calendar file mostly excessive, as we will pick up user's
  login class LANG.
o This also executes complex function cal() that parses user owned files
  with appropriate user privileges.
  Previously it was run with privileges dropped only temporary for execution
  of cal(), and fully dropped only before invoking sendmail (see r22473).

Reviewed by:    bapt (older version of patch)

PC-BSD/trueos 259fac9usr.bin/calendar day.c

Remove pointless playing with LC_TIME, which should have been done in r205821.

PC-BSD/trueos f5bc5c3sys/compat/linuxkpi/common/include/linux sysfs.h device.h, sys/sys param.h

MFC r351937:
LinuxKPI: Improve sysfs support.

- Add functions for creating and merging sysfs groups.
- Add sysfs_streq function to compare strings ignoring newline from the
  sysctl userland call.
- Add a call to sysfs_create_groups in device_add.
- Remove duplicate header include.
- Bump __FreeBSD_version.

Reviewed by:    hselasky
Approved by:    imp (mentor), hselasky

PC-BSD/trueos 08e6799sys/net rtsock.c

Appease Clang false-positive Werrors in r352112

Reported by:    bcran
+6-21 files

PC-BSD/trueos 468799bshare/man/man4 ddb.4, sys/net rtsock.c

ddb(4): Add 'show route <dest>' and 'show routetable [<af>]'

These commands show the route resolved for a specified destination, or
print out the entire routing table for a given address family (or all
families, if none is explicitly provided).

Discussed with: emaste
Differential Revision:  https://reviews.freebsd.org/D21510

PC-BSD/trueos 667493asbin/camcontrol camcontrol.c

Initialize page/subpage in case of `modepage -d`.

Previously without -m parameter it worked mostly by concodence.

While there, make page/subpage values validation more strict.

MFC after:      5 days
Sponsored by:   iXsystems, Inc.

PC-BSD/trueos ccbfa83share/man/man9 vm_page_wire.9, sys/vm vm_page.c vm_pageout.c

Change synchonization rules for vm_page reference counting.

There are several mechanisms by which a vm_page reference is held,
preventing the page from being freed back to the page allocator.  In
particular, holding the page's object lock is sufficient to prevent the
page from being freed; holding the busy lock or a wiring is sufficent as
well.  These references are protected by the page lock, which must
therefore be acquired for many per-page operations.  This results in
false sharing since the page locks are external to the vm_page
structures themselves and each lock protects multiple structures.

Transition to using an atomically updated per-page reference counter.
The object's reference is counted using a flag bit in the counter.  A
second flag bit is used to atomically block new references via
pmap_extract_and_hold() while removing managed mappings of a page.
Thus, the reference count of a page is guaranteed not to increase if the
page is unbusied, unmapped, and the object's write lock is held.  As
a consequence of this, the page lock no longer protects a page's
identity; operations which move pages between objects are now
synchronized solely by the objects' locks.

The vm_page_wire() and vm_page_unwire() KPIs are changed.  The former
requires that either the object lock or the busy lock is held.  The
latter no longer has a return value and may free the page if it releases
the last reference to that page.  vm_page_unwire_noq() behaves the same

    [24 lines not shown]

PC-BSD/trueos 431ea5eshare/man/man4 nvdimm.4

MFC 351897: nvdimm(4): Add description of NVDIMM Namespace support

Approved by:    scottl (mentor)
Sponsored by:   Intel Corporation

PC-BSD/trueos 628329bsys/dev/acpica acpi.c, sys/dev/nvdimm nvdimm.c

MFC 348757,351225: acpi and nvdimm location_str updates

nvdimm: Provide nvdimm location information

Provide the acpi handle path as the location string for the nvdimm
children of the nvdimm_root device.

Don't set the string "unknown" as a device's location_str

Return an empty string when the location is unknown instead of the
string "unknown". This ensures that all location entries are of
the form key=val.

Approved by:    scottl (mentor)
Sponsored by:   Intel Corporation
Differential Revision:  https://reviews.freebsd.org/D20644

PC-BSD/trueos af1810fshare/man/man5 rc.conf.5

Reverse the referenced tables.

If ipv4_prefer is specified, Section 10.3 is relevant.
If ipv6_prefer is specified, Section  2.1 is relevant.

This change makes the corresponding options/sections 'respective'

PR:            docs/234249
Submitted by:   David Fiander <david at fiander.info>

PC-BSD/trueos 8241905usr.bin/ar write.c

MFC r351663: ar: use more correct size_t type for loop index

Submitted by:   cem
+3-31 files

PC-BSD/trueos 1d40d15sbin/camcontrol camcontrol.c

Add one more error message to r352082.

MFC after:      5 days
Sponsored by:   iXsystems, Inc.

PC-BSD/trueos 37a3565usr.sbin/bluetooth/iwmbtfw main.c iwmbt_hw.c

MFC r351197, r351199:

iwmbtfw: Firmware loader for Intel Wireless 8260 based Bluetooth USB devices

Currently supported models are: 8260, 8265, 9560, 9260 and 22161.
Firmware files can be installed with comms/iwmbt-firmware port.

PR:                   237083
Reviewed by:           hps, emax
Differential Revision:  https://reviews.freebsd.org/D21071

PC-BSD/trueos fd9c84dsys/conf files, sys/modules/netgraph/bluetooth/ubt Makefile

MFC r351196, r351324, r351326:

ng_ubt(4): do not attach Intel Wireless 8260/8265 in bootloader mode.

Add helper function for synchronous execution of HCI commands at probe
stage and use this function to check firmware state of Intel Wireless
8260/8265 bluetooth devices found in many post 2016 year laptops.

Attempt to initialize FreeBSD bluetooth stack while such a device is in
bootloader mode locks the adapter hardly so it requires power on/off
cycle to restore.

This change blocks ng_ubt attachment unless operational firmware is
loaded thus preventing the lock up.

PR:                   237083
Reviewed by:           hps, emax
MFC after:             2 weeks
Differential Revision:  https://reviews.freebsd.org/D21071

PC-BSD/trueos 2385665tools/tools/nanobsd/dhcpd common, tools/tools/nanobsd/embedded common

Remove obsolete WITHOUT names that are no longer in the system.

Noticed by: swills@

PC-BSD/trueos 7daf872tools/tools/nanobsd/embedded sam9260ek.cfg sam9g20ek.cfg

These should have been removed when we removed atmel port before 12.

PC-BSD/trueos fc5f7b4sys/fs/msdosfs msdosfsmount.h

msdosfsmount.h: fix ifdef comment

PC-BSD/trueos df9bdb1contrib/compiler-rt/lib/sanitizer_common sanitizer_platform_limits_freebsd.h

compiler-rt: use 64-bit time_t for all FreeBSD archs except i386

Obtained from:  LLVM r370756

PC-BSD/trueos de099ddcontrib/compiler-rt/lib/sanitizer_common sanitizer_platform_limits_freebsd.h

compiler-rt: use more __sanitizer_time_t on FreeBSD

A few structs were using long for time_t members.

Obtained from:  LLVM r370755

PC-BSD/trueos 4850051share/mk bsd.sys.mk, sys/arm/conf DB-88F5XXX ARMADAXP

MFC: r351429,351430,351485,351497,351498

Merge changes to turn off -Werror for gcc 4.2.1 by default as part of
the plan to deorbit gcc 4.2.1 from -head before 13.0.

Relnotes: Yes

PC-BSD/trueos 3a0579fsbin/bectl bectl_list.c bectl.8

Back out r352087 for now

The ancient-gcc -Wno-error series hasn't been MFC'd yet to this branch and
some GCC builds seem to have raised a false-positive that wasn't caught due
to -Wno-error on head. Back it out for now, will reapply when r352092
becomes eligible for MFC...

PC-BSD/trueos e66eceesbin/bectl bectl_list.c

bectl(8): initialize reverse earlier

This turns into a warning in GCC 4.2 that 'reverse' may be used
uninitialized in this function. While I don't immediately see where it's
deciding this from (there's only two paths that make column != NULL, and
they both set reverse), initializing reverse earlier is good for clarity.

MFC after:      3 days

PC-BSD/trueos 4b61dfcsbin/bectl bectl.8

bectl(8): fix mis-merge

r348296 ("add description for create subcommand") apparently failed to merge
in the SYNOPSIS addition somehow... correct this mistake now.  This is a
direct commit to stable/12 for a misfire on previous MFC.
+4-01 files

PC-BSD/trueos 955b29econtrib/llvm/lib/CodeGen IfConversion.cpp

MFC r351938:

Pull in r371111 from upstream llvm trunk (by Eli Friedman):

  [IfConversion] Fix diamond conversion with unanalyzable branches.

  The code was incorrectly counting the number of identical
  instructions, and therefore tried to predicate an instruction which
  should not have been predicated.  This could have various effects: a
  compiler crash, an assembler failure, a miscompile, or just
  generating an extra, unnecessary instruction.

  Instead of depending on TargetInstrInfo::removeBranch, which only
  works on analyzable branches, just remove all branch instructions.

  Fixes https://bugs.llvm.org/show_bug.cgi?id=43121 and
  https://bugs.llvm.org/show_bug.cgi?id=41121 .

  Differential Revision: https://reviews.llvm.org/D67203

This should fix "Unable to predicate BX killed renamable $r0" errors
when building the lang/spidermonkey170 and lang/spidermonkey38 ports for
armv7 and armv6.

PR:            236567