PC-BSD/trueos 791e96frelease/manifests trueos-master.json

Don't need pefs-kmod in essentialpkg list

PC-BSD/trueos 98fe7bdshare/mk bsd.trueos.mk

Scratch that, only check if release/release-trueos.sh exists, if not
then safely ignore.

PC-BSD/trueos df49ba8share/mk bsd.trueos.mk

Don't check for specific targets, just look for indicators we are running outside
of world source and in ports or elsewhere

PC-BSD/trueos 9602d07share/mk bsd.trueos.mk

Only set WORLD/KERNEL flags if running buildworld/buildkernel/packages/iso
targets, avoid being called when ports or other things call in

PC-BSD/trueos fbc87c1share/mk bsd.trueos.mk src.trueos.mk

Rename src.trueos.mk -> bsd.trueos.mk and link it into Makefile

PC-BSD/trueos 69ede9brelease release-trueos.sh

Run env_check before specific release-trueos operations so we populate
some vital variables

PC-BSD/trueos 6c0d920release release-trueos.sh, share/mk src.trueos.mk sys.mk

Update TrueOS Mk system, add new src.trueos.mk that we can
call before bsd.mkopt.mka nd in other key files where we
want to inject WITH/WITHOUT options

PC-BSD/trueos 45aa82bstand/defaults loader.conf

Remove opensolaris.ko loading

Let zfs module load opensolaris if necessary

PC-BSD/trueos 1309fc3sys/crypto/aesni aesni.c

Update opencrypto patch to fix build, thanks Matt Macy!

PC-BSD/trueos 12f33ccsys/crypto/aesni aesni_ccm.c aesni.c, sys/opencrypto ccm-cbc.c ccm-cbc.h

Import opencrypto changes from:

https://reviews.freebsd.org/D18520

PC-BSD/trueos a64277dshare/colldef zh_CN.GB18030.src zh_CN.UTF-8.src, share/ctypedef C.UTF-8.src

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

PC-BSD/trueos cf5ec70release/manifests freenas-master.json

Pull in manifest changes from 12-stable branch

PC-BSD/trueos 0d219b0contrib/sqlite3 sqlite3.c, crypto/heimdal/lib/sqlite sqlite3.c

Merge branch 'trueos-master' of https://github.com/trueos/trueos into freenas/master

PC-BSD/trueos 16e1feesys/arm/mv mv_pci.c mv_pci_ctrl.c

MFC r341406, r342106

r341406:
Fix PCI driver unload for Marvell PCI controller

Add generic implementation for bus_deactivate_resource method. Without
it bus_release_resource fails with "Failed to release active resource"
message

r342106:
[mv_pci] Do not attempt to attach disabled PCI ports

Fail probe for PCI port if the respective FDT node is not enabled

Differential Revision:  https://reviews.freebsd.org/D18385

PC-BSD/trueos d673414sys/gnu/dts/arm tegra30-apalis-v1.1.dtsi tegra30-colibri.dtsi, sys/gnu/dts/arm64/amlogic meson-axg.dtsi

Merge pull request #276 from miwi-fbsd/trueos-master

Sync with FreeBSD

PC-BSD/trueos 8884eccsys/net iflib.c

MFC r342855:

Use iflib_if_init_locked() during resume instead of iflib_init_locked().

iflib_init_locked() assumes that iflib_stop() has been called, however,
it is not called for suspend.  iflib_if_init_locked() calls stop then init,
so fixes the problem.

This was causing errors after a resume from suspend.

PR:            224059
Reported by:    zeising
Sponsored by:   Limelight Networks
DeltaFile
+1-1sys/net/iflib.c
+1-11 files

PC-BSD/trueos 8e9d137. Makefile.inc1 Makefile, release release-trueos.sh Makefile

Merge pull request #275 from trueos/environment-flags

Update the way we parse world flags and kernel flags,

PC-BSD/trueos 74308b8sys/gnu/dts/arm tegra30-apalis-v1.1.dtsi tegra30-colibri.dtsi, sys/gnu/dts/arm64/amlogic meson-axg.dtsi

Merge remote-tracking branch 'freebsd/master' into trueos-master

PC-BSD/trueos e1660f9lib/msun/src e_j0.c e_j0f.c

msun: reduce diff between src/e_j0.c and src/e_j0f.c

PR:     229501
MFC after:      1 week

PC-BSD/trueos d4d99d9sys/netgraph ng_source.c

MFC r340617,341006: unbreak ng_source(4) for 64-bit platforms

PC-BSD/trueos 05dc4d6usr.sbin/bluetooth/bluetooth-config bluetooth-config.sh

This new version of bluetooth-config.sh tries to follow the style of other
shell scripts in base, removes the bogus "copyleft", adds the BeerWare license
header and uses rc.subr(8) new 'enable' keyword for adding entries in
rc.conf(5).

Submitted by:   erdgeist <erdgeist at erdgeist.org>
Approved by:    bapt
MFC after:      2 weeks

PC-BSD/trueos 86c8489sys/net80211 ieee80211_ioctl.c

MFC r342883:
net80211: fix panic when device is removed during initialization

if_dead() is called during device detach - check if interface is
still exists before trying to refresh vap MAC address
(IF_LLADDR will trigger page fault otherwise).

PC-BSD/trueos db6bffcsys/kern kern_malloc.c

Handle overflow in calculating max kmem size.

vm_kmem_size is u_long, and it might be not capable of holding page
count times PAGE_SIZE, even when scaled down by VM_KMEM_SIZE_SCALE.  As
bde reported, 12G PAE config ends up with zero for kmem size.

Explicitly check for overflow and clamp kmem size at vm_kmem_size_max.
If we end up at zero size because VM_KMEM_SIZE_MAX is not defined,
panic with clear explanation rather then failing in a way which is
hard to relate.

Reported by:    bde, pho
Tested by:      pho
Reviewed by:    markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D18767

PC-BSD/trueos 8c39983lib/libc/sys mincore.2, sys/vm vm_mmap.c

MFC r342853:
Add a tunable which changes mincore(2) algorithm to only report data
from the local mapping.

PC-BSD/trueos e2dc2e0sys/dev/ahci ahci.c

MFC r342826:
Fix use of busdma(9) KPI in ahci(4).
DeltaFile
+24-16sys/dev/ahci/ahci.c
+24-161 files

PC-BSD/trueos 70d8bc2sys/gnu/dts/include/dt-bindings/clock px30-cru.h r9a06g032-sysctrl.h, sys/gnu/dts/include/dt-bindings/memory mt2712-larb-port.h

MFC r342935:

Import DTS includes from 4.19
This was missed in r340337

PC-BSD/trueos 9bfb656kerberos5/lib/libgssapi_krb5 Makefile, kerberos5/lib/libhx509 Makefile

Use ${SRCTOP}/contrib/com_err/com_err.h instead of the installed com_err.h.
This fixes build when com_err.h is not installed.

PR:            234691
MFC after:      1 week

PC-BSD/trueos 0d97341libexec/rc/etc.init.d Makefile

Update etc.init.d/Makefile for FILES conversion

PC-BSD/trueos 3454aa5libexec/rc/etc.init.d Makefile

Update etc.init.d/Makefile for FILES conversion

PC-BSD/trueos fcf3896. Makefile Makefile.inc1, share/mk sys.mk

Cleanup Makefile / Makefile.inc1, no need to duplicate whats
in share/mk/sys.mk. Also don't try to run these steps if
executed from release/Makefile

PC-BSD/trueos 7e7f56dshare/man/man5 ext2fs.5 Makefile

MFC r342632:
ext2fs.5: Update the manpage.

General update of the driver description and mention some important credits.
Add a symlink for ext4fs as it is of special interest nowadays.

Fix some `mandoc -Tlint` issues while here.

PC-BSD/trueos 588957ctools/build/mk OptionalObsoleteFiles.inc

Add four kerberos CLI utilities to OptionalObsoleteFiles.inc

Add asn1_compile, make-roken, kcc, and slc to the OptionalObsoleteFiles.inc
so they would be removed during delete-old stage if the new world is built
without Kerberos support.

PR:            230725
Submitted by:   Dmitry Wagin <dmitry.wagin at ya.ru>
MFC after:      1 week

PC-BSD/trueos ec95e4a. Makefile Makefile.inc1, release release-trueos.sh Makefile

Update the way we parse world flags and kernel flags,
lets try and set them much earlier in Makefile, and more
importantly in share/mk/sys.mk so that they get picked up
before the WITH_* -> MK_* parsing takes place.

This fixes #261

PC-BSD/trueos 585c48dlibexec/rc/etc.init.d Makefile

Switch /etc/init.d/* to using FILES rather than CONFS, this will
prevent the creation of .pkgnew files each update, and instead
clobber the init.d/ files as updates land.

This fixes #212

PC-BSD/trueos cfa4817libexec/rc pkgbase.setup

Don't update Train.conf each time we re-install runtime.

This fixes #272

PC-BSD/trueos 6d95bc4stand/i386/libi386 biosmem.c

Add Dell Chromebook to the list of devices with E820 extmem quirk enabled

Just like for Acer C270 chromebook the E820 extmem workaround is required for
FreeBSD to boot on Dell chromebook.

PR:            204916
Submitted by:   Keith White <kwhite at site.uottawa.ca>
MFC after:      1 week

PC-BSD/trueos 5de4964sys/arm64/arm64 cpufunc_asm.S

Don't forget to add the needed #includes.

Pointy hat to:  cognet

PC-BSD/trueos f68e64csys/arm64/arm64 cpufunc_asm.S freebsd32_machdep.c, sys/arm64/include cpufunc.h

Introduce cpu_icache_sync_range_checked(), that does the same thing as
cpu_icache_sync_range(), except that it sets pcb_onfault to catch any page
fault, as doing cache maintenance operations for non-mapped generates a
data abort, and use it in freebsd32_sysarch(), so that a userland program
attempting to sync the icache with unmapped addresses doesn't crash the
kernel.

Spotted out by: andrew

PC-BSD/trueos 23cce14sys/kern uipc_socket.c

Handle SIGIO for listening sockets

r319722 separated struct socket and parts of the socket I/O path into
listening-socket-specific and dataflow-socket-specific pieces.  Listening
socket connection notifications are now handled by solisten_wakeup() instead
of sowakeup(), but solisten_wakeup() does not currently post SIGIO to the
owning process.

PR:     234258
Reported by:    Kenneth Adelman
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D18664

PC-BSD/trueos 38d007esys/arm64/arm64 freebsd32_machdep.c elf32_machdep.c, sys/arm64/include ucontext.h

Impleent COMPAT_FREEBSD32 for arm64.
This is based on early work by andrew@.

PC-BSD/trueos 03537a1usr.sbin/pc-sysinstall/backend functions-unmount.sh functions-upgrade.sh

Update to pc-sysinstall for a few issues:

Use new 'efibootmgr' to set default EFI entry to boot, fixes boot on some systems which
don't respect BOOTx64.efi as default entry

Switch to loader.efi as default TrueOS loader, fixes issue with GOP settings being gone

Setup EFI boot on upgrade, fixes #235

PC-BSD/trueos 80f7049lib/libc/sys thr_wake.2

MFC r342816: thr_wake(2): Minor mdoc fixes

PC-BSD/trueos 319fb7busr.bin/getconf getconf.1

MFC r342817: getconf(1): Minor mdoc fix

PC-BSD/trueos 77623easys/amd64/linux linux_dummy.c, sys/amd64/linux32 linux32_dummy.c

MFC r342933:
Fix errno values returned from DUMMY_XATTR linuxulator calls

Reported by: weiss at uni-mainz.de
Reviewed by: markj
Differential Revision: https://reviews.freebsd.org/D18812

PC-BSD/trueos c45b652share/timedef zh_CN.GB2312.src zh_CN.GBK.src

MFC r342614, r342633

r342614:
Properly set svn:mimetype for zh_CN.UTF-8.src.

r342633:
Fix various issues with Chinese locales:

 - Change short weekday names to use only one Chinese character.
   (note: this is a somewhat misunfortunate compromise due to the fact
   that some applications are using short buffer for weekday names,
   and in ~1905 when 星期 system was created to replace the traditional
   七曜 system, which can use 日月火水木金土 to represent Sunday through
   Saturday with just one character without any confusion).
 - for zh_CN locales: use Arabic numerals for month names, matching the
   practice of all other CJK locales
 - Regenerate zh_CN.{GB2312,GBK} locales from zh_CN.UTF-8.

Reported by:    ygy
Reviewed by:    kevlo
Differential Revision:  https://reviews.freebsd.org/D18689

PC-BSD/trueos 7d54e9astand/i386/libi386 pxe.c bio.c

MFC: r342619, r342626

loader: create bio_alloc and bio_free for bios bounce buffer

We do have 16KB buffer space defined in pxe.c, move it to bio.c and implement
bio_alloc()/bio_free() interface to make it possible to use this space for
other BIOS calls (notably, from biosdisk.c).

PC-BSD/trueos d9fbf9dstand/i386/libi386 devicename.c

i386_parsedev() needs to support fd devices

After introduction of fd device list to BIOS loader, the i386_parsedev()
needs to recognize fd devices.

PC-BSD/trueos c2267a2stand/efi/include efidef.h efilib.h, stand/efi/libefi env.c

loader.efi: update memmap command to recognize new attributes

Also move memory type to string translation to libefi for later use.

PC-BSD/trueos 128db92stand/i386/libi386 biosdisk.c

With buggy int13 ah=15, we can mis-identify the floppy devices.

We have no option than trust INT13 ah=08 return code during the init phase.

PR:            234460
Reported by:    Oleh Hushchenkov

PC-BSD/trueos 5ebe055sys/net80211 ieee80211_output.c

net80211: provide rate validation for injected frames.

There may be various side effects (device timeout, firmware and / or
kernel panic) when an invalid (or inapplicable - e.g., an MCS rate
for 11g-only device) is set; check rates before sending the frame to
the driver.

How-to-reproduce:
Set an MCS (real or bogus - with 0x80 bit set) rate in ibp_rate0 field
for any device that uses ieee80211_isratevalid() for rate checks -
rum(4), run(4), ural(4), bwi(4) or ral(4); if kernel is compiled
with INVARIANTS the check will result in "rate %d is basic/mcs?" panic.

Tested with WUSB54GC (rum(4)), AP mode.

MFC after:      1 week